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