Class ServiceCollectionExtensions
Default service registration implementation
Inheritance
System.Object
ServiceCollectionExtensions
Namespace: ImageVault.Client.Extensions.DependencyInjection
Assembly: ImageVault.Client.dll
Syntax
public static class ServiceCollectionExtensions : Object
Methods
AddImageVaultClient(IServiceCollection, Action<ImageVaultClientOptions>)
Configure ImageVault client
Declaration
public static IServiceCollection AddImageVaultClient(this IServiceCollection services, Action<ImageVaultClientOptions> configurationAction = null)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | services | |
System.Action<ImageVaultClientOptions> | configurationAction | Optional action to perform configuration |
Returns
Type | Description |
---|---|
Microsoft.Extensions.DependencyInjection.IServiceCollection | The Microsoft.Extensions.DependencyInjection.IServiceCollection so that additional calls can be chained. |
AddImageVaultClientNetFrameworkConfiguration(IConfigurationBuilder)
Adds the Legacy configuration provider that allows reading configuration from the old web/app config files
Declaration
public static IConfigurationBuilder AddImageVaultClientNetFrameworkConfiguration(this IConfigurationBuilder builder)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.Extensions.Configuration.IConfigurationBuilder | builder |
Returns
Type | Description |
---|---|
Microsoft.Extensions.Configuration.IConfigurationBuilder |