24 lines
948 B
C#
24 lines
948 B
C#
|
|
using CMSMicroservice.Protobuf.Protos.UserOrder;
|
||
|
|
using MediatR;
|
||
|
|
using UserOrderContract = BackOffice.BFF.UserOrder.Protobuf.Protos.UserOrder.UserOrderContract;
|
||
|
|
|
||
|
|
namespace BackOffice.BFF.Application.UserOrderCQ.Queries.CalculateOrderPV;
|
||
|
|
|
||
|
|
public class CalculateOrderPVQueryHandler : IRequestHandler<CalculateOrderPVQuery, CalculateOrderPVResponse>
|
||
|
|
{
|
||
|
|
private readonly UserOrderContract.UserOrderContractClient _orderClient;
|
||
|
|
|
||
|
|
public CalculateOrderPVQueryHandler(UserOrderContract.UserOrderContractClient orderClient)
|
||
|
|
{
|
||
|
|
_orderClient = orderClient;
|
||
|
|
}
|
||
|
|
|
||
|
|
public async Task<CalculateOrderPVResponse> Handle(CalculateOrderPVQuery request, CancellationToken cancellationToken)
|
||
|
|
{
|
||
|
|
// TODO: پیادهسازی CalculateOrderPV
|
||
|
|
// 1. ایجاد gRPC Request و فراخوانی CMS
|
||
|
|
// 2. return response از CMS
|
||
|
|
throw new NotImplementedException("CalculateOrderPV needs implementation");
|
||
|
|
}
|
||
|
|
}
|