Méthode | Description | |
---|---|---|
AllRoles ( ) : List |
Returns a list of all the possible Roles
|
|
Flush ( int id ) : void |
Removes role from cache
|
|
GetOrAddExisting ( string key, Func |
Gets the or add existing.
|
|
IsPersonInRole ( System.Guid personGuid ) : bool |
Is user in role
|
|
LoadById ( int id ) : |
Loads the by identifier.
|
|
Read ( int id ) : |
Returns Role object from cache. If role does not already exist in cache, it will be read and added to cache
|
Méthode | Description | |
---|---|---|
CacheKey ( int id ) : string |
Caches the key.
|
|
Role ( ) : System |
Use Static Read() method to instantiate a new Role object
|
public static GetOrAddExisting ( string key, Func |
||
key | string | The key. |
valueFactory | Func |
The value factory. |
Résultat |
public IsPersonInRole ( System.Guid personGuid ) : bool | ||
personGuid | System.Guid | The person unique identifier. |
Résultat | bool |
public static LoadById ( int id ) : |
||
id | int | The identifier. |
Résultat |