c# - Asynchronous threads and session -


when new async thread has been spawned using signature, asp.net session object available new thread?

iasyncresult asynccall = f.begininvoke(null, f); 

i don't know session object talking if talk asp.net session might not available. bad practice access asp.net session background threads. recommend passing object containing necessary information background tread instead of having pull stuff session => makes less reusable.

normally if caller of thread waits complete session should available along it's bad design , avoid it.


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -