示例#1
0
 /// <summary>
 /// 添加注册
 /// </summary>
 /// <param name="services"></param>
 /// <param name="registrar"></param>
 public static void AddConventionalRegistrar(IServiceCollection services, IConventionaInterceptorRegistrar registrar)
 {
     GetInterceptorRegistrars(services).Add(registrar);
 }
 /// <summary>
 ///
 /// </summary>
 /// <param name="services"></param>
 /// <param name="registrar"></param>
 /// <returns></returns>
 public static IServiceCollection AddConventionalRegistrar(this IServiceCollection services, IConventionaInterceptorRegistrar registrar)
 {
     InterceptorHelper.AddConventionalRegistrar(services, registrar);
     return(services);
 }
示例#3
0
 /// <summary>
 /// 添加注册
 /// </summary>
 /// <param name="registrar"></param>
 public static void AddConventionalRegistrar(IConventionaInterceptorRegistrar registrar)
 {
     Registrars.Add(registrar);
 }