Search Results for

    Show / Hide Table of Contents

    Class ApplicationUserManager

    Inheritance
    System.Object
    ApplicationUserManager
    Implements
    ILocalUserManager
    Namespace: ImageVault.Web.Security.Identity
    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
    Type Description
    System.Threading.Tasks.Task<ChangeEmailResult>

    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
    Type Description
    ApplicationUserManager

    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
    Type Description
    System.Threading.Tasks.Task<CreateUserResult>

    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
    Type Description
    System.Threading.Tasks.Task<DataPage<ILocalUser>>

    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
    Type Description
    System.Threading.Tasks.Task<LocalIdentityResult>

    SetLockedOutAsync(String, Boolean)

    Declaration
    public Task<LocalIdentityResult> SetLockedOutAsync(string userId, bool userIsLockedOut)
    Parameters
    Type Name Description
    System.String userId
    System.Boolean userIsLockedOut
    Returns
    Type Description
    System.Threading.Tasks.Task<LocalIdentityResult>

    SetPasswordAsync(String, String)

    Declaration
    public Task<ChangePasswordResult> SetPasswordAsync(string userId, string password)
    Parameters
    Type Name Description
    System.String userId
    System.String password
    Returns
    Type Description
    System.Threading.Tasks.Task<ChangePasswordResult>

    ValidateUserAndGetClaimsAsync(ValidateUserAndGetClaimsRequest)

    Declaration
    public Task<IList<Claim>> ValidateUserAndGetClaimsAsync(ValidateUserAndGetClaimsRequest request)
    Parameters
    Type Name Description
    ValidateUserAndGetClaimsRequest request
    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
    Type Description
    System.Threading.Tasks.Task<ValidateUserResult>

    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
    Type Description
    System.Threading.Tasks.Task<ChangePasswordResult>

    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
    Type Description
    System.Threading.Tasks.Task<LocalIdentityResult>

    Implements

    ILocalUserManager
    In This Article
    Back to top (c) Meriworks 2002-2022