public static void SetOption(this MigInterface iface, string option, string value) { MigService.Log.Trace("{0}: {1}={2}", iface.GetDomain(), option, value); var opt = iface.GetOption(option); if (opt == null) { opt = new Option(option); iface.Options.Add(opt); } opt.Value = value; iface.OnSetOption(opt); }