Files
TuneRipper/TuneRipper.Api/Services/ISessionService.cs
T
Michal Vrba 879fbd4a53 Lazily create session directories on first MP3 save
Session directories are now created only when the first MP3 file is saved, not at session creation. Added EnsureSessionDirectoryExists to ISessionService and SessionService to handle this logic. Updated VideoService to call this method before saving files. Cleanup now logs when no directory exists for expired sessions.
2025-12-14 16:39:00 +01:00

11 lines
339 B
C#

namespace TuneRipper.Api.Services;
public interface ISessionService
{
string CreateSession();
string GetOrCreateSession(string? sessionId);
bool IsValidSession(string sessionId);
void CleanupExpiredSessions();
string GetSessionDownloadsPath(string sessionId);
void EnsureSessionDirectoryExists(string sessionId);
}