/// <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); }
/// <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); }
/// <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); }