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))); }
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))); }
public async Task <HttpServerResponse> HandleAsync(IHttpServerRequest request) { var unPrefixedRequest = CreateHttpRequestWithUnprefixedUrl(request, _urlPrefix); return(await _routeHandler.HandleRequest(unPrefixedRequest)); }