Exemplo n.º 1
0
        public static void Check(this JdCloudNativeConfigWrapper config)
        {
            if (config == null)
            {
                throw new ArgumentNullException(nameof(config));
            }

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

            ((JdCloudNativeConfig)config).Check();
        }
Exemplo n.º 2
0
        public static bool IsValid(this JdCloudNativeConfigWrapper config)
        {
            if (config == null)
            {
                return(false);
            }

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

            return(true);
        }