Ejemplo n.º 1
0
        public SocketTransport(Endpoint endpoint, IConnectionConfiguration configuration, ILog log)
        {
            if (configuration?.SslConfiguration != null)
            {
                throw new ArgumentOutOfRangeException(nameof(configuration), "Does not support SslConfiguration");
            }

            _endpoint      = endpoint;
            _configuration = configuration;
            _log           = log;
            _socket        = new ReconnectingSocket(endpoint, configuration, log, true);
        }
Ejemplo n.º 2
0
        public SslTransport(Endpoint endpoint, IConnectionConfiguration configuration, ILog log)
        {
            if (configuration?.SslConfiguration == null)
            {
                throw new ArgumentOutOfRangeException(nameof(configuration), "Must have SslConfiguration set");
            }
            _sslConfiguration = configuration.SslConfiguration;

            _endpoint      = endpoint;
            _configuration = configuration;
            _log           = log;
            _socket        = new ReconnectingSocket(endpoint, configuration, log, true);
        }