Beispiel #1
0
        public override int GetHashCode()
        {
            int hashcode = TransportUsage.GetHashCode()
                           ^ KeepAliveInterval.GetHashCode();

            if (SubProtocol != null)
            {
                hashcode ^= SubProtocol.ToLowerInvariant().GetHashCode();
            }

            return(hashcode);
        }
Beispiel #2
0
        public override int GetHashCode()
        {
            int hashcode = TransportUsage.GetHashCode()
                           ^ CreateNotificationOnConnection.GetHashCode()
                           ^ KeepAliveInterval.GetHashCode()
                           ^ DisablePayloadMasking.GetHashCode()
                           ^ MaxPendingConnections.GetHashCode();

            if (SubProtocol != null)
            {
                hashcode ^= SubProtocol.ToLowerInvariant().GetHashCode();
            }

            return(hashcode);
        }