C# Class LearnLanguages.Common.CommonHelper

Exibir arquivo Open project: ibgib/LearnLanguages

Public Methods

Method Description
CheckAuthentication ( ) : void

ANY CODE RUNNING ON THE SERVER SHOULD ONLY BE RUN WHEN THE CURRENT USER IS AUTHENTICATED (EXCEPT CODE INVOLVING THE AUTHENTICATION PROCESS ;)

CurrentUserIsAuthenticated ( ) : bool
PasswordIsValid ( string password ) : bool
PasswordIsValid ( string password, string &errorDescription ) : bool
UsernameIsValid ( string username ) : bool
UsernameIsValid ( string username, string &errorDescription ) : bool
WaitAsync ( int timeToWaitInMs ) : System.Threading.Tasks.Task

Waits for the given time in a background thread (executed with a Task)

Method Details

CheckAuthentication() public static method

ANY CODE RUNNING ON THE SERVER SHOULD ONLY BE RUN WHEN THE CURRENT USER IS AUTHENTICATED (EXCEPT CODE INVOLVING THE AUTHENTICATION PROCESS ;)
public static CheckAuthentication ( ) : void
return void

CurrentUserIsAuthenticated() public static method

public static CurrentUserIsAuthenticated ( ) : bool
return bool

PasswordIsValid() public static method

public static PasswordIsValid ( string password ) : bool
password string
return bool

PasswordIsValid() public static method

public static PasswordIsValid ( string password, string &errorDescription ) : bool
password string
errorDescription string
return bool

UsernameIsValid() public static method

public static UsernameIsValid ( string username ) : bool
username string
return bool

UsernameIsValid() public static method

public static UsernameIsValid ( string username, string &errorDescription ) : bool
username string
errorDescription string
return bool

WaitAsync() public static method

Waits for the given time in a background thread (executed with a Task)
public static WaitAsync ( int timeToWaitInMs ) : System.Threading.Tasks.Task
timeToWaitInMs int
return System.Threading.Tasks.Task