FileSystemStorageServerMiddleware

Namespace: Proffer.Storage.FileSystem.Server

ASP.NET Core middleware to serve over HTTP files stored in a Storage store.

public class FileSystemStorageServerMiddleware

Inheritance ObjectFileSystemStorageServerMiddleware

Constructors

FileSystemStorageServerMiddleware(RequestDelegate, IOptions<FileSystemStorageServerOptions>, ILogger<FileSystemStorageServerMiddleware>, IOptions<FileSystemParsedOptions>)

Initializes a new instance of the FileSystemStorageServerMiddleware class.

public FileSystemStorageServerMiddleware(RequestDelegate next, IOptions<FileSystemStorageServerOptions> serverOptions, ILogger<FileSystemStorageServerMiddleware> logger, IOptions<FileSystemParsedOptions> fileSystemParsedOptions)

Parameters

next RequestDelegate
The next function.

serverOptions IOptions<FileSystemStorageServerOptions>
The server options.

logger ILogger<FileSystemStorageServerMiddleware>
The logger.

fileSystemParsedOptions IOptions<FileSystemParsedOptions>
The file system parsed options.

Methods

Invoke(HttpContext)

Invokes the middleware.

public Task Invoke(HttpContext context)

Parameters

context HttpContext
The context.

Returns

Task