예제 #1
0
        public override InvokeContext Action(InvokeContext context)
        {
            Console.WriteLine("log exception!");

            throw context.Ex;

        }
예제 #2
0
        public override InvokeContext Action(InvokeContext context)
        {
           
      
           // GCHandle handle = GCHandle.Alloc(context.Parameters[0]);
           // IntPtr ptr = GCHandle.ToIntPtr(handle);
           // char[] aa="asdasdasd".ToCharArray();
          

           //if ( context.Parameters[0] is string )
           //{
           //       string  cccc=  Marshal.PtrToStringAuto(ptr,3);
           //}

          //  Marshal.Copy(aa, 0, ptr, 5);
            //---Start
         
               context.IsRun = true;
              return context;
            //unsafe
            //{
            //    char*[] aaa = (char*[]) context.Parameters[0];

            //    //Console.WriteLine("log start!");
             
            //}
        }
예제 #3
0
        public override InvokeContext Action(InvokeContext context)
        {
           

            //Console.WriteLine("log start!");
            context.IsRun = true;
            return context;
        }
예제 #4
0
 public override InvokeContext Action(InvokeContext context)
 { 
     if (new string[] { "RUser", "RRole", "RNavigation", "RNavButtons" }.Contains(context.ClassFullName.Split('.').Last()) )
     {
         CacheManagement.Instance.RemoveStartsWith("T_UserInfo");
         var Session = HttpContext.Current.Session;
         Session["userinfo"] = null;
     } 
     return context;
 }
예제 #5
0
 public override InvokeContext Action(InvokeContext context)
 {
     var innerex = context.Ex.InnerException.InnerException;
     if (innerex != null)
     {
         if (innerex.Message.Contains("IX_UserName") || innerex.Message.Contains("IX_ButtonTag"))
         {
             context.Result = CRUDState.UniqueErro;
         }
     }
     return context;
 }
예제 #6
0
        public override InvokeContext Action(InvokeContext context)
        {
            //Console.WriteLine("log exception!");

            //// context.Result
            ////  context.Result=Activator.CreateInstance(context.ResultType);
            //if ( context.ResultType == typeof(decimal) )
            //{
            //    context.Result = 111111.11111M;
            //}
            ////  throw context.Ex.Ex;


            return context;
        }
예제 #7
0
 public override InvokeContext Action(InvokeContext context)
 {
     Console.WriteLine("log start!");
     return context;
 }
예제 #8
0
 public virtual InvokeContext Action(InvokeContext context) { return context; }
예제 #9
0
 public override InvokeContext Action(InvokeContext context)
 { 
     context.IsRun = true;
     return context;
 }