Class StatusMonitorCache
Inheritance
StatusMonitorCache
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[CacheV2(0)]
public class StatusMonitorCache : CacheBaseV2
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
GetFromId(int)
Declaration
public StatusMonitorInfo GetFromId(int id)
Parameters
| Type |
Name |
Description |
| int |
id |
|
Returns
IsCacheInvalidatedAsync(string, int, PrivateSave, CancellationToken)
Invalidate the cache if the statusmonitor definition is changed, but not every time the NumNeedUpdate changes
Declaration
protected override Task<bool> IsCacheInvalidatedAsync(string tableName, int primaryKey, PrivateSave save, CancellationToken cancellationToken = default)
Parameters
Returns
Overrides
OnLoad()
Declaration
protected override void OnLoad()
Overrides
OnLoadAsync(CancellationToken)
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
protected override Task OnLoadAsync(CancellationToken cancellationToken)
Parameters
Returns
Overrides
Extension Methods