Exemplo n.º 1
0
 public TwoWayCopier SetCounters(BytesCountersRW left, BytesCountersRW right)
 {
     CopierFromLeft.CounterR  = left.R;
     CopierFromRight.CounterW = left.W;
     CopierFromRight.CounterR = right.R;
     CopierFromLeft.CounterW  = right.W;
     return(this);
 }
Exemplo n.º 2
0
 public BytesCountersRW(BytesCountersRW nextRW)
 {
     R = new BytesCounter(nextRW.R);
     W = new BytesCounter(nextRW.W);
 }
Exemplo n.º 3
0
        protected InConnection(IAdapter creator) : base(creator)
        {
            var adap = creator.GetAdapter();

            BytesCountersRW = new BytesCountersRW(adap.BytesCountersRW);
        }