示例#1
0
 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;
 }
示例#3
0
 protected bool Equals(NmsSessionId other)
 {
     return(Equals(ConnectionId, other.ConnectionId) && Value == other.Value);
 }