public Azure( AzureOptions options, LookupClientProvider dnsClient, ILogService log, ISettingsService settings) : base(dnsClient, log, settings) => _options = options;
public Azure(AzureOptions options, LookupClientProvider dnsClient, ProxyService proxyService, ILogService log, ISettingsService settings) : base(dnsClient, log, settings) { _options = options; _proxyService = proxyService; _recordSets = new Dictionary <string, Dictionary <string, RecordSet> >(); _resourceManagerEndpoint = new Uri(AzureEnvironments.ResourceManagerUrls[AzureEnvironments.AzureCloud]); if (!string.IsNullOrEmpty(options.AzureEnvironment)) { if (!AzureEnvironments.ResourceManagerUrls.TryGetValue(options.AzureEnvironment, out var endpoint)) { // Custom endpoint endpoint = options.AzureEnvironment; } try { _resourceManagerEndpoint = new Uri(endpoint); } catch (Exception ex) { _log.Error(ex, "Could not parse Azure endpoint url. Falling back to default."); } } }
public Azure(AzureOptions options, LookupClientProvider dnsClient, ProxyService proxyService, ILogService log, ISettingsService settings) : base(dnsClient, log, settings) { _options = options; _proxyService = proxyService; _recordSets = new Dictionary <string, Dictionary <string, RecordSet> >(); }
public Azure(AzureOptions options, DomainParseService domainParser, LookupClientProvider dnsClient, ILogService log, ISettingsService settings) : base(dnsClient, log, settings) { _options = options; _domainParser = domainParser; }
public Azure(AzureOptions options, LookupClientProvider dnsClient, SecretServiceManager ssm, IProxyService proxyService, ILogService log, ISettingsService settings) : base(dnsClient, log, settings) { _options = options; _proxyService = proxyService; _recordSets = new Dictionary <string, Dictionary <string, RecordSet?> >(); _helpers = new AzureHelpers(_options, log, ssm); }