Class SignalrProxyMiddleware
SignalR proxy middleware.
Namespace: Neon.SignalR
Assembly: Neon.SignalR.dll
Syntax
public class SignalrProxyMiddleware
Constructors
SignalrProxyMiddleware(RequestDelegate)
Constructor.
Declaration
public SignalrProxyMiddleware(RequestDelegate next)
Parameters
Type | Name | Description |
---|---|---|
RequestDelegate | next |
Methods
InvokeAsync(HttpContext, ProxyConfig, IDnsCache, IHttpForwarder, HttpMessageInvoker, ForwarderRequestConfig, IDataProtectionProvider, ILogger<SignalrProxyMiddleware>)
Invokes the middleware.
Declaration
public Task InvokeAsync(HttpContext context, ProxyConfig config, IDnsCache dnsCache, IHttpForwarder forwarder, HttpMessageInvoker httpClient, ForwarderRequestConfig forwarderRequestConfig, IDataProtectionProvider dataProtectionProvider = null, ILogger<SignalrProxyMiddleware> logger = null)
Parameters
Type | Name | Description |
---|---|---|
HttpContext | context | The current http context. |
ProxyConfig | config | The proxy configuration. |
IDnsCache | dnsCache | The DNS cache. |
IHttpForwarder | forwarder | The forwarder used to forward requests upstream. |
HttpMessageInvoker | httpClient | The http client. |
ForwarderRequestConfig | forwarderRequestConfig | The http forwarding configuration. |
IDataProtectionProvider | dataProtectionProvider | An optional data protection provider. |
ILogger<SignalrProxyMiddleware> | logger | An optional logger. |
Returns
Type | Description |
---|---|
Task |