Пример #1
0
        public IndexReadStreamResult(long fromEventNumber, int maxCount, ReadStreamResult result, StreamMetadata metadata, long lastEventNumber)
        {
            if (result == ReadStreamResult.Success)
            {
                throw new ArgumentException(String.Format("Wrong ReadStreamResult provided for failure constructor: {0}.", result), "result");
            }

            FromEventNumber = fromEventNumber;
            MaxCount        = maxCount;

            Result          = result;
            NextEventNumber = -1;
            LastEventNumber = lastEventNumber;
            IsEndOfStream   = true;
            Records         = EmptyRecords;
            Metadata        = metadata;
        }