Calling BeginInvoke from within a WebMethod

Discussion in 'ASP .Net Web Services' started by ERichardson, Sep 28, 2004.

  1. ERichardson

    ERichardson Guest

    I need to know if the following basic approach is a sound one.

    My client is a .net web application. I'm calling a webservice method
    synchronously. The webmethod calls BeginInvoke to start a new thread that
    executes a long-running process, passing a callback delegate, which is a
    protected method of the webservice class. The webmethod then returns to the
    client. The client does not care about the return value of the
    behind-the-scenes asynchronous call.

    All seems to work OK, but I have not seen a sample of this sort of thing
    (ie. a web client example), so I have doubts about the approach. Is using a
    COM+ application to do the same thing a better approach?
    --
    Eric Richardson
     
    ERichardson, Sep 28, 2004
    #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. Brian Linden

    BeginInvoke

    Brian Linden, Dec 30, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    509
    Brian Linden
    Dec 30, 2004
  2. Guest

    Handle Application-Timeout within WebMethod?

    Guest, Mar 1, 2004, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    261
    Joe H
    Mar 3, 2004
  3. Doug
    Replies:
    1
    Views:
    166
    Tomas Restrepo \(MVP\)
    Aug 25, 2004
  4. DaberElay
    Replies:
    0
    Views:
    136
    DaberElay
    Oct 5, 2004
  5. BeginInvoke Methods

    , Feb 1, 2005, in forum: ASP .Net Web Services
    Replies:
    1
    Views:
    111
    Tom Porterfield
    Feb 1, 2005
Loading...

Share This Page