# Microsoft.Extensions.Logging

``` diff
 namespace Microsoft.Extensions.Logging {
     public interface ILogger {
-        IDisposable BeginScope<TState>(TState state);
+        IDisposable? BeginScope<TState>(TState state);
     }
     public static class LoggerExtensions {
-        public static IDisposable BeginScope(this ILogger logger, string messageFormat, params object?[] args);
+        public static IDisposable? BeginScope(this ILogger logger, string messageFormat, params object?[] args);
     }
     public static class LoggerMessage {
-        public static Func<ILogger, IDisposable> DefineScope(string formatString);
+        public static Func<ILogger, IDisposable?> DefineScope(string formatString);
-        public static Func<ILogger, T1, T2, T3, T4, T5, T6, IDisposable> DefineScope<T1, T2, T3, T4, T5, T6>(string formatString);
+        public static Func<ILogger, T1, T2, T3, T4, T5, T6, IDisposable?> DefineScope<T1, T2, T3, T4, T5, T6>(string formatString);
-        public static Func<ILogger, T1, T2, T3, T4, T5, IDisposable> DefineScope<T1, T2, T3, T4, T5>(string formatString);
+        public static Func<ILogger, T1, T2, T3, T4, T5, IDisposable?> DefineScope<T1, T2, T3, T4, T5>(string formatString);
-        public static Func<ILogger, T1, T2, T3, T4, IDisposable> DefineScope<T1, T2, T3, T4>(string formatString);
+        public static Func<ILogger, T1, T2, T3, T4, IDisposable?> DefineScope<T1, T2, T3, T4>(string formatString);
-        public static Func<ILogger, T1, T2, T3, IDisposable> DefineScope<T1, T2, T3>(string formatString);
+        public static Func<ILogger, T1, T2, T3, IDisposable?> DefineScope<T1, T2, T3>(string formatString);
-        public static Func<ILogger, T1, T2, IDisposable> DefineScope<T1, T2>(string formatString);
+        public static Func<ILogger, T1, T2, IDisposable?> DefineScope<T1, T2>(string formatString);
-        public static Func<ILogger, T1, IDisposable> DefineScope<T1>(string formatString);
+        public static Func<ILogger, T1, IDisposable?> DefineScope<T1>(string formatString);
     }
 }
```

