public FileWatcherMonitor()
        {
            Action <Exception> exceptionHandler = ex => OnExecutionException("CheckEngineStatus", ex);

            m_checkEngineStatus = new DelayedSynchronizedOperation(TryCheckEngineStatus, exceptionHandler);
            m_random            = new Random();
        }
Beispiel #2
0
        /// <summary>
        /// Creates a new instance of the <see cref="DynamicCalculator"/>.
        /// </summary>
        public DynamicCalculator()
        {
            m_latestMeasurements = new ImmediateMeasurements();
            m_latestMeasurements.RealTimeFunction = () => RealTime;

            m_variableNames     = new HashSet <string>();
            m_keyMapping        = new Dictionary <MeasurementKey, string>();
            m_nonAliasedTokens  = new SortedDictionary <int, string>();
            m_expressionContext = new ExpressionContext();

            m_timerOperation = new DelayedSynchronizedOperation(ProcessLatestMeasurements, ex => OnProcessException(MessageLevel.Error, ex));
        }