예제 #1
0
        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();
        }
예제 #2
0
        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();
            }
        }