EtwStream icon indicating copy to clipboard operation
EtwStream copied to clipboard

FromEventSource overload not passing all arguments

Open kwaclaw opened this issue 8 years ago • 0 comments

I noticed this as I was getting log events I did not want:

public static IObservable<EventWrittenEventArgs> FromEventSource(string eventSourceName, EventLevel level = EventLevel.Verbose, EventKeywords matchAnyKeyword = EventKeywords.None, IDictionary<string, string> arguments = null)
        {
            if (eventSourceName == null) throw new ArgumentNullException("eventSourceName");

            foreach (var item in EventSource.GetSources())
            {
                if (item.Name.Equals(eventSourceName, StringComparison.Ordinal))
                {
                    return FromEventSource(item, level);    <== should pass matchAnyKeyword  and arguments
                }
            }
            . . . 
        }

kwaclaw avatar May 24 '17 17:05 kwaclaw