public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) { var channelDispatcher = endpointDispatcher.ChannelDispatcher; if (channelDispatcher == null) { return; } foreach (var ed in channelDispatcher.Endpoints) { var inspector = new AdnrInspectorBehavior(); ed.DispatchRuntime.MessageInspectors.Add(inspector); } }
public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { var inspector = new AdnrInspectorBehavior(); clientRuntime.MessageInspectors.Add(inspector); }