Files
prefab-page-detail/Prefab.Shared/Catalog/ModuleClientHttp.cs
2025-10-27 17:39:18 -04:00

24 lines
999 B
C#

using Prefab.Shared.Catalog.Categories;
using Prefab.Shared.Catalog.Products;
namespace Prefab.Shared.Catalog;
/// <summary>
/// Provides HTTP-based access to module-related operations, exposing product and category management functionality
/// through their respective clients.
/// </summary>
/// <param name="categoryClient">The category client used to perform category-related operations. Cannot be null.</param>
/// <param name="productClient">The product client used to retrieve product configuration. Cannot be null.</param>
/// <param name="priceQuoteClient">The client used to request price quotations. Cannot be null.</param>
public sealed class ModuleClientHttp(
ICategoryClient categoryClient,
IProductClient productClient,
IPriceQuoteClient priceQuoteClient) : IModuleClient
{
public ICategoryClient Category { get; } = categoryClient;
public IProductClient Product { get; } = productClient;
public IPriceQuoteClient PriceQuote { get; } = priceQuoteClient;
}