Beispiel #1
0
        internal static void TxFlowed(EndpointDispatcher el, string operation)
        {
            if (null != el)
            {
                ServicePerformanceCountersBase sCounters = PerformanceCounters.GetServicePerformanceCounters(el.PerfCounterInstanceId);
                if (null != sCounters)
                {
                    sCounters.TxFlowed();
                }

                if (PerformanceCounters.Scope == PerformanceCounterScope.All)
                {
                    OperationPerformanceCountersBase oCounters = PerformanceCounters.GetOperationPerformanceCounters(el.PerfCounterInstanceId, operation);
                    if (null != oCounters)
                    {
                        oCounters.TxFlowed();
                    }

                    EndpointPerformanceCountersBase eCounters = PerformanceCounters.GetEndpointPerformanceCounters(el.PerfCounterInstanceId);
                    if (null != sCounters)
                    {
                        eCounters.TxFlowed();
                    }
                }
            }
        }
Beispiel #2
0
 internal static void TxFlowed(EndpointDispatcher el, string operation)
 {
     if (el != null)
     {
         ServicePerformanceCountersBase servicePerformanceCounters = GetServicePerformanceCounters(el.PerfCounterInstanceId);
         if (servicePerformanceCounters != null)
         {
             servicePerformanceCounters.TxFlowed();
         }
         if (Scope == PerformanceCounterScope.All)
         {
             OperationPerformanceCountersBase operationPerformanceCounters = GetOperationPerformanceCounters(el.PerfCounterInstanceId, operation);
             if (operationPerformanceCounters != null)
             {
                 operationPerformanceCounters.TxFlowed();
             }
             EndpointPerformanceCountersBase endpointPerformanceCounters = GetEndpointPerformanceCounters(el.PerfCounterInstanceId);
             if (servicePerformanceCounters != null)
             {
                 endpointPerformanceCounters.TxFlowed();
             }
         }
     }
 }