C# Class LearnLanguages.Common.CommonHelper

Afficher le fichier Open project: ibgib/LearnLanguages

Méthodes publiques

Méthode 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 méthode

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
Résultat void

CurrentUserIsAuthenticated() public static méthode

public static CurrentUserIsAuthenticated ( ) : bool
Résultat bool

PasswordIsValid() public static méthode

public static PasswordIsValid ( string password ) : bool
password string
Résultat bool

PasswordIsValid() public static méthode

public static PasswordIsValid ( string password, string &errorDescription ) : bool
password string
errorDescription string
Résultat bool

UsernameIsValid() public static méthode

public static UsernameIsValid ( string username ) : bool
username string
Résultat bool

UsernameIsValid() public static méthode

public static UsernameIsValid ( string username, string &errorDescription ) : bool
username string
errorDescription string
Résultat bool

WaitAsync() public static méthode

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