Ejemplo n.º 1
0
        public void AfterDo(ref Message reply, object beforeReturnObj, U9ActionCorrelationState u9ActionCorrelationState)
        {
            ContextObject obj = beforeReturnObj as ContextObject;

            if (obj == null)
            {
                return;
            }
            //清空上下文
            obj.ClearContext();
        }
Ejemplo n.º 2
0
 public void BeforeSendReply(ref Message reply, object correlationState)
 {
     try
     {
         ContextObject obj = correlationState as ContextObject;
         if (obj == null)
         {
             return;
         }
         //清空上下文
         obj.ClearContext();
     }
     catch (Exception ex)
     {
         Logger.Debug("清空上下文异常,错误信息:");
         Logger.Debug(ex);
     }
 }