public override void Terminate() { if (pluginHost != null) { pluginHost.PwGeneratorPool.Remove(pwGen.Uuid); pwGen = null; pluginHost = null; } }
public override bool Initialize(IPluginHost host) { if (host == null) { return(false); } pluginHost = host; pwGen = new MPAGen(host); pluginHost.PwGeneratorPool.Add(pwGen); return(true); }