public void MakeDirty(BeforeMethodInvocation call) { IDirtyTracked target = call.Target as IDirtyTracked; string method = call.Method.Name; method = method.Replace("set_", ""); target.SetPropertyDirtyStatus(method, true); }
public void MyBeforeIntercepto(BeforeMethodInvocation call) { Console.WriteLine("before"); }
public void ClearDirty(BeforeMethodInvocation call) { IDirtyTracked target = call.Target as IDirtyTracked; target.ClearDirty(); }
public void BeforeCall(BeforeMethodInvocation call) { Console.WriteLine("before"); }