public void ApplyDispatchBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher) { AuthenticationMessageInspector inspector = new AuthenticationMessageInspector(); endpointDispatcher.DispatchRuntime.MessageInspectors.Add(inspector); //Console.WriteLine("Dispatcher Applied!"); }
public void ApplyClientBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.ClientRuntime clientRuntime) { AuthenticationMessageInspector inspector = new AuthenticationMessageInspector(); clientRuntime.MessageInspectors.Add(inspector); }