public static void BootUp() { var config = new Ncqrs.Config.StructureMap.StructureMapConfiguration(cfg => { cfg.For<ICommandService>().Use(InitializeCommandService); cfg.For<IEventBus>().Use(x => InitializeEventBus()); cfg.For<IEventStore>().Use(InitializeEventStore); }); NcqrsEnvironment.Configure(config); }
public static void BootUp(InMemoryBufferedBrowsableElementStore buffer) { var config = new Ncqrs.Config.StructureMap.StructureMapConfiguration(cfg => { cfg.For<ICommandService>().Use(InitializeCommandService); cfg.For<IEventBus>().Use(x => InitializeEventBus(buffer)); cfg.For<IEventStore>().Use(InitializeEventStore); cfg.For<IKnownCommandsEnumerator>().Use(new AllCommandsInAppDomainEnumerator()); }); NcqrsEnvironment.Configure(config); }
public static void BootUp(InMemoryBufferedBrowsableElementStore buffer) { var config = new Ncqrs.Config.StructureMap.StructureMapConfiguration(cfg => { cfg.For <ICommandService>().Use(InitializeCommandService); cfg.For <IEventBus>().Use(x => InitializeEventBus(buffer)); cfg.For <IEventStore>().Use(InitializeEventStore); cfg.For <IKnownCommandsEnumerator>().Use(new AllCommandsInAppDomainEnumerator()); }); NcqrsEnvironment.Configure(config); }