Home > Misc > Make your WCF service’s Operation/Method Fire and Forget

Make your WCF service’s Operation/Method Fire and Forget

There are cases when an operation has no returned values and the client does not care about the success or failure of the invocation.

To support this sort of fire-and-forget invocation, WCF offers one-way operations.

It’s simple to implement. We just need to add “IsOneWay” property to ‘true’ to the [OperationContract] property.

[ServiceContract]

interface IWCFContract

{

[OperationContract(IsOneWay = true)]

void HelloWorld()

}

Note : The Operation Contract must have a “void” return type without any outgoing parameters.

Refer this article for more.

🙂

Advertisement
Categories: Misc Tags: , ,
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: