Skip to content

Commit

Permalink
Update EventSourceLogger.cs (dotnet#67065)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkoshevoi authored and radekdoulik committed Mar 30, 2022
1 parent e332fa9 commit 551fe29
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
}
}

public IDisposable BeginScope<TState>(TState state)
public IDisposable BeginScope<TState>(TState state) where TState : notnull
{
if (!IsEnabled(LogLevel.Critical))
{
Expand Down

0 comments on commit 551fe29

Please sign in to comment.