Exemplo n.º 1
0
 public ReverseProxyMiddleware(RequestDelegate nextMiddleware, ReverseProxyOptions options)
 {
     this.nextMiddleware = nextMiddleware;
     this.options        = options;
     this.exeHandler     = options.ExecutableHandler;
 }
Exemplo n.º 2
0
 public static IApplicationBuilder UseReverseProxy(this IApplicationBuilder app, ReverseProxyOptions options)
 {
     return(app.UseMiddleware <ReverseProxyMiddleware>(options));
 }