コード例 #1
0
        private bool ThrowOnConflict(IEventStream stream, int skip)
        {
            IEnumerable <object> committed   = stream.CommittedEvents.Skip(skip).Select(x => x.Body);
            IEnumerable <object> uncommitted = stream.UncommittedEvents.Select(x => x.Body);

            return(_conflictDetector.ConflictsWith(uncommitted, committed));
        }
コード例 #2
0
        private bool ThrowOnConflict(IEventStream stream, int skip)
        {
            var committed   = stream.CommittedEvents.Skip(skip).Select(x => x.Body);
            var uncommitted = stream.UncommittedEvents.Select(x => x.Body);

            return(_conflictDetector.ConflictsWith(uncommitted, committed));
        }