コード例 #1
0
        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);
        }
コード例 #2
0
        protected override async Task ProcessRecordAsync(CancellationToken cancellationToken)
        {
            var dnsRecords = await _Wrapper.BeginOrderAsync(Domains, IgnoreWildcardWarning);

            WriteObject(dnsRecords);

            _Wrapper = null;
        }
コード例 #3
0
        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);
        }
コード例 #4
0
        protected override async Task ProcessRecordAsync(CancellationToken cancellationToken)
        {
            await _Wrapper.OrderAsync(Domains, IgnoreWildcardWarning);

            _Wrapper = null;
        }
コード例 #5
0
        protected override async Task ProcessRecordAsync(CancellationToken cancellationToken)
        {
            await _Wrapper.ResumeOrderAsync();

            _Wrapper = null;
        }