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); }
public AcmeChallengeService(IAcmeRestApi acmeApi, ICachedRepository <AcmeDirectory> directoryCache, ICachedRepository <string> nonceCache) { _acmeApi = acmeApi; _directoryCache = directoryCache; _nonceCache = nonceCache; }