Exemplo n.º 1
0
        internal void Populate(RpbDelReq request)
        {
            if(Rw.HasValue)
            {
                request.rw = Rw.Value;
            }

            if(Vclock != null)
            {
                request.vclock = Vclock;
            }

            if(R.HasValue)
            {
                request.r = R.Value;
            }

            if(W.HasValue)
            {
                request.w = W.Value;
            }

            if(Pr.HasValue)
            {
                request.pr = Pr.Value;
            }

            if(Pw.HasValue)
            {
                request.pw = Pw.Value;
            }

            if(Dw.HasValue)
            {
                request.dw = Dw.Value;
            }
        }
        internal void Populate(RpbDelReq request)
        {
            request.r = R.IsLeft ? R.Left : R.Right.ToRpbOption();
            request.pr = Pr.IsLeft ? Pr.Left : Pr.Right.ToRpbOption();
            request.rw = Rw.IsLeft ? Rw.Left : Rw.Right.ToRpbOption();
            request.w = W.IsLeft ? W.Left : W.Right.ToRpbOption();
            request.pw = Pw.IsLeft ? Pw.Left : Pw.Right.ToRpbOption();
            request.dw = Dw.IsLeft ? Dw.Left : Dw.Right.ToRpbOption();

            if(Vclock != null)
            {
                request.vclock = Vclock;
            }
        }
Exemplo n.º 3
0
        internal void Populate(RpbDelReq request)
        {
            if(Rw.HasValue)
            {
                request.Rw = Rw.Value;
            }

            if(Vclock != null)
            {
                request.Vclock = Vclock;
            }

            if(R.HasValue)
            {
                request.R = R.Value;
            }

            if(W.HasValue)
            {
                request.W = W.Value;
            }

            if(Pr.HasValue)
            {
                request.Pr = Pr.Value;
            }

            if(Pw.HasValue)
            {
                request.Pw = Pw.Value;
            }

            if(Dw.HasValue)
            {
                request.Dw = Dw.Value;
            }
        }