protected virtual void OnApplicationCertificateError(byte[] serverCertificate, ServiceResult result) { throw new ServiceResultException(result); }