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)); }