ForwardedHeadersMiddleware 构造函数

定义

创建新的 ForwardedHeadersMiddleware

public:
 ForwardedHeadersMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::ForwardedHeadersOptions ^> ^ options);
public ForwardedHeadersMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.ForwardedHeadersOptions> options);
new Microsoft.AspNetCore.HttpOverrides.ForwardedHeadersMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.ForwardedHeadersOptions> -> Microsoft.AspNetCore.HttpOverrides.ForwardedHeadersMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of ForwardedHeadersOptions))

参数

next
RequestDelegate

表示 RequestDelegate 管道中的下一个中间件的 。

loggerFactory
ILoggerFactory

ILoggerFactory用于日志记录的 。

options
IOptions<ForwardedHeadersOptions>

ForwardedHeadersOptions用于配置中间件的 。

适用于