IOT Dash
Public Member Functions | List of all members
IotDash.Services.ModelStore.UserManagerWrapper Class Reference
Inheritance diagram for IotDash.Services.ModelStore.UserManagerWrapper:
Inheritance graph
[legend]
Collaboration diagram for IotDash.Services.ModelStore.UserManagerWrapper:
Collaboration graph
[legend]

Public Member Functions

 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)
 
- Public Member Functions inherited from IotDash.Services.IModelStore< IdentityUser, string >
Task< IReadOnlyList< TEntity > > GetAllAsync ()
 
Task< TEntity?> GetByKeyAsync (TKey key)
 
Task CreateAsync (TEntity entityToCreate)
 
Task< bool > DeleteByKeyAsync (TKey entityId)
 

Member Function Documentation

◆ CheckPasswordAsync()

Task< bool > IotDash.Services.ModelStore.UserManagerWrapper.CheckPasswordAsync ( IdentityUser  user,
string  password 
)
inline

Check if the given password matches with the given user .

Parameters
userThe user to check.
passwordThe 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

Add a new user to the database.

Parameters
newUserThe user to add.
Returns
a result of the creation.

Implements IotDash.Services.IUserStore.

◆ 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
newUserThe 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
emailThe 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
userToUpdateThe template user.
Returns

Implements IotDash.Services.IUserStore.


The documentation for this class was generated from the following file: