public static void Intercept <TSource, TDest>(this IBindableIocService service,
                                               Action <IInterceptorTypeDeclaration> types) where TSource : TDest =>
 service.Intercept(new TypedInterceptionRule <TSource, TDest>(types));
 public static void Intercept <TSource, TDest>(this IBindableIocService service,
                                               params IInterceptor[] interceptors) where TSource : TDest =>
 service.Intercept(new SingletonInterceptorRule <TSource, TDest>(interceptors));
 public static void Intercept <T>(this IBindableIocService service,
                                  Action <IInterceptorTypeDeclaration> types) =>
 service.Intercept(new TypedInterceptionRule <T, T>(types));
 public static void Intercept <T>(this IBindableIocService service,
                                  params IInterceptor[] interceptors) =>
 service.Intercept(new SingletonInterceptorRule <T, T>(interceptors));
Exemplo n.º 5
0
 public static void InterceptSpecificType <TTypeToIntercept, TRequestedType>(this IBindableIocService service,
                                                                             Func <TTypeToIntercept, TRequestedType> conversion) where TTypeToIntercept : TRequestedType =>
 service.Intercept(new InterceptFromFunc <TTypeToIntercept, TRequestedType>(conversion));
Exemplo n.º 6
0
 public static void Intercept <T>(this IBindableIocService service, Func <T, T> conversion) =>
 service.Intercept(new InterceptFromFunc <T, T>(conversion));