mirror of
https://github.com/hmaxnl/DotBased.git
synced 2025-01-19 02:24:19 +01:00
17 lines
543 B
C#
17 lines
543 B
C#
using DotBased.AspNet.Authority.Interfaces;
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
namespace DotBased.AspNet.Authority;
|
|
|
|
public static class AuthorityProviderExtensions
|
|
{
|
|
public static AuthorityBuilder AddAuthorityProvider<TModel>(this IServiceCollection services) where TModel : class
|
|
{
|
|
return new AuthorityBuilder(services);
|
|
}
|
|
|
|
public static AuthorityBuilder AddAuthorityStore<TStore>(this AuthorityBuilder authorityBuilder) where TStore : IAuthorityRepository
|
|
{
|
|
return authorityBuilder;
|
|
}
|
|
} |