internal AzureApi(IAzureEndpoint endpoint) { _endpoint = endpoint ?? throw new ArgumentNullException(nameof(endpoint)); _client = new RestClient(endpoint.Address) { Authenticator = endpoint.GetAuthenticator() }; }
internal AzureApi(IAzureEndpoint endpoint) { if (endpoint is null) { throw new EndpointNotFoundException(); } _client = new RestClient(endpoint.Address) { Authenticator = endpoint.GetAuthenticator() }; }