WCF Services—OperationBehavior Attribute


Jump to: navigation, search
Visual C# Tutorials
.NET Framework Tutorials

WCF Services

© 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 InstanceMode mode of the ServiceContractBehavior


Previous_Page_.gif Next_Page_.gif

Share this page
  • del.icio.us
  • Facebook
  • Google+
  • StumbleUpon