c# - Microsoft.Diagnostics.Tracing.EventSource not respecting EventListener enabled keywords for None -


i have event source derives eventsource, , event listener derives eventlistener.

i call event listener enableevents passing in eventkeywords parameter, listener gets called events no keywords.

is expected behaviour, , workaround there (apart inventing dummy keywords events?)

yes, expected behavior, partially covered here.

you can:

  • specify keywords events.
  • update eventlistener derived class handle events w/o keywords, e.g. have set 0.
  • use levels.

Comments