/// <summary> /// BeforeSendReply(): This method will be used to audit the TID information /// before sending a request message back to the caller. [This will call the /// associated LifetimeEvents.BeforeSendReply(), which will contain the actual /// logic for handling the TID, and performing the audit.] /// </summary> /// <param name="reply"></param> /// <param name="correlationState"></param> public void BeforeSendReply(ref System.ServiceModel.Channels.Message reply, object correlationState) { LifetimeEvents.GetInstance().BeforeSendReply(ref reply, correlationState, svcDescription); }
/// <summary> /// AfterReceiveReply(): This method will be used to audit TID information upon /// receiving a reply from the service. [This will call the associated /// LifetimeEvents.AfterReceiveReply(), which will contain the actual logic for /// handling the TID, and performing the audit.] /// </summary> /// <param name="reply"></param> /// <param name="correlationState"></param> void IClientMessageInspector.AfterReceiveReply(ref Message reply, object correlationState) { LifetimeEvents.GetInstance().AfterReceiveReply(ref reply, correlationState); }
/// <summary> /// AfterReceiveRequest(): This method will be used to audit TID information /// upon receiving a message at the service. [This will call the associated /// LifetimeEvents.AfterReceiveRequest(), which will contain the actual logic /// for handling the TID, and performing the audit.] /// </summary> /// <param name="request"></param> /// <param name="channel"></param> /// <param name="instanceContext"></param> /// <returns></returns> public object AfterReceiveRequest(ref System.ServiceModel.Channels.Message request, IClientChannel channel, InstanceContext instanceContext) { return(LifetimeEvents.GetInstance().AfterReceiveRequest(ref request, channel, instanceContext, svcDescription)); }
/// <summary> /// BeforeSendRequest(): This method will be used to audit the TID information /// before sending a request to the service. [This will call the associated /// LifetimeEvents.BeforeSendRequest(), which will contain the actual logic for /// handling the TID, and performing the audit.] /// </summary> /// <param name="request"></param> /// <param name="channel"></param> /// <returns></returns> object IClientMessageInspector.BeforeSendRequest(ref Message request, IClientChannel channel) { return(LifetimeEvents.GetInstance().BeforeSendRequest(ref request, channel, svcEndpoint)); }