microsoft / referencesource

Source from the Microsoft .NET Reference Source that represent a subset of the .NET Framework
https://referencesource.microsoft.com/
MIT License
3.17k stars 1.27k forks source link

EventListener fails to EnableEvents on the Event Source in .NET framework #159

Closed poyadav2001 closed 2 years ago

poyadav2001 commented 2 years ago

We are trying to move our codebase from our custom implementation of Event Source to that of System.Diagnostics.Tracing We are running on .NET framework 4.7.2. The call by event Listener to enable events by calling the following method fails public void EnableEvents(EventSource eventSource, EventLevel level, EventKeywords matchAnyKeyword)

The event source flag m_eventSourceEnabled is false, the event metadata is empty (m_eventData), the m_OutOfBandMessageCount is 1 after the call

We are unable to debug the issue further and could not find any implementation of System.Diagnostics.Tracing with .NET Framework in our org. Link to our codebase https://microsoft.visualstudio.com/Universal%20Store/_git/SC.CST.Dunning/pullrequest/6647199