public EventStore(IEventStoreConfiguration configuration, IEventMigrationHierarchyManager eventMigrationHierarchyManager) { _configuration = configuration; _eventMigrationHierarchyManager = eventMigrationHierarchyManager; InitializeDocumentStore(); InsertOrModifyEventSourceIdAndVersionIndex(); }
public void InitializeEventStore(IEventStoreConfiguration configuration) { var eventStoreConnection = EventStoreConnectionFactory.Create(EventStoreLocation.External, configuration); eventStoreConnection.ConnectAsync().Wait(); ReferenceDataHelper.PopulateRefData(eventStoreConnection).Wait(); }
public static Uri FromConfig(IEventStoreConfiguration config) { var builder = new UriBuilder { Scheme = "tcp", UserName = "******", Password = "******", Host = config.Host, Port = config.Port }; return builder.Uri; }
public static IEventStoreConnection Create(EventStoreLocation eventStoreLocation, IEventStoreConfiguration configuration) { IEventStore eventStore; if (eventStoreLocation == EventStoreLocation.Embedded) { //eventStore = new EmbeddedEventStore(); throw new NotSupportedException(); } else { eventStore = new ExternalEventStore(EventStoreUri.FromConfig(configuration)); } return eventStore.Connection; }
private static IEventStoreConnection GetEventStoreConnection(IEventStoreConfiguration configuration) { var eventStoreConnection = EventStoreConnectionFactory.Create( EventStoreLocation.External, configuration); return eventStoreConnection; }
public EventStoreInitializer(IEventStoreConfiguration registerTables) => _configureEventStore = registerTables;
public static IEventStoreConnection Create(EventStoreLocation eventStoreLocation, IEventStoreConfiguration configuration) { IEventStore eventStore; if (eventStoreLocation == EventStoreLocation.Embedded) { //eventStore = new EmbeddedEventStore(); throw new NotSupportedException(); } else { eventStore = new ExternalEventStore(EventStoreUri.FromConfig(configuration)); } return(eventStore.Connection); }
public EventStoreConfigurationTests() { Options.StoreName = Guid.NewGuid().ToString(); _configuration = new EventStoreConfiguration(DynamoDb, Options); }