IEndpointBehavior.ApplyClientBehavior(ServiceEndpoint, ClientRuntime) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Implements a modification or extension of the client across an endpoint.
public:
void ApplyClientBehavior(System::ServiceModel::Description::ServiceEndpoint ^ endpoint, System::ServiceModel::Dispatcher::ClientRuntime ^ clientRuntime);
public void ApplyClientBehavior (System.ServiceModel.Description.ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime);
abstract member ApplyClientBehavior : System.ServiceModel.Description.ServiceEndpoint * System.ServiceModel.Dispatcher.ClientRuntime -> unit
Public Sub ApplyClientBehavior (endpoint As ServiceEndpoint, clientRuntime As ClientRuntime)
Parameters
- endpoint
- ServiceEndpoint
The endpoint that is to be customized.
- clientRuntime
- ClientRuntime
The client runtime to be customized.
Remarks
Implement the ApplyClientBehavior 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 ApplyClientBehavior 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.
Applies to
Pripomienky
https://aka.ms/ContentUserFeedback.
Pripravujeme: V priebehu roka 2024 postupne zrušíme službu Problémy v službe GitHub ako mechanizmus pripomienok týkajúcich sa obsahu a nahradíme ju novým systémom pripomienok. Ďalšie informácie nájdete na stránke:Odoslať a zobraziť pripomienky pre