Exemplo n.º 1
0
 /// <summary>
 /// Refreshes this descriptor
 /// </summary>
 /// <param name="queue"></param>
 public override void Refresh(ReadQueue queue)
 {
     base.Refresh(queue);
     var handle = queue.With<IDevice>(DeviceInstance, ObjectIdentifier);
     handle.Enqueue(dev => dev.DatabaseRevision,
         rev => this.DatabaseRevision = (byte)rev,
         err => this.DatabaseRevision = null);
 }
Exemplo n.º 2
0
        /// <summary>
        /// Refreshes this descriptor
        /// </summary>
        /// <param name="queue"></param>
        public override void Refresh(ReadQueue queue)
        {
            base.Refresh(queue);
            var handle = queue.With <IDevice>(DeviceInstance, ObjectIdentifier);

            handle.Enqueue(dev => dev.DatabaseRevision,
                           rev => this.DatabaseRevision = (byte)rev,
                           err => this.DatabaseRevision = null);
        }
Exemplo n.º 3
0
        /// <summary>
        /// Refresh the descriptor
        /// </summary>
        /// <param name="queue">The read queue</param>
        public virtual void Refresh(ReadQueue queue)
        {
            var handle = queue.With <INamedObject>(DeviceInstance, ObjectIdentifier);

            handle.Enqueue(obj => obj.ObjectName, name => this.Name = name);
        }