Exemplo n.º 1
0
        /// <summary/>
        /// <param name="message"/>
        /// <exclude/>
        /// <devdoc>
        /// Fires the internal Aux Event with the message to include in the event.
        /// </devdoc>
        protected void FireAuxEvent(string message)
        {
            if (internalEvent == null)
            {
                return;
            }

            internalEvent.FireEvent(message);
        }
Exemplo n.º 2
0
        /// <summary/>
        /// <param name="startTime"/>
        /// <exclude/>
        public static void Fire(DateTime startTime)
        {
            DateTime endTime  = DateTime.Now;
            TimeSpan duration = endTime.Subtract(startTime);

            long[] counterIncrements = new long[] { duration.Ticks };
            instrumentedEvent.FireEvent(string.Empty, timerCounters, counterIncrements);
        }
Exemplo n.º 3
0
 private void FireEvent(bool hitOrMiss)
 {
     long[] counterValues = null;
     if (hitOrMiss == true)
     {
         counterValues = new long[] { 1, 0, 1, 1 };
     }
     else
     {
         counterValues = new long[] { 0, 1, 1, 0 };
     }
     internalEvent.FireEvent(string.Empty, perfCounters, counterValues);
 }
Exemplo n.º 4
0
 /// <summary/>
 /// <exclude/>
 public static void Fire()
 {
     instrumentedEvent.FireEvent(string.Empty);
 }
Exemplo n.º 5
0
 /// <devdoc>
 /// Increment the # of TLEs Handled/Sec performance counter.
 /// </devdoc>
 /// <summary/>
 /// <exclude/>
 public static void Fire()
 {
     internalEvent.FireEvent(string.Empty);
 }