public static IRegistrationBuilder <Delegate, GeneratedFactoryActivatorData, SingleRegistrationStyle> RegisterGeneratedFactory(this ContainerBuilderWrapper builder, Type delegateType)
 {
     return(builder.ContainerBuilder.RegisterGeneratedFactory(delegateType));
 }
 public static IRegistrationBuilder <TDelegate, GeneratedFactoryActivatorData, SingleRegistrationStyle> RegisterGeneratedFactory <TDelegate>(this ContainerBuilderWrapper builder)
     where TDelegate : class
 {
     return(builder.ContainerBuilder.RegisterGeneratedFactory <TDelegate>());
 }
 public static IRegistrationBuilder <object, OpenGenericDecoratorActivatorData, DynamicRegistrationStyle> RegisterGenericDecorator(this ContainerBuilderWrapper builder, Type decoratorType, Type decoratedServiceType, object fromKey, object toKey = null)
 {
     return(builder.ContainerBuilder.RegisterGenericDecorator(decoratorType, decoratedServiceType, fromKey, toKey));
 }
 public static IRegistrationBuilder <TService, LightweightAdapterActivatorData, DynamicRegistrationStyle> RegisterDecorator <TService>(this ContainerBuilderWrapper builder, Func <TService, TService> decorator, object fromKey, object toKey = null)
 {
     return(builder.ContainerBuilder.RegisterDecorator <TService>(decorator, fromKey, toKey));
 }
 public static IRegistrationBuilder <object, ReflectionActivatorData, DynamicRegistrationStyle> RegisterGeneric(this ContainerBuilderWrapper builder, Type implementor)
 {
     return(builder.ContainerBuilder.RegisterGeneric(implementor));
 }
 public static IRegistrationBuilder <TTo, LightweightAdapterActivatorData, DynamicRegistrationStyle> RegisterAdapter <TFrom, TTo>(this ContainerBuilderWrapper builder, Func <TFrom, TTo> adapter)
 {
     return(builder.ContainerBuilder.RegisterAdapter <TFrom, TTo>(adapter));
 }
 public static IRegistrationBuilder <object, ConcreteReflectionActivatorData, SingleRegistrationStyle> RegisterType(this ContainerBuilderWrapper builder, Type implementationType)
 {
     return(builder.ContainerBuilder.RegisterType(implementationType));
 }
 public static IRegistrationBuilder <object, ScanningActivatorData, DynamicRegistrationStyle> RegisterAssemblyTypes(this ContainerBuilderWrapper builder, params Assembly[] assemblies)
 {
     return(builder.ContainerBuilder.RegisterAssemblyTypes(assemblies));
 }
 public static IRegistrationBuilder <TImplementor, ConcreteReflectionActivatorData, SingleRegistrationStyle> RegisterType <TImplementor>(this ContainerBuilderWrapper builder)
 {
     return(builder.ContainerBuilder.RegisterType <TImplementor>());
 }
示例#10
0
 public static IRegistrationBuilder <T, SimpleActivatorData, SingleRegistrationStyle> RegisterInstance <T>(this ContainerBuilderWrapper builder, T instance)
     where T : class
 {
     return(builder.ContainerBuilder.RegisterInstance <T>(instance));
 }
示例#11
0
 public static void RegisterModule <TModule>(this ContainerBuilderWrapper builder)
     where TModule : IModule, new()
 {
     builder.ContainerBuilder.RegisterModule <TModule>();
 }
示例#12
0
 public static void RegisterModule(this ContainerBuilderWrapper builder, IModule module)
 {
     builder.ContainerBuilder.RegisterModule(module);
 }
示例#13
0
 public static IRegistrationBuilder <T, SimpleActivatorData, SingleRegistrationStyle> Register <T>(this ContainerBuilderWrapper builder, Func <IComponentContext, IEnumerable <Parameter>, T> @delegate)
 {
     return(builder.ContainerBuilder.Register <T>(@delegate));
 }