I am trying to figured it out, but have no success for now. Is it possible to use async/await in webmethod asmx service ? What I found till now is that async/await can be used only in WCF service method (rest or whatever).
Is it possible to use async/await in webmethod asmx service [duplicate]
Asked Answered
This is a bad idea. You're basically trying to use a modern language feature with a legacy technology - when .asmx was introduced the notion of asynchronous services wasn't really established.
An answer may lie here though:
Is there some way to handle async/await behind an ASMX service?
I'd say stick to WCF or WebAPI.
© 2022 - 2024 — McMap. All rights reserved.
async
, why not change it to a newer platform? – Kauriasync
/await
on ASMX services? – Fibrinolysin