public async Task <long> PersistEventAsync(string actorName, long index, object @event) { await EventCollection.InsertOneAsync(new Event(actorName, index, @event)); return(index++); }