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

            throw context.Ex;

        }
Beispiel #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!");
             
            //}
        }
Beispiel #3
0
        public override InvokeContext Action(InvokeContext context)
        {
           

            //Console.WriteLine("log start!");
            context.IsRun = true;
            return context;
        }
 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;
 }
Beispiel #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;
 }
Beispiel #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;
        }
Beispiel #7
0
 public override InvokeContext Action(InvokeContext context)
 {
     Console.WriteLine("log start!");
     return context;
 }
Beispiel #8
0
 public virtual InvokeContext Action(InvokeContext context) { return context; }
Beispiel #9
0
 public override InvokeContext Action(InvokeContext context)
 { 
     context.IsRun = true;
     return context;
 }