Example #1
0
 public virtual bool Equals(LocalTransactionId that)
 {
     if (!Equals(this.Value, that.Value))
     {
         return(false);
     }
     if (!Equals(this.ConnectionId, that.ConnectionId))
     {
         return(false);
     }
     return(true);
 }
		public virtual bool Equals(LocalTransactionId that) {
            if (! Equals(this.Value, that.Value)) return false;
            if (! Equals(this.ConnectionId, that.ConnectionId)) return false;
            return true;

		}
Example #3
0
		public static string ToStomp(LocalTransactionId transactionId)
		{
			return transactionId.ConnectionId.Value + ":" + transactionId.Value;
		}
Example #4
0
 /// <summary>
 /// Creates a new local transaction ID
 /// </summary>
 public LocalTransactionId CreateLocalTransactionId()
 {
     LocalTransactionId id= new LocalTransactionId();
     id.ConnectionId = ConnectionId;
     lock (this)
     {
         id.Value = (++localTransactionCounter);
     }
     return id;
 }