public virtual OcspStatusRequest GetOcspStatusRequest() { if (!CertificateStatusRequest.IsCorrectType(1, this.mRequest)) { throw new InvalidOperationException("'request' is not an OCSPStatusRequest"); } return((OcspStatusRequest)this.mRequest); }
public CertificateStatusRequest(byte statusType, object request) { if (!CertificateStatusRequest.IsCorrectType(statusType, request)) { throw new ArgumentException("not an instance of the correct type", "request"); } this.mStatusType = statusType; this.mRequest = request; }