Skip to content

Commit

Permalink
Delete outdated comments (#105519)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkotas committed Jul 26, 2024
1 parent ecdb625 commit 0b9ff3c
Showing 1 changed file with 2 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,7 @@ public enum WriteEventErrorCode : int
// Because callbacks happen on registration, and we need the callbacks for those setup
// we can't call Register in the constructor.
//
// Note that EventProvider should ONLY be used by EventSource. In particular because
// it registers a callback from native code you MUST dispose it BEFORE shutdown, otherwise
// you may get native callbacks during shutdown when we have destroyed the delegate.
// EventSource has special logic to do this, no one else should be calling EventProvider.
// Note that EventProvider should ONLY be used by EventSource.
internal EventProvider(EventProviderType providerType)
{
_eventProvider = providerType switch
Expand All @@ -106,9 +103,7 @@ internal EventProvider(EventProviderType providerType)
}

/// <summary>
/// This method registers the controlGuid of this class with ETW. We need to be running on
/// Vista or above. If not a PlatformNotSupported exception will be thrown. If for some
/// reason the ETW Register call failed a NotSupported exception will be thrown.
/// This method registers the controlGuid of this class with ETW.
/// </summary>
internal unsafe void Register(EventSource eventSource)
{
Expand Down

0 comments on commit 0b9ff3c

Please sign in to comment.