private async Task <GrpcShipmentDetail> GetBoundryShipmentDetails()
        {
            var request = new GrpcGetShipmentDetailReq()
            {
                AccountId = AccountId, ShipmentId = ShipmentId
            };
            var shipmentDetails = await MercadoLivreClient.GetShipmentDetail(request);

            return(shipmentDetails);
        }
Exemplo n.º 2
0
 public override async Task <GrpcShipmentDetail> GetShipmentDetail(GrpcGetShipmentDetailReq request, ServerCallContext context)
 {
     try
     {
         return(await MainController.GetShipmentDetails(request));
     }
     catch (Exception e)
     {
         throw HandleException(e);
     }
 }
Exemplo n.º 3
0
 public static async Task <GrpcShipmentDetail> GetShipmentDetail(GrpcGetShipmentDetailReq request)
 {
     try
     {
         return(await Client.GetShipmentDetailAsync(request));
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 4
0
        public static async Task <GrpcShipmentDetail> GetShipmentDetails(GrpcGetShipmentDetailReq grpcRequest)
        {
            try
            {
                var accountId  = grpcRequest.AccountId;
                var shipmentId = grpcRequest.ShipmentId;
                var json       = await ShipmentUseCases.GetDetails.Execute(accountId, shipmentId);

                return(ShipmentDetailPresenter.Present(json));
            }
            catch (Exception)
            {
                throw;
            }
        }