internal ClustersPocoClient(
            IHDInsightSubscriptionCredentials credentials,
            bool ignoreSslErrors,
            IAbstractionContext context,
            List <string> capabilities,
            IRdfeClustersResourceRestClient clustersResourceRestClient)
        {
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            if (capabilities == null)
            {
                throw new ArgumentNullException("capabilities");
            }

            if (clustersResourceRestClient == null)
            {
                throw new ArgumentNullException("clustersResourceRestClient");
            }

            this.credentials            = credentials;
            this.Context                = context;
            this.Logger                 = context.Logger;
            this.ignoreSslErrors        = ignoreSslErrors;
            this.rdfeClustersRestClient = clustersResourceRestClient;
            this.capabilities           = capabilities;
        }
        public RdfeResourceTypeFinderClient(IHDInsightSubscriptionCredentials credentials, IAbstractionContext context, bool ignoreSslErrors, string schemaVersion)
        {
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.context        = context;
            this.credentials    = credentials;
            this.rdfeRestClient = ServiceLocator.Instance.Locate <IRdfeClustersResourceRestClientFactory>()
                                  .Create(credentials, context, ignoreSslErrors, schemaVersion);
        }
        public RdfeResourceTypeFinderClient(IHDInsightSubscriptionCredentials credentials, IAbstractionContext context, bool ignoreSslErrors, string schemaVersion)
        {
            if (credentials == null)
            {
                throw new ArgumentNullException("credentials");
            }

            if (context == null)
            {
                throw new ArgumentNullException("context");
            }

            this.context = context;
            this.credentials = credentials;
            this.rdfeRestClient = ServiceLocator.Instance.Locate<IRdfeClustersResourceRestClientFactory>()
                                                      .Create(credentials, context, ignoreSslErrors, schemaVersion);
        }