AutoResetEvent instance in WarmupAsyncResult

Topics: Core
May 5, 2012 at 5:18 AM
Edited May 5, 2012 at 5:32 AM

Hello All,

 

I want to know why is there a need to create a new AutoResetEvent instance in WarmupAsyncResult class.

Can we just use the AsyncCallback object passed to WarmupAsyncResult class to call the callback that will trigger EndBeginRequest and not create the AutoResetInstance?

 

Thank you