public override int GetHashCode()
        {
            var hashCode = -1819436856;

            hashCode = hashCode * -1521134295 + EqualityComparer <GameDefinition> .Default.GetHashCode(GameDefinition);

            hashCode = hashCode * -1521134295 + EqualityComparer <ActionCosts> .Default.GetHashCode(ActionCosts);

            hashCode = hashCode * -1521134295 + KeepAliveInterval.GetHashCode();
            hashCode = hashCode * -1521134295 + RetryRegisterGameInterval.GetHashCode();
            return(hashCode);
        }
Example #2
0
        public override int GetHashCode()
        {
            int hashcode = TransportUsage.GetHashCode()
                           ^ KeepAliveInterval.GetHashCode();

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

            return(hashcode);
        }
Example #3
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);
        }