Reimplementing Authorization system
This commit is contained in:
16
DotBased.ASP.Authentication/BasedAuthenticationBuilder.cs
Normal file
16
DotBased.ASP.Authentication/BasedAuthenticationBuilder.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
namespace DotBased.ASP.Authentication;
|
||||
|
||||
public class BasedAuthenticationBuilder
|
||||
{
|
||||
public BasedAuthenticationBuilder(Type authRepository)
|
||||
{
|
||||
if (authRepository.IsValueType)
|
||||
{
|
||||
throw new ArgumentException("Type cannot be a value type!", nameof(authRepository));
|
||||
}
|
||||
|
||||
AuthenticationRepositoryType = authRepository;
|
||||
}
|
||||
|
||||
public Type AuthenticationRepositoryType { get; }
|
||||
}
|
Reference in New Issue
Block a user