This topic has not yet been rated - Rate this topic

DispatchOperation Class

Used to modify or extend the execution behavior of a specific service operation in a service endpoint. This class cannot be inherited.

System.Object
  System.ServiceModel.Dispatcher.DispatchOperation

Namespace:  System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)
public sealed class DispatchOperation

The DispatchOperation type exposes the following members.

  NameDescription
Public methodSupported in .NET for Windows Store appsDispatchOperation(DispatchRuntime, String, String)Initializes a new instance of the DispatchOperation class using the specified dispatch run-time, name, and action values.
Public methodDispatchOperation(DispatchRuntime, String, String, String)Initializes a new instance of the DispatchOperation class using the specified dispatch run-time, name, action, and reply action values.
Top
  NameDescription
Public propertySupported in .NET for Windows Store appsActionGets the value of the action for this operation.
Public propertySupported in .NET for Windows Store appsAutoDisposeParametersGets or sets whether parameters are to be automatically disposed.
Public propertyCallContextInitializersA collection of System.ServiceModel.Dispatcher.ICallContextInitializer objects that defines the methods that enable the initialization and recycling of thread-local storage with the thread that invokes user code.
Public propertySupported in .NET for Windows Store appsDeserializeRequestGets or sets a value that indicates whether the Formatter property value is used to deserialize the request message.
Public propertyFaultContractInfosGets a collection of FaultContractInfo objects that represent the specified SOAP faults for this operation.
Public propertyFormatterGets or sets the formatter that deserializes messages into objects and serializes objects into messages.
Public propertyImpersonationGets or sets a value that indicates the degree to which the operation requires impersonation.
Public propertyInvokerGets or sets the IOperationInvoker object that invokes the user-defined method.
Public propertyIsInsideTransactedReceiveScopeGets or sets whether the scope of the operation is inside a transacted receive activity.
Public propertySupported in .NET for Windows Store appsIsOneWayGets a value that indicates if the operation is a one-way operation.
Public propertyIsTerminatingGets or sets a value that indicates if this operation is the last one in a session.
Public propertySupported in .NET for Windows Store appsNameGets the name of the operation.
Public propertyParameterInspectorsGets or sets a collection of IParameterInspector objects that can inspect and modify inbound and outbound objects for a particular proxy method.
Public propertySupported in .NET for Windows Store appsParentGets the associated DispatchRuntime object.
Public propertyReleaseInstanceAfterCallGets or sets a value that specifies whether to recycle the service object after a call.
Public propertyReleaseInstanceBeforeCallGets or sets a value that specifies whether to recycle the service object prior to dispatching the call.
Public propertyReplyActionGets the action of the reply message for the operation.
Public propertySupported in .NET for Windows Store appsSerializeReplyGets or sets a value that specifies whether the Formatter object serializes reply messages.
Public propertyTransactionAutoCompleteGets or sets a value that specifies whether the current transaction automatically completes when the operation returns successfully.
Public propertyTransactionRequiredGets or sets a value that specifies whether the operation must execute within a transaction.
Top
  NameDescription
Public methodSupported in .NET for Windows Store appsEquals(Object)Determines whether the specified object is equal to the current object. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetHashCodeServes as the default hash function. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsGetTypeGets the Type of the current instance. (Inherited from Object.)
Public methodSupported in .NET for Windows Store appsToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The DispatchOperation class is the location for run-time modifications and insertion point for custom extensions that are scoped to only one service operation. (To modify service run-time behavior for all messages in a contract, use the DispatchRuntime class.)

Install DispatchOperation modifications using a custom operation behavior object or a behavior at a larger scope in order to modify operations across a contract.

Use the Operations property to locate the DispatchOperation object that represents a particular service operation.

.NET Framework

Supported in: 4.5.1, 4.5, 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

.NET for Windows Store apps

Supported in: Windows 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.