Aracılığıyla paylaş


WebSocketMiddleware Oluşturucular

Tanım

Aşırı Yüklemeler

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)
Geçersiz.
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

WebSocketMiddleware öğesinin yeni bir örneğini oluşturur.

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)

Kaynak:
WebSocketMiddleware.cs

Dikkat

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

Parametreler

Öznitelikler

Şunlara uygulanır

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

Kaynak:
WebSocketMiddleware.cs

WebSocketMiddleware öğesinin yeni bir örneğini oluşturur.

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)

Parametreler

next
RequestDelegate

İşlem hattındaki bir sonraki ara yazılım.

options
IOptions<WebSocketOptions>

Yapılandırma seçenekleri.

loggerFactory
ILoggerFactory

ILoggerFactory Günlükçü oluşturmak için kullanılan örnek.

Şunlara uygulanır