Skip to content

Commit 475554d

Browse files
authored
Update EventSourceLogger.cs (#67065)
1 parent 6a7050e commit 475554d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libraries/Microsoft.Extensions.Logging.EventSource/src/EventSourceLogger.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public void Log<TState>(LogLevel logLevel, EventId eventId, TState state, Except
117117
}
118118
}
119119

120-
public IDisposable BeginScope<TState>(TState state)
120+
public IDisposable BeginScope<TState>(TState state) where TState : notnull
121121
{
122122
if (!IsEnabled(LogLevel.Critical))
123123
{

0 commit comments

Comments
 (0)