public CertificateContext(SessionContext baseContext, ICertificate certificate)
     : base(baseContext)
 {
     Certificate = certificate ?? throw new ArgumentNullException(nameof(certificate));
 }
 public TrustContext(SessionContext baseContext, ITrust trust)
     : base(baseContext)
 {
     Trust = trust ?? throw new ArgumentNullException(nameof(trust));
 }