[ADD] Add cancellation tokens to async functions

This commit is contained in:
max
2025-01-08 16:22:59 +01:00
parent 28fcd74acf
commit fd733b7238
4 changed files with 36 additions and 27 deletions

View File

@@ -16,6 +16,7 @@ public partial class AuthorityManager
IServiceProvider services,
ICryptographer cryptographer,
IUserRepository userRepository,
IRoleRepository roleRepository,
IPasswordHasher passwordHasher)
{
_logger = LogService.RegisterLogger<AuthorityManager>();
@@ -23,6 +24,7 @@ public partial class AuthorityManager
Services = services;
Cryptographer = cryptographer;
UserRepository = userRepository;
RoleRepository = roleRepository;
PasswordHasher = passwordHasher;
}
@@ -33,6 +35,7 @@ public partial class AuthorityManager
public ICryptographer Cryptographer { get; }
public IUserRepository UserRepository { get; }
public IRoleRepository RoleRepository { get; }
public IPasswordHasher PasswordHasher { get; }