コード例 #1
0
        /// <summary>
        /// Adds registration to the Autofact container builder
        /// </summary>
        /// <param name="builder">The Autofac container builder</param>
        protected override void Load(ContainerBuilder builder)
        {
            builder.NotNull(nameof(builder));

            base.Load(builder);

            builder.RegisterApiControllers(this.ThisAssembly);
        }
コード例 #2
0
        private static IObjectContainer DoneWithAutofac(this Bootstrapper that, ContainerBuilder containerBuilder)
        {
            containerBuilder.NotNull("containerBuilder");

            var container = new AutofacObjectContainer(containerBuilder);
            that.Done(container);
            return container;
        }
コード例 #3
0
ファイル: ApiModule.cs プロジェクト: c4rm4x/C4rm4x.WebApi
        /// <summary>
        /// Adds registration to the Autofac Container Builder
        /// </summary>
        /// <param name="builder">The Autofa container builder</param>
        protected override void Load(ContainerBuilder builder)
        {
            builder.NotNull(nameof(builder));

            base.Load(builder);

            RegisterDependencies(builder);
        }