Implements a modification or extension of the client across an endpoint.
Assemblies: System.ServiceModel.Primitives (in System.ServiceModel.Primitives.dll)
System.ServiceModel (in System.ServiceModel.dll)
void ApplyClientBehavior( ServiceEndpoint endpoint, ClientRuntime clientRuntime )
Implement the method to view, modify, or add custom extension to the client runtime across all messages used with an endpoint or for specific operations. For details about what customizations you can do with a client run-time object, see ClientRuntime and ClientOperation.
It is recommended that the method throw a NotImplementedException if the behavior is only intended for use in a service application.
Because other behaviors may have already added or removed some operations from the runtime there is no guarantee that there are the same number of operations in the description as there are DispatchOperation objects in the Operations property.