private IHttpRequest GetRequest(HttpListenerContext httpContext) { var operationName = httpContext.Request.GetOperationName(); var req = new WebSocketSharpRequest(httpContext, operationName, _logger, _memoryStreamProvider); return(req); }
private IHttpRequest GetRequest(HttpListenerContext httpContext) { var urlSegments = httpContext.Request.Url.Segments; var operationName = urlSegments[urlSegments.Length - 1]; var req = new WebSocketSharpRequest(httpContext, operationName, _logger, _memoryStreamProvider); return(req); }