Class BlobServiceCollectionExtensions
Provides extension methods for Microsoft.
Inheritance
Namespace: Microsoft.Extensions.DependencyInjection
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public static class BlobServiceCollectionExtensions : Object
Methods
AddBlobProvider<TProvider>(IServiceCollection, String)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceCollection AddBlobProvider<TProvider>(this IServiceCollection services, string name)
where TProvider : BlobProvider
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The service collection. |
System. |
name | The name of the provider |
Returns
Type | Description |
---|---|
Microsoft. |
The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of Blob |
AddBlobProvider<TProvider>(IServiceCollection, String, Boolean)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceCollection AddBlobProvider<TProvider>(this IServiceCollection services, string name, bool defaultProvider)
where TProvider : BlobProvider
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The service collection. |
System. |
name | The name of the provider |
System. |
defaultProvider | If |
Returns
Type | Description |
---|---|
Microsoft. |
The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of Blob |
AddBlobProvider<TProvider, TProviderOptions>(IServiceCollection, String, Action<TProviderOptions>)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceCollection AddBlobProvider<TProvider, TProviderOptions>(this IServiceCollection services, string name, Action<TProviderOptions> configure)
where TProvider : BlobProvider where TProviderOptions : class, new()
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The service collection. |
System. |
name | The name of the provider |
System. |
configure | The method used to setup the provider options. |
Returns
Type | Description |
---|---|
Microsoft. |
The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of Blob |
TProviderOptions | The type of the options class used to configure the Blob |
AddBlobProvider<TProvider, TProviderOptions>(IServiceCollection, String, Boolean, Action<TProviderOptions>)
Adds a blob provider to the CMS blob system.
Declaration
public static IServiceCollection AddBlobProvider<TProvider, TProviderOptions>(this IServiceCollection services, string name, bool defaultProvider, Action<TProviderOptions> configure)
where TProvider : BlobProvider where TProviderOptions : class, new()
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The service collection. |
System. |
name | The name of the provider |
System. |
defaultProvider | If |
System. |
configure | The method used to setup the provider options. |
Returns
Type | Description |
---|---|
Microsoft. |
The service configuration provider |
Type Parameters
Name | Description |
---|---|
TProvider | The type of Blob |
TProviderOptions | The type of the options class used to configure the Blob |
AddFileBlobProvider(IServiceCollection, String, String)
Adds a File
Declaration
public static IServiceCollection AddFileBlobProvider(this IServiceCollection services, string name, string path)
Parameters
Type | Name | Description |
---|---|---|
Microsoft. |
services | The service collection. |
System. |
name | The name of the provider |
System. |
path | The path that the provider should use. |
Returns
Type | Description |
---|---|
Microsoft. |
The service configuration provider |