Exemplo n.º 1
0
 internal RedirectionMiddleware(RaftHttpCluster cluster, RequestDelegate next, PathString pathMatch, int?applicationPortHint, Func <HttpResponse, Uri, Task> redirection)
 {
     this.cluster             = cluster;
     this.next                = next;
     this.applicationPortHint = applicationPortHint;
     this.redirection         = redirection ?? Redirect;
     this.pathMatch           = pathMatch;
 }
Exemplo n.º 2
0
 private static RequestDelegate CreateRedirectionMiddleware(this RaftHttpCluster cluster, RequestDelegate next)
 => new RedirectionMiddleware(cluster, next).Redirect;
Exemplo n.º 3
0
 internal RedirectionMiddleware(RaftHttpCluster cluster, RequestDelegate next)
 {
     this.cluster = cluster;
     this.next    = next;
 }