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