Export (0) Print
Expand All

DispatchOperation Class

Used to modify or extend the execution behavior of a specific operation at an endpoint. In Silverlight this class modifies the execution operations that are part of a duplex callback contract. 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 methodDispatchOperationInitializes a new instance of the DispatchOperation class using the specified dispatch runtime, name, and action values.
Top

  NameDescription
Public propertyActionGets the value of the action for this operation.
Public propertyAutoDisposeParametersGets or sets whether parameters are to be automatically disposed.
Public propertyDeserializeRequestGets or sets a value that indicates whether the Formatter property value is used to deserialize the request message.
Public propertyFormatterGets or sets the formatter maps between objects and messages: it is used to deserialize messages into objects and to serialize objects into messages.
Public propertyIsOneWayGets a value that indicates if the operation is a one-way operation.
Public propertyNameGets the name of the operation.
Public propertyParentGets the associated DispatchRuntime object.
Public propertySerializeReplyGets or sets a value that specifies whether the Formatter object serializes reply messages.
Top

  NameDescription
Public methodEquals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The DispatchOperation class provides the location for runtime modifications and an insertion point for custom extensions that are scoped to a single operation.

To modify runtime behavior for all of the messages within a contract, use the DispatchRuntime class.

To modify operations across a contract, install the DispatchOperation modifications using a custom operation behavior object or a behavior at a larger scope.

Silverlight

Supported in: 5, 4

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

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

Community Additions

ADD
Show:
© 2015 Microsoft