You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
EventSource.GetGuid can differ from EventSource.Guid #1360
If you write an EventSource that specifies a name dynamically in the constructor but does not provide the name statically in an EventSource attribute then GetGuid(Type) and the Guid property will compute different values. The GetGuid(Type) return value no longer correlates to the GUID used to register the EventSource with ETW. Although it is intended that users will provide the EventSourceAttribute in this scenario nothing enforces that they do so.
I don't see any obvious way to change the API design to mitigate this issue without also introducing the potential for compat problems, but at minimum we should make the requirements clear in the docs, such as where GetGuid() is described and on the constructors that take a string name.
Activity
noahfalk commentedon Jan 7, 2020
Adding repro case:
tommcdon commentedon Dec 10, 2020
FYI @sywhang as this is a documentation issue