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);
         }
     }
 }
        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);
                }
            }
        }
Ejemplo n.º 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);
                }
            }
        }
        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;
                }
            }
        }
Ejemplo n.º 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;
                }
            }
        }
 internal PerformanceCounterActionMapping(PerformanceCounterAction action, PerformanceCounterOperation operation)
 {
     this.Operation = operation;
     this.Action = action;
 }
        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;
                }
            }
        }
        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;
                }
            }
        }
Ejemplo n.º 10
0
 internal PerformanceCounterActionMapping(PerformanceCounterAction action, PerformanceCounterOperation operation)
 {
     this.Operation = operation;
     this.Action    = action;
 }