Exemple #1
0
        /// <summary>
        /// Determines if the protocol version is supported by this driver.
        /// </summary>
        public static bool IsSupported(this ProtocolVersion version, Configuration config)
        {
            if (version.IsBeta())
            {
                return(config.AllowBetaProtocolVersions);
            }

            return(version >= ProtocolVersion.MinSupported && version <= ProtocolVersion.MaxSupported);
        }