Exemplo n.º 1
0
        protected override IRootResolver CreateRootResolver(IEventFlowOptions eventFlowOptions)
        {
            var storePath = Path.Combine(
                Path.GetTempPath(),
                Guid.NewGuid().ToString());

            Directory.CreateDirectory(storePath);

            var resolver = eventFlowOptions
                           .UseFilesEventStore(FilesEventStoreConfiguration.Create(storePath))
                           .CreateResolver();

            _configuration = resolver.Resolve <IFilesEventStoreConfiguration>();

            return(resolver);
        }
Exemplo n.º 2
0
        protected override IRootResolver CreateRootResolver(IEventFlowOptions eventFlowOptions)
        {
            var storePath = Path.Combine(
                Path.GetTempPath(),
                Guid.NewGuid().ToString());

            Directory.CreateDirectory(storePath);

            var resolver = eventFlowOptions
                .UseFilesEventStore(FilesEventStoreConfiguration.Create(storePath))
                .CreateResolver();

            _configuration = resolver.Resolve<IFilesEventStoreConfiguration>();

            return resolver;
        }