StorageServiceCollectionExtensions

Namespace: Proffer.Storage

Microsoft.Extensions.DependencyInjection.IServiceCollection extension methods.

public static class StorageServiceCollectionExtensions

Inheritance ObjectStorageServiceCollectionExtensions

Methods

AddStorage(IServiceCollection)

Registers Proffer.Storage services.

public static IServiceCollection AddStorage(IServiceCollection services)

Parameters

services IServiceCollection
The service collection.

Returns

IServiceCollection
The service collection.

AddStorage(IServiceCollection, IConfigurationSection)

Registers Proffer.Storage services and configures it with the given section.

public static IServiceCollection AddStorage(IServiceCollection services, IConfigurationSection configurationSection)

Parameters

services IServiceCollection
The service collection.

configurationSection IConfigurationSection
The configuration section.

Returns

IServiceCollection
The service collection.

AddStorage(IServiceCollection, IConfigurationRoot, String)

Registers Proffer.Storage services and configures it from the given at section .

public static IServiceCollection AddStorage(IServiceCollection services, IConfigurationRoot configurationRoot, string sectionName)

Parameters

services IServiceCollection
The service collection.

configurationRoot IConfigurationRoot
The configuration root.

sectionName String
The name of the section.

Returns

IServiceCollection

        The service collection.