예제 #1
0
        public WebHCatalogClient(ServerInformation hCatalogInformation, Credential credentials, bool useKerberos = false)
        {
            hCatalogInformation.CheckWhetherArgumentIsNull("hCatalogInformation");
            credentials.CheckWhetherArgumentIsNull("networkCredential");

            this.urlBuilder = new UrlBuilder(hCatalogInformation, credentials, useKerberos);
            this.webClientBuilder = new WebClientBuilder(credentials, useKerberos);
        }
예제 #2
0
        public UrlBuilder(ServerInformation hCatInformation, Credential credential, bool useKerberos)
        {
            credential.CheckWhetherArgumentIsNull("credential");
            hCatInformation.CheckWhetherArgumentIsNull("hCatInformation");

            this.hCatInformation = hCatInformation;
            this.userName = credential.UserName;
            this.useKerberos = useKerberos;
        }