예제 #1
0
 public async Task Save(IDomainEvent @event)
 {
     var eventStoreItem = EventStoreItem.FromDomainEvent(@event);
     await collection.InsertOneAsync(eventStoreItem);
 }
예제 #2
0
        public void Save(IDomainEvent @event)
        {
            var eventStoreItem = EventStoreItem.FromDomainEvent(@event);

            collection.InsertOne(eventStoreItem);
        }