DispatchOperation DispatchOperation DispatchOperation DispatchOperation Class

Definition

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

public ref class DispatchOperation sealed
public sealed class DispatchOperation
type DispatchOperation = class
Public NotInheritable Class DispatchOperation
Inheritance
DispatchOperationDispatchOperationDispatchOperationDispatchOperation

Remarks

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.

Constructors

DispatchOperation(DispatchRuntime, String, String) DispatchOperation(DispatchRuntime, String, String) DispatchOperation(DispatchRuntime, String, String) DispatchOperation(DispatchRuntime, String, String)

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

DispatchOperation(DispatchRuntime, String, String, String) DispatchOperation(DispatchRuntime, String, String, String) DispatchOperation(DispatchRuntime, String, String, String) DispatchOperation(DispatchRuntime, String, String, String)

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

Properties

Action Action Action Action

Gets the value of the action for this operation.

AutoDisposeParameters AutoDisposeParameters AutoDisposeParameters AutoDisposeParameters

Gets or sets whether parameters are to be automatically disposed.

CallContextInitializers CallContextInitializers CallContextInitializers CallContextInitializers

A collection of ICallContextInitializer objects that defines the methods that enable the initialization and recycling of thread-local storage with the thread that invokes user code.

DeserializeRequest DeserializeRequest DeserializeRequest DeserializeRequest

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

FaultContractInfos FaultContractInfos FaultContractInfos FaultContractInfos

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

Formatter Formatter Formatter Formatter

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

Impersonation Impersonation Impersonation Impersonation

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

Invoker Invoker Invoker Invoker

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

IsInsideTransactedReceiveScope IsInsideTransactedReceiveScope IsInsideTransactedReceiveScope IsInsideTransactedReceiveScope

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

IsOneWay IsOneWay IsOneWay IsOneWay

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

IsTerminating IsTerminating IsTerminating IsTerminating

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

Name Name Name Name

Gets the name of the operation.

ParameterInspectors ParameterInspectors ParameterInspectors ParameterInspectors

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

Parent Parent Parent Parent

Gets the associated DispatchRuntime object.

ReleaseInstanceAfterCall ReleaseInstanceAfterCall ReleaseInstanceAfterCall ReleaseInstanceAfterCall

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

ReleaseInstanceBeforeCall ReleaseInstanceBeforeCall ReleaseInstanceBeforeCall ReleaseInstanceBeforeCall

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

ReplyAction ReplyAction ReplyAction ReplyAction

Gets the action of the reply message for the operation.

SerializeReply SerializeReply SerializeReply SerializeReply

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

TransactionAutoComplete TransactionAutoComplete TransactionAutoComplete TransactionAutoComplete

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

TransactionRequired TransactionRequired TransactionRequired TransactionRequired

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

Methods

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to