WCF Services—OperationBehavior Attribute
| Visual C# Tutorials |
| .NET Framework Tutorials |
| © 2007 Chris Peiris, Dennis Mulder |
OperationBehavior Attribute
The other important behavior attribute is the OperationBehavior attribute. Although you have control over the service-wide behaviors using the ServiceBehavior attribute, you have more granular control at the operation level.
Again, these are implementation details applied at the class method level instead of the service interface. Operation aspects controllable through this attribute are as follows:
- Transactional: Provides for autocompletion along with transaction flow and the required and supported options
- Caller identity: When binding supports, provides the ability to execute under the caller’s identity
- Object recycling: Provides for overriding the
InstanceModemode of theServiceContractBehavior
|

