public void DeInitPlugin() { KaptureConfig.ConfigManager.SaveSettings(); _aetherbridge.LogLineCaptured -= ParseLootEvents; _aetherbridge.DeInit(); KaptureConfig?.DeInit(); _logger.DeInit(); PluginService.GetInstance().DeInit(); _httpClient.Dispose(); _pluginStatus.Text = PluginConstants.PluginStatusDisabled; }
public void DeInitPlugin() { _discordTimer.Close(); _discordQueue.Clear(); _discordTimer.Elapsed -= SendToDiscord; _httpTimer.Close(); _httpQueue.Clear(); _httpTimer.Elapsed -= SendToHTTP; _kaptureConfig.ConfigManager.SaveSettings(); _kaptureData.LogLineCaptured -= HandleLootEvent; _kaptureData.DeInit(); _kaptureConfig?.DeInit(); _httpClient.Dispose(); _pluginStatus.Text = PluginConstants.PluginStatusDisabled; _basePresenter.DeInit(); }