private Proto.Msg.DataEnvelope DataEnvelopeToProto(DataEnvelope msg) { var proto = new Proto.Msg.DataEnvelope { Data = this.OtherMessageToProto(msg.Data) }; foreach (var entry in msg.Pruning) { proto.Pruning.Add(PruningToProto(entry.Key, entry.Value)); } if (!msg.DeltaVersions.IsEmpty) { proto.DeltaVersions = SerializationSupport.VersionVectorToProto(msg.DeltaVersions); } return(proto); }
/// <summary> /// TBD /// </summary> /// <param name="key">TBD</param> /// <param name="envelope">TBD</param> public ReadRepair(string key, DataEnvelope envelope) { Key = key; Envelope = envelope; }
/// <summary> /// TBD /// </summary> /// <param name="envelope">TBD</param> public ReadResult(DataEnvelope envelope) { Envelope = envelope; }
/// <summary> /// TBD /// </summary> /// <param name="key">TBD</param> /// <param name="envelope">TBD</param> public Write(string key, DataEnvelope envelope) { Key = key; Envelope = envelope; }
public Delta(DataEnvelope dataEnvelope, long fromSeqNr, long toSeqNr) { DataEnvelope = dataEnvelope; FromSeqNr = fromSeqNr; ToSeqNr = toSeqNr; }
/// <summary> /// TBD /// </summary> /// <param name="key">TBD</param> /// <param name="envelope">TBD</param> /// <param name="fromNode">TBD</param> public Write(string key, DataEnvelope envelope, UniqueAddress fromNode = null) { Key = key; Envelope = envelope; FromNode = fromNode; }