Ejemplo n.º 1
0
 public async Task<GetStatusResponse> Handle(GetStatusRequest request, CancellationToken cancellationToken)
 {
     var errorMessage = string.Empty;
     try
     {
         var response = await _infoServiceWrapper.GetStatus1(request.AccountId, request.Area, null, null);
     }
     catch (Exception ex)
     {
         errorMessage = ex.Message;
     }
     return await Task.FromResult(new GetStatusResponse
     {
         IsServiceCallSuccess = string.IsNullOrEmpty(errorMessage) ? true : false,
         ErrorMessage = errorMessage
     });
 }