Class ServiceCollectionExtensions
Default service registration implementation
Inheritance
System.Object
ServiceCollectionExtensions
Namespace: ImageVault.Common.Extensions.DependencyInjection
Assembly: ImageVault.Common.dll
Syntax
public static class ServiceCollectionExtensions : Object
Methods
AddImageVaultCommon(IServiceCollection, Action<ImageVaultCommonOptions>)
Configures the default ImageVault implementation
Declaration
public static void AddImageVaultCommon(this IServiceCollection services, Action<ImageVaultCommonOptions> configurationAction = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | |
System.Action<ImageVaultCommonOptions> | configurationAction | Optional action to perform configuration |
AddImageVaultCommonNetFrameworkConfiguration(IConfigurationBuilder)
Adds the Legacy configuration provider that allows reading configuration from the old web/app config files
Declaration
public static IConfigurationBuilder AddImageVaultCommonNetFrameworkConfiguration(this IConfigurationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Configuration.IConfigurationBuilder | builder |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Configuration.IConfigurationBuilder |