httptaskasynchandler- все статьи тега ➜ страница 0
Как работать с HttpTaskAsyncHandler
public class FooHandler : HttpTaskAsyncHandler { public override async Task ProcessRequestAsync(HttpContext context) { return await new AdRequest().ProcessRequest(); // getting error here. "Return type of async type is void" } } public class FooRequest { public async Task<String> ProcessRequest() { //return await "foo"; obviously nothing to wait here } } Я хочу сделать асинхронный обработчик и просто хочу вернуть строку. Как я могу заст ...