public void Intercept(IInvocation invocation)
        {
            Stopwatch stopwatch = Stopwatch.StartNew();
            invocation.Proceed();
            stopwatch.Stop();

            string formattedMethod = invocation.GetFormatedMethodString();
            string message = string.Format("{0} took {1}ms", formattedMethod, stopwatch.ElapsedMilliseconds);
            Trace.WriteLine(message);
        }
        public void Intercept(IInvocation invocation)
        {
            string formattedMethod = invocation.GetFormatedMethodString();
            Trace.WriteLine(formattedMethod);

            invocation.Proceed();

            string returnValue = string.Format("Returned {0}", invocation.ReturnValue);
            Trace.WriteLine(returnValue);
        }