Files
BusinessMgr-2019/SaBusMgrStandardBase/Base/App/SbmSessionContext.cs
T

28 lines
888 B
C#

using Newtonsoft.Json;
using Sarand.Net.Standard.Base.App;
namespace Sarand.BusinessMgr.Net.Standard.Base.App
{
//=======================================================================
public class SbmSessionContext : SacsSessionContext
{
//-------------------------------------------------------------------
// Construction.
[JsonConstructor]
protected SbmSessionContext(ushort index, Sbm.Application application) : base(index)
{
Index = index;
Application = application;
}
//-------------------------------------------------------------------
// Properties.
public Sbm.Application Application { get; private set; }
public bool IsDemoRepository() { return Application == Sbm.Application.WebDemo; }
//-------------------------------------------------------------------
}
//=======================================================================
}