Interface ILocalUserManager
Assembly: ImageVault.Web.dll
Syntax
public interface ILocalUserManager
Methods
ChangeEmailAsync(String, String)
Declaration
Task<ChangeEmailResult> ChangeEmailAsync(string userId, string email)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String |
email |
|
Returns
ChangePasswordAsync(String, String, String)
Declaration
Task<ChangePasswordResult> ChangePasswordAsync(string userId, string oldPassword, string newPassword)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String |
oldPassword |
|
System.String |
newPassword |
|
Returns
CreateUserAsync(String, String, String, Nullable<Boolean>)
Declaration
Task<CreateUserResult> CreateUserAsync(string userName, string password, string email, bool? isApproved)
Parameters
Type |
Name |
Description |
System.String |
userName |
|
System.String |
password |
|
System.String |
email |
|
System.Nullable<System.Boolean> |
isApproved |
|
Returns
DeleteUserAsync(String)
Declaration
Task<bool> DeleteUserAsync(string userId)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Boolean> |
|
GetAllUsersAsync(Int32, Int32)
Declaration
Task<DataPage<ILocalUser>> GetAllUsersAsync(int page, int pageSize)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Int32 |
pageSize |
|
Returns
GetLoginsAsync(String)
Declaration
Task<IList<UserLoginInfo>> GetLoginsAsync(string userId)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IList<Microsoft.AspNet.Identity.UserLoginInfo>> |
|
GetRolesForUserAsync(String)
Declaration
Task<IList<string>> GetRolesForUserAsync(string username)
Parameters
Type |
Name |
Description |
System.String |
username |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IList<System.String>> |
|
GetUserByIdAsync(String)
Declaration
Task<ILocalUser> GetUserByIdAsync(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ILocalUser> |
|
GetUserByUsernameAsync(String, Boolean)
Declaration
Task<ILocalUser> GetUserByUsernameAsync(string username, bool userIsOnline)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.Boolean |
userIsOnline |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ILocalUser> |
|
RemoveLoginAsync(String, UserLoginInfo)
Declaration
Task<LocalIdentityResult> RemoveLoginAsync(string userId, UserLoginInfo loginInfo)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
Microsoft.AspNet.Identity.UserLoginInfo |
loginInfo |
|
Returns
SetIsApprovedAsync(String, Boolean)
Declaration
Task<LocalIdentityResult> SetIsApprovedAsync(string userId, bool userIsApproved)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.Boolean |
userIsApproved |
|
Returns
SetLockedOutAsync(String, Boolean)
Declaration
Task<LocalIdentityResult> SetLockedOutAsync(string userId, bool userIsLockedOut)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.Boolean |
userIsLockedOut |
|
Returns
SetPasswordAsync(String, String)
Declaration
Task<ChangePasswordResult> SetPasswordAsync(string userId, string password)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String |
password |
|
Returns
ValidateUserAndGetClaimsAsync(ValidateUserAndGetClaimsRequest)
Declaration
Task<IList<Claim>> ValidateUserAndGetClaimsAsync(ValidateUserAndGetClaimsRequest request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Collections.Generic.IList<System.Security.Claims.Claim>> |
|
ValidateUserAsync(String, String)
Declaration
Task<ValidateUserResult> ValidateUserAsync(string username, string password)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
password |
|
Returns