Поделиться через


WebSocketMiddleware Конструкторы

Определение

Перегрузки

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)
Устаревшие..
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

Создает новый экземпляр класса WebSocketMiddleware.

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)

Исходный код:
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)

Исходный код:
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 , используемый для создания средств ведения журнала.

Применяется к