Re: asynchronous web method calls - begin without end

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



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

.