private async Task CheckForSourceSubscribers() { if (!_testPatternEncoder.HasEncodedVideoSubscribers()) { _logger.LogInformation("Pausing test pattern video source."); await _testPatternSource.PauseVideo(); } if (!_musicSource.HasEncodedAudioSubscribers()) { _logger.LogInformation("Pausing music audio source."); await _musicSource.PauseAudio(); } if (!_maxSource.HasEncodedVideoSubscribers()) { _logger.LogInformation("Pausing mp4 file source."); await _maxSource.Pause(); } }