Пример #1
0
        public Task ActivateAsync(IAudioSourceContext context, CancellationToken cancellationToken = default(CancellationToken))
        {
            _logger = context.Logger;

            _checkSpotifyTimer = new Timer
            {
                Interval  = 100,
                AutoReset = false
            };
            _checkSpotifyTimer.Elapsed += CheckSpotifyTimerOnElapsed;
            _checkSpotifyTimer.Start();

            return(Task.CompletedTask);
        }
Пример #2
0
 public AudioSourceContext(string audioSourceName)
 {
     Logger = new AudioSourceLogger(audioSourceName);
 }