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 async override Task OnActivateAsync()
 {
     //todo: we may not need a connection per grain...
     _repository = EventStoreRepository.Create(_eventStoreConfiguration);
     await _repository.Connect(TimeSpan.FromSeconds(5));
 }