public AzureAuthenticatorService(IAzurePlatformParameters azurePlatformParameters, IPlatformHttpClientHandler httpClientHandler, ILoggingService loggingService) { _azurePlatformParameters = azurePlatformParameters; _httpClient = httpClientHandler.CreateHandler(); _loggingService = loggingService; }
public static AzureAuthenticatorService GetAzureAuthenticator( IAzurePlatformParameters parameters = null, IPlatformHttpClientHandler httpHandler = null, ILoggingService loggingService = null ) { if (parameters == null) { parameters = new AzurePlatformParameters(); } if (httpHandler == null) { httpHandler = new IosHttpClientHandler(); } return(new AzureAuthenticatorService(parameters, httpHandler, loggingService)); }