Пример #1
0
 private void Initialize()
 {
     Users      = new UsersModule();
     Notes      = new NotesModule();
     Events     = new EventsModule();
     Insurances = new InsurancesModule();
     Database   = new LocalDatabase();
     Database.OpenConnections();
 }
Пример #2
0
        public static ContainerBuilder AddMessageHandling(this ContainerBuilder builder, params Assembly[] assemblies)
        {
            builder
            .RegisterModule(CommandsModule.For(assemblies))
            .RegisterModule(EventsModule.For(assemblies))
            .RegisterModule(QueryModule.For(assemblies));

            return(builder);
        }