public interface ICalculator
int Add(int x, int y);
int Subtract(int x, int y);
// Not decorated
int Multiply(int x, int y);
There are two overload of OperationContract one is without parameter and other is with parameter.
Action → Gets or sets the WS-Addressing action of the request message.
AsyncPattern → Indicates that an operation is implemented asynchronously using a Begin
IsInitiating → Gets or sets a value that indicates whether the method implements an operation that can initiate a session on the server (if such a session exists).
IsOneWay → Gets or sets a value that indicates whether an operation returns a reply message.
IsTerminating → Gets or sets a value that indicates whether the service operation causes the server to close the session after the reply message, if any, is sent.
Name → Gets or sets the name of the operation.
ProtectionLevel → Gets or sets a value that specifies whether the messages of an operation must be encrypted, signed, or both.
ReplyAction → Gets or sets the value of the SOAP action for the reply message of the operation.
TypeId → When implemented in a derived class, gets a unique identifier for this
Attribute. → (Inherited from Attribute.)