public Engine(ICDR cdrFile, IOptions <SecretStuff> secrets, IService service) { this.cdrFile = cdrFile ?? throw new ArgumentNullException(nameof(cdrFile)); this.secrets = secrets.Value ?? throw new ArgumentNullException(nameof(secrets)); this.service = service ?? throw new ArgumentNullException(nameof(service)); }
public CDR(IOptions <SecretStuff> secrets) { this.secrets = secrets.Value; }