Reputation: 9138
I have a long running operation:
void LongRunningOperation(string someValue);
How do i call it asynchronously (I want a fire and forget mechanism)?
Upvotes: 1
Views: 1033
Reputation: 656
you can set the mode to oneway.
you do not require to call these methods asynchronously. call to the methods returns as soon as they are call if the mode is one way.
use:
[OperationContract(IsOneWay = true)]
attribute to describe your operation contract.
Upvotes: 4
Reputation: 19635
Assuming that you have already configured your proxy to the service, you will need to do the following (in VS):
BeginLongRunningOperation
; that's your async method.Upvotes: 0