mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-01-19 02:24:19 +01:00
16 lines
422 B
C#
16 lines
422 B
C#
|
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; }
|
||
|
}
|