/// <summary> /// Applies the behavior on the server side /// </summary> /// <param name="endpoint"></param> /// <param name="endpointDispatcher"></param> public void ApplyDispatchBehavior(ServiceEndpoint endpoint, EndpointDispatcher endpointDispatcher) { MySynchAuditMessageInspector inspector = new MySynchAuditMessageInspector(); endpointDispatcher.DispatchRuntime.MessageInspectors.Add(inspector); }
/// <summary> /// Applies the behavior on the client side /// </summary> /// <param name="endpoint"></param> /// <param name="clientRuntime"></param> public void ApplyClientBehavior(ServiceEndpoint endpoint, ClientRuntime clientRuntime) { MySynchAuditMessageInspector inspector = new MySynchAuditMessageInspector(); clientRuntime.MessageInspectors.Add(inspector); }