private void RunningTaskFinishCheck() { if (_runningTask != null) { if (_runningTask.Status == TaskStatus.RanToCompletion || _runningTask.Status == TaskStatus.Canceled || _runningTask.Status == TaskStatus.Faulted) { _logger.ActionFinish(_runningAction); _runningAction = null; _runningTask = null; } } }