|
| UserManagerWrapper (UserManager< IdentityUser > userManager, DataContext db) |
|
async Task< IReadOnlyList< IdentityUser > > | GetAllAsync () |
|
async Task< IdentityUser?> | GetByKeyAsync (string userId) |
|
async Task< IdentityResult > | CreateAsync (IdentityUser newUser) |
|
async Task< IdentityResult > | CreateAsync (IdentityUser newUser, string password) |
|
async Task< IdentityResult > | UpdateAsync (IdentityUser userToUpdate) |
|
async Task< IdentityResult > | DeleteByIdAsync (string userId) |
|
Task< bool > | SaveChangesAsync () |
|
async Task< IdentityUser?> | GetByNameAsync (string name) |
|
Task< bool > | CheckPasswordAsync (IdentityUser user, string password) |
|
Task< IdentityUser?> | GetByNameAsync (string email) |
|
Task< IdentityResult > | CreateAsync (IdentityUser newUser, string password) |
|
new Task< IdentityResult > | CreateAsync (IdentityUser newUser) |
|
Task< IdentityResult > | UpdateAsync (IdentityUser userToUpdate) |
|
Task< bool > | CheckPasswordAsync (IdentityUser user, string password) |
|
Task< IReadOnlyList< TEntity > > | GetAllAsync () |
|
Task< TEntity?> | GetByKeyAsync (TKey key) |
|
Task | CreateAsync (TEntity entityToCreate) |
|
Task< bool > | DeleteByKeyAsync (TKey entityId) |
|
◆ CheckPasswordAsync()
Task< bool > IotDash.Services.ModelStore.UserManagerWrapper.CheckPasswordAsync |
( |
IdentityUser |
user, |
|
|
string |
password |
|
) |
| |
|
inline |
Check if the given password matches with the given user .
- Parameters
-
user | The user to check. |
password | The password to check. |
- Returns
true
if matches, false
otherwise.
Implements IotDash.Services.IUserStore.
◆ CreateAsync() [1/2]
async Task< IdentityResult > IotDash.Services.ModelStore.UserManagerWrapper.CreateAsync |
( |
IdentityUser |
newUser | ) |
|
|
inline |
◆ CreateAsync() [2/2]
async Task< IdentityResult > IotDash.Services.ModelStore.UserManagerWrapper.CreateAsync |
( |
IdentityUser |
newUser, |
|
|
string |
password |
|
) |
| |
|
inline |
Add a new user to the database with the given password .
- Parameters
-
newUser | The user to add. |
password | |
- Returns
- a result of the creation.
Implements IotDash.Services.IUserStore.
◆ GetByNameAsync()
async Task< IdentityUser?> IotDash.Services.ModelStore.UserManagerWrapper.GetByNameAsync |
( |
string |
email | ) |
|
|
inline |
Get a user with the given email .
- Parameters
-
email | The email to filter by. |
- Returns
- The user or
null
if no such user exists.
Implements IotDash.Services.IUserStore.
◆ UpdateAsync()
async Task< IdentityResult > IotDash.Services.ModelStore.UserManagerWrapper.UpdateAsync |
( |
IdentityUser |
userToUpdate | ) |
|
|
inline |
Update a user with matching id
to match this user.
- Parameters
-
userToUpdate | The template user. |
- Returns
Implements IotDash.Services.IUserStore.
The documentation for this class was generated from the following file:
- Services/Implementations/ModelStore/UserManagerWrapper.cs