The [OperationContract] attribute is used to define the methods of the service contract. This is placed on the methods that you want to include as part of the service contract. The following properties can be used to control the structure of the operation:
- Action: This property specifies the action that uniquely identifies the operation.
- ReplyAction: This specifies the action of the reply message of the operation.
- AsyncPattern: This indicates that the operation can be called asynchronously.
- ProtectionLevel: This specifies the message-level security that an operation requires during runtime. It can be one of three types—None (only simple authentication), Sign (sign data to help ensure data integrity), and EncryptAndSign (encrypt and sign data to ensure integrity and confidentiality of transmitted data).
- HasProtectionLevel: This indicates whether the ProtectionLevel property has been explicitly set.
- IsOneWay: This property indicates that the operation...