public void StopRecording() { if (!IsRecording) { throw new InvalidOperationException("Recording already stopped."); } _currentSession.GroupFinished -= OnGroupFinished; _currentSession.Dispose(); _currentSession = null; }
public void StartRecording() { if (IsRecording) { throw new InvalidOperationException("Recording already started."); } _currentSession = new RecordingSession( SettingProvider.TempFolder, _spotifyProcessManager, SettingProvider.SongClassificationInfo, SettingProvider.SongRefreshInterval, _logger ); _currentSession.GroupFinished += OnGroupFinished; }