Update root namespaces

This commit is contained in:
Aaron Po
2026-02-12 09:54:39 -05:00
parent 74c5528ea2
commit a038a12fca
9 changed files with 16 additions and 16 deletions

View File

@@ -1,4 +1,4 @@
namespace Service.Core.Jwt;
namespace Infrastructure.Jwt;
public interface IJwtService
{

View File

@@ -3,7 +3,7 @@
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Service.Core.Jwt</RootNamespace>
<RootNamespace>Infrastructure.Jwt</RootNamespace>
</PropertyGroup>
<ItemGroup>

View File

@@ -4,7 +4,7 @@ using Microsoft.IdentityModel.JsonWebTokens;
using Microsoft.IdentityModel.Tokens;
using JwtRegisteredClaimNames = System.IdentityModel.Tokens.Jwt.JwtRegisteredClaimNames;
namespace Service.Core.Jwt;
namespace Infrastructure.Jwt;
public class JwtService : IJwtService
{

View File

@@ -2,9 +2,9 @@ using System.Security.Cryptography;
using System.Text;
using Konscious.Security.Cryptography;
namespace Service.Core.Password;
namespace Infrastructure.PasswordHashing;
public class PasswordService : IPasswordService
public class Argon2Infrastructure : IPasswordInfra
{
private const int SaltSize = 16; // 128-bit
private const int HashSize = 32; // 256-bit

View File

@@ -1,6 +1,6 @@
namespace Service.Core.Password;
namespace Infrastructure.PasswordHashing;
public interface IPasswordService
public interface IPasswordInfra
{
public string Hash(string password);
public bool Verify(string password, string stored);

View File

@@ -3,7 +3,7 @@
<TargetFramework>net10.0</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<RootNamespace>Service.Core.Password</RootNamespace>
<RootNamespace>Infrastructure.PasswordHashing</RootNamespace>
</PropertyGroup>
<ItemGroup>