/// <summary> /// Loads plugins, composes DI. /// </summary> public static void RegisterApplicationServices(this Container container, AssemblyBootstrapper bootstrapper) { // Application Assemblies bootstrapper.RegisterDependencies(container); RegisterAutoMapper(container, bootstrapper); }
/// <summary> /// Loads plugins, composes DI. /// </summary> public static void RegisterApplicationServices( this Container container, AssemblyBootstrapper bootstrapper, Microsoft.Extensions.Configuration.IConfiguration config) { // Application Assemblies bootstrapper.RegisterDependencies(container, config); RegisterAutoMapper(container, bootstrapper); }
/// <summary> /// Loads plugins, composes DI. /// </summary> public static void RegisterApplicationServices( this IApplicationBuilder app, Container container, AssemblyBootstrapper bootstrapper, Microsoft.Extensions.Configuration.IConfiguration config) { // Application Assemblies bootstrapper.RegisterDependencies(container, config); RegisterAutoMapper(container, bootstrapper); container.Register <IFeatureManager, ApiFeatureManager>(Lifestyle.Singleton); app.UseSimpleInjector(container); }