public void DisableInterface(string domain) { if (Interfaces.ContainsKey(domain)) { MIGInterface migInterface = Interfaces[domain]; migInterface.Disconnect(); } }
public static void SetOption(this MIGInterface iface, string option, string value) { var opt = iface.GetOption(option); if (opt != null) { iface.Disconnect(); opt.Value = value; iface.Connect(); } }
public MIGInterface DisableInterface(string domain) { MIGInterface migInterface = null; if (Interfaces.ContainsKey(domain)) { migInterface = Interfaces[domain]; migInterface.IsEnabled = false; migInterface.Disconnect(); } return(migInterface); }
public static void SetOption(this MIGInterface iface, string option, string value) { var opt = iface.GetOption(option); if (opt == null) { opt = new MIGServiceConfiguration.Interface.Option() { Name = option }; iface.Options.Add(opt); } iface.Disconnect(); opt.Value = value; iface.Connect(); }