C# 클래스 EasyAuth.Storage.MemoryUserStore

Stores users in a list in memory.
상속: IUserStore
파일 보기 프로젝트 열기: adamkdean/EasyAuth 1 사용 예제들

공개 메소드들

메소드 설명
AddUser ( string username, string password ) : void
DeleteUserById ( int id ) : void
GetAllUsers ( ) : List
GetUserById ( int id ) : User

Return a clone of the user data object This is so that they are forced to use the update method rather than just changing the object directly.

GetUserByUsername ( string username ) : User

Return a clone of the user data object This is so that they are forced to use the update method rather than just changing the object directly.

UpdateUserById ( int id, User newUser ) : void
UserExistsById ( int id ) : bool
UserExistsByUsername ( string username ) : bool

보호된 메소드들

메소드 설명
GetActualUserById ( int id ) : User

Return the actual object reference for the user We can use this to search by reference in the List<>

GetActualUserByUsername ( string username ) : User

Return the actual object reference for the user We can use this to search by reference in the List<>

비공개 메소드들

메소드 설명
MemoryUserStore ( ) : System
Reset ( ) : void

메소드 상세

AddUser() 공개 메소드

public AddUser ( string username, string password ) : void
username string
password string
리턴 void

DeleteUserById() 공개 메소드

public DeleteUserById ( int id ) : void
id int
리턴 void

GetActualUserById() 보호된 메소드

Return the actual object reference for the user We can use this to search by reference in the List<>
protected GetActualUserById ( int id ) : User
id int
리턴 User

GetActualUserByUsername() 보호된 메소드

Return the actual object reference for the user We can use this to search by reference in the List<>
protected GetActualUserByUsername ( string username ) : User
username string
리턴 User

GetAllUsers() 공개 메소드

public GetAllUsers ( ) : List
리턴 List

GetUserById() 공개 메소드

Return a clone of the user data object This is so that they are forced to use the update method rather than just changing the object directly.
public GetUserById ( int id ) : User
id int
리턴 User

GetUserByUsername() 공개 메소드

Return a clone of the user data object This is so that they are forced to use the update method rather than just changing the object directly.
public GetUserByUsername ( string username ) : User
username string
리턴 User

UpdateUserById() 공개 메소드

public UpdateUserById ( int id, User newUser ) : void
id int
newUser User
리턴 void

UserExistsById() 공개 메소드

public UserExistsById ( int id ) : bool
id int
리턴 bool

UserExistsByUsername() 공개 메소드

public UserExistsByUsername ( string username ) : bool
username string
리턴 bool