C# 클래스 WebUI.Services.Auth.UserAccountService

Service for managing user and its session
상속: IAccountService
파일 보기 프로젝트 열기: kulish-alina/HR_Project

공개 메소드들

메소드 설명
GetUser ( string token ) : UserDTO
LogInAsync ( string login, string password ) : string>>.Task

Logs user into the application and registers new session for they.

Register ( UserDTO model ) : UserDTO

Registers user with provided data

UserAccountService ( UserService userService, RoleService roleService, IAuthContainer authContainer ) : DAL.DTO

비공개 메소드들

메소드 설명
LogOut ( string token ) : bool

메소드 상세

GetUser() 공개 메소드

public GetUser ( string token ) : UserDTO
token string
리턴 DAL.DTO.UserDTO

LogInAsync() 공개 메소드

Logs user into the application and registers new session for they.
public LogInAsync ( string login, string password ) : string>>.Task
login string User login
password string User password
리턴 string>>.Task

Register() 공개 메소드

Registers user with provided data
public Register ( UserDTO model ) : UserDTO
model DAL.DTO.UserDTO User data
리턴 DAL.DTO.UserDTO

UserAccountService() 공개 메소드

public UserAccountService ( UserService userService, RoleService roleService, IAuthContainer authContainer ) : DAL.DTO
userService DAL.Services.UserService
roleService RoleService
authContainer IAuthContainer
리턴 DAL.DTO