Class BlobServiceConfigurationProviderExtensions
Provides extension methods for IServiceConfigurationProvider implemenations.
Inheritance
Inherited Members
Namespace: EPiServer.ServiceLocation
Assembly: EPiServer.Framework.dll
Version: 11.20.7Syntax
public static class BlobServiceConfigurationProviderExtensions
Methods
AddBlobProvider<TProvider>(IServiceConfigurationProvider, String)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceConfigurationProvider AddBlobProvider<TProvider>(this IServiceConfigurationProvider services, string name)
where TProvider : BlobProvider
Parameters
Type | Name | Description |
---|---|---|
IServiceConfigurationProvider | services | The service configuration provider. |
System.String | name | The name of the provider |
Returns
Type | Description |
---|---|
IServiceConfigurationProvider | The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of BlobProvider to add. |
AddBlobProvider<TProvider>(IServiceConfigurationProvider, String, Boolean)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceConfigurationProvider AddBlobProvider<TProvider>(this IServiceConfigurationProvider services, string name, bool defaultProvider)
where TProvider : BlobProvider
Parameters
Type | Name | Description |
---|---|---|
IServiceConfigurationProvider | services | The service configuration provider. |
System.String | name | The name of the provider |
System.Boolean | defaultProvider | If |
Returns
Type | Description |
---|---|
IServiceConfigurationProvider | The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of BlobProvider to add. |
AddBlobProvider<TProvider, TProviderOptions>(IServiceConfigurationProvider, String, Action<TProviderOptions>)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceConfigurationProvider AddBlobProvider<TProvider, TProviderOptions>(this IServiceConfigurationProvider services, string name, Action<TProviderOptions> configure)
where TProvider : BlobProvider where TProviderOptions : class, new()
Parameters
Type | Name | Description |
---|---|---|
IServiceConfigurationProvider | services | The service configuration provider. |
System.String | name | The name of the provider |
System.Action<TProviderOptions> | configure | The method used to setup the provider options. |
Returns
Type | Description |
---|---|
IServiceConfigurationProvider | The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of BlobProvider to add. |
TProviderOptions | The type of the options class used to configure the BlobProvider. |
AddBlobProvider<TProvider, TProviderOptions>(IServiceConfigurationProvider, String, Boolean, Action<TProviderOptions>)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceConfigurationProvider AddBlobProvider<TProvider, TProviderOptions>(this IServiceConfigurationProvider services, string name, bool defaultProvider, Action<TProviderOptions> configure)
where TProvider : BlobProvider where TProviderOptions : class, new()
Parameters
Type | Name | Description |
---|---|---|
IServiceConfigurationProvider | services | The service configuration provider. |
System.String | name | The name of the provider |
System.Boolean | defaultProvider | If |
System.Action<TProviderOptions> | configure | The method used to setup the provider options. |
Returns
Type | Description |
---|---|
IServiceConfigurationProvider | The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of BlobProvider to add. |
TProviderOptions | The type of the options class used to configure the BlobProvider. |
AddFileBlobProvider(IServiceConfigurationProvider, String, String)
Adds a FileBlobProvider to the CMS blob system configured using the provided path.
Declaration
public static IServiceConfigurationProvider AddFileBlobProvider(this IServiceConfigurationProvider services, string name, string path)
Parameters
Type | Name | Description |
---|---|---|
IServiceConfigurationProvider | services | The service configuration provider. |
System.String | name | The name of the provider |
System.String | path | The path that the provider should use. |
Returns
Type | Description |
---|---|
IServiceConfigurationProvider | The service configuration provider |