Used to modify or extend the execution behavior of a specific contract operation in a client object or client channel object. This class cannot be inherited.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
|ClientOperation(ClientRuntime, String, String)|
Initializes a new instance of the ClientRuntime, name, and action values.class using the specified
|ClientOperation(ClientRuntime, String, String, String)|
Initializes a new instance of the ClientRuntime, name, action, and reply action values.class using the specified
Gets the action of the operation.
Gets or sets the method associated with an asynchronous operation.
Gets a collection of parameter inspector objects used to view or modify parameters prior to or subsequent to a client call.
Gets or sets a value that indicates whether the Formatter property value is used to deserialize the reply message.
Gets or sets the method that implements the asynchronous end method for the operation.
Gets a collection of FaultContractInfo objects that represent the specified SOAP faults for this operation.
Gets or sets the formatter that serializes objects into messages and deserializes messages into objects.
Gets or sets a value that indicates whether a session can be started by a message to this operation.
Gets or sets a value that indicates if the operation is a one-way operation.
Gets or sets a value that indicates if this operation is the last one in a session.
Gets the name of the operation.
Gets or sets a collection of IParameterInspector objects that can inspect and modify inbound and outbound objects for a particular client method.
Gets the containing ClientRuntime object.
Gets the action of the reply message for this operation.
Gets or sets a value that specifies whether the Formatter object serializes an outbound message.
Gets or sets the method that is associated with this operation.
Gets or sets the method associated with a task.
Gets or sets the type of the result of the method that is associated with a task.
Determines whether the specified object is equal to the current object.(Inherited from Object.)
Serves as the default hash function. (Inherited from Object.)
Returns a string that represents the current object.(Inherited from Object.)
The ClientRuntime class. )class is the location for client run-time modifications and insertion point for custom extensions that are scoped to only one service operation. (To modify client run-time behavior for all messages in a contract, use the
Use the Operations property to locate the object that represents a particular service operation.
For more information about clients and the client architecture, see Accessing Services Using a Client and Client Architecture. For more information about customizing the client runtime, see Extending Clients. For more information about using behaviors, see Configuring and Extending the Runtime with Behaviors.
The following properties enable you to insert custom objects or modify the client execution behavior:
Use the SerializeRequest property to control who serializes an outbound message.
Use the DeserializeReply property to control who deserializes an inbound message.
Use the FaultContractInfos property to get a collection of specified types that can appear in SOAP faults as the detail type.
Use the IsOneWay property to control whether the client waits for a response before completing the invocation.
Use the Name property to get the name of the operation.
Use the SyncMethod property to control which method is mapped to the operation.
#Region "IEndpointBehavior Members" Public Sub AddBindingParameters(ByVal endpoint As ServiceEndpoint, ByVal bindingParameters _ As BindingParameterCollection) Implements IEndpointBehavior.AddBindingParameters Return End Sub Public Sub ApplyClientBehavior(ByVal endpoint As ServiceEndpoint, ByVal clientRuntime As ClientRuntime) _ Implements IEndpointBehavior.ApplyClientBehavior clientRuntime.MessageInspectors.Add(New Inspector()) For Each op As ClientOperation In clientRuntime.Operations op.ParameterInspectors.Add(New Inspector()) Next op End Sub Public Sub ApplyDispatchBehavior(ByVal endpoint As ServiceEndpoint, ByVal endpointDispatcher As _ EndpointDispatcher) Implements IEndpointBehavior.ApplyDispatchBehavior endpointDispatcher.DispatchRuntime.MessageInspectors.Add(New Inspector()) For Each op As DispatchOperation In endpointDispatcher.DispatchRuntime.Operations op.ParameterInspectors.Add(New Inspector()) Next op End Sub Public Sub Validate(ByVal endpoint As ServiceEndpoint) Implements IEndpointBehavior.Validate Return End Sub
Available since 4.5
Available since 3.0
Portable Class Library
Supported in: portable .NET platforms
Available since 2.0
Windows Phone Silverlight
Available since 7.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.