# C1.Web.Api.Storage.StorageProviderManager

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Web_Api_Storage_StorageProviderManager" data-uid="C1.Web.Api.Storage.StorageProviderManager" class="text-break">StorageProviderManager Class
</h1>
  <div class="markdown level0 summary"><p>This manager mantains multiple <a class="xref" href="C1.Web.Api.Storage.IStorageProvider.html">IStorageProvider</a>.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="C1.Web.Api.Configuration.Manager-1.html">Manager</a>&lt;<a class="xref" href="C1.Web.Api.Storage.IStorageProvider.html">IStorageProvider</a>&gt;</div>
    <div class="level2"><span class="xref">StorageProviderManager</span></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Web.Api.Storage.html">C1.Web.Api.Storage</a></h6>
  <h6><strong>Assembly</strong>: C1.AspNetCore.Api.dll</h6>
  <h5 id="C1_Web_Api_Storage_StorageProviderManager_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public sealed class StorageProviderManager : Manager&lt;IStorageProvider&gt;</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public NotInheritable Class StorageProviderManager
    Inherits Manager(Of IStorageProvider)</code></pre>
  </div>
  <h5 id="C1_Web_Api_Storage_StorageProviderManager_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>If add an <a class="xref" href="C1.Web.Api.Storage.IStorageProvider.html">IStorageProvider</a> with empty string key, this
<a class="xref" href="C1.Web.Api.Storage.IStorageProvider.html">IStorageProvider</a> will be treated as the default provider.
When no macthed provider are found, the default provider will be used to
get the storage.</p>
</div>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Api_Storage_StorageProviderManager_Current" data-uid="C1.Web.Api.Storage.StorageProviderManager.Current">
          <a class="xref" href="C1.Web.Api.Storage.StorageProviderManager.Current.html#C1_Web_Api_Storage_StorageProviderManager_Current">Current</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Web.Api.Storage.StorageProviderManager.html">StorageProviderManager</a> instance.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="C1_Web_Api_Storage_StorageProviderManager_GetDirectoryStorage_System_String_System_Collections_Specialized_NameValueCollection_" data-uid="C1.Web.Api.Storage.StorageProviderManager.GetDirectoryStorage(System.String,System.Collections.Specialized.NameValueCollection)">
          <a class="xref" href="C1.Web.Api.Storage.StorageProviderManager.GetDirectoryStorage.html#C1_Web_Api_Storage_StorageProviderManager_GetDirectoryStorage_System_String_System_Collections_Specialized_NameValueCollection_">GetDirectoryStorage(string, NameValueCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Web.Api.Storage.IDirectoryStorage.html">IDirectoryStorage</a> with specified path and arguments.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_Storage_StorageProviderManager_GetFileStorage_System_String_System_Collections_Specialized_NameValueCollection_" data-uid="C1.Web.Api.Storage.StorageProviderManager.GetFileStorage(System.String,System.Collections.Specialized.NameValueCollection)">
          <a class="xref" href="C1.Web.Api.Storage.StorageProviderManager.GetFileStorage.html#C1_Web_Api_Storage_StorageProviderManager_GetFileStorage_System_String_System_Collections_Specialized_NameValueCollection_">GetFileStorage(string, NameValueCollection)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Web.Api.Storage.IFileStorage.html">IFileStorage</a> with specified path and arguments.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Web_Api_Storage_StorageProviderManager_GetProvider_System_String_System_String__System_String__" data-uid="C1.Web.Api.Storage.StorageProviderManager.GetProvider(System.String,System.String@,System.String@)">
          <a class="xref" href="C1.Web.Api.Storage.StorageProviderManager.GetProvider.html#C1_Web_Api_Storage_StorageProviderManager_GetProvider_System_String_System_String__System_String__">GetProvider(string, out string, out string)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Web.Api.Storage.IStorageProvider.html">IStorageProvider</a> with the specified path.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="Microsoft.AspNetCore.Builder.StorageProviderManagerExtensions.AddDiskStorage.html#Microsoft_AspNetCore_Builder_StorageProviderManagerExtensions_AddDiskStorage_C1_Web_Api_Storage_StorageProviderManager_System_String_System_String_">StorageProviderManagerExtensions.AddDiskStorage(StorageProviderManager, string, string)</a>
  </div>

</div>
