Esempio n. 1
0
        public override async Task <HttpHandlerResult> GetContent(HttpContext context)
        {
            var parameters = new HttpRequestParams(context.Request);

            return(await Task.Run(() => method(parameters)));
        }
Esempio n. 2
0
        public override async Task <byte[]> GetContent(HttpContext context)
        {
            var parameters = new HttpRequestParams(context.Request);

            return(await Task.Run(() => Resource.PrepareResult(method(parameters))));
        }