@@ -28,7 +28,7 @@ public partial interface IExternalScopeProvider
28
28
}
29
29
public partial interface ILogger
30
30
{
31
- System . IDisposable BeginScope < TState > ( TState state ) ;
31
+ System . IDisposable ? BeginScope < TState > ( TState state ) where TState : notnull ;
32
32
bool IsEnabled ( Microsoft . Extensions . Logging . LogLevel logLevel ) ;
33
33
void Log < TState > ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , TState state , System . Exception ? exception , System . Func < TState , System . Exception ? , string > formatter ) ;
34
34
}
@@ -55,7 +55,7 @@ public LogDefineOptions() { }
55
55
}
56
56
public static partial class LoggerExtensions
57
57
{
58
- public static System . IDisposable BeginScope ( this Microsoft . Extensions . Logging . ILogger logger , string messageFormat , params object ? [ ] args ) { throw null ; }
58
+ public static System . IDisposable ? BeginScope ( this Microsoft . Extensions . Logging . ILogger logger , string messageFormat , params object ? [ ] args ) { throw null ; }
59
59
public static void Log ( this Microsoft . Extensions . Logging . ILogger logger , Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , System . Exception ? exception , string ? message , params object ? [ ] args ) { }
60
60
public static void Log ( this Microsoft . Extensions . Logging . ILogger logger , Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , string ? message , params object ? [ ] args ) { }
61
61
public static void Log ( this Microsoft . Extensions . Logging . ILogger logger , Microsoft . Extensions . Logging . LogLevel logLevel , System . Exception ? exception , string ? message , params object ? [ ] args ) { }
@@ -100,13 +100,13 @@ public static partial class LoggerMessage
100
100
{
101
101
public static System . Action < Microsoft . Extensions . Logging . ILogger , System . Exception ? > Define ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , string formatString ) { throw null ; }
102
102
public static System . Action < Microsoft . Extensions . Logging . ILogger , System . Exception ? > Define ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , string formatString , Microsoft . Extensions . Logging . LogDefineOptions ? options ) { throw null ; }
103
- public static System . Func < Microsoft . Extensions . Logging . ILogger , System . IDisposable > DefineScope ( string formatString ) { throw null ; }
104
- public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , System . IDisposable > DefineScope < T1 > ( string formatString ) { throw null ; }
105
- public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , System . IDisposable > DefineScope < T1 , T2 > ( string formatString ) { throw null ; }
106
- public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , System . IDisposable > DefineScope < T1 , T2 , T3 > ( string formatString ) { throw null ; }
107
- public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , T4 , System . IDisposable > DefineScope < T1 , T2 , T3 , T4 > ( string formatString ) { throw null ; }
108
- public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , T4 , T5 , System . IDisposable > DefineScope < T1 , T2 , T3 , T4 , T5 > ( string formatString ) { throw null ; }
109
- public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , T4 , T5 , T6 , System . IDisposable > DefineScope < T1 , T2 , T3 , T4 , T5 , T6 > ( string formatString ) { throw null ; }
103
+ public static System . Func < Microsoft . Extensions . Logging . ILogger , System . IDisposable ? > DefineScope ( string formatString ) { throw null ; }
104
+ public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , System . IDisposable ? > DefineScope < T1 > ( string formatString ) { throw null ; }
105
+ public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , System . IDisposable ? > DefineScope < T1 , T2 > ( string formatString ) { throw null ; }
106
+ public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , System . IDisposable ? > DefineScope < T1 , T2 , T3 > ( string formatString ) { throw null ; }
107
+ public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , T4 , System . IDisposable ? > DefineScope < T1 , T2 , T3 , T4 > ( string formatString ) { throw null ; }
108
+ public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , T4 , T5 , System . IDisposable ? > DefineScope < T1 , T2 , T3 , T4 , T5 > ( string formatString ) { throw null ; }
109
+ public static System . Func < Microsoft . Extensions . Logging . ILogger , T1 , T2 , T3 , T4 , T5 , T6 , System . IDisposable ? > DefineScope < T1 , T2 , T3 , T4 , T5 , T6 > ( string formatString ) { throw null ; }
110
110
public static System . Action < Microsoft . Extensions . Logging . ILogger , T1 , System . Exception ? > Define < T1 > ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , string formatString ) { throw null ; }
111
111
public static System . Action < Microsoft . Extensions . Logging . ILogger , T1 , System . Exception ? > Define < T1 > ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , string formatString , Microsoft . Extensions . Logging . LogDefineOptions ? options ) { throw null ; }
112
112
public static System . Action < Microsoft . Extensions . Logging . ILogger , T1 , T2 , System . Exception ? > Define < T1 , T2 > ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , string formatString ) { throw null ; }
@@ -134,7 +134,7 @@ public LoggerMessageAttribute(int eventId, Microsoft.Extensions.Logging.LogLevel
134
134
public partial class Logger < T > : Microsoft . Extensions . Logging . ILogger , Microsoft . Extensions . Logging . ILogger < T >
135
135
{
136
136
public Logger ( Microsoft . Extensions . Logging . ILoggerFactory factory ) { }
137
- System . IDisposable Microsoft . Extensions . Logging . ILogger . BeginScope < TState > ( TState state ) { throw null ; }
137
+ System . IDisposable ? Microsoft . Extensions . Logging . ILogger . BeginScope < TState > ( TState state ) { throw null ; }
138
138
bool Microsoft . Extensions . Logging . ILogger . IsEnabled ( Microsoft . Extensions . Logging . LogLevel logLevel ) { throw null ; }
139
139
void Microsoft . Extensions . Logging . ILogger . Log < TState > ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , TState state , System . Exception ? exception , System . Func < TState , System . Exception ? , string > formatter ) { }
140
140
}
@@ -168,7 +168,7 @@ public partial class NullLogger : Microsoft.Extensions.Logging.ILogger
168
168
{
169
169
internal NullLogger ( ) { }
170
170
public static Microsoft . Extensions . Logging . Abstractions . NullLogger Instance { get { throw null ; } }
171
- public System . IDisposable BeginScope < TState > ( TState state ) { throw null ; }
171
+ public System . IDisposable BeginScope < TState > ( TState state ) where TState : notnull { throw null ; }
172
172
public bool IsEnabled ( Microsoft . Extensions . Logging . LogLevel logLevel ) { throw null ; }
173
173
public void Log < TState > ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , TState state , System . Exception ? exception , System . Func < TState , System . Exception ? , string > formatter ) { }
174
174
}
@@ -191,7 +191,7 @@ public partial class NullLogger<T> : Microsoft.Extensions.Logging.ILogger, Micro
191
191
{
192
192
public static readonly Microsoft . Extensions . Logging . Abstractions . NullLogger < T > Instance ;
193
193
public NullLogger ( ) { }
194
- public System . IDisposable BeginScope < TState > ( TState state ) { throw null ; }
194
+ public System . IDisposable BeginScope < TState > ( TState state ) where TState : notnull { throw null ; }
195
195
public bool IsEnabled ( Microsoft . Extensions . Logging . LogLevel logLevel ) { throw null ; }
196
196
public void Log < TState > ( Microsoft . Extensions . Logging . LogLevel logLevel , Microsoft . Extensions . Logging . EventId eventId , TState state , System . Exception ? exception , System . Func < TState , System . Exception ? , string > formatter ) { }
197
197
}
0 commit comments