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

Public Member Functions

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)
 

Detailed Description

This service provides CRUD operations on IdentityUser indexed by their ids.

Member Function Documentation

◆ CheckPasswordAsync()

Task< bool > IotDash.Services.IUserStore.CheckPasswordAsync ( IdentityUser  user,
string  password 
)

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.

Implemented in IotDash.Services.ModelStore.UserManagerWrapper.

◆ CreateAsync() [1/2]

new Task< IdentityResult > IotDash.Services.IUserStore.CreateAsync ( IdentityUser  newUser)

Add a new user to the database.

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

Implemented in IotDash.Services.ModelStore.UserManagerWrapper.

◆ CreateAsync() [2/2]

Task< IdentityResult > IotDash.Services.IUserStore.CreateAsync ( IdentityUser  newUser,
string  password 
)

Add a new user to the database with the given password .

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

Implemented in IotDash.Services.ModelStore.UserManagerWrapper.

◆ GetByNameAsync()

Task< IdentityUser?> IotDash.Services.IUserStore.GetByNameAsync ( string  email)

Get a user with the given email .

Parameters
emailThe email to filter by.
Returns
The user or null if no such user exists.

Implemented in IotDash.Services.ModelStore.UserManagerWrapper.

◆ UpdateAsync()

Task< IdentityResult > IotDash.Services.IUserStore.UpdateAsync ( IdentityUser  userToUpdate)

Update a user with matching id to match this user.

Parameters
userToUpdateThe template user.
Returns

Implemented in IotDash.Services.ModelStore.UserManagerWrapper.


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