Ejemplo n.º 1
0
        public void InitializePlugin(object poderosa)
        {
            _instance = this;
            _protocolOptionsSupplier = new ProtocolOptionsSupplier();
            _passphraseCache         = new PassphraseCache();
            _poderosaLog             = new PoderosaLog(); // ((IPoderosaApplication)poderosa.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog;
            _netCategory             = new PoderosaLogCategoryImpl("Network");

            //new IConnectionResultEventHandler
            //new ISSHHostKeyVerifier

            //_connectionResultEventHandler = pm.CreateExtensionPoint(ProtocolsPluginConstants.RESULTEVENTHANDLER_EXTENSION, typeof(IConnectionResultEventHandler), this);
            //pm.CreateExtensionPoint(ProtocolsPluginConstants.HOSTKEYCHECKER_EXTENSION, typeof(ISSHHostKeyVerifier), ConsoleMain.Instance);
            //PEnv.Init((ICoreServices)poderosa.GetAdapter(typeof(ICoreServices)));

            //ProtocolsPlugin.Instance.PoderosaWorld.Culture.AddChangeListener("Protocols.strings");
        }
Ejemplo n.º 2
0
 public ProtocolUtil(ConsoleMain clsConMain)
 {
     _ConMain = clsConMain;
 }