Dela via


DefaultFilesMiddleware Constructors

Definition

Overloads

DefaultFilesMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DefaultFilesOptions>)

Creates a new instance of the DefaultFilesMiddleware.

DefaultFilesMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DefaultFilesOptions>)

Creates a new instance of the DefaultFilesMiddleware.

DefaultFilesMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DefaultFilesOptions>)

Source:
DefaultFilesMiddleware.cs
Source:
DefaultFilesMiddleware.cs

Creates a new instance of the DefaultFilesMiddleware.

public:
 DefaultFilesMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IHostingEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DefaultFilesOptions ^> ^ options);
public DefaultFilesMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IHostingEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> options);
new Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IHostingEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> -> Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IHostingEnvironment, options As IOptions(Of DefaultFilesOptions))

Parameters

next
RequestDelegate

The next middleware in the pipeline.

hostingEnv
IHostingEnvironment

The IHostingEnvironment used by this middleware.

options
IOptions<DefaultFilesOptions>

The configuration options for this middleware.

Applies to

DefaultFilesMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DefaultFilesOptions>)

Source:
DefaultFilesMiddleware.cs

Creates a new instance of the DefaultFilesMiddleware.

public:
 DefaultFilesMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::AspNetCore::Hosting::IWebHostEnvironment ^ hostingEnv, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::DefaultFilesOptions ^> ^ options);
public DefaultFilesMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.AspNetCore.Hosting.IWebHostEnvironment hostingEnv, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> options);
new Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.AspNetCore.Hosting.IWebHostEnvironment * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.DefaultFilesOptions> -> Microsoft.AspNetCore.StaticFiles.DefaultFilesMiddleware
Public Sub New (next As RequestDelegate, hostingEnv As IWebHostEnvironment, options As IOptions(Of DefaultFilesOptions))

Parameters

next
RequestDelegate

The next middleware in the pipeline.

hostingEnv
IWebHostEnvironment

The IWebHostEnvironment used by this middleware.

options
IOptions<DefaultFilesOptions>

The configuration options for this middleware.

Applies to