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"); }
public ProtocolUtil(ConsoleMain clsConMain) { _ConMain = clsConMain; }