public BeforeAndAfterMethodHook(MethodBase intercepted, MethodInfo custom_before_method, MethodInfo custom_after_method)
 {
     OnBeforeHook = new MethodHook(intercepted, custom_before_method, MethodHookType.RunBefore);
     OnAfterHook = new MethodHook(intercepted, custom_after_method, MethodHookType.RunAfter);
 }
Esempio n. 2
0
 public BeforeAndAfterMethodHook(MethodBase intercepted, MethodInfo custom_before_method, MethodInfo custom_after_method)
 {
     OnBeforeHook = new MethodHook(intercepted, custom_before_method, MethodHookType.RunBefore);
     OnAfterHook  = new MethodHook(intercepted, custom_after_method, MethodHookType.RunAfter);
 }