コード例 #1
0
        public PoderosaLogViewerSession()
        {
            _document = new PoderosaLogDocument(this);
            IPoderosaLog log = ((IPoderosaApplication)PoderosaLogViewerPlugin.Instance.PoderosaWorld.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog;

            log.AddChangeListener(_document);
        }
コード例 #2
0
        public override void InitializePlugin(IPoderosaWorld poderosa) {
            base.InitializePlugin(poderosa);
            _instance = this;

            _protocolOptionsSupplier = new ProtocolOptionsSupplier();
            _passphraseCache = new PassphraseCache();
            _poderosaLog = ((IPoderosaApplication)poderosa.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog;
            _netCategory = new PoderosaLogCategoryImpl("Network");

            IPluginManager pm = poderosa.PluginManager;
            RegisterTerminalParameterSerializers(pm.FindExtensionPoint("org.poderosa.core.serializeElement"));

            _connectionResultEventHandler = pm.CreateExtensionPoint(ProtocolsPluginConstants.RESULTEVENTHANDLER_EXTENSION, typeof(IConnectionResultEventHandler), this);
            pm.CreateExtensionPoint(ProtocolsPluginConstants.HOSTKEYCHECKER_EXTENSION, typeof(ISSHHostKeyVerifier), ProtocolsPlugin.Instance);
            PEnv.Init((ICoreServices)poderosa.GetAdapter(typeof(ICoreServices)));
        }
コード例 #3
0
ファイル: ProtocolsPlugin.cs プロジェクト: sunxking/poderosa
        public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);
            _instance = this;

            _protocolOptionsSupplier = new ProtocolOptionsSupplier();
            _poderosaLog             = ((IPoderosaApplication)poderosa.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog;
            _netCategory             = new PoderosaLogCategoryImpl("Network");

            IPluginManager pm = poderosa.PluginManager;

            RegisterTerminalParameterSerializers(pm.FindExtensionPoint("org.poderosa.core.serializeElement"));

            _connectionResultEventHandler = pm.CreateExtensionPoint(ProtocolsPluginConstants.RESULTEVENTHANDLER_EXTENSION, typeof(IConnectionResultEventHandler), this);
            pm.CreateExtensionPoint(ProtocolsPluginConstants.HOSTKEYCHECKER_EXTENSION, typeof(ISSHHostKeyVerifier2), ProtocolsPlugin.Instance);
            PEnv.Init((ICoreServices)poderosa.GetAdapter(typeof(ICoreServices)));
        }
コード例 #4
0
ファイル: ConsoleMain.cs プロジェクト: EHerzog76/THB-Terminal
        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");
        }
コード例 #5
0
        public override void InitializePlugin(IPoderosaWorld poderosa)
        {
            base.InitializePlugin(poderosa);
            _instance = this;

            //GranadosをロードするパスをProtocolsの場所に
#if !MONOLITHIC
            AppDomain.CurrentDomain.SetupInformation.PrivateBinPath += ";" + ProtocolUtil.ProtocolsPluginHomeDir;
#endif

            _protocolOptionsSupplier = new ProtocolOptionsSupplier();
            _passphraseCache         = new PassphraseCache();
            _poderosaLog             = ((IPoderosaApplication)poderosa.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog;
            _netCategory             = new PoderosaLogCategoryImpl("Network");

            IPluginManager pm = poderosa.PluginManager;
            RegisterTerminalParameterSerializers(pm.FindExtensionPoint("org.poderosa.core.serializeElement"));

            _connectionResultEventHandler = pm.CreateExtensionPoint(ProtocolsPluginConstants.RESULTEVENTHANDLER_EXTENSION, typeof(IConnectionResultEventHandler), this);
            pm.CreateExtensionPoint(ProtocolsPluginConstants.HOSTKEYCHECKER_EXTENSION, typeof(ISSHHostKeyVerifier), ProtocolsPlugin.Instance);
            PEnv.Init((ICoreServices)poderosa.GetAdapter(typeof(ICoreServices)));
        }
コード例 #6
0
 public SSHEventTracer(string destination)
 {
     _log      = ((IPoderosaApplication)ProtocolsPlugin.Instance.PoderosaWorld.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog;
     _category = new PoderosaLogCategoryImpl(String.Format("SSH:{0}", destination));
 }
コード例 #7
0
ファイル: Connector.cs プロジェクト: FNKGino/poderosa
 public SSHEventTracer(string destination)
 {
     _log = ((IPoderosaApplication)ProtocolsPlugin.Instance.PoderosaWorld.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog;
     _category = new PoderosaLogCategoryImpl(String.Format("SSH:{0}", destination));
 }