예제 #1
0
파일: Azure.cs 프로젝트: zuize47/win-acme
 public Azure(
     AzureOptions options,
     LookupClientProvider dnsClient,
     ILogService log,
     ISettingsService settings)
     : base(dnsClient, log, settings)
     => _options = options;
예제 #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.");
         }
     }
 }
예제 #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> >();
 }
예제 #4
0
 public Azure(AzureOptions options,
              DomainParseService domainParser,
              LookupClientProvider dnsClient,
              ILogService log,
              ISettingsService settings)
     : base(dnsClient, log, settings)
 {
     _options      = options;
     _domainParser = domainParser;
 }
예제 #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);
 }