SharedOptions Class

Options common to several middleware components

Namespace
Microsoft.AspNetCore.StaticFiles.Infrastructure
Assemblies
  • Microsoft.AspNetCore.StaticFiles

Syntax

public class SharedOptions
class Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions

Constructors

SharedOptions()

Defaults to all request paths.

public SharedOptions()

Properties

Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions.FileProvider

The file system used to locate resources

Return type:Microsoft.Extensions.FileProviders.IFileProvider
public IFileProvider FileProvider { get; set; }
Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions.RequestPath

The request path that maps to static resources

Return type:Microsoft.AspNetCore.Http.PathString
public PathString RequestPath { get; set; }