Esempio n. 1
0
 public static IRegistrationBuilder <T, SimpleActivatorData, SingleRegistrationStyle> RegisterInstance <T>(this ContainerBuilderWrapper builder, T instance)
     where T : class
 {
     return(builder.ContainerBuilder.RegisterInstance <T>(instance));
 }
Esempio n. 2
0
 public static void RegisterModule <TModule>(this ContainerBuilderWrapper builder)
     where TModule : IModule, new()
 {
     builder.ContainerBuilder.RegisterModule <TModule>();
 }
Esempio n. 3
0
 public static void RegisterModule(this ContainerBuilderWrapper builder, IModule module)
 {
     builder.ContainerBuilder.RegisterModule(module);
 }
Esempio n. 4
0
 public static IRegistrationBuilder <T, SimpleActivatorData, SingleRegistrationStyle> Register <T>(this ContainerBuilderWrapper builder, Func <IComponentContext, IEnumerable <Parameter>, T> @delegate)
 {
     return(builder.ContainerBuilder.Register <T>(@delegate));
 }
 /// <summary>
 /// 注册构建。
 /// </summary>
 /// <param name="builder">容器构建对象。</param>
 /// <remarks>
 ///     <para>创建:范亮</para>
 ///     <para>日期:2015/12/4</para>
 /// </remarks>
 protected virtual void RegisterBuilder(ContainerBuilderWrapper builder)
 {
 }
Esempio n. 6
0
 /// <summary>
 /// 注册组件到依赖注入容器。
 /// </summary>
 /// <param name="builder">容器构建对象。</param>
 /// <remarks>
 ///     <para>创建:范亮</para>
 ///     <para>日期:2015/12/4</para>
 /// </remarks>
 internal override void RegisterComponents(ContainerBuilderWrapper builder)
 {
     base.RegisterComponents(builder);
 }