Fix 9 design majors: ITrackService interface, IsDescending, ArrayPool base, CliUtils, sort sentinel cleanup, content controller via TrackService, Skip property
This commit is contained in:
@@ -225,6 +225,9 @@ public class AudioInteropService : IAsyncDisposable
|
||||
return await InvokeJsAsync<AudioOperationResult>("DeepDrftAudio.disposePlayer", playerId);
|
||||
}
|
||||
|
||||
// TODO: The typeof(T) switch below requires updating whenever a new result type is added.
|
||||
// Consider introducing a shared marker interface (e.g. IAudioResult with a static factory
|
||||
// method) so InvokeJsAsync can construct the failure result generically without a type switch.
|
||||
private async Task<T> InvokeJsAsync<T>(string identifier, params object[] args)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user