Share via


WebSocketMiddleware Constructors

Definition

Overloads

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)
Obsolete.
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

Creates a new instance of the WebSocketMiddleware.

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)

Source:
WebSocketMiddleware.cs

Caution

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

Parameters

Attributes

Applies to

WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)

Source:
WebSocketMiddleware.cs

Creates a new instance of the 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)

Parameters

next
RequestDelegate

The next middleware in the pipeline.

options
IOptions<WebSocketOptions>

The configuration options.

loggerFactory
ILoggerFactory

An ILoggerFactory instance used to create loggers.

Applies to