Class StatusMonitorCache
Inheritance
StatusMonitorCache
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 0)]
public class StatusMonitorCache : CacheBaseV2, IFlushableV2, IDisposable
Constructors
StatusMonitorCache()
Declaration
public StatusMonitorCache()
Properties
TableNames
Gets the names of the table data that are cached in this cache. When these tables are updated
the cache will be disposed so a new cache instance can take its place.
Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Overrides
Methods
GetByOwner(SoTable)
Get an enumeration of status monitors, based on an owner
Declaration
public IEnumerable<StatusMonitorInfo> GetByOwner(SoTable owner)
Parameters
Type |
Name |
Description |
SoTable |
owner |
Table definition of owner table; null will return empty enumeration
|
Returns
GetCurrent()
Declaration
public static StatusMonitorCache GetCurrent()
Returns
GetFromId(int)
Declaration
public StatusMonitorInfo GetFromId(int id)
Parameters
Type |
Name |
Description |
int |
id |
|
Returns
IsCacheInvalidated(string, int, PrivateSave)
Invalidate the cache if the statusmonitor definition is changed, but not every time the NumNeedUpdate changes
Declaration
protected override bool IsCacheInvalidated(string tableName, int primaryKey, PrivateSave save)
Parameters
Returns
Overrides
OnLoad()
Declaration
protected override void OnLoad()
Overrides
Implements
Extension Methods