public virtual bool Equals(SessionId that) { if (! Equals(this.ConnectionId, that.ConnectionId)) return false; if (! Equals(this.Value, that.Value)) return false; return true; }
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; }