コード例 #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);
 }
コード例 #2
0
        private CachingServiceItemTurnoverEvent(string[] counterNames)
        {
            InstrumentedEvent internalEvent;

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

            turnOverInstances = internalEvent.GetPerformanceCounterInstances(SR.PerfCounterCacheTurnoverRate);
            totalEntriesInstances = internalEvent.GetPerformanceCounterInstances(SR.PerfCounterTotalCacheEntries);
        }
コード例 #3
0
 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)
         };
 }
コード例 #5
0
 /// <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);
 }
コード例 #6
0
 /// <summary/>
 /// <exclude/>
 protected SecurityCryptoServiceEvent()
 {
     this.eventMessage = string.Empty;
     this.internalEvent = null;
 }
コード例 #7
0
 /// <summary/>
 /// <param name="counterNames"/>
 /// <exclude/>
 protected SecurityCryptoServiceEvent(string[] counterNames)
 {
     this.eventMessage = string.Empty;
     this.internalEvent = new InstrumentedEvent(
         SR.InstrumentationCounterCategory,
         counterNames,
         true);
 }
コード例 #8
0
ファイル: DataServiceEvent.cs プロジェクト: bnantz/NCS-V1-1
 /// <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
ファイル: DataServiceEvent.cs プロジェクト: bnantz/NCS-V1-1
 /// <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);
 }