Exemple #1
0
        internal AzureApi(IAzureEndpoint endpoint)
        {
            _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint));

            _client = new RestClient(endpoint.Address)
            {
                Authenticator = endpoint.GetAuthenticator()
            };
        }
Exemple #2
0
        internal AzureApi(IAzureEndpoint endpoint)
        {
            if (endpoint is null)
            {
                throw new EndpointNotFoundException();
            }

            _client = new RestClient(endpoint.Address)
            {
                Authenticator = endpoint.GetAuthenticator()
            };
        }