asynchronous call timeout

Discussion in 'ASP .Net Web Services' started by JMMB, May 18, 2005.

  1. JMMB

    JMMB Guest

    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);
    }
    JMMB, May 18, 2005
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vicky
    Replies:
    0
    Views:
    359
    Vicky
    Feb 16, 2004
  2. =?Utf-8?B?dnphZmZpcm8=?=

    Error in asynchronous call back function

    =?Utf-8?B?dnphZmZpcm8=?=, Jul 28, 2004, in forum: ASP .Net
    Replies:
    0
    Views:
    323
    =?Utf-8?B?dnphZmZpcm8=?=
    Jul 28, 2004
  3. =?Utf-8?B?RGVtaQ==?=

    Asynchronous WebRequest Timeout bug

    =?Utf-8?B?RGVtaQ==?=, Mar 30, 2006, in forum: ASP .Net
    Replies:
    0
    Views:
    3,035
    =?Utf-8?B?RGVtaQ==?=
    Mar 30, 2006
  4. Erencan SAÐIROÐLU

    Web Service Asynchronous Timeout

    Erencan SAÐIROÐLU, Oct 9, 2006, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    110
    Erencan SAÐIROÐLU
    Oct 9, 2006
  5. Mark Probert

    Timeout::timeout and Socket timeout

    Mark Probert, Oct 6, 2004, in forum: Ruby
    Replies:
    1
    Views:
    1,279
    Brian Candler
    Oct 6, 2004
Loading...

Share This Page