/// <summary>
 /// Data is cached by User and their last login. So that the cache will reload when the user does a logout/login.
 /// </summary>
 /// <param name="FormsAuthService"></param>
 /// <param name="Prefix"></param>
 /// <returns></returns>
 public static string GetUserSignInKey(IFormsAuthenticationService FormsAuthService, string Prefix)
 {
     return (Prefix.AsNullIfWhiteSpace() ?? "") + FormsAuthService.GetCurrentUserName() + "-" + FormsAuthService.GetCurrentUserSignInTicks();
 }
Пример #2
0
 /// <summary>
 /// Data is cached by User and their last login. So that the cache will reload when the user does a logout/login.
 /// </summary>
 /// <param name="FormsAuthService"></param>
 /// <param name="Prefix"></param>
 /// <returns></returns>
 public static string GetUserSignInKey(IFormsAuthenticationService FormsAuthService, string Prefix)
 {
     return((Prefix.AsNullIfWhiteSpace() ?? "") + FormsAuthService.GetCurrentUserName() + "-" + FormsAuthService.GetCurrentUserSignInTicks());
 }