/// <summary>
 /// Initializes a new instance of the <see cref="SetChannelProperty"/> class.
 /// </summary>
 public SetChannelProperty()
 {
     implementation = new InternalSetSubObjectPropertyCmdlet <Channel, ChannelParameter, ChannelProperty>(
         this,
         "Sensor",
         "Channel",
         (p, v) => new ChannelParameter(p, v),
         (c, p) => client.SetChannelProperty(c, p),
         (c, p) => client.SetChannelProperty(c, p),
         (o, s, p) => client.SetChannelProperty(o, s, p),
         e => ObjectPropertyParser.GetPropertyInfoViaPropertyParameter <Channel>(e).Property.PropertyType
         );
 }
示例#2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="SetNotificationTriggerProperty"/> class.
        /// </summary>
        public SetNotificationTriggerProperty()
        {
            implementation = new InternalSetSubObjectPropertyCmdlet <NotificationTrigger, TriggerParameter, TriggerProperty>(
                this,
                "Object",
                "Notification Trigger",
                CreateTriggerParameter,
                (t, p) => client.SetTriggerProperty(t, p),
                (t, p) => client.SetTriggerProperty(t, p),
                (o, s, p) => client.SetTriggerProperty(o, s, p),
                e => TriggerParameterParser.GetPropertyType((TriggerProperty)e)
                );

            parameterParser = new TriggerParameterParser(client);
        }