Exemple #1
0
 public DapperUserStore(IConnectionProvider connProv,
                        ILogger <DapperUserStore <TUser, TKey, TUserRole, TRoleClaim, TUserClaim, TUserLogin, TRole> > log,
                        IUserRepository <TUser, TKey, TUserRole, TRoleClaim, TUserClaim, TUserLogin, TRole> roleRepo,
                        IUnitOfWork uow,
                        DapperIdentityOptions dapperIdOpts)
 {
     _userRepository     = roleRepo;
     _connectionProvider = connProv;
     _log                   = log;
     _unitOfWork            = uow;
     _dapperIdentityOptions = dapperIdOpts;
 }
        public static IServiceCollection ConfigureDapperIdentityOptions(this IServiceCollection services, DapperIdentityOptions options)
        {
            services.AddSingleton(options);

            return(services);
        }