public override InvokeContext Action(InvokeContext context) { Console.WriteLine("log exception!"); throw context.Ex; }
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!"); //} }
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; }
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; }
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; }
public override InvokeContext Action(InvokeContext context) { Console.WriteLine("log start!"); return context; }
public virtual InvokeContext Action(InvokeContext context) { return context; }
public override InvokeContext Action(InvokeContext context) { context.IsRun = true; return context; }