示例#1
0
		public virtual bool Equals(SessionId that) {
            if (! Equals(this.ConnectionId, that.ConnectionId)) return false;
            if (! Equals(this.Value, that.Value)) return false;
            return true;

		}
示例#2
0
 protected SessionInfo CreateSessionInfo(AcknowledgementMode acknowledgementMode)
 {
     SessionInfo answer = new SessionInfo();
     SessionId sessionId = new SessionId();
     sessionId.ConnectionId = info.ConnectionId.Value;
     lock (this)
     {
         sessionId.Value = ++sessionCounter;
     }
     answer.SessionId = sessionId;
     return answer;
 }