Exemplo n.º 1
0
 public TrackState(TrackState copyFrom)
 {
     this.Timestamp = copyFrom.Timestamp;
     this.TrackId   = copyFrom.TrackId;
     this.Binary    = copyFrom.Binary;
     this.OwnerId   = copyFrom.OwnerId;
 }
Exemplo n.º 2
0
        public TrackState Update(TrackUpdateCommand command)
        {
            var state = new TrackState(this);

            if (command.Timestamp > state.Timestamp)
            {
                state.Binary    = command.Binary;
                state.Timestamp = command.Timestamp;
            }
            return(state);
        }