c# - How to carry httpcontext over to separate thread -


i have third-party web service i'm calling - it's constructed this:

var response = client.postlead(param1, param2 etc); 

two of parameters requires properties of current request (useragent & ipaddress).

i want launch method in thread can control timeout, because method relies on httpcontext, there issue.

i can pass httpcontext parent class or method, first time i've done threading don't know whether best or course of action.


Comments

Popular posts from this blog

vb.net - Alternative to the T-SQL AS keyword -

php - MySQLi binding parameters in a prepared statement doesn't work unless inserted after "WHERE" -

ios - CFRelease causing crash in iPad application -