Esempio n. 1
0
        internal static AzureCloudInstance AzureCloudEndpointToInstance(AzureCloudEndpoint endpointType)
        {
            switch (endpointType)
            {
            case AzureCloudEndpoint.AzurePublic:
                return(AzureCloudInstance.AzurePublic);

            case AzureCloudEndpoint.AzureChina:
                return(AzureCloudInstance.AzureChina);

            case AzureCloudEndpoint.AzureGermany:
                return(AzureCloudInstance.AzureGermany);

            case AzureCloudEndpoint.AzureUsGovernment:
                return(AzureCloudInstance.AzureUsGovernment);

            default:
                throw new InvalidOperationException();
            }
        }
Esempio n. 2
0
 /// <summary>
 /// The ADLS constructor for clientId/secret authentication.
 /// </summary>
 public ADLSAdapter(string hostname, string root, string tenant, string clientId, string secret, AzureCloudEndpoint endpoint = AzureCloudEndpoint.AzurePublic) : this()
 {
     this.Hostname = hostname;
     this.Root     = root;
     this.Tenant   = tenant;
     this.ClientId = clientId;
     this.Secret   = secret;
     this.Endpoint = endpoint;
 }