/// <summary> /// apply the dispatch behaviour. /// </summary> /// <param name="endpoint">The endpoint.</param> /// <param name="endpointDispatcher">The endpoint dispatcher.</param> public void ApplyDispatchBehavior(ServiceEndpoint endpoint, System.ServiceModel.Dispatcher.EndpointDispatcher endpointDispatcher) { var inspector = new WcfMiniProfilerDispatchInspector(); endpointDispatcher.DispatchRuntime.MessageInspectors.Add(inspector); }