Beispiel #1
0
 private void mListenerEventSourceCreated(object sender, EventSourceCreatedEventArgs eventSource)
 {
     if (_onEventSourceCreated != null)
     {
         _onEventSourceCreated(eventSource.EventSource);
     }
 }
Beispiel #2
0
        private void OnEventSourceCreated(object sender, EventSourceCreatedEventArgs e)
        {
            var es = e.EventSource;

            if (es?.Guid == EventSourceGuid)
            {
                EnableEvents(es, Level, Keywords);
            }
        }
        private void OnEventSourceCreated(object sender, EventSourceCreatedEventArgs e)
        {
            var es = e.EventSource;

            if (es.Guid == _collector.EventSourceGuid)
            {
                EnableEvents(es, _collector.Level, _collector.Keywords);
                StartedReceivingEvents = true;
            }
        }
        private static void OnEventSourceCreated(object sender, EventSourceCreatedEventArgs e)
        {
            if (e.EventSource.Guid != TplEventSourceGuid)
            {
                return;
            }
            var eventListener = (EventListener)sender;

            eventListener.EnableEvents(e.EventSource, EventLevel.Informational,
                                       AsyncCausalityOperationKeyword | (EventKeywords)0x20000);
        }
Beispiel #5
0
        private void OnEventSourceCreated(object sender, EventSourceCreatedEventArgs e)
        {
            if (e.EventSource == null || !counterAdapters.ContainsKey(e.EventSource.Name))
            {
                return;
            }

            var args = new Dictionary <string, string>
            {
                ["EventCounterIntervalSec"] = refreshPeriodSeconds.ToString()
            };

            EnableEvents(e.EventSource, EventLevel.Verbose, EventKeywords.All, args);
        }
Beispiel #6
0
 private void mListenerEventSourceCreated(object sender, EventSourceCreatedEventArgs eventSource)
 {
     if (_onEventSourceCreated != null)
     {
         _onEventSourceCreated(eventSource.EventSource);
     }
 }