Ejemplo n.º 1
0
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            Instance instance = new Instance(_engine, Ice.SSLEndpointType.value, "ssl");

            facade.addEndpointFactory(new EndpointFactoryI(instance, Ice.TCPEndpointType.value));
        }
Ejemplo n.º 2
0
        internal Plugin(Communicator communicator)
        {
            IceInternal.ITransportPluginFacade facade = IceInternal.Util.GetTransportPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            var instance = new Instance(_engine, EndpointType.SSL, "ssl");

            facade.AddEndpointFactory(new EndpointFactoryI(instance, EndpointType.TCP));
        }
Ejemplo n.º 3
0
        internal Plugin(Communicator communicator)
        {
            IceInternal.IProtocolPluginFacade facade = IceInternal.Util.GetProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            var instance = new Instance(_engine, SSLEndpointType.Value, "ssl");

            facade.AddEndpointFactory(new EndpointFactoryI(instance, TCPEndpointType.Value));
        }
Ejemplo n.º 4
0
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // Register the endpoint factory. We have to do this now, rather than
            // in initialize, because the communicator may need to interpret
            // proxies before the plug-in is fully initialized.
            //
            EndpointFactoryI factory  = new EndpointFactoryI(new Instance(_engine, IceSSL.EndpointType.value, "ssl"));
            facade.addEndpointFactory(factory);
        }
Ejemplo n.º 5
0
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // Register the endpoint factory. We have to do this now, rather than
            // in initialize, because the communicator may need to interpret
            // proxies before the plug-in is fully initialized.
            //
            EndpointFactoryI factory = new EndpointFactoryI(new Instance(_engine, IceSSL.EndpointType.value, "ssl"));

            facade.addEndpointFactory(factory);
        }
Ejemplo n.º 6
0
        public PluginI(Ice.Communicator communicator)
        {
            IceInternal.ProtocolPluginFacade facade = IceInternal.Util.getProtocolPluginFacade(communicator);

            _engine = new SSLEngine(facade);

            //
            // SSL based on TCP
            //
            IceInternal.EndpointFactory tcp = facade.getEndpointFactory(Ice.TCPEndpointType.value);
            if(tcp != null)
            {
                Instance instance = new Instance(_engine, Ice.SSLEndpointType.value, "ssl");
                facade.addEndpointFactory(new EndpointFactoryI(instance, tcp.clone(instance, null)));
            }
        }
Ejemplo n.º 7
0
 internal Instance(SSLEngine engine, short type, string protocol) :
     base(engine.communicator(), type, protocol, true)
 {
     _engine = engine;
 }
Ejemplo n.º 8
0
 internal Instance(SSLEngine engine, Ice.EndpointType type, string transport)
     : base(engine.Communicator(), type, transport, true) => _engine = engine;
Ejemplo n.º 9
0
 internal Instance(SSLEngine engine, short type, string protocol)
     : base(engine.communicator(), type, protocol, true)
 {
     _engine = engine;
 }