다음을 통해 공유


WebSocketMiddleware 생성자

정의

오버로드

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)
사용되지 않음.
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

WebSocketMiddleware의 새 인스턴스를 만듭니다.

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)

Source:
WebSocketMiddleware.cs

주의

This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory.

public:
 WebSocketMiddleware(Microsoft::AspNetCore::Http::RequestDelegate ^ next, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Builder::WebSocketOptions ^> ^ options);
public WebSocketMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.WebSocketOptions> options);
[System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory.")]
public WebSocketMiddleware (Microsoft.AspNetCore.Http.RequestDelegate next, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.WebSocketOptions> options);
new Microsoft.AspNetCore.WebSockets.WebSocketMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.WebSocketOptions> -> Microsoft.AspNetCore.WebSockets.WebSocketMiddleware
[<System.Obsolete("This constructor has been replaced with an equivalent constructor which requires an ILoggerFactory.")>]
new Microsoft.AspNetCore.WebSockets.WebSocketMiddleware : Microsoft.AspNetCore.Http.RequestDelegate * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Builder.WebSocketOptions> -> Microsoft.AspNetCore.WebSockets.WebSocketMiddleware
Public Sub New (next As RequestDelegate, options As IOptions(Of WebSocketOptions))

매개 변수

특성

적용 대상

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

Source:
WebSocketMiddleware.cs

WebSocketMiddleware의 새 인스턴스를 만듭니다.

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

매개 변수

next
RequestDelegate

파이프라인의 다음 미들웨어입니다.

options
IOptions<WebSocketOptions>

구성 옵션입니다.

loggerFactory
ILoggerFactory

ILoggerFactory 로거를 만드는 데 사용되는 instance.

적용 대상