Microsoft.Protocols.TestSuites.MS_OXORULE.MS_OXWOOFSUTControlAdapter.AcceptServerCertificate C# (CSharp) Method

AcceptServerCertificate() private method

If the SOAP over HTTPS is used as transport, the adapter uses this function to avoid closing base connection. Local client will accept any valid server certificate after executing this function.
private AcceptServerCertificate ( ) : void
return void
        private void AcceptServerCertificate()
        {
            ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(ValidateServerCertificate);
        }
    }