mcp
mcp copied to clipboard
[BUG] ICosmosService should implement IAsyncDisposable instead of IDisposable
Describe the bug
CosmosService.Dispose is currently an async void which is an anti-pattern since the work cannot be awaited on by callers. The async code is needed for its cache clearing.
Expected behavior
ICosmosService should implement IAsyncDisposable instead of IDisposable
Actual behavior
CosmosService.Dispose is currently an async void which is an anti-pattern since the work cannot be awaited on by callers. The async code is needed for its cache clearing.
Reproduction Steps
None
Environment
No response
@anuchandy can you help drive this with our Cosmos friends