示例#1
0
 public ActionsQueue(Action <Exception> onException, ExecutionTimeStatsCollector etscNullable = null)
 {
     if (onException == null)
     {
         throw new ArgumentNullException(nameof(onException));
     }
     _onException  = onException;
     _etscNullable = etscNullable;
 }
示例#2
0
        public ExecutionTimeTracker(ExecutionTimeStatsCollector etsc, string actionVisibleId, Action <string> writeToLog, Action <string> writeToLogNewMaximum)
        {
            _writeToLog           = writeToLog;
            _writeToLogNewMaximum = writeToLogNewMaximum;
            _actionVisibleId      = actionVisibleId;
            _etsc = etsc;
            _sw   = Stopwatch.StartNew();

            _writeToLog?.Invoke($"started tracker {actionVisibleId}");
        }