private void ValidateConfiguration(CloudConfiguration config)
        {
            if (config == null)
            {
                throw new ArgumentException("Config file is empty.");
            }

            if (config.Port == 0)
            {
                throw new ArgumentException("Could not parse the \"port\" property from the config file.");
            }

            if (string.IsNullOrWhiteSpace(config.Host))
            {
                throw new ArgumentException("Could not parse the \"host\" property from the config file.");
            }

            if (string.IsNullOrEmpty(config.CertificatePassword))
            {
                CloudConfigurationParser.Logger.Warning("Could not parse the \"pfxCertPassword\" property from the config file.");
            }
        }
 public SecureConnectionBundle(X509Certificate2 caCert, X509Certificate2 clientCert, CloudConfiguration config)
 {
     CaCert     = caCert;
     ClientCert = clientCert;
     Config     = config;
 }