/// <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)); }
/// <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)); }
public async Task StartAudioFeed() { await audioFeed.Start().ConfigureAwait(false); OnPropertyChanged(nameof(IsAudioFeedActive)); }