Migrating to modern c# namespace

Using the short namesapce declaration for conciseness
This commit is contained in:
kdeng00
2023-04-09 12:34:06 -04:00
parent 37cfda84b5
commit c17c9cd329
48 changed files with 3402 additions and 3454 deletions
+10 -11
View File
@@ -2,18 +2,17 @@ using System;
using Microsoft.AspNetCore.Authorization;
namespace Icarus.Authorization
namespace Icarus.Authorization;
public class HasScopeRequirement : IAuthorizationRequirement
{
public class HasScopeRequirement : IAuthorizationRequirement
public string Issuer { get; }
public string Scope { get; }
public HasScopeRequirement(string scope, string issuer)
{
public string Issuer { get; }
public string Scope { get; }
public HasScopeRequirement(string scope, string issuer)
{
Scope = scope ?? throw new ArgumentNullException(nameof(scope));
Issuer = issuer ?? throw new ArgumentNullException(nameof(issuer));
}
Scope = scope ?? throw new ArgumentNullException(nameof(scope));
Issuer = issuer ?? throw new ArgumentNullException(nameof(issuer));
}
}