37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using Newtonsoft.Json;
|
|
using Sarand.BusinessMgr.Net.Standard.Base.App;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Core.Web.App
|
|
{
|
|
//=======================================================================
|
|
public abstract class SbmSessionData_Web : SbmSessionData
|
|
{
|
|
//-------------------------------------------------------------------
|
|
/// <summary>
|
|
/// Protected construction - for JSON deserialisation and non-session data (eg. prior to logon).
|
|
/// <para>- Session index persistent to record sequence in which Session Data objects created.</para>
|
|
/// <para>- Session index should be zero for non-session data, eg. background tasks.</para>
|
|
/// </summary>
|
|
protected SbmSessionData_Web(long sessionIdx, SbmSessionContext sessionContext) :
|
|
base(sessionIdx, sessionContext)
|
|
{
|
|
}
|
|
/// <summary>
|
|
/// Session Data constructor - prior to storage against session.
|
|
/// </summary>
|
|
protected SbmSessionData_Web(SbmSessionContext sessionContext) :
|
|
base(sessionContext)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
// Properties.
|
|
|
|
[JsonIgnore]
|
|
public abstract bool KeepLoggedIn { get; }
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|