public ConsoleMain() { //_instance = this; _protocolOptionsSupplier = new ProtocolOptions(""); _protocolOptionsSupplier.DefineItems(); _passphraseCache = new PassphraseCache(); //_poderosaLog = new PoderosaLog(); // ((IPoderosaApplication)poderosa.GetAdapter(typeof(IPoderosaApplication))).PoderosaLog; //_netCategory = new PoderosaLogCategoryImpl("Network"); //IConnectionResultEventHandler is not needed now //_connectionResultEventHandler = new KeyAgent(); //IConnectionResultEventHandler(); //new ISSHHostKeyVerifier }
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"); }
protected void Dispose(bool disposing) { if (!this.disposed) { if (disposing) { if (_passphraseCache != null) { _passphraseCache = null; } if (_protocolOptionsSupplier != null) { _protocolOptionsSupplier = null; } } //free unmanaged objects //AdditionalCleanup(); this.disposed = true; } }