Fix 8 design majors: optional ILogger in libraries, IndexFactoryService singleton threading, SharedMediaTypeRegistry, required TrackDto fields, GetExtensionType dedup, PagedResult zero-guard, TrackService null-return on failure

This commit is contained in:
Daniel Harvey
2026-05-17 16:57:03 -04:00
parent fc5b8de81a
commit 4bd3be2eb8
11 changed files with 99 additions and 68 deletions
+3 -2
View File
@@ -75,9 +75,10 @@ public class TrackService
return trackEntity;
}
catch (Exception ex)
catch (Exception ex) when (ex is not OperationCanceledException)
{
throw new InvalidOperationException($"Failed to add track: {ex.Message}", ex);
Console.WriteLine($"TrackService.AddTrackFromWavAsync failed: {ex.Message}");
return null;
}
}