Inheritance: TcpTransport
Exemple #1
0
        protected override ITransport DoCreateTransport(Uri location, Socket socket, IWireFormat wireFormat)
        {
            Tracer.Debug("Creating new instance of the SSL Transport.");
            SslTransport transport = new SslTransport(location, socket, wireFormat);

            if (this.sslProtocol == null)
            {
                this.sslProtocol = SslContext.GetCurrent().SslProtocol;
            }
            else
            {
                SslContext.GetCurrent().SslProtocol = this.sslProtocol;
            }
            Tracer.DebugFormat("SslProtocol: {0}", this.sslProtocol);

            transport.ClientCertSubject       = HttpUtility.UrlDecode(this.clientCertSubject);
            transport.ClientCertFilename      = this.clientCertFilename;
            transport.ClientCertPassword      = this.clientCertPassword;
            transport.BrokerCertFilename      = this.brokerCertFilename;
            transport.ServerName              = this.serverName;
            transport.KeyStoreLocation        = this.keyStoreLocation;
            transport.KeyStoreName            = this.keyStoreName;
            transport.AcceptInvalidBrokerCert = this.acceptInvalidBrokerCert;
            transport.SslProtocol             = this.sslProtocol;

            return(transport);
        }
        protected override ITransport DoCreateTransport(Uri location, Socket socket, IWireFormat wireFormat)
        {
            Tracer.Debug("Creating new instance of the SSL Transport.");
            SslTransport transport = new SslTransport(location, socket, wireFormat);

            transport.ClientCertSubject       = this.clientCertSubject;
            transport.ClientCertFilename      = this.clientCertFilename;
            transport.ClientCertPassword      = this.clientCertPassword;
            transport.ServerName              = this.serverName;
            transport.KeyStoreLocation        = this.keyStoreLocation;
            transport.KeyStoreName            = this.keyStoreName;
            transport.AcceptInvalidBrokerCert = this.acceptInvalidBrokerCert;

            return(transport);
        }
		protected override ITransport DoCreateTransport(Uri location, Socket socket, IWireFormat wireFormat )
		{
            Tracer.Debug("Creating new instance of the SSL Transport.");
			SslTransport transport = new SslTransport(location, socket, wireFormat);

            transport.ClientCertSubject = this.clientCertSubject;
            transport.ClientCertFilename = this.clientCertFilename;
            transport.ClientCertPassword = this.clientCertPassword;
            transport.ServerName = this.serverName;
            transport.KeyStoreLocation = this.keyStoreLocation;
            transport.KeyStoreName = this.keyStoreName;
            transport.AcceptInvalidBrokerCert = this.acceptInvalidBrokerCert;
            
            return transport;
		}