示例#1
0
        /// <summary>
        /// Invoke the action synchronously
        /// </summary>
        /// <remarks>Blocks until the action has been processed
        /// on the device and sets any output arguments</remarks>
        /// <param name="aTrackCount"></param>
        /// <param name="aDuration"></param>
        /// <param name="aSeconds"></param>
        public void SyncTime(out uint aTrackCount, out uint aDuration, out uint aSeconds)
        {
            SyncTimeAvOpenhomeOrgTime1 sync = new SyncTimeAvOpenhomeOrgTime1(this);

            BeginTime(sync.AsyncComplete());
            sync.Wait();
            sync.ReportError();
            aTrackCount = sync.TrackCount();
            aDuration   = sync.Duration();
            aSeconds    = sync.Seconds();
        }
示例#2
0
 /// <summary>
 /// Invoke the action synchronously
 /// </summary>
 /// <remarks>Blocks until the action has been processed
 /// on the device and sets any output arguments</remarks>
 /// <param name="aTrackCount"></param>
 /// <param name="aDuration"></param>
 /// <param name="aSeconds"></param>
 public void SyncTime(out uint aTrackCount, out uint aDuration, out uint aSeconds)
 {
     SyncTimeAvOpenhomeOrgTime1 sync = new SyncTimeAvOpenhomeOrgTime1(this);
     BeginTime(sync.AsyncComplete());
     sync.Wait();
     sync.ReportError();
     aTrackCount = sync.TrackCount();
     aDuration = sync.Duration();
     aSeconds = sync.Seconds();
 }