Class ProjectFencingCache
Inheritance
ProjectFencingCache
Assembly: SoDataBase.dll
Syntax
[CacheV2(0)]
public class ProjectFencingCache : CacheBaseV2
Constructors
ProjectFencingCache()
Declaration
public ProjectFencingCache()
Properties
ActiveProjectCount
Declaration
public int ActiveProjectCount { get; }
Property Value
CurrentCount
Declaration
public int CurrentCount { get; }
Property Value
Maximum
Declaration
public int Maximum { get; }
Property Value
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
HasReachedMaximum()
Declaration
public bool HasReachedMaximum()
Returns
IsCacheInvalidatedAsync(string, int, PrivateSave, CancellationToken)
Determine if the change made the cache invalid.
Declaration
protected override Task<bool> IsCacheInvalidatedAsync(string tableName, int primaryKey, PrivateSave save, CancellationToken cancellationToken = default)
Parameters
| Type |
Name |
Description |
| string |
tableName |
|
| int |
primaryKey |
Primary key of the record being changed.
|
| PrivateSave |
save |
The SQL statement generating the change
|
| CancellationToken |
cancellationToken |
|
Returns
Overrides
OnLoad()
Actual cache loading method, to be implemented by derived class. Sentry is Ignored when this method is called
Declaration
protected override void OnLoad()
Overrides
OnLoadAsync(CancellationToken)
Actual cache loading method, to be implemented by derived class. Sentry is Ignored when this method is called
Declaration
[CreateSyncVersion(OmitNullableDirective = true)]
protected override Task OnLoadAsync(CancellationToken cancellationToken)
Parameters
Returns
Overrides
Extension Methods