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;
     }
 }