Example #1
0
 public Azure(
     AzureOptions options,
     LookupClientProvider dnsClient,
     ILogService log,
     ISettingsService settings)
     : base(dnsClient, log, settings)
     => _options = options;
Example #2
0
 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.");
         }
     }
 }
Example #3
0
 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> >();
 }
Example #4
0
 public Azure(AzureOptions options,
              DomainParseService domainParser,
              LookupClientProvider dnsClient,
              ILogService log,
              ISettingsService settings)
     : base(dnsClient, log, settings)
 {
     _options      = options;
     _domainParser = domainParser;
 }
Example #5
0
 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);
 }