JwtBearerMiddleware 构造函数

定义

添加到 HTTP 管道的持有者身份验证组件。 此构造函数不是由应用程序代码直接调用的,而是通过调用 IAppBuilder UseJwtBearerAuthentication 扩展方法添加的。

public:
 JwtBearerMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, System::Text::Encodings::Web::UrlEncoder ^ encoder, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::JwtBearerOptions ^> ^ options);
public JwtBearerMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, System.Text.Encodings.Web.UrlEncoder encoder, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.JwtBearerOptions> options);
new Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * System.Text.Encodings.Web.UrlEncoder * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.JwtBearerOptions> -> Microsoft.AspNetCore.Authentication.JwtBearer.JwtBearerMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, encoder As UrlEncoder, options As IOptions(Of JwtBearerOptions))

参数

loggerFactory
ILoggerFactory
encoder
UrlEncoder

适用于