Beispiel #1
0
        public MultiValueRegister <T> Updated(MultiValueRegister <T> crdt, object operation, DurableEvent e)
        {
            if (operation is SetOp <T> )
            {
                return(crdt.Set(((SetOp <T>)operation).Value, e.VectorTimestamp, e.SystemTimestamp, e.EmitterId));
            }

            return(crdt);
        }
Beispiel #2
0
 public LastWriteWinsRegister <T> SetValue(T value, VectorTime vectorTime, long systemTime = 0L, string emitterId = null)
 {
     return(new LastWriteWinsRegister <T>(register.Set(value, vectorTime, systemTime, emitterId)));
 }