private void Initialize() { Users = new UsersModule(); Notes = new NotesModule(); Events = new EventsModule(); Insurances = new InsurancesModule(); Database = new LocalDatabase(); Database.OpenConnections(); }
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); }