asynchronous call timeout

J

JMMB

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);
}
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top