Re: Spanning thread in WS Async Call
- From: "John Saunders [MVP]" <john.saunders at trizetto.com>
- Date: Fri, 31 Aug 2007 17:32:07 -0400
"Mohan Babu D" <MohanBabuD@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:D462EE79-E524-4EFC-A86C-B7E3792B5BCF@xxxxxxxxxxxxxxxx
Hi,
Here is my problem.
I am calling a web service asynchronously as follows
Registred the event handler as follows
_Data.GetDataCompleted += new MyNameSpace.GetDataCompleted
EventHandler(GetControlDataCompleted);
//Here is the call back method
void GetControlDataCompleted(object sender, GetDataCompletedEventArgs e)
{
//I get the some data from eventagrs e.
}
I want to span thread here to do some operation on the the result data and
then fill up some object. As this asyn call is on different thread ann even
if we span no of threadd, they will not executed as the calling async
thread's life cycles ends.
I'm sorry, I don't understand. Why don't you do your processing within the event handler? It will be called asynchronously, on a separate thread, when the GetData call completes.
--------------------------------------------------------------------------------
John Saunders | MVP – Windows Server System – Connected System Developer
.
- Prev by Date: Re: Loss Of Network Connection During Webservice Call
- Next by Date: Re: Loss Of Network Connection During Webservice Call
- Previous by thread: Re: Loss Of Network Connection During Webservice Call
- Next by thread: Re: Spanning thread in WS Async Call
- Index(es):
Relevant Pages
|