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); }
public LastWriteWinsRegister <T> SetValue(T value, VectorTime vectorTime, long systemTime = 0L, string emitterId = null) { return(new LastWriteWinsRegister <T>(register.Set(value, vectorTime, systemTime, emitterId))); }