SharedOptionsBase Class

Options common to several middleware components

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

Syntax

public abstract class SharedOptionsBase
class Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase

Constructors

SharedOptionsBase(Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions)

Creates an new instance of the SharedOptionsBase.

protected SharedOptionsBase(SharedOptions sharedOptions)

Properties

Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase.FileProvider

The file system used to locate resources

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

The relative request path that maps to static resources.

Return type:Microsoft.AspNetCore.Http.PathString
public PathString RequestPath { get; set; }
Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptionsBase.SharedOptions

Options common to several middleware components

Return type:Microsoft.AspNetCore.StaticFiles.Infrastructure.SharedOptions
protected SharedOptions SharedOptions { get; }