DispatchOperation Class
Microsoft Silverlight will reach end of support after October 2021. Learn more.
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.
Inheritance Hierarchy
System.Object
System.ServiceModel.Dispatcher.DispatchOperation
Namespace: System.ServiceModel.Dispatcher
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Syntax
'Declaration
Public NotInheritable Class DispatchOperation
public sealed class DispatchOperation
The DispatchOperation type exposes the following members.
Constructors
Name | Description | |
---|---|---|
DispatchOperation | Initializes a new instance of the DispatchOperation class using the specified dispatch runtime, name, and action values. |
Top
Properties
Name | Description | |
---|---|---|
Action | Gets the value of the action for this operation. | |
AutoDisposeParameters | Gets or sets whether parameters are to be automatically disposed. | |
DeserializeRequest | Gets or sets a value that indicates whether the Formatter property value is used to deserialize the request message. | |
Formatter | Gets or sets the formatter maps between objects and messages: it is used to deserialize messages into objects and to serialize objects into messages. | |
IsOneWay | Gets a value that indicates if the operation is a one-way operation. | |
Name | Gets the name of the operation. | |
Parent | Gets the associated DispatchRuntime object. | |
SerializeReply | Gets or sets a value that specifies whether the Formatter object serializes reply messages. |
Top
Methods
Name | Description | |
---|---|---|
Equals(Object) | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
ToString | Returns a string that represents the current object. (Inherited from Object.) |
Top
Remarks
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.
Version Information
Silverlight
Supported in: 5, 4
Platforms
For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.
Thread Safety
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.