Exemplo n.º 1
0
        /// <summary>
        /// Starts the nav map feed.  The feed will run in a background thread and raise the <see cref="LatestNavMap" /> event for each map change.  It will
        /// also update the <see cref="LatestNavMap" /> property.
        /// </summary>
        /// <param name="frequency">The navmap polling frequency.</param>
        /// <returns>A task that represents the asynchronous operation.</returns>
        public async Task StartFeed(float frequency = 0.5f)
        {
            Frequency = frequency;
            await navMapFeed.Start().ConfigureAwait(false);

            OnPropertyChanged(nameof(IsFeedActive));
        }
Exemplo n.º 2
0
        /// <summary>
        /// Starts the event processing
        /// </summary>
        /// <returns>A task that represents the asynchronous operation.</returns>
        /// <exception cref="InvalidOperationException">The camera feed has already been started.</exception>
        internal async Task Start()
        {
            await eventFeed.Start().ConfigureAwait(false);

            OnPropertyChanged(nameof(IsProccessingEvents));
        }
Exemplo n.º 3
0
        public async Task StartAudioFeed()
        {
            await audioFeed.Start().ConfigureAwait(false);

            OnPropertyChanged(nameof(IsAudioFeedActive));
        }