ServiceCollectionExtensions

Namespace: Proffer.Storage

Microsoft.Extensions.DependencyInjection.IServiceCollection extension methods.

public static class ServiceCollectionExtensions

Inheritance Object → ServiceCollectionExtensions

Methods

AddFileSystemStorageServer(IServiceCollection, Action<FileSystemStorageServerOptions>)

Adds a File System provider Storage Server, serving files over HTTP.

public static IServiceCollection AddFileSystemStorageServer(IServiceCollection services, Action<FileSystemStorageServerOptions> configure)

Parameters

services IServiceCollection
The service collection.

configure Action<FileSystemStorageServerOptions>
The action to configure options.

Returns

IServiceCollection
The service collection.

UseFileSystemStorageServer(IApplicationBuilder)

Adds a FileSystemStorageServerMiddleware to the application’s request pipeline.

public static IApplicationBuilder UseFileSystemStorageServer(IApplicationBuilder app)

Parameters

app IApplicationBuilder
The application builder.

Returns

IApplicationBuilder
The application builder.