EtwStream
EtwStream copied to clipboard
FromEventSource overload not passing all arguments
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
}
}
. . .
}