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

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

            return(hashcode);
        }
예제 #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);
        }