protected override async Task BeginProcessingAsync(CancellationToken cancellationToken) { //setup the wrapper with our account if (!string.IsNullOrWhiteSpace(Configuration.LetsEncryptServerUrl)) { _Wrapper = new CertesWrapper(Configuration.CertManager, new Uri(Configuration.LetsEncryptServerUrl), cancellationToken); } else { _Wrapper = new CertesWrapper(Configuration.CertManager, cancellationToken); } if (!string.IsNullOrWhiteSpace(Configuration.DistinguishedName)) { _Wrapper.CertDistinguishedName = Configuration.DistinguishedName; } if (Configuration.DnsCheckRetryLimit > 0) { _Wrapper.DnsCheckRetryLimit = Configuration.DnsCheckRetryLimit; } if (Configuration.DnsCheckRetryInterval > 0) { _Wrapper.DnsCheckRetryInterval = Configuration.DnsCheckRetryInterval; } if (Configuration.ValidationRetryLimit > 0) { _Wrapper.ValidationRetryLimit = Configuration.ValidationRetryLimit; } if (Configuration.ValidationRetryInterval > 0) { _Wrapper.ValidationRetryInterval = Configuration.ValidationRetryInterval; } await _Wrapper.AuthenticateAsync(Configuration.AccountEmail); }
protected override async Task BeginProcessingAsync(CancellationToken cancellationToken) { //setup the wrapper with our account if (!string.IsNullOrWhiteSpace(Configuration.LetsEncryptServerUrl)) { _Wrapper = new CertesWrapper(Configuration.CertManager, new Uri(Configuration.LetsEncryptServerUrl), cancellationToken); } else { _Wrapper = new CertesWrapper(Configuration.CertManager, cancellationToken); } if (cancellationToken.IsCancellationRequested) { return; } await _Wrapper.AuthenticateAsync(Configuration.AccountEmail); }