The introduction to async
in .NET 4.5 has opened many alternatives. ASP.NET not being an exception to this has introduced new ways of writing async operations within it. The asynchronous
HttpModules classes are not new to the system, but because of task-based asynchrony available in the system, the use of asynchronous handlers and modules becomes more relevant and useful. We know tasks in async do not employ a new thread most often. It uses
SynchronizationContext to switch between an application
end thread with devices which include I/O, network, and so on. Now if you are dealing with such an operation, you cannot block a thread that has been dedicated for the ...