Skip to content

Commit c92343c

Browse files
Update src/ModelContextProtocol/Authentication/AuthorizationDelegatingHandler.cs
Co-authored-by: Stephen Toub <[email protected]>
1 parent b501d23 commit c92343c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/ModelContextProtocol/Authentication/AuthorizationDelegatingHandler.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@ public class AuthorizationDelegatingHandler : DelegatingHandler
1717
/// <param name="authorizationProvider">The provider that supplies authentication tokens.</param>
1818
public AuthorizationDelegatingHandler(IMcpAuthorizationProvider authorizationProvider)
1919
{
20-
_authorizationProvider = authorizationProvider ?? throw new ArgumentNullException(nameof(authorizationProvider));
20+
Throw.IfNull(authorizationProvider);
21+
22+
_authorizationProvider = authorizationProvider;
2123

2224
// Select first supported scheme as the default
2325
_currentScheme = _authorizationProvider.SupportedSchemes.FirstOrDefault();

0 commit comments

Comments
 (0)