We have seen in the documentation that .NET delegates are not supported in progress.
Source: OpenEdge 11.7 Documentation
But is there another possible way to convert this line of C# code to working progress code ?
C# code:
Progress code:
What must be come there then in the IF ?
Source: OpenEdge 11.7 Documentation
But is there another possible way to convert this line of C# code to working progress code ?
C# code:
C#:
ldapConnection.SessionOptions.VerifyServerCertificate = new VerifyServerCertificateCallback((con, cert) => true);
Progress code:
Code:
IF (isSecure = TRUE) THEN DO:
ldapconn:SessionOptions:SecureSocketLayer = TRUE.
//ldapconn:SessionOptions:VerifyServerCertificate:SUBSCRIBE(THIS-OBJECT, 'CertificateCheck':U).
ldapconn:SessionOptions:VerifyServerCertificate = ?. // call to CertificateCheck
END.
METHOD PUBLIC LOGICAL CertificateCheck (INPUT connection AS LdapConnection, INPUT certificate AS X509Certificate):
RETURN TRUE.
END METHOD.
What must be come there then in the IF ?
Last edited: