Example #1
0
 public static IInterceptionConfiguration With <TInterceptor>(this IInterceptionConfiguration interceptionConfiguration, params object?[] parameters) where TInterceptor : IInterceptor
 {
     if (Guard.NotNull(parameters, nameof(parameters)).Length == 0)
     {
         interceptionConfiguration.With(NewFuncHelper <TInterceptor> .Instance());
     }
     else
     {
         interceptionConfiguration.With(ActivatorHelper.CreateInstance <TInterceptor>(parameters));
     }
     return(interceptionConfiguration);
 }
Example #2
0
 public static IInterceptionConfiguration With <TInterceptor>(this IInterceptionConfiguration interceptionConfiguration) where TInterceptor : IInterceptor, new()
 {
     interceptionConfiguration.With(new TInterceptor());
     return(interceptionConfiguration);
 }