public void Intercept(IMethodInvocation invocation) { object target = ServiceLocator.Current.GetInstance(targetType); IHandler handler = MethodHandler.Resolve(invocation.Method, invocation.Arguments); invocation.SetReturn(handler.Invoke(target, invocation)); }