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

ios - UICollectionView Self Sizing Cells with Auto Layout -

node.js - ldapjs - write after end error -

DOM Manipulation in Wordpress (and elsewhere) using php -