C# Class Emergy.Core.Services.AccountService

Inheritance: IAccountService
Datei anzeigen Open project: gboduljak/Emergy

Public Methods

Method Description
AccountService ( ) : System
AccountService ( UserManager userManager, RoleManager roleManager, IEmailService emailService ) : System
ChangePasswordAsync ( string userId, ChangePasswordBindingModel model ) : Task
Create ( ) : AccountService
CreateAccountAsync ( ApplicationUser newUser, string password ) : Task
Dispose ( ) : void
EmailTaken ( string email ) : Task
GetUserByIdAsync ( string userId ) : Task
GetUserByKeyAsync ( string userKey ) : Task
GetUserByNameAsync ( string userName ) : Task
LoginAsync ( LoginUserBindingModel model, OAuthAuthorizationServerOptions authOptions ) : Task
UpdateLocation ( ApplicationUser user, Location location ) : System.Threading.Tasks.Task
UserNameTaken ( string username ) : Task

Private Methods

Method Description
SetUserKey ( ApplicationUser &user, string &userKey ) : void

Method Details

AccountService() public method

public AccountService ( ) : System
return System

AccountService() public method

public AccountService ( UserManager userManager, RoleManager roleManager, IEmailService emailService ) : System
userManager UserManager
roleManager RoleManager
emailService IEmailService
return System

ChangePasswordAsync() public method

public ChangePasswordAsync ( string userId, ChangePasswordBindingModel model ) : Task
userId string
model Emergy.Core.Models.Account.ChangePasswordBindingModel
return Task

Create() public method

public Create ( ) : AccountService
return AccountService

CreateAccountAsync() public method

public CreateAccountAsync ( ApplicationUser newUser, string password ) : Task
newUser ApplicationUser
password string
return Task

Dispose() public method

public Dispose ( ) : void
return void

EmailTaken() public method

public EmailTaken ( string email ) : Task
email string
return Task

GetUserByIdAsync() public method

public GetUserByIdAsync ( string userId ) : Task
userId string
return Task

GetUserByKeyAsync() public method

public GetUserByKeyAsync ( string userKey ) : Task
userKey string
return Task

GetUserByNameAsync() public method

public GetUserByNameAsync ( string userName ) : Task
userName string
return Task

LoginAsync() public method

public LoginAsync ( LoginUserBindingModel model, OAuthAuthorizationServerOptions authOptions ) : Task
model Emergy.Core.Models.Account.LoginUserBindingModel
authOptions Microsoft.Owin.Security.OAuth.OAuthAuthorizationServerOptions
return Task

UpdateLocation() public method

public UpdateLocation ( ApplicationUser user, Location location ) : System.Threading.Tasks.Task
user ApplicationUser
location Emergy.Data.Models.Location
return System.Threading.Tasks.Task

UserNameTaken() public method

public UserNameTaken ( string username ) : Task
username string
return Task