예제 #1
0
 public DigitalOcean(DigitalOceanOptions options, LookupClientProvider dnsClient, ILogService log, ISettingsService settings) : base(dnsClient, log, settings)
 {
     _doClient = new DigitalOceanClient(options.ApiToken.Value);
 }
예제 #2
0
 public DigitalOcean(
     DigitalOceanOptions options, LookupClientProvider dnsClient,
     SecretServiceManager ssm, ILogService log,
     ISettingsService settings) :
     base(dnsClient, log, settings)
     => _doClient = new DigitalOceanClient(ssm.EvaluateSecret(options.ApiToken));