/// <summary> /// Sets the value as a String /// </summary> public void SetValue(string messageKey) { this.key = messageKey; // Parse off the sequenceId int p = messageKey.LastIndexOf(":"); if (p >= 0) { producerSequenceId = Int64.Parse(messageKey.Substring(p + 1)); messageKey = messageKey.Substring(0, p); } producerId = new ProducerId(messageKey); }
public virtual bool Equals(ProducerId that) { if (!Equals(this.ConnectionId, that.ConnectionId)) { return(false); } if (!Equals(this.Value, that.Value)) { return(false); } if (!Equals(this.SessionId, that.SessionId)) { return(false); } return(true); }
/// <summary> /// Sets the value as a String /// </summary> public void SetValue(string messageKey) { string mkey = messageKey; this.key = mkey; // Parse off the sequenceId int p = mkey.LastIndexOf(":"); if (p >= 0) { if (Int64.TryParse(mkey.Substring(p + 1), out this.producerSequenceId)) { mkey = mkey.Substring(0, p); } else { this.producerSequenceId = 0; } } producerId = new ProducerId(mkey); }
public MessageId(ProducerId producerId, long producerSequenceId) : base() { this.producerId = producerId; this.producerSequenceId = producerSequenceId; }
public SessionId(ProducerId producerId) { this.ConnectionId = producerId.ConnectionId; this.value = producerId.SessionId; }
public ConnectionId(ProducerId producerId) { this.value = producerId.ConnectionId; }