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