[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

@@ -1,22 +1,8 @@
namespace DotBased.AspNet.Authority.Models.Authority;
public class AuthorityRole : AuthorityRole<Guid>
public abstract class AuthorityRole
{
public AuthorityRole(string name) : this()
{
Name = name;
}
public AuthorityRole()
{
Id = Guid.NewGuid();
CreatedDate = DateTime.Now;
}
}
public abstract class AuthorityRole<TKey> where TKey : IEquatable<TKey>
{
public TKey Id { get; set; }
public Guid Id { get; set; }
public string? Name { get; set; }