@@ -18,6 +18,7 @@ internal static class NegotiateLoggingExtensions
18
18
private static Action < ILogger , Exception ? > _reauthenticating ;
19
19
private static Action < ILogger , Exception ? > _deferring ;
20
20
private static Action < ILogger , string , Exception ? > _negotiateError ;
21
+ private static Action < ILogger , string , Exception ? > _protocolNotSupported ;
21
22
22
23
static NegotiateLoggingExtensions ( )
23
24
{
@@ -65,6 +66,10 @@ static NegotiateLoggingExtensions()
65
66
eventId : new EventId ( 11 , "NegotiateError" ) ,
66
67
logLevel : LogLevel . Debug ,
67
68
formatString : "Negotiate error code: {error}." ) ;
69
+ _protocolNotSupported = LoggerMessage . Define < string > (
70
+ eventId : new EventId ( 12 , "ProtocolNotSupported" ) ,
71
+ logLevel : LogLevel . Debug ,
72
+ formatString : "Negotiate is not supported with {protocol}." ) ;
68
73
}
69
74
70
75
public static void IncompleteNegotiateChallenge ( this ILogger logger )
@@ -99,5 +104,8 @@ public static void ClientError(this ILogger logger, Exception ex)
99
104
100
105
public static void NegotiateError ( this ILogger logger , string error )
101
106
=> _negotiateError ( logger , error , null ) ;
107
+
108
+ public static void ProtocolNotSupported ( this ILogger logger , string protocol )
109
+ => _protocolNotSupported ( logger , protocol , null ) ;
102
110
}
103
111
}
0 commit comments