/// <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); }
private static IObjectContainer DoneWithAutofac(this Bootstrapper that, ContainerBuilder containerBuilder) { containerBuilder.NotNull("containerBuilder"); var container = new AutofacObjectContainer(containerBuilder); that.Done(container); return container; }
/// <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); }