private void Notify(PerformanceCounterAction action, WorkflowExecutor executor)
 {
     List<PerformanceCounterStatement> list;
     if (this.m_actionStatements.TryGetValue(action, out list))
     {
         foreach (PerformanceCounterStatement statement in list)
         {
             this.NotifyCounter(action, statement, executor);
         }
     }
 }
コード例 #2
0
        private void Notify(PerformanceCounterAction action, WorkflowExecutor executor)
        {
            List <PerformanceCounterStatement> list;

            if (this.m_actionStatements.TryGetValue(action, out list))
            {
                foreach (PerformanceCounterStatement statement in list)
                {
                    this.NotifyCounter(action, statement, executor);
                }
            }
        }
コード例 #3
0
        private void Notify(PerformanceCounterAction action, WorkflowExecutor executor)
        {
            System.Diagnostics.Debug.Assert(this.m_actionStatements != null);

            List <PerformanceCounterStatement> lStatements;

            if (this.m_actionStatements.TryGetValue(action, out lStatements))
            {
                foreach (PerformanceCounterStatement statement in lStatements)
                {
                    NotifyCounter(action, statement, executor);
                }
            }
        }
コード例 #4
0
        private void NotifyCounter(PerformanceCounterAction action, PerformanceCounterStatement statement, WorkflowExecutor executor)
        {
            foreach (PerformanceCounter counter in statement.Counters)
            {
                switch (statement.Operation)
                {
                case PerformanceCounterOperation.Increment:
                    counter.Increment();
                    break;

                case PerformanceCounterOperation.Decrement:
                    counter.Decrement();
                    break;
                }
            }
        }
コード例 #5
0
        private void NotifyCounter(PerformanceCounterAction action, PerformanceCounterStatement statement, WorkflowExecutor executor)
        {
            foreach (PerformanceCounter counter in statement.Counters)
            {
                switch (statement.Operation)
                {
                case PerformanceCounterOperation.Increment:
                    counter.Increment();
                    break;

                case PerformanceCounterOperation.Decrement:
                    counter.Decrement();
                    break;

                default:
                    System.Diagnostics.Debug.Assert(false, "Unknown performance counter operation.");
                    break;
                }
            }
        }
コード例 #6
0
 internal PerformanceCounterActionMapping(PerformanceCounterAction action, PerformanceCounterOperation operation)
 {
     this.Operation = operation;
     this.Action = action;
 }
コード例 #7
0
        private void NotifyCounter(PerformanceCounterAction action, PerformanceCounterStatement statement, WorkflowExecutor executor)
        {
            foreach (PerformanceCounter counter in statement.Counters)
            {
                switch (statement.Operation)
                {
                    case PerformanceCounterOperation.Increment:
                        counter.Increment();
                        break;

                    case PerformanceCounterOperation.Decrement:
                        counter.Decrement();
                        break;

                    default:
                        System.Diagnostics.Debug.Assert(false, "Unknown performance counter operation.");
                        break;
                }
            }
        }
コード例 #8
0
        private void Notify(PerformanceCounterAction action, WorkflowExecutor executor)
        {
            System.Diagnostics.Debug.Assert(this.m_actionStatements != null);

            List<PerformanceCounterStatement> lStatements;

            if (this.m_actionStatements.TryGetValue(action, out lStatements))
            {
                foreach (PerformanceCounterStatement statement in lStatements)
                {
                    NotifyCounter(action, statement, executor);
                }
            }
        }
        private void NotifyCounter(PerformanceCounterAction action, PerformanceCounterStatement statement, WorkflowExecutor executor)
        {
            foreach (PerformanceCounter counter in statement.Counters)
            {
                switch (statement.Operation)
                {
                    case PerformanceCounterOperation.Increment:
                        counter.Increment();
                        break;

                    case PerformanceCounterOperation.Decrement:
                        counter.Decrement();
                        break;
                }
            }
        }
コード例 #10
0
 internal PerformanceCounterActionMapping(PerformanceCounterAction action, PerformanceCounterOperation operation)
 {
     this.Operation = operation;
     this.Action    = action;
 }