WebSocketMiddleware Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>) |
Obsoletos.
|
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory) |
Crea una nueva instancia de WebSocketMiddleware. |
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>)
- Source:
- WebSocketMiddleware.cs
Precaución
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))
Parámetros
- next
- RequestDelegate
- options
- IOptions<WebSocketOptions>
- Atributos
Se aplica a
WebSocketMiddleware(RequestDelegate, IOptions<WebSocketOptions>, ILoggerFactory)
- Source:
- WebSocketMiddleware.cs
Crea una nueva instancia de 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)
Parámetros
- next
- RequestDelegate
Siguiente middleware de la canalización.
- options
- IOptions<WebSocketOptions>
Las opciones de configuración.
- loggerFactory
- ILoggerFactory
Instancia ILoggerFactory de que se usa para crear registradores.