public async Task <LoginRequestDto> Login(string userName, string password)
        {
            var result = await CircuitBreakerHttpClient.Post <LoginRequestDto>(AnsibleTowerInstance.CircuitBreakerName, AnsibleTowerInstance.ApiDefinition.tokens, null, MediaType.ApplicationJson, GetLoginHeaders(userName, password), true).ConfigureAwait(false);

            AuthToken = result.Token;

            return(result);
        }
 private Task <T> PostAnsible <T>(string authenticationToken, string endpoint, object dataToSend)
 {
     SetAutehnticationToken(authenticationToken);
     return(CircuitBreakerHttpClient.Post <T>(AnsibleTowerInstance.CircuitBreakerName, endpoint, dataToSend, MediaType.ApplicationJson, GetAuthorizationHeaders(), true));
 }