Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Services > asynchronous call timeout

Reply
Thread Tools

asynchronous call timeout

 
 
JMMB
Guest
Posts: n/a
 
      05-18-2005
rHow could I set a timeout for this asynchonous call? I tried wait.one, but
didn't work.
thanks a lot.


private void Button1_Click(object sender, System.EventArgs e)
{
localhost.WoodgroveOnlineBank bank = new localhost.WoodgroveOnlineBank();
IAsyncResult ar = bank.BeginGetAccount(1, null, bank);
//...Do various asynchonous calls...
localhost.Acct acct = bank.EndGetAccount(ar);
Label1.Text = string.Format("The account {0} has a balance of {1:c}",
acct.description, acct.balance);
}

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web Service Asynchronous Timeout Erencan SAŠIROŠLU ASP .Net Web Services 0 10-09-2006 11:35 AM
Asynchronous WebRequest Timeout bug =?Utf-8?B?RGVtaQ==?= ASP .Net 0 03-29-2006 11:00 PM
Timeout::timeout and Socket timeout Mark Probert Ruby 1 10-06-2004 09:30 AM
Error in asynchronous call back function =?Utf-8?B?dnphZmZpcm8=?= ASP .Net 0 07-28-2004 12:57 PM
VB Web Service Client that Makes an Asynchronous Method Call Vicky ASP .Net 0 02-16-2004 11:21 AM



Advertisments