示例#1
0
        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();
        }
示例#2
0
 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();
 }