コード例 #1
0
        public async Task Commit(List <Event> uncommitedChanges)
        {
            _eventStore.Connect();
            foreach (var @event in uncommitedChanges)
            {
                await _eventStore.WriteEventToStream(@event);

                _eventBus.Publish(@event);
            }
        }