DefaultFilesMiddleware 构造函数

定义

重载

DefaultFilesMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DefaultFilesOptions>)

创建 DefaultFilesMiddleware 的新实例。

DefaultFilesMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DefaultFilesOptions>)

创建 DefaultFilesMiddleware 的新实例。

DefaultFilesMiddleware(RequestDelegate, IHostingEnvironment, IOptions<DefaultFilesOptions>)

Source:
DefaultFilesMiddleware.cs
Source:
DefaultFilesMiddleware.cs

创建 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))

参数

next
RequestDelegate

管道中的下一个中间件。

hostingEnv
IHostingEnvironment

IHostingEnvironment此中间件使用的 。

options
IOptions<DefaultFilesOptions>

此中间件的配置选项。

适用于

DefaultFilesMiddleware(RequestDelegate, IWebHostEnvironment, IOptions<DefaultFilesOptions>)

Source:
DefaultFilesMiddleware.cs

创建 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))

参数

next
RequestDelegate

管道中的下一个中间件。

hostingEnv
IWebHostEnvironment

IWebHostEnvironment此中间件使用的 。

options
IOptions<DefaultFilesOptions>

此中间件的配置选项。

适用于