Cédric Michel
Cédric Michel
Fixed with an another PR. https://github.com/dotnet-architecture/eShopOnWeb/pull/831/commits
Hi As refer here https://learn.microsoft.com/en-us/aspnet/core/fundamentals/minimal-apis?view=aspnetcore-7.0#special-types You can use Cancellation token directly manage by minimal api SDK. You can find an example here https://github.com/michelcedric/StructuredMinimalApi/blob/master/StructuredMinimalApi/Application/Todos/Commands/CreateTodo/CreateTodoEndpoint.cs#L24
The service https://github.com/dotnet-architecture/eShopOnWeb/blob/2414014bfa0f4d2021b5bc9061429a98d232f440/src/Web/Services/CachedCatalogViewModelService.cs#L12 use IMemoryCache https://learn.microsoft.com/en-us/aspnet/core/performance/caching/memory?view=aspnetcore-8.0 This one is registered in https://github.com/dotnet-architecture/eShopOnWeb/blob/2414014bfa0f4d2021b5bc9061429a98d232f440/src/Web/Program.cs#L66C1-L66C28 That add a Memory cache as in Singleton.