Ejemplo n.º 1
0
 public SessionBackendMiddleware(RequestDelegate next, string url, bool isAsync = true, string cookieName = "sessionId", ProxyHttpClient proxyHttpClient = null)
 {
     _next            = next;
     _url             = url;
     _isAsync         = isAsync;
     _cookieName      = cookieName;
     _proxyHttpClient = proxyHttpClient ?? new ProxyHttpClient();
 }
Ejemplo n.º 2
0
 public BackendSplicerMiddleware(
     RequestDelegate next,
     BackendRegistry backendRegistry,
     LayoutRegistry layoutRegistry,
     ProxyHttpClient proxyHttpClient = null)
 {
     _next            = next;
     _backendRegistry = backendRegistry;
     _layoutRegistry  = layoutRegistry;
     _proxyHttpClient = proxyHttpClient ?? new ProxyHttpClient();
 }