internal RhetosContainerBuilder CreateDbUpdateComponentsContainer() { var builder = new RhetosContainerBuilder(_configuration, _logProvider, AssemblyResolver.GetRuntimeAssemblies(_configuration)); builder.RegisterModule(new CoreModule()); builder.RegisterModule(new DbUpdateModule()); builder.AddPluginModules(); builder.RegisterType <NullUserInfo>().As <IUserInfo>(); // Override runtime IUserInfo plugins. This container should not execute the application's business features. return(builder); }
internal RhetosContainerBuilder CreateBuildComponentsContainer() { var builder = new RhetosContainerBuilder(_configuration, _logProvider, _pluginAssemblies); builder.RegisterModule(new CoreModule()); builder.RegisterModule(new CorePluginsModule()); builder.RegisterModule(new BuildModule()); builder.AddPluginModules(); builder.RegisterType <NullUserInfo>().As <IUserInfo>(); // Override runtime IUserInfo plugins. This container should not execute the application's business features. #pragma warning disable CS0618 // Registering obsolete IInstalledPackages for backward compatibility. builder.RegisterInstance(_installedPackages).As <IInstalledPackages>().As <InstalledPackages>(); #pragma warning restore CS0618 return(builder); }