Init
This commit is contained in:
23
Prefab.Shared/Catalog/ModuleClientHttp.cs
Normal file
23
Prefab.Shared/Catalog/ModuleClientHttp.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
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;
|
||||
}
|
||||
Reference in New Issue
Block a user