IISMiddleware 建構函式
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
IISMiddleware(RequestDelegate, ILoggerFactory, IOptions<IISOptions>, String)
public:
IISMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IISOptions ^> ^ options, System::String ^ pairingToken);
public IISMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> options, string pairingToken);
new Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> * string -> Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of IISOptions), pairingToken As String)
參數
- next
- RequestDelegate
- loggerFactory
- ILoggerFactory
- options
- IOptions<IISOptions>
- pairingToken
- String
適用於
IISMiddleware(RequestDelegate, ILoggerFactory, IOptions<IISOptions>, String, IAuthenticationSchemeProvider, IApplicationLifetime)
public:
IISMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IISOptions ^> ^ options, System::String ^ pairingToken, Microsoft::AspNetCore::Authentication::IAuthenticationSchemeProvider ^ authentication, Microsoft::AspNetCore::Hosting::IApplicationLifetime ^ applicationLifetime);
public IISMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> options, string pairingToken, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider authentication, Microsoft.AspNetCore.Hosting.IApplicationLifetime applicationLifetime);
new Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> * string * Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider * Microsoft.AspNetCore.Hosting.IApplicationLifetime -> Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of IISOptions), pairingToken As String, authentication As IAuthenticationSchemeProvider, applicationLifetime As IApplicationLifetime)
參數
- next
- RequestDelegate
- loggerFactory
- ILoggerFactory
- options
- IOptions<IISOptions>
- pairingToken
- String
- authentication
- IAuthenticationSchemeProvider
- applicationLifetime
- IApplicationLifetime
適用於
IISMiddleware(RequestDelegate, ILoggerFactory, IOptions<IISOptions>, String, IAuthenticationSchemeProvider, IHostApplicationLifetime)
可讓 IIS 跨進程運作的中介軟體。
public:
IISMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IISOptions ^> ^ options, System::String ^ pairingToken, Microsoft::AspNetCore::Authentication::IAuthenticationSchemeProvider ^ authentication, Microsoft::Extensions::Hosting::IHostApplicationLifetime ^ applicationLifetime);
public IISMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> options, string pairingToken, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider authentication, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime);
new Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> * string * Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider * Microsoft.Extensions.Hosting.IHostApplicationLifetime -> Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of IISOptions), pairingToken As String, authentication As IAuthenticationSchemeProvider, applicationLifetime As IHostApplicationLifetime)
參數
- next
- RequestDelegate
管線中的下一個中介軟體。
- loggerFactory
- ILoggerFactory
- options
- IOptions<IISOptions>
此中介軟體的組態。
- pairingToken
- String
用來與 ASP.NET Core模組協調的權杖。
- authentication
- IAuthenticationSchemeProvider
- applicationLifetime
- IHostApplicationLifetime
適用於
IISMiddleware(RequestDelegate, ILoggerFactory, IOptions<IISOptions>, String, Boolean, IAuthenticationSchemeProvider, IApplicationLifetime)
public:
IISMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IISOptions ^> ^ options, System::String ^ pairingToken, bool isWebsocketsSupported, Microsoft::AspNetCore::Authentication::IAuthenticationSchemeProvider ^ authentication, Microsoft::AspNetCore::Hosting::IApplicationLifetime ^ applicationLifetime);
public IISMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> options, string pairingToken, bool isWebsocketsSupported, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider authentication, Microsoft.AspNetCore.Hosting.IApplicationLifetime applicationLifetime);
new Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> * string * bool * Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider * Microsoft.AspNetCore.Hosting.IApplicationLifetime -> Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of IISOptions), pairingToken As String, isWebsocketsSupported As Boolean, authentication As IAuthenticationSchemeProvider, applicationLifetime As IApplicationLifetime)
參數
- next
- RequestDelegate
- loggerFactory
- ILoggerFactory
- options
- IOptions<IISOptions>
- pairingToken
- String
- isWebsocketsSupported
- Boolean
- authentication
- IAuthenticationSchemeProvider
- applicationLifetime
- IApplicationLifetime
適用於
IISMiddleware(RequestDelegate, ILoggerFactory, IOptions<IISOptions>, String, Boolean, IAuthenticationSchemeProvider, IHostApplicationLifetime)
可讓 IIS 跨進程運作的中介軟體。
public:
IISMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::IISOptions ^> ^ options, System::String ^ pairingToken, bool isWebsocketsSupported, Microsoft::AspNetCore::Authentication::IAuthenticationSchemeProvider ^ authentication, Microsoft::Extensions::Hosting::IHostApplicationLifetime ^ applicationLifetime);
public IISMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> options, string pairingToken, bool isWebsocketsSupported, Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider authentication, Microsoft.Extensions.Hosting.IHostApplicationLifetime applicationLifetime);
new Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.IISOptions> * string * bool * Microsoft.AspNetCore.Authentication.IAuthenticationSchemeProvider * Microsoft.Extensions.Hosting.IHostApplicationLifetime -> Microsoft.AspNetCore.Server.IISIntegration.IISMiddleware
Public Sub New (next As RequestDelegate, loggerFactory As ILoggerFactory, options As IOptions(Of IISOptions), pairingToken As String, isWebsocketsSupported As Boolean, authentication As IAuthenticationSchemeProvider, applicationLifetime As IHostApplicationLifetime)
參數
- next
- RequestDelegate
管線中的下一個中介軟體。
- loggerFactory
- ILoggerFactory
- options
- IOptions<IISOptions>
此中介軟體的組態。
- pairingToken
- String
用來與 ASP.NET Core模組協調的權杖。
- isWebsocketsSupported
- Boolean
IIS 是否支援 Websocket。
- authentication
- IAuthenticationSchemeProvider
- applicationLifetime
- IHostApplicationLifetime