示例#1
0
        internal SequenceCounter Clone()
        {
            SequenceCounter counter;

            if (Parent == null)
            {
                counter = new SequenceCounter();
            }
            else
            {
                counter = new SequenceCounter(Parent.Clone());
            }

            counter.Sequence = Sequence;

            return(counter);
        }
示例#2
0
 internal ParallelSequenceCounter(SequenceCounter parent) : base(parent)
 {
     Root     = parent.Clone();
     Sequence = Parent.Sequence;
 }