Пример #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;
 }
Пример #2
0
 private static RequestDelegate CreateRedirectionMiddleware(this RaftHttpCluster cluster, RequestDelegate next)
 => new RedirectionMiddleware(cluster, next).Redirect;
Пример #3
0
 internal RedirectionMiddleware(RaftHttpCluster cluster, RequestDelegate next)
 {
     this.cluster = cluster;
     this.next    = next;
 }