seperate redux ui impl into FrontendCore project

This commit is contained in:
LukeFZ
2025-07-29 20:39:12 +02:00
parent 62a27ee47f
commit 6583787d8f
21 changed files with 113 additions and 68 deletions

View File

@@ -0,0 +1,23 @@
namespace Il2CppInspector.Redux.FrontendCore;
public class LoadingSession : IAsyncDisposable
{
private readonly UiClient _client;
private LoadingSession(UiClient client)
{
_client = client;
}
public static async Task<LoadingSession> Start(UiClient client)
{
await client.BeginLoading();
return new LoadingSession(client);
}
public async ValueTask DisposeAsync()
{
await _client.FinishLoading();
GC.SuppressFinalize(this);
}
}