protected virtual Boolean Equals(ProducerId that) { if (!Equals(ConnectionId, that.ConnectionId)) { return(false); } return(Equals(Value, that.Value) && Equals(SessionId, that.SessionId)); }
/// <summary> /// Sets the value as a String /// </summary> private void SetValue(String messageKey) { var mkey = messageKey; _key = mkey; // Parse off the sequenceId var p = mkey.LastIndexOf(":", StringComparison.Ordinal); if (p >= 0) { if (Int64.TryParse(mkey.Substring(p + 1), out _producerSequenceId)) { mkey = mkey.Substring(0, p); } else { _producerSequenceId = 0; } } ProducerId = new ProducerId(mkey); }
public MessageId(String value) { var mkey = value; _key = mkey; // Parse off the sequenceId var p = mkey.LastIndexOf(":", StringComparison.Ordinal); if (p >= 0) { if (Int64.TryParse(mkey.Substring(p + 1), out var producerSequenceId)) { ProducerSequenceId = producerSequenceId; mkey = mkey.Substring(0, p); } else { ProducerSequenceId = 0; } } ProducerId = new ProducerId(mkey); }
public MessageId(ProducerId prodId, Int64 producerSeqId) { ProducerId = prodId; ProducerSequenceId = producerSeqId; }
public ConnectionId(ProducerId producerId) { Value = producerId.ConnectionId; }
public SessionId(ProducerId producerId) { ConnectionId = producerId.ConnectionId; Value = producerId.SessionId; }