Esempio n. 1
0
        public static Pin CreatePin(RemoteControlServiceMux mux, string name, string cfgData)
        {
            Pin pin = FindPinByName(name);

            if (pin != null)
            {
                pin.ConfigureAndStart(cfgData);
                return(pin);
            }

            throw new ConfigurationErrorsException(string.Format("The pin: {0} does not exist.", name));
        }
Esempio n. 2
0
        public static Pin CreatePin(RemoteControlServiceMux mux, string name, string cfgData)
        {
            Pin pin = FindPinByName(name);
            if (pin != null)
            {
                pin.ConfigureAndStart(cfgData);
                return pin;
            }

            throw new ConfigurationErrorsException(string.Format("The pin: {0} does not exist.", name));
        }