Refactored the cart service to add more telemetry

1. Added more telemetry around starting redis cache
2. Now if you don't specify redis cache address via command line
or environment variable, it will run with local cart (no redis).
This is useful for debugging purposes
This commit is contained in:
Simon Zeltser 2018-06-28 17:12:33 -07:00
parent 4e57b1e0aa
commit 4ac66b072a
5 changed files with 63 additions and 24 deletions

View file

@ -4,6 +4,8 @@ namespace cartservice.interfaces
{
internal interface ICartStore
{
Task InitializeAsync();
Task AddItemAsync(string userId, string productId, int quantity);
Task EmptyCartAsync(string userId);