/// <summary> /// Gets the session value from the back end store. /// </summary> /// <typeparam name="T">The type of the object to retrieve</typeparam> /// <param name="category">The category under which the object is stored.</param> /// <param name="sessionId">The key against which the object is stored in the category.</param> public T Get <T>(string category, string sessionId) { try { return(_provider.Get <T>(category, sessionId)); } catch (SessionException) { throw; } catch (Exception ex) { throw new SessionException(SessionResources.Error_Generic, ex); } }
public async Task <JsonResult> Get(Guid sessionUid) { var sessionInfo = await _sessionDataProvider.Get(sessionUid); return(new JsonResult(sessionInfo)); }