public void Stop(string jobId, RowPerformanceTaskNames PerformanceTaskName, int position) { if (!EyediaCoreConfigurationSection.CurrentConfig.Tracking.PerformanceCounter) { return; } PerformanceTaskInformation PerformanceTaskInfo = GetPerformanceTaskSubPerformanceTask(GetPerformanceTask(jobId), PerformanceTaskName, position); if (PerformanceTaskInfo == null) { return; } PerformanceTaskInfo.Stop(); }
public void Stop(string jobId, JobPerformanceTaskNames PerformanceTaskName) { if (!EyediaCoreConfigurationSection.CurrentConfig.Tracking.PerformanceCounter) { return; } PerformanceTask thePerformanceTask = GetPerformanceTask(jobId); PerformanceTaskInformation PerformanceTaskInfo = GetPerformanceTaskSubPerformanceTask(thePerformanceTask, PerformanceTaskName); if (PerformanceTaskInfo == null) { return; } PerformanceTaskInfo.Stop(); if (PerformanceTaskName == JobPerformanceTaskNames.WorkerFinalize) { thePerformanceTask.Stop(); } }