コード例 #1
0
        public static void Check(this TencentCloudClsNativeConfigWrapper config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

            if (string.IsNullOrWhiteSpace(config.Key))
            {
                throw new ArgumentNullException(nameof(config.Key));
            }

            ((TencentCloudClsNativeConfig)config).Check();
        }
コード例 #2
0
        public static bool IsValid(this TencentCloudClsNativeConfigWrapper config)
        {
            if (config == null)
            {
                return(false);
            }

            try {
                config.Check();
            }
            catch {
                return(false);
            }

            return(true);
        }