public static ICallInterceptorRegistry Register <TObj, T1, T2, T3>(this ICallInterceptorRegistry @this, Expression <Action <TObj> > action) where T1 : ICallInterceptor, new() where T2 : ICallInterceptor, new() where T3 : ICallInterceptor, new() { return(@this.RegisterInterceptors(action, typeof(T1), typeof(T2), typeof(T3))); }
public static ICallInterceptorRegistry Register <TObj, T1, T2, T3>(this ICallInterceptorRegistry @this, Predicate <MethodBase> methodPred) where T1 : ICallInterceptor, new() where T2 : ICallInterceptor, new() where T3 : ICallInterceptor, new() { return(@this.RegisterInterceptors <TObj>(methodPred, typeof(T1), typeof(T2), typeof(T3))); }
public static ICallInterceptorRegistry RegisterBefore <TObj>(this ICallInterceptorRegistry @this, Predicate <MethodBase> methodPred, Action <IActionInvocation> before) { return(@this.Register <TObj>(methodPred, x => { before(x); return true; }, null)); }
public static ICallInterceptorRegistry Register <TObj>(this ICallInterceptorRegistry @this, Predicate <MethodBase> methodPred, Predicate <IActionInvocation> before, Action <IActionReturn> after) { return(@this.RegisterInterceptors <TObj>(methodPred, new DelegatedCallInterceptor(before, after))); }
public static ICallInterceptorRegistry Register <TObj>(this ICallInterceptorRegistry @this, Predicate <MethodBase> methodPred, IEnumerable <ICallInterceptor> objs) { return(@this.RegisterInterceptors <TObj>(methodPred, objs.Cast <object>().ToArray())); }
public static ICallInterceptorRegistry Register <TObj>(this ICallInterceptorRegistry @this, Expression <Action <TObj> > action, params ICallInterceptor[] objs) { return(@this.Register(action, (IEnumerable <ICallInterceptor>)objs)); }
public ConfigureCallInterceptors(ICallInterceptorRegistry registry) : base(registry) { }
public static ICallInterceptorRegistry Register <TObj>(this ICallInterceptorRegistry @this, Predicate <MethodBase> methodPred, params ICallInterceptor[] objs) { return(@this.Register <TObj>(methodPred, (IEnumerable <ICallInterceptor>)objs)); }
public static ICallInterceptorRegistry RegisterBefore <TObj>(this ICallInterceptorRegistry @this, Expression <Action <TObj> > action, Action <IActionInvocation> before) { return(@this.Register(action, x => { before(x); return true; }, null)); }
public static ICallInterceptorRegistry Register <TObj>(this ICallInterceptorRegistry @this, Expression <Action <TObj> > action, Predicate <IActionInvocation> before, Action <IActionReturn> after) { return(@this.RegisterInterceptors(action, new DelegatedCallInterceptor(before, after))); }
public static ICallInterceptorRegistry Register <TObj>(this ICallInterceptorRegistry @this, Expression <Action <TObj> > action, IEnumerable <ICallInterceptor> objs) { return(@this.RegisterInterceptors(action, objs.Cast <object>().ToArray())); }
public ConfigureCallInterceptors(ICallInterceptorRegistry registry, ContainerAdapter container) : base(registry) { Invariant.IsNotNull(container, "container"); Container = container; }
public static ICallInterceptorRegistry RegisterBeforeCancellable <TObj>(this ICallInterceptorRegistry @this, Predicate <MethodBase> methodPred, Predicate <IActionInvocation> before) { return(@this.Register <TObj>(methodPred, before, null)); }
public static ICallInterceptorRegistry RegisterBeforeCancellable <TObj>(this ICallInterceptorRegistry @this, Expression <Action <TObj> > action, Predicate <IActionInvocation> before) { return(@this.Register(action, before, null)); }
public static ICallInterceptorRegistry RegisterAfter <TObj>(this ICallInterceptorRegistry @this, Predicate <MethodBase> methodPred, Action <IActionReturn> after) { return(@this.Register <TObj>(methodPred, null, after)); }
public static ICallInterceptorRegistry RegisterAfter <TObj>(this ICallInterceptorRegistry @this, Expression <Action <TObj> > action, Action <IActionReturn> after) { return(@this.Register(action, null, after)); }
/// <summary> /// Initializes a new instance of the <see cref="T:MvcInterception.ConfigureCallInterceptorsBase"/> class. /// </summary> /// <param name="registry">The registry.</param> protected ConfigureCallInterceptorsBase(ICallInterceptorRegistry registry) { Invariant.IsNotNull(registry, "registry"); Registry = registry; }