ClearCanvas.Web.Enterprise.Authentication.LoginService.Renew C# (CSharp) Method

Renew() private method

private Renew ( string tokenId, bool bypassCache = false ) : ClearCanvas.Web.Enterprise.Authentication.SessionInfo
tokenId string
bypassCache bool
return ClearCanvas.Web.Enterprise.Authentication.SessionInfo
		public SessionInfo Renew(string tokenId, bool bypassCache = false)
		{
			return RenewSession(tokenId, bypassCache);
		}

Usage Example

 public UserSessionInfo RenewSession(UserSessionInfo session)
 {
     using (LoginService service = new LoginService())
     {
         var newToken = service.Renew(session.SessionToken.Id);
         return new UserSessionInfo(session.Principal, newToken);
     }
 }
All Usage Examples Of ClearCanvas.Web.Enterprise.Authentication.LoginService::Renew