Esempio n. 1
0
 /// <devdoc>
 /// Creates a new ExceptionHandlingEvent object and instantiates an internal event
 /// with the specified counter names and event log ID's.
 /// </devdoc>
 /// <summary/>
 /// <param name="counterNames"/>
 /// <param name="eventLogIDs"/>
 /// <exclude/>
 protected ExceptionHandlingEvent(string[] counterNames, EventLogIdentifier[] eventLogIDs)
 {
     InternalEvent = new InstrumentedEvent(
         ExceptionHandledEvent.InstrumentationCounterCategory,
         counterNames,
         true,
         EventSourceName,
         eventLogIDs);
 }
        private CachingServiceItemTurnoverEvent(string[] counterNames)
        {
            InstrumentedEvent internalEvent;

            internalEvent = new InstrumentedEvent(SR.CachingInstrumentationCounterCategory,
                                                  counterNames,
                                                  true);

            turnOverInstances = internalEvent.GetPerformanceCounterInstances(SR.PerfCounterCacheTurnoverRate);
            totalEntriesInstances = internalEvent.GetPerformanceCounterInstances(SR.PerfCounterTotalCacheEntries);
        }
 private CachingServiceItemReadEvent(string[] counterNames)
 {
     internalEvent = new InstrumentedEvent(
         SR.CachingInstrumentationCounterCategory, counterNames, true);
     perfCounters = new PerformanceCounterInstances[]
         {
             internalEvent.GetPerformanceCounterInstances(SR.PerfCounterCacheHitsSec),
             internalEvent.GetPerformanceCounterInstances(SR.PerfCounterCacheMissesSec),
             internalEvent.GetPerformanceCounterInstances(SR.PerfCounterCacheAccessAttempts),
             internalEvent.GetPerformanceCounterInstances(SR.PerfCounterCacheHitRatio)
         };
 }
Esempio n. 4
0
 private SecurityCacheReadEvent(string[] counterNames)
 {
     internalEvent = new InstrumentedEvent(
         SR.InstrumentationCounterCategory, counterNames, true);
     perfCounters = new PerformanceCounterInstances[]
         {
             internalEvent.GetPerformanceCounterInstances(SecurityServiceEvent.Counters[(int)SecurityServiceEvent.CounterID.CacheHits].CounterName),
             internalEvent.GetPerformanceCounterInstances(SecurityServiceEvent.Counters[(int)SecurityServiceEvent.CounterID.CacheMisses].CounterName),
             internalEvent.GetPerformanceCounterInstances(SecurityServiceEvent.Counters[(int)SecurityServiceEvent.CounterID.TotalCacheReads].CounterName),
             internalEvent.GetPerformanceCounterInstances(SecurityServiceEvent.Counters[(int)SecurityServiceEvent.CounterID.CacheHitRatio].CounterName)
         };
 }
 /// <summary/>
 /// <param name="counterNames"/>
 /// <param name="eventLogIDs"/>
 /// <exclude/>
 protected SecurityCryptoServiceEvent(string[] counterNames, EventLogIdentifier[] eventLogIDs)
 {
     this.eventMessage = string.Empty;
     this.internalEvent = new InstrumentedEvent(
         SR.InstrumentationCounterCategory,
         counterNames,
         true,
         SR.InstrumentationEventSource,
         eventLogIDs);
 }
 /// <summary/>
 /// <exclude/>
 protected SecurityCryptoServiceEvent()
 {
     this.eventMessage = string.Empty;
     this.internalEvent = null;
 }
 /// <summary/>
 /// <param name="counterNames"/>
 /// <exclude/>
 protected SecurityCryptoServiceEvent(string[] counterNames)
 {
     this.eventMessage = string.Empty;
     this.internalEvent = new InstrumentedEvent(
         SR.InstrumentationCounterCategory,
         counterNames,
         true);
 }
Esempio n. 8
0
 /// <summary/>
 /// <param name="counterNames"/>
 /// <param name="eventLogIds"/>
 /// <exclude/>
 protected DataServiceEvent(string[] counterNames, EventLogIdentifier[] eventLogIds)
 {
     Message = string.Empty;
     InternalEvent = new InstrumentedEvent(SR.CounterCategory, counterNames, true, SR.EventSource, eventLogIds);
 }
Esempio n. 9
0
 /// <summary/>
 /// <param name="counterNames"/>
 /// <exclude/>
 protected DataServiceEvent(string[] counterNames)
 {
     Message = string.Empty;
     InternalEvent = new InstrumentedEvent(SR.CounterCategory, counterNames, true);
 }
Esempio n. 10
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 protected LoggingServiceEvent()
 {
     this.eventMessage = string.Empty;
     this.internalEvent = null;
 }
Esempio n. 11
0
 /// <summary/>
 /// <exclude/>
 protected CachingServiceEvent(string[] counterNames, EventLogIdentifier[] eventLogIdentifiers)
     : this()
 {
     internalEvent = new InstrumentedEvent(
         SR.CachingInstrumentationCounterCategory,
         counterNames,
         true,
         SR.CachingInstrumentationEventSource,
         eventLogIdentifiers);
 }
Esempio n. 12
0
 /// <summary/>
 /// <exclude/>
 protected CachingServiceEvent()
 {
     eventMessage = string.Empty;
     internalEvent = null;
 }
Esempio n. 13
0
 /// <summary/>
 /// <param name="counterNames"/>
 /// <exclude/>
 /// <devdoc>
 /// Factory method to create a new InstrumentedEvent based on the counterNames
 /// </devdoc>
 protected CachingServiceEvent(string[] counterNames)
     : this()
 {
     internalEvent = new InstrumentedEvent(
         SR.CachingInstrumentationCounterCategory,
         counterNames,
         true);
 }
Esempio n. 14
0
 /// <devdoc>
 /// Creates a new ExceptionHandlingEvent object and instantiates an internal event
 /// with the specified counter names.
 /// </devdoc>
 /// <summary/>
 /// <param name="counterNames"/>
 /// <exclude/>
 protected ExceptionHandlingEvent(string[] counterNames)
 {
     InternalEvent = new InstrumentedEvent(
         ExceptionHandledEvent.InstrumentationCounterCategory,
         counterNames,
         true);
 }