public static EventStoreRepository Create(EventStoreRepositoryConfiguration repositoryConfiguration) { var eventStoreConnection = EventStoreConnection.Create(repositoryConfiguration.ConnectionSettings, new Uri(repositoryConfiguration.ConnectionString)); var repository = new EventStoreRepository(repositoryConfiguration, eventStoreConnection, new ConnectionStatusMonitor(eventStoreConnection)); return(repository); }
public EventStoreQueueAdapter(string providerName, EventStoreRepositoryConfiguration eventStoreRepositoryConfiguration, ILoggerFactory loggerFactory) { _loggerFactory = loggerFactory; Name = providerName; EventStore = EventStoreRepository.Create(eventStoreRepositoryConfiguration); }
public EventStoreAdapterFactory(string providerName, EventStoreRepositoryConfiguration eventStoreRepositoryConfiguration, ILoggerFactory loggerFactory) { _loggerFactory = loggerFactory; _providerName = providerName; _eventStoreRepositoryConfiguration = eventStoreRepositoryConfiguration; var options = new SimpleQueueCacheOptions() { CacheSize = 100 }; _eventStoreQueueAdapterCache = new SimpleQueueAdapterCache(options, _providerName, _loggerFactory); var hashRingStreamQueueMapperOptions = new HashRingStreamQueueMapperOptions() { TotalQueueCount = 1 }; _streamQueueMapper = new HashRingBasedStreamQueueMapper(hashRingStreamQueueMapperOptions, _providerName); }
private EventStoreRepository(EventStoreRepositoryConfiguration configuration, IEventStoreConnection eventStoreConnection, IConnectionStatusMonitor connectionMonitor) { _eventStoreRepositoryConfiguration = configuration; _eventStoreConnection = eventStoreConnection; _connectionMonitor = connectionMonitor; }
protected EventStoreJournaledGrain(EventStoreRepositoryConfiguration eventStoreConfiguration) { _eventStoreConfiguration = eventStoreConfiguration; }