/// <summary> /// Releases all associated resources. /// </summary> /// <param name="disposing">Pass <c>true</c> if we're disposing, <c>false</c> if we're finalizing.</param> protected virtual void Dispose(bool disposing) { if (disposing) { Consul.Dispose(); Vault.Dispose(); Headend.Dispose(); GC.SuppressFinalize(this); } }
public PluginConfiguration() { lineup = new Headend() { Name = "", Id = "" }; username = ""; hashPassword = ""; zipCode = ""; headends = new List <Headend>(); TunerDefaultConfigurationsFields = TunerHostConfig.BuildDefaultForTunerHostsBuilders(); }
/// <summary> /// Handles the <b>Help</b> command. /// </summary> /// <param name="sender">The sender.</param> /// <param name="args">The arguments.</param> private async void OnHelpCommand(object sender, EventArgs args) { StartOperation(workingAnimation); try { var clientInfo = await Headend.GetClientInfoAsync(); NeonHelper.OpenBrowser(clientInfo.HelpUrl); } catch { StopFailedOperation(headendError); return; } finally { StopOperation(); } }