Skip to content

Conversation

@eneshoxha
Copy link
Contributor

Add async support to data store interfaces and refactor

Refactor IDataStore into its own file for better modularity. Introduce IAsyncDataStore with async methods like GetAsync, PutAsync, and RemoveAsync, including IAsyncEnumerable support for .NET Standard 2.1+ and .NET Core 3.0+.

Update InMemoryStateStore to implement IAsyncDataStore, adding async methods for key-value operations. Improve input validation in the constructor.

Reorganize namespaces and add conditional compilation for framework-specific features. These changes enhance scalability, modernize the API, and improve maintainability.

Add async support to data store interfaces and refactor

Refactor `IDataStore` into its own file for better modularity.
Introduce `IAsyncDataStore` with async methods like `GetAsync`,
`PutAsync`, and `RemoveAsync`, including `IAsyncEnumerable`
support for .NET Standard 2.1+ and .NET Core 3.0+.

Update `InMemoryStateStore` to implement `IAsyncDataStore`,
adding async methods for key-value operations. Improve input
validation in the constructor.

Reorganize namespaces and add conditional compilation for
framework-specific features. These changes enhance scalability,
modernize the API, and improve maintainability.
@eneshoxha eneshoxha added this to the Cortex v2.2 milestone Nov 15, 2025
@eneshoxha eneshoxha self-assigned this Nov 15, 2025
@eneshoxha eneshoxha added enhancement New feature or request feature This label is in use for minor version increments labels Nov 15, 2025
@eneshoxha eneshoxha linked an issue Nov 15, 2025 that may be closed by this pull request
@eneshoxha eneshoxha merged commit cf57285 into v2.2/release Nov 15, 2025
@eneshoxha eneshoxha deleted the v2/feature/158 branch November 15, 2025 19:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request feature This label is in use for minor version increments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature]: Add Async/Await support in Cortex.States

2 participants