42 lines
1.4 KiB
C#
42 lines
1.4 KiB
C#
using Sarand.BusinessMgr.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.Core;
|
|
using Sarand.Net.Standard.Base.ItemOptions;
|
|
using System.Collections.Generic;
|
|
|
|
namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
|
{
|
|
//=======================================================================
|
|
/// <summary>
|
|
/// Practically persistant/static data stored in instance database, eg. Owner configuration options.
|
|
/// </summary>
|
|
public abstract class SbmInstanceDataCache : SacsDisposable
|
|
{
|
|
//-------------------------------------------------------------------
|
|
// Construction.
|
|
|
|
public SbmInstanceDataCache() { }
|
|
|
|
protected override void Dispose(bool disposing)
|
|
{
|
|
}
|
|
|
|
//-------------------------------------------------------------------
|
|
|
|
/// <summary>
|
|
/// Retrieve Item Options for Owner Organisation configuration.
|
|
/// </summary>
|
|
/// <param name="userContext"></param>
|
|
/// <returns></returns>
|
|
public abstract List<SaItemOption> GetOwnerOptions(ISbmUserOrganisationContext userContext);
|
|
|
|
/// <summary>
|
|
/// Resets the state of the cache to its initial condition.
|
|
/// </summary>
|
|
/// <remarks>Typically done when something significant about the instance (eg. db connection configuration) has changed.</remarks>
|
|
public abstract void Reset();
|
|
|
|
//-------------------------------------------------------------------
|
|
}
|
|
//=======================================================================
|
|
}
|