[ADD] Added base options
This commit is contained in:
@@ -1,7 +0,0 @@
|
||||
namespace DotBased.AspNet.Authority.Interfaces;
|
||||
|
||||
public interface ISecurityVersionRepository<in TRepositoryObject>
|
||||
{
|
||||
public Task<long> GetSecurityVersionAsync(TRepositoryObject obj);
|
||||
|
||||
}
|
@@ -1,8 +1,9 @@
|
||||
namespace DotBased.AspNet.Authority.Interfaces;
|
||||
|
||||
public interface IUserRepository<TUser, TId> : IVersionRepository<TUser>, ISecurityVersionRepository<TUser> where TUser : class where TId : IEquatable<TId>
|
||||
public interface IUserRepository<TUser, TId> where TUser : class where TId : IEquatable<TId>
|
||||
{
|
||||
public Task<TUser?> GetUserByIdAsync(TId id);
|
||||
|
||||
public Task<TId> GetUserIdAsync(TUser user);
|
||||
public Task SetVersion(TUser user, long version);
|
||||
public Task SetSecurityVersion(TUser user, long version);
|
||||
}
|
@@ -1,6 +0,0 @@
|
||||
namespace DotBased.AspNet.Authority.Interfaces;
|
||||
|
||||
public interface IVersionRepository<in TRepositoryObject>
|
||||
{
|
||||
public Task<long> GetVersionAsync(TRepositoryObject obj);
|
||||
}
|
Reference in New Issue
Block a user