Exemple #1
0
 internal HttpRequestContext(
     ClientData clientData,
     HttpRequest httpRequest,
     HttpRouteBase httpRouteBase,
     HttpRoutingHandler httpRoutingHandler)
 {
     this.ClientData     = clientData ?? throw new ArgumentNullException(nameof(clientData));
     this.Request        = httpRequest ?? throw new ArgumentNullException(nameof(httpRequest));
     this.Route          = httpRouteBase ?? throw new ArgumentNullException(nameof(httpRouteBase));
     this.RoutingHandler = httpRoutingHandler ?? throw new ArgumentNullException(nameof(httpRoutingHandler));
 }
Exemple #2
0
 void ISetHttpContext.SetHttpRoutingHandler(HttpRoutingHandler httpRoutingHandler)
 {
     this.HttpRoutingHandler = httpRoutingHandler;
 }