public LatencyResponse ProcessLatency(LatencyRequest objRequest)
 {
     try
     {
         if (objRequest.LatencyType == null || objRequest.LatencyType == "DBInsertion")
         {
             objLatencyResponse.LatencyGrid = objclsDashboard.GetESB_Latency_DBInsertion(objRequest.DateTime);
             return(objLatencyResponse);
         }
         else
         {
             objLatencyResponse.LatencyGrid = objclsDashboard.GetLatencyData(objRequest.LatencyType, objRequest.DateTime);
             return(objLatencyResponse);
         }
     }
     catch (Exception)
     {
         return(objLatencyResponse);
     }
     finally
     {
         objLatencyResponse = null;
         objclsDashboard    = null;
     }
 }
 public LatencyResponse ProcessHA_ESBLatency(LatencyRequest objRequest)
 {
     try
     {
         {
             objLatencyResponse.LatencyGrid = objclsDashboard.Get_HA_ESBLatencyReport(objRequest.DateTime);
             return(objLatencyResponse);
         }
     }
     catch (Exception)
     {
         return(objLatencyResponse);
     }
     finally
     {
         objLatencyResponse = null;
         objclsDashboard    = null;
     }
 }
 public LatencyResponse ProcessESBNODESERVICELatency(LatencyRequest objRequest)
 {
     try
     {
         {
             objLatencyResponse.LatencyGrid = objclsDashboard.GetESBNODESERVICE_Latency_Report(objRequest.LatencyType, objRequest.DateTime);
             return(objLatencyResponse);
         }
     }
     catch (Exception)
     {
         return(objLatencyResponse);
     }
     finally
     {
         objLatencyResponse = null;
         objclsDashboard    = null;
     }
 }
Пример #4
0
        public LatencyResponse GetLatency()
        {
            var response = new LatencyResponse();

            try
            {
                //TODO: Llamada al API REST
                response.NumberOfSeconds = 60;
                response.Success         = true;
            }
            catch (Exception ex)
            {
                // En caso falle, el parametro Success es false
                response.Success      = false;
                response.ErrorMessage = ex.Message;
            }

            return(response);
        }
 public ESBLatencyResponse ProcessESBLatency(ESBLatencyRequest objRequest)
 {
     try
     {
         if (objRequest.LatencyType == null || objRequest.LatencyType == "ESBLatencyReport")
         {
             objESBLatencyResponse.ESBLatencyGrid = objclsDashboard.GetESB_Latency_Report(objRequest.Sdattime, objRequest.Edattime);
             return(objESBLatencyResponse);
         }
         return(objESBLatencyResponse);
     }
     catch (Exception)
     {
         return(objESBLatencyResponse);
     }
     finally
     {
         objLatencyResponse = null;
         objclsDashboard    = null;
     }
 }