Ejemplo n.º 1
0
        public static void WireUp()
        {
            Container = FrameworkBootstrapper.WireUp();

            Container.Register(Classes.FromAssembly(Assembly.GetCallingAssembly()).BasedOn <ApiController>()
                               .LifestyleScoped());

            InitializeTypeResolver();
            RegisterCommandHandlers();
            RegisterRepositories();
            RegisterLogger();
        }
Ejemplo n.º 2
0
 private static void WireupBoundedContexts(WindsorContainer container, string connectionString)
 {
     TicketManagementBootstrapper.Config(container, connectionString);
     FrameworkBootstrapper.WireUp(container);
 }
Ejemplo n.º 3
0
 private void WireUp(IServiceCollection services)
 {
     FrameworkBootstrapper.WireUp(services);
     OfficialBootstrapper.WireUp(services, _officialConfig.ConnectionStrings.MainDbConnection);
     services.AddTransient <ILetterFacadeQuery, LetterFacadeQuery>();
 }