Доработан стартер адаптеров
All checks were successful
CI / build-test (push) Successful in 33s
Release / pack-and-publish (release) Successful in 38s

This commit is contained in:
2025-12-05 18:06:12 +03:00
parent 3b57f76579
commit a94327f0c8
12 changed files with 133 additions and 43 deletions

View File

@@ -31,6 +31,7 @@ public sealed class InMemoryStateStorage : IStateStorage
public Task<bool> RemoveAsync(CompositeSessionKey session, string key, CancellationToken ct)
=> Task.FromResult(_store.TryGetValue(session, out var dict) ? dict.TryRemove(key, out _) : true);
/// <inheritdoc />
public Task<bool> ClearAsync(CompositeSessionKey session, CancellationToken ct)
=> Task.FromResult(_store.TryRemove(session, out _));
}