public NmsTransactionInfo(NmsSessionId sessionId, NmsTransactionId transactionId) { this.SessionId = sessionId ?? throw new ArgumentNullException(nameof(sessionId), "Session ID cannot be null"); this.Id = transactionId ?? throw new ArgumentNullException(nameof(transactionId), "Transaction ID cannot be null"); }
public NmsProducerId(NmsSessionId sessionId, long producerId) { this.SessionId = sessionId ?? throw new ArgumentNullException(nameof(sessionId), "Session ID cannot be null"); this.Value = producerId; }
protected bool Equals(NmsSessionId other) { return(Equals(ConnectionId, other.ConnectionId) && Value == other.Value); }