B
Braulio Diez
Hello,
In my ASP .net application in one of the pages I have to fire a process
that takes quite long to execute, my idea is to execute this using the fire
and forget pattern (let the page to process and respond, but start a worker
thread to execute the process, it takes 1 minute to execute or something like
that).
All this I got it more or less
working(http://www.eggheadcafe.com/articles/20050818.asp).
Now comes the question...
My idea is to store the result in a session varialbe (later on using
script services I will play with that value), is a good approach to pass as a
parameter for the worker thread the HTTPContext or Session ? Too risky?(I
know an additional restriction is to use a static method :-() What other
approaches could I take?
Thanks, Regards
Braulio
/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------
In my ASP .net application in one of the pages I have to fire a process
that takes quite long to execute, my idea is to execute this using the fire
and forget pattern (let the page to process and respond, but start a worker
thread to execute the process, it takes 1 minute to execute or something like
that).
All this I got it more or less
working(http://www.eggheadcafe.com/articles/20050818.asp).
Now comes the question...
My idea is to store the result in a session varialbe (later on using
script services I will play with that value), is a good approach to pass as a
parameter for the worker thread the HTTPContext or Session ? Too risky?(I
know an additional restriction is to use a static method :-() What other
approaches could I take?
Thanks, Regards
Braulio
/// ------------------------------
/// Braulio Diez
///
/// http://www.tipsdotnet.com
/// ------------------------------