public SyncNadleehOperationInvoker(MethodInfo method) { this.method = method; GetSyncMethodInvoker(method); inputParameterCount = method.GetParameters().Count(e => e.IsIn); outputParameterCount = method.GetParameters().Count(e => e.IsOut); BeforerInvokerHandles.Add(BeforeMethodInvoke.SetStopWatch); BeforerInvokerHandles.Add(BeforeMethodInvoke.TokenValid); AfterInvokerHandles.Add(AfterMethodInvoke.OperatingLog); }
public SyncNadleehOperationInvoker(Type type, string methodName) { this.type = type; this.methodName = methodName; this.method = this.type.GetMethod(this.methodName); GetSyncMethodInvoker(type, methodName); inputParameterCount = method.GetParameters().Count(e => e.IsIn); outputParameterCount = method.GetParameters().Count(e => e.IsOut); BeforerInvokerHandles.Add(BeforeMethodInvoke.SetStopWatch); BeforerInvokerHandles.Add(BeforeMethodInvoke.TokenValid); AfterInvokerHandles.Add(AfterMethodInvoke.OperatingLog); }