public UserStore(RedisUserStore <IdentityUser> userStore, ConnectionMultiplexer connectionMultiplexer) { _userStore = userStore; _connectionMultiplexer = connectionMultiplexer; Mapper.CreateMap <TUser, IdentityUser>(); Mapper.CreateMap <IdentityUser, TUser>(); }
private static UserStore<IdentityUser> CreateUserStore() { var multiplexer = ConnectionMultiplexer.Connect("localhost"); var store = new RedisUserStore<IdentityUser>(multiplexer); var userStore = new UserStore<IdentityUser>(store, multiplexer); return userStore; }