Class ApplicationUserManager
Inheritance
System.Object
ApplicationUserManager
Assembly: ImageVault.Web.dll
Syntax
public class ApplicationUserManager : UserManager<ApplicationUser>, ILocalUserManager
Constructors
ApplicationUserManager(IUserStore<ApplicationUser>)
Declaration
public ApplicationUserManager(IUserStore<ApplicationUser> store)
Parameters
Type |
Name |
Description |
Microsoft.AspNet.Identity.IUserStore<ApplicationUser> |
store |
|
Methods
ChangeEmailAsync(String, String)
Declaration
public Task<ChangeEmailResult> ChangeEmailAsync(string userId, string email)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String |
email |
|
Returns
Create(IdentityFactoryOptions<ApplicationUserManager>, IOwinContext)
Declaration
public static ApplicationUserManager Create(IdentityFactoryOptions<ApplicationUserManager> options, IOwinContext context)
Parameters
Type |
Name |
Description |
Microsoft.AspNet.Identity.Owin.IdentityFactoryOptions<ApplicationUserManager> |
options |
|
Microsoft.Owin.IOwinContext |
context |
|
Returns
CreateUserAsync(String, String, String, Nullable<Boolean>)
Declaration
public 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
public 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
public Task<DataPage<ILocalUser>> GetAllUsersAsync(int page, int pageSize)
Parameters
Type |
Name |
Description |
System.Int32 |
page |
|
System.Int32 |
pageSize |
|
Returns
GetRolesForUserAsync(String)
Declaration
public 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
public Task<ILocalUser> GetUserByIdAsync(string id)
Parameters
Type |
Name |
Description |
System.String |
id |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ILocalUser> |
|
GetUserByUsernameAsync(String, Boolean)
Declaration
public 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> |
|
SetIsApprovedAsync(String, Boolean)
Declaration
public Task<LocalIdentityResult> SetIsApprovedAsync(string userId, bool userIsApproved)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.Boolean |
userIsApproved |
|
Returns
SetLockedOutAsync(String, Boolean)
Declaration
public Task<LocalIdentityResult> SetLockedOutAsync(string userId, bool userIsLockedOut)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.Boolean |
userIsLockedOut |
|
Returns
SetPasswordAsync(String, String)
Declaration
public Task<ChangePasswordResult> SetPasswordAsync(string userId, string password)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String |
password |
|
Returns
ValidateUserAndGetClaimsAsync(ValidateUserAndGetClaimsRequest)
Declaration
public 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
public Task<ValidateUserResult> ValidateUserAsync(string username, string password)
Parameters
Type |
Name |
Description |
System.String |
username |
|
System.String |
password |
|
Returns
Explicit Interface Implementations
ILocalUserManager.ChangePasswordAsync(String, String, String)
Declaration
Task<ChangePasswordResult> ILocalUserManager.ChangePasswordAsync(string userId, string currentPassword, string newPassword)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
System.String |
currentPassword |
|
System.String |
newPassword |
|
Returns
ILocalUserManager.RemoveLoginAsync(String, UserLoginInfo)
Declaration
Task<LocalIdentityResult> ILocalUserManager.RemoveLoginAsync(string userId, UserLoginInfo loginInfo)
Parameters
Type |
Name |
Description |
System.String |
userId |
|
Microsoft.AspNet.Identity.UserLoginInfo |
loginInfo |
|
Returns
Implements