public async Task Blah()
        {
            using(var eventStore = Wireup
                .Init()
                .UsingInMemoryPersistence()
                .Build())
            {
                using(var client = new EventStoreClient(eventStore.Advanced))
                {
                    var handlerResolver = new ProjectionHandlerResolver(new TestProjectionModule());
                    var dispatcher = new NEventStoreProjectionDispatcher(
                        client,
                        handlerResolver,
                        new InMemoryCheckpointRepository());

                    await dispatcher.Start();
                }
            }
        }
Exemple #2
0
        public async Task Blah()
        {
            using (var eventStore = Wireup
                                    .Init()
                                    .UsingInMemoryPersistence()
                                    .Build())
            {
                using (var client = new EventStoreClient(eventStore.Advanced))
                {
                    var handlerResolver = new ProjectionHandlerResolver(new TestProjectionModule());
                    var dispatcher      = new NEventStoreProjectionDispatcher(
                        client,
                        handlerResolver,
                        new InMemoryCheckpointRepository());

                    await dispatcher.Start();
                }
            }
        }