示例#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)
         };
 }
示例#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);
 }
示例#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);
 }
示例#9
0
 /// <summary/>
 /// <param name="counterNames"/>
 /// <exclude/>
 protected DataServiceEvent(string[] counterNames)
 {
     Message = string.Empty;
     InternalEvent = new InstrumentedEvent(SR.CounterCategory, counterNames, true);
 }
示例#10
0
 /// <summary>
 /// Default constructor.
 /// </summary>
 protected LoggingServiceEvent()
 {
     this.eventMessage = string.Empty;
     this.internalEvent = null;
 }
示例#11
0
 /// <summary/>
 /// <exclude/>
 protected CachingServiceEvent(string[] counterNames, EventLogIdentifier[] eventLogIdentifiers)
     : this()
 {
     internalEvent = new InstrumentedEvent(
         SR.CachingInstrumentationCounterCategory,
         counterNames,
         true,
         SR.CachingInstrumentationEventSource,
         eventLogIdentifiers);
 }
示例#12
0
 /// <summary/>
 /// <exclude/>
 protected CachingServiceEvent()
 {
     eventMessage = string.Empty;
     internalEvent = null;
 }
示例#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);
 }
示例#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);
 }