Esempio n. 1
0
        public bool Transfer(TimeInterval esp, EventSpacingResult esr)
        {
            if (esr == null)
            {
                return(true);
            }
            bool res = true;

            try
            {
                TimeIntervalResult lesr = new TimeIntervalResult();  // the deep copy from ES to TI follows
                countresults.Add(esp, (object)lesr);
                lesr.TransferRawResult(esr);
            }
            catch (OutOfMemoryException e)
            {
                esp.reason = "TimeInterval transfer " + e.Message;
                res        = false;
                logger?.TraceEvent(LogLevels.Error, 87409, esp.reason);
            }
            return(res);
        }
Esempio n. 2
0
 public bool Transfer(TimeInterval esp, EventSpacingResult esr)
 {
     if (esr == null)
         return true;
     bool res = true;
     try
     {
         TimeIntervalResult lesr = new TimeIntervalResult();  // the deep copy from ES to TI follows
         countresults.Add(esp, (object)lesr);
         lesr.TransferRawResult(esr);
     }
     catch (OutOfMemoryException e)
     {
         esp.reason = "TimeInterval transfer " + e.Message;
         res = false;
         logger.TraceEvent(LogLevels.Error, 87409, esp.reason);
     }
     return res;
 }