DispatchOperation Class
TOC
Collapse the table of content
Expand the table of content

DispatchOperation Class

 

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

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

System.Object
  System.ServiceModel.Dispatcher.DispatchOperation

public sealed class DispatchOperation

NameDescription
System_CAPS_pubmethodDispatchOperation(DispatchRuntime, String, String)

Initializes a new instance of the DispatchOperation class using the specified dispatch run-time, name, and action values.

System_CAPS_pubmethodDispatchOperation(DispatchRuntime, String, String, String)

Initializes a new instance of the DispatchOperation class using the specified dispatch run-time, name, action, and reply action values.

NameDescription
System_CAPS_pubpropertyAction

Gets the value of the action for this operation.

System_CAPS_pubpropertyAutoDisposeParameters

Gets or sets whether parameters are to be automatically disposed.

System_CAPS_pubpropertyCallContextInitializers

A 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.

System_CAPS_pubpropertyDeserializeRequest

Gets or sets a value that indicates whether the Formatter property value is used to deserialize the request message.

System_CAPS_pubpropertyFaultContractInfos

Gets a collection of FaultContractInfo objects that represent the specified SOAP faults for this operation.

System_CAPS_pubpropertyFormatter

Gets or sets the formatter that deserializes messages into objects and serializes objects into messages.

System_CAPS_pubpropertyImpersonation

Gets or sets a value that indicates the degree to which the operation requires impersonation.

System_CAPS_pubpropertyInvoker

Gets or sets the IOperationInvoker object that invokes the user-defined method.

System_CAPS_pubpropertyIsInsideTransactedReceiveScope

Gets or sets whether the scope of the operation is inside a transacted receive activity.

System_CAPS_pubpropertyIsOneWay

Gets a value that indicates if the operation is a one-way operation.

System_CAPS_pubpropertyIsTerminating

Gets or sets a value that indicates if this operation is the last one in a session.

System_CAPS_pubpropertyName

Gets the name of the operation.

System_CAPS_pubpropertyParameterInspectors

Gets or sets a collection of IParameterInspector objects that can inspect and modify inbound and outbound objects for a particular proxy method.

System_CAPS_pubpropertyParent

Gets the associated DispatchRuntime object.

System_CAPS_pubpropertyReleaseInstanceAfterCall

Gets or sets a value that specifies whether to recycle the service object after a call.

System_CAPS_pubpropertyReleaseInstanceBeforeCall

Gets or sets a value that specifies whether to recycle the service object prior to dispatching the call.

System_CAPS_pubpropertyReplyAction

Gets the action of the reply message for the operation.

System_CAPS_pubpropertySerializeReply

Gets or sets a value that specifies whether the Formatter object serializes reply messages.

System_CAPS_pubpropertyTransactionAutoComplete

Gets or sets a value that specifies whether the current transaction automatically completes when the operation returns successfully.

System_CAPS_pubpropertyTransactionRequired

Gets or sets a value that specifies whether the operation must execute within a transaction.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

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.

Universal Windows Platform
Available since 4.5
.NET Framework
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft