示例#1
0
 public async Task <IActionResult> GetServerAction(
     [FromServices] IRouteHandler routeHandler,
     [FromRoute] string serverName,
     [FromRoute] string serverAction)
 {
     return(await this.ProcessRequestAsync(() => routeHandler.HandleRequest(isOpen, HttpMethodEnum.GET, serverName, serverAction)));
 }
示例#2
0
 public async Task <IActionResult> DeleteServerActionRoute(
     [FromServices] IRouteHandler routeHandler,
     [FromRoute] string serverName,
     [FromRoute] string serverAction,
     [FromRoute] string serverRoute)
 {
     return(await this.ProcessRequestAsync(() => routeHandler.HandleRequest(isOpen, HttpMethodEnum.DELETE, serverName, serverAction, serverRoute)));
 }
示例#3
0
        public async Task <HttpServerResponse> HandleAsync(IHttpServerRequest request)
        {
            var unPrefixedRequest = CreateHttpRequestWithUnprefixedUrl(request, _urlPrefix);

            return(await _routeHandler.HandleRequest(unPrefixedRequest));
        }