public void SetUp() { logSpy = new LogSpy(); logSpy.Attach(); logUtil = new InvocationLogUtil(); stringBuilder = new StringBuilder(); proxyGenerator = new ProxyGenerator(); aspect = new InvocationLoggerAspect(logUtil); proxy = proxyGenerator.CreateClassProxyWithTarget(new DummyObj(), aspect); }
public InvocationLoggerAspect(InvocationLogUtil logUtil) { this.logUtil = logUtil; }
public LogExceptionAspect() { logUtil = new InvocationLogUtil(); }
public static void AppendCallInformation(this InvocationLogUtil logUtil, StringBuilder stringBuilder, IInvocation invocation) { logUtil.AppendCallInformation(stringBuilder, invocation.Method, invocation.Arguments); }
public void SetUp() { logUtil = new InvocationLogUtil(); stringBuilder = new StringBuilder(); }