Ejemplo n.º 1
0
        internal SequenceCounter Clone()
        {
            SequenceCounter counter;

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

            counter.Sequence = Sequence;

            return(counter);
        }
Ejemplo n.º 2
0
 internal ParallelSequenceCounter(SequenceCounter parent) : base(parent)
 {
     Root     = parent.Clone();
     Sequence = Parent.Sequence;
 }