C# 클래스 NuGetGallery.UserService

상속: IUserService
파일 보기 프로젝트 열기: chocolatey/chocolatey.org 1 사용 예제들

공개 메소드들

메소드 설명
ChangePassword ( string username, string oldPassword, string newPassword ) : bool
ConfirmEmailAddress ( User user, string token ) : bool
Create ( string username, string password, string emailAddress ) : User
FindByApiKey ( System.Guid apiKey ) : User
FindByEmailAddress ( string emailAddress ) : User
FindByUnconfimedEmailAddress ( string unconfirmedEmailAddress ) : User
FindByUserId ( int userKey ) : User
FindByUsername ( string username ) : User
FindByUsernameAndPassword ( string username, string password ) : User
FindByUsernameOrEmailAddressAndPassword ( string usernameOrEmail, string password ) : User
GenerateApiKey ( string username ) : string
GeneratePasswordResetToken ( string usernameOrEmail, int tokenExpirationMinutes ) : User
ResetPasswordWithToken ( string username, string token, string newPassword ) : bool
UpdateProfile ( User user, string emailAddress, bool emailAllowed ) : void
UpdateProfile ( User user, string emailAddress, bool emailAllowed, bool emailAllModerationNotifications ) : void
UserService ( IConfiguration config, ICryptographyService cryptoSvc, IEntityRepository userRepo ) : System

비공개 메소드들

메소드 설명
ChangePasswordInternal ( User user, string newPassword ) : void

메소드 상세

ChangePassword() 공개 메소드

public ChangePassword ( string username, string oldPassword, string newPassword ) : bool
username string
oldPassword string
newPassword string
리턴 bool

ConfirmEmailAddress() 공개 메소드

public ConfirmEmailAddress ( User user, string token ) : bool
user User
token string
리턴 bool

Create() 공개 메소드

public Create ( string username, string password, string emailAddress ) : User
username string
password string
emailAddress string
리턴 User

FindByApiKey() 공개 메소드

public FindByApiKey ( System.Guid apiKey ) : User
apiKey System.Guid
리턴 User

FindByEmailAddress() 공개 메소드

public FindByEmailAddress ( string emailAddress ) : User
emailAddress string
리턴 User

FindByUnconfimedEmailAddress() 공개 메소드

public FindByUnconfimedEmailAddress ( string unconfirmedEmailAddress ) : User
unconfirmedEmailAddress string
리턴 User

FindByUserId() 공개 메소드

public FindByUserId ( int userKey ) : User
userKey int
리턴 User

FindByUsername() 공개 메소드

public FindByUsername ( string username ) : User
username string
리턴 User

FindByUsernameAndPassword() 공개 메소드

public FindByUsernameAndPassword ( string username, string password ) : User
username string
password string
리턴 User

FindByUsernameOrEmailAddressAndPassword() 공개 메소드

public FindByUsernameOrEmailAddressAndPassword ( string usernameOrEmail, string password ) : User
usernameOrEmail string
password string
리턴 User

GenerateApiKey() 공개 메소드

public GenerateApiKey ( string username ) : string
username string
리턴 string

GeneratePasswordResetToken() 공개 메소드

public GeneratePasswordResetToken ( string usernameOrEmail, int tokenExpirationMinutes ) : User
usernameOrEmail string
tokenExpirationMinutes int
리턴 User

ResetPasswordWithToken() 공개 메소드

public ResetPasswordWithToken ( string username, string token, string newPassword ) : bool
username string
token string
newPassword string
리턴 bool

UpdateProfile() 공개 메소드

public UpdateProfile ( User user, string emailAddress, bool emailAllowed ) : void
user User
emailAddress string
emailAllowed bool
리턴 void

UpdateProfile() 공개 메소드

public UpdateProfile ( User user, string emailAddress, bool emailAllowed, bool emailAllModerationNotifications ) : void
user User
emailAddress string
emailAllowed bool
emailAllModerationNotifications bool
리턴 void

UserService() 공개 메소드

public UserService ( IConfiguration config, ICryptographyService cryptoSvc, IEntityRepository userRepo ) : System
config IConfiguration
cryptoSvc ICryptographyService
userRepo IEntityRepository
리턴 System