Show / Hide Table of Contents

Class StatusMonitorCache

Inheritance
Object
CacheBaseV2
StatusMonitorCache
Implements
IFlushableV2
IDisposable
Inherited Members
CacheBaseV2.Dispose()
CacheBaseV2.Flush()
CacheBaseV2.BeginDisableAutoUpdate()
CacheBaseV2.GetCurrent<T>()
CacheBaseV2.Load()
CacheBaseV2.Disposed
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
[CacheV2("Database", 0)]
public class StatusMonitorCache : CacheBaseV2, IFlushableV2, IDisposable

Constructors

StatusMonitorCache()

Declaration
public StatusMonitorCache()

Properties

TableNames

Declaration
protected override IEnumerable<string> TableNames { get; }
Property Value
Type Description
IEnumerable<String>
Overrides
CacheBaseV2.TableNames

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
Type Description
IEnumerable<StatusMonitorInfo>

Enumeration; empty if owner does not exists or has no status monitors

GetCurrent()

Declaration
public static StatusMonitorCache GetCurrent()
Returns
Type Description
StatusMonitorCache

GetFromId(Int32)

Declaration
public StatusMonitorInfo GetFromId(int id)
Parameters
Type Name Description
Int32 id
Returns
Type Description
StatusMonitorInfo

IsCacheInvalidated(String, Int32, 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
Type Name Description
String tableName
Int32 primaryKey
PrivateSave save
Returns
Type Description
Boolean
Overrides
CacheBaseV2.IsCacheInvalidated(String, Int32, PrivateSave)

OnLoad()

Declaration
protected override void OnLoad()
Overrides
CacheBaseV2.OnLoad()

Implements

IFlushableV2
System.IDisposable

Extension Methods

EnumUtil.MapEnums<From, To>(From)
ObjectExtensions.AssignByReflection<T>(T, T)
ObjectExtensions.GraphCopy<T>(T)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top