DotBased/DotBased.ASP.Authentication/BasedAuthenticationBuilder.cs
2024-12-01 03:13:55 +01:00

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; }
}