Ejemplo n.º 1
0
        public ProtoacmeClient(IAcmeRestApi acmeApi)
        {
            _acmeApi = acmeApi;

            _directoryCache = new CachedRepository <AcmeDirectory>(GetDirectory);
            _nonceCache     = new CachedRepository <string>(GetNewNonce);

            _accountService     = new AcmeAccountService(_acmeApi, _directoryCache, _nonceCache);
            _certificateService = new AcmeCertificateService(_acmeApi, _directoryCache, _nonceCache);
            _challengeService   = new AcmeChallengeService(_acmeApi, _directoryCache, _nonceCache);
        }
Ejemplo n.º 2
0
 public AcmeChallengeService(IAcmeRestApi acmeApi, ICachedRepository <AcmeDirectory> directoryCache, ICachedRepository <string> nonceCache)
 {
     _acmeApi        = acmeApi;
     _directoryCache = directoryCache;
     _nonceCache     = nonceCache;
 }