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); }
public AudioSourceContext(string audioSourceName) { Logger = new AudioSourceLogger(audioSourceName); }