diff --git a/Directory.Packages.props b/Directory.Packages.props
new file mode 100644
index 0000000..7b88527
--- /dev/null
+++ b/Directory.Packages.props
@@ -0,0 +1,50 @@
+
+
+ true
+ true
+ $(NoWarn);NU1507
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/src/HelloShop.ApiService/HelloShop.ApiService.csproj b/src/HelloShop.ApiService/HelloShop.ApiService.csproj
index 340662b..e405e12 100644
--- a/src/HelloShop.ApiService/HelloShop.ApiService.csproj
+++ b/src/HelloShop.ApiService/HelloShop.ApiService.csproj
@@ -9,6 +9,6 @@
-
+
\ No newline at end of file
diff --git a/src/HelloShop.AppHost/HelloShop.AppHost.csproj b/src/HelloShop.AppHost/HelloShop.AppHost.csproj
index 8f4f34b..5139d68 100644
--- a/src/HelloShop.AppHost/HelloShop.AppHost.csproj
+++ b/src/HelloShop.AppHost/HelloShop.AppHost.csproj
@@ -16,9 +16,9 @@
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/HelloShop.BasketService/HelloShop.BasketService.csproj b/src/HelloShop.BasketService/HelloShop.BasketService.csproj
index 354f23c..e70558f 100644
--- a/src/HelloShop.BasketService/HelloShop.BasketService.csproj
+++ b/src/HelloShop.BasketService/HelloShop.BasketService.csproj
@@ -13,11 +13,11 @@
-
-
-
-
-
+
+
+
+
+
diff --git a/src/HelloShop.HybridApp/HelloShop.HybridApp.csproj b/src/HelloShop.HybridApp/HelloShop.HybridApp.csproj
index 95de2b3..557fcaf 100644
--- a/src/HelloShop.HybridApp/HelloShop.HybridApp.csproj
+++ b/src/HelloShop.HybridApp/HelloShop.HybridApp.csproj
@@ -45,9 +45,9 @@
-
-
-
-
+
+
+
+
\ No newline at end of file
diff --git a/src/HelloShop.IdentityService/Authorization/LocalPermissionChecker.cs b/src/HelloShop.IdentityService/Authorization/LocalPermissionChecker.cs
index 3eee3b3..5c664af 100644
--- a/src/HelloShop.IdentityService/Authorization/LocalPermissionChecker.cs
+++ b/src/HelloShop.IdentityService/Authorization/LocalPermissionChecker.cs
@@ -8,7 +8,7 @@ using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Caching.Distributed;
namespace HelloShop.IdentityService.Authorization;
-public class LocalPermissionChecker(IHttpContextAccessor httpContextAccessor, IdentityServiceDbContext dbContext, IDistributedCache distributedCache) : PermissionChecker(httpContextAccessor, distributedCache)
+public class LocalPermissionChecker(IHttpContextAccessor httpContextAccessor, IdentityServiceDbContext dbContext, IDistributedCache distributedCache,TimeProvider timeProvider) : PermissionChecker(httpContextAccessor, distributedCache, timeProvider)
{
public override async Task IsGrantedAsync(int roleId, string name, string? resourceType = null, string? resourceId = null)
{
diff --git a/src/HelloShop.IdentityService/HelloShop.IdentityService.csproj b/src/HelloShop.IdentityService/HelloShop.IdentityService.csproj
index c2a451c..9d85574 100644
--- a/src/HelloShop.IdentityService/HelloShop.IdentityService.csproj
+++ b/src/HelloShop.IdentityService/HelloShop.IdentityService.csproj
@@ -1,21 +1,21 @@
-
- net9.0
- enable
- enable
-
-
-
-
-
-
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
+
+ net9.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
\ No newline at end of file
diff --git a/src/HelloShop.OrderingService/HelloShop.OrderingService.csproj b/src/HelloShop.OrderingService/HelloShop.OrderingService.csproj
index bb154af..2b5e395 100644
--- a/src/HelloShop.OrderingService/HelloShop.OrderingService.csproj
+++ b/src/HelloShop.OrderingService/HelloShop.OrderingService.csproj
@@ -1,21 +1,21 @@
-
- net9.0
- enable
- enable
-
-
-
-
-
-
-
-
-
-
- runtime; build; native; contentfiles; analyzers; buildtransitive
- all
-
-
-
+
+ net9.0
+ enable
+ enable
+
+
+
+
+
+
+
+
+
+
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+ all
+
+
+
\ No newline at end of file
diff --git a/src/HelloShop.ProductService/HelloShop.ProductService.csproj b/src/HelloShop.ProductService/HelloShop.ProductService.csproj
index cf07d93..4bb66d2 100644
--- a/src/HelloShop.ProductService/HelloShop.ProductService.csproj
+++ b/src/HelloShop.ProductService/HelloShop.ProductService.csproj
@@ -8,13 +8,13 @@
-
-
-
-
+
+
+
+
runtime; build; native; contentfiles; analyzers; buildtransitive
all
-
+
\ No newline at end of file
diff --git a/src/HelloShop.ServiceDefaults/Authorization/FakePermissionChecker.cs b/src/HelloShop.ServiceDefaults/Authorization/FakePermissionChecker.cs
index 114db94..5fc239b 100644
--- a/src/HelloShop.ServiceDefaults/Authorization/FakePermissionChecker.cs
+++ b/src/HelloShop.ServiceDefaults/Authorization/FakePermissionChecker.cs
@@ -6,7 +6,7 @@ using Microsoft.Extensions.Caching.Distributed;
namespace HelloShop.ServiceDefaults.Authorization
{
- public class FakePermissionChecker(IHttpContextAccessor httpContextAccessor, IDistributedCache distributedCache) : PermissionChecker(httpContextAccessor, distributedCache)
+ public class FakePermissionChecker(IHttpContextAccessor httpContextAccessor, IDistributedCache distributedCache, TimeProvider timeProvider) : PermissionChecker(httpContextAccessor, distributedCache,timeProvider)
{
public override Task IsGrantedAsync(int roleId, string permissionName, string? resourceType = null, string? resourceId = null) => Task.FromResult(true);
}
diff --git a/src/HelloShop.ServiceDefaults/Authorization/RemotePermissionChecker.cs b/src/HelloShop.ServiceDefaults/Authorization/RemotePermissionChecker.cs
index e905f2f..a16de20 100644
--- a/src/HelloShop.ServiceDefaults/Authorization/RemotePermissionChecker.cs
+++ b/src/HelloShop.ServiceDefaults/Authorization/RemotePermissionChecker.cs
@@ -9,7 +9,7 @@ using System.Net.Http.Headers;
namespace HelloShop.ServiceDefaults.Authorization;
-public class RemotePermissionChecker(IHttpContextAccessor httpContextAccessor, IDistributedCache distributedCache, IHttpClientFactory httpClientFactory) : PermissionChecker(httpContextAccessor, distributedCache)
+public class RemotePermissionChecker(IHttpContextAccessor httpContextAccessor, IDistributedCache distributedCache, IHttpClientFactory httpClientFactory,TimeProvider timeProvider) : PermissionChecker(httpContextAccessor, distributedCache, timeProvider)
{
public override async Task IsGrantedAsync(int roleId, string permissionName, string? resourceType = null, string? resourceId = null)
{
diff --git a/src/HelloShop.ServiceDefaults/HelloShop.ServiceDefaults.csproj b/src/HelloShop.ServiceDefaults/HelloShop.ServiceDefaults.csproj
index 0f2240a..2227b32 100644
--- a/src/HelloShop.ServiceDefaults/HelloShop.ServiceDefaults.csproj
+++ b/src/HelloShop.ServiceDefaults/HelloShop.ServiceDefaults.csproj
@@ -7,17 +7,17 @@
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
+
diff --git a/tests/HelloShop.BasketService.UnitTests/HelloShop.BasketService.UnitTests.csproj b/tests/HelloShop.BasketService.UnitTests/HelloShop.BasketService.UnitTests.csproj
index 1369371..be7e1ba 100644
--- a/tests/HelloShop.BasketService.UnitTests/HelloShop.BasketService.UnitTests.csproj
+++ b/tests/HelloShop.BasketService.UnitTests/HelloShop.BasketService.UnitTests.csproj
@@ -7,14 +7,14 @@
true
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/HelloShop.FunctionalTests/HelloShop.FunctionalTests.csproj b/tests/HelloShop.FunctionalTests/HelloShop.FunctionalTests.csproj
index 464dc32..3175aae 100644
--- a/tests/HelloShop.FunctionalTests/HelloShop.FunctionalTests.csproj
+++ b/tests/HelloShop.FunctionalTests/HelloShop.FunctionalTests.csproj
@@ -7,14 +7,14 @@
true
-
-
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/HelloShop.ProductService.FunctionalTests/HelloShop.ProductService.FunctionalTests.csproj b/tests/HelloShop.ProductService.FunctionalTests/HelloShop.ProductService.FunctionalTests.csproj
index 481a2b0..90ee944 100644
--- a/tests/HelloShop.ProductService.FunctionalTests/HelloShop.ProductService.FunctionalTests.csproj
+++ b/tests/HelloShop.ProductService.FunctionalTests/HelloShop.ProductService.FunctionalTests.csproj
@@ -7,16 +7,16 @@
true
-
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
+
+
+
+
+
+
all
runtime; build; native; contentfiles; analyzers; buildtransitive
diff --git a/tests/HelloShop.ProductService.UnitTests/HelloShop.ProductService.UnitTests.csproj b/tests/HelloShop.ProductService.UnitTests/HelloShop.ProductService.UnitTests.csproj
index 088fa1e..381c1d7 100644
--- a/tests/HelloShop.ProductService.UnitTests/HelloShop.ProductService.UnitTests.csproj
+++ b/tests/HelloShop.ProductService.UnitTests/HelloShop.ProductService.UnitTests.csproj
@@ -1,31 +1,31 @@
-
- net9.0
- enable
- enable
- false
- true
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
-
-
- all
- runtime; build; native; contentfiles; analyzers; buildtransitive
-
-
-
-
-
-
-
-
+
+ net9.0
+ enable
+ enable
+ false
+ true
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+
+
+
+
+ all
+ runtime; build; native; contentfiles; analyzers; buildtransitive
+
+
+
+
+
+
+
+
\ No newline at end of file