Refactor CartService to use async methods for cart operations and integrate gRPC for backend synchronization

This commit is contained in:
masoodafar-web
2025-11-20 20:10:17 +03:30
parent ddb47fda08
commit 30bac23114
7 changed files with 107 additions and 14 deletions

View File

@@ -10,6 +10,7 @@ using FrontOffice.BFF.Transaction.Protobuf.Protos.Transaction;
using FrontOffice.BFF.User.Protobuf.Protos.User;
using FrontOffice.BFF.UserAddress.Protobuf.Protos.UserAddress;
using FrontOffice.BFF.UserOrder.Protobuf.Protos.UserOrder;
using FrontOffice.BFF.ShopingCart.Protobuf.Protos.ShopingCart;
using FrontOffice.Main.Utilities;
namespace Microsoft.Extensions.DependencyInjection;
@@ -78,6 +79,7 @@ public static class ConfigureServices
// Products gRPC
services.AddScoped(CreateAuthenticatedClient<FrontOffice.BFF.Products.Protobuf.Protos.Products.ProductsContract.ProductsContractClient>);
services.AddScoped(CreateAuthenticatedClient<TransactionContract.TransactionContractClient>);
services.AddScoped(CreateAuthenticatedClient<ShopingCartContract.ShopingCartContractClient>);
return services;
}