Пример #1
0
        public SSLClientEndPoint(string hostname, int port, string serverCommunicationName, string serverEnvironment, string pathToCertificate, string certificatePassword)
        {
            mllpClient = new SimpleMLLPClient(hostname, port);

            // Add client certificate authentication if needed
            if (!string.IsNullOrEmpty(pathToCertificate) && !string.IsNullOrEmpty(certificatePassword))
                mllpClient.AddCertificate(pathToCertificate, certificatePassword);
            mllpClient.EnableSsl();

            ServerCommunicationName = serverCommunicationName;
            ServerEnvironment = serverEnvironment;
        }
Пример #2
0
 public MLLPClientEndPoint(string hostname, int port, string serverCommunicationName, string serverEnvironment)
 {
     mllpClient = new SimpleMLLPClient(hostname, port);
     ServerCommunicationName = serverCommunicationName;
     ServerEnvironment = serverEnvironment;
 }