public void PostProcess(IMethodCallMessage callMsg, ref IMethodReturnMessage retMsg, MarshalByRefObject target) { _timer = (TimeWatcher)callMsg.Properties["codeTimer"]; _timer.Finish(); }
public void PreProcess(ref IMethodCallMessage msg, MarshalByRefObject target) { _timer = new TimeWatcher(); msg.Properties.Add("codeTimer", _timer); _timer.Start(string.Format("{0}.{1}",msg.MethodBase.DeclaringType.FullName, msg.MethodName)); }