public object AroundCall(InterceptedMethod method) { object result = null; Stopwatch stopwatch = this.stopwatchPool.Rent(); try { stopwatch.Start(); result = method.Invoke(); string methodPath = method.Method.DeclaringType.ToString() + "." + method.Method.Name; this.methodTimeLogger.Log(methodPath, stopwatch.ElapsedMilliseconds); stopwatch.Reset(); } finally { this.stopwatchPool.GiveBack(stopwatch); } return(result); }
public object AroundCall(InterceptedMethod method) { return(method.Invoke()); }