Re: asynchronous web method calls - begin without end
- From: "Peter Bromberg [C# MVP]" <pbromberg@xxxxxxxxxxxxxxxxxxx>
- Date: Wed, 14 May 2008 16:06:51 -0400
Probably a better approach would be to use the "fire-and-forget" pattern to make a call to the synchronous webmethod so you don't need to wait for the method to return, rather than trying to "abuse" the asynchronous version.
Search on "C# Fire and forget" and you'll find several examples including a couple of my own.
Peter
<groups.kellyg@xxxxxxxxxxxx> wrote in message news:7814223b-9ea4-4a24-9319-d866bc921aaf@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
If I have a web method called Log() and on the client I call
BeginLog() with a null value for the AsyncCallback, will this cause a
problem? I want to periodically Log messages to a Log web service but
I don't need any return value. Is it poor programming practice to do
it this way? Or is there a more preferred way?
gkelly
.
- References:
- asynchronous web method calls - begin without end
- From: groups . kellyg
- asynchronous web method calls - begin without end
- Prev by Date: Re: Provide a link to a secure website from a WinForms application
- Next by Date: Re: delete multiple rows from table doesnt contain primary key
- Previous by thread: asynchronous web method calls - begin without end
- Next by thread: Re: asynchronous web method calls - begin without end
- Index(es):