public void PostProcess(object sender, PostProcessEventArgs args)
        {
            OnPostProcess(sender,args);

            //return message could have changed on the post processing
            //for example - swallowing an exception
            //returnMessage = methodReturnMessage;
        }
        protected override void OnPostProcess(object sender,PostProcessEventArgs args)
        {
            ThreadPriority originalPriority =
                (ThreadPriority) this.GetSettingFromPreProcess("ThreadPriority");

            OutputDebugMessage("Setting thread priority back to " + originalPriority);
            Thread.CurrentThread.Priority = originalPriority;
        }
 protected override void OnPostProcess(object sender,PostProcessEventArgs args)
 {
     try
     {
         if(ContextUtil.IsInTransaction)
         {
             OutputDebugMessage("LEAVING transaction context on method: " + args.MethodCallMessage.MethodBase.Name);
             ContextUtil.SetAbort();
         }
         ServiceDomain.Leave();
     }
     catch(Exception e)
     {
         OutputDebugMessage("Could not leave an existing transaction:\n" + e.ToString());
     }
 }
 protected abstract void OnPostProcess(object sender,PostProcessEventArgs args);
 protected override void OnPostProcess(object sender,PostProcessEventArgs args)
 {
 }
 protected override void OnPostProcess(object sender, PostProcessEventArgs args)
 {
     //throw new NotImplementedException ();
 }
 protected override void OnPostProcess(object sender,PostProcessEventArgs args)
 {
     OutputDebugMessage("LEAVING method: " + args.MethodCallMessage.MethodBase.Name);
 }