/// <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); }
/// <summary> /// 添加注册 /// </summary> /// <param name="registrar"></param> public static void AddConventionalRegistrar(IConventionaInterceptorRegistrar registrar) { Registrars.Add(registrar); }