public void ApplyDispatchBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher) { ConsoleOutputMessageInspector inspector = new ConsoleOutputMessageInspector(); endpointDispatcher.DispatchRuntime.MessageInspectors.Add(inspector); }
public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime) { ConsoleOutputMessageInspector inspector = new ConsoleOutputMessageInspector(); clientRuntime.MessageInspectors.Add(inspector); }