Доработано сохранение состояния
All checks were successful
CI / build-test (push) Successful in 32s

This commit is contained in:
2025-12-05 13:45:38 +03:00
parent e6e5459280
commit 7f81ca85b8
4 changed files with 17 additions and 3 deletions

View File

@@ -19,6 +19,10 @@ public sealed class InMemoryStateStorage : IStateStorage
/// <inheritdoc />
public Task SetAsync<T>(CompositeSessionKey session, string key, T state, CancellationToken ct)
{
if (!_store.ContainsKey(session))
{
_store[session] = new();
}
_store[session][key] = state!;
return Task.CompletedTask;
}