Show / Hide Table of Contents

Class StatusMonitorCache

Cache for status monitor definitions, including name and description in the current language, from the localetext and text tables

Inheritance
Object
CacheBase
StatusMonitorCache
Implements
IDisposable
IFlushable
Inherited Members
CacheBase._lastUpdated
CacheBase._cacheState
CacheBase.IsCacheInvalidated(Int32, SqlType, Int32)
CacheBase.Dispose()
CacheBase.Validate()
CacheBase.Refresh()
CacheBase.Flush()
CacheBase.OnExpired()
CacheBase.OnRefreshed()
CacheBase.OnFlushed()
CacheBase.OnDisposed()
CacheBase.Lock
CacheBase.Name
CacheBase.CacheType
CacheBase.Timeout
CacheBase.State
CacheBase.IsValid
CacheBase.Expired
CacheBase.Refreshed
CacheBase.Flushed
CacheBase.Disposed
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Cache
Assembly: SoDataBase.dll
Syntax
public class StatusMonitorCache : CacheBase, IDisposable, IFlushable

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

GetCachedTableNumbers()

Declaration
public override int[] GetCachedTableNumbers()
Returns
Type Description
Int32[]
Overrides
CacheBase.GetCachedTableNumbers()

GetCurrent()

Obtain an instance of the StatusMonitorCache

Declaration
public static StatusMonitorCache GetCurrent()
Returns
Type Description
StatusMonitorCache

GetFromId(Int32)

Get information about a status monitor, based on a unique ID.

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

Database primary key of statusdef row

Returns
Type Description
StatusMonitorInfo

Information, or null if key does not exist

OnFlush()

Declaration
protected override void OnFlush()
Overrides
CacheBase.OnFlush()

OnRefresh()

Declaration
protected override void OnRefresh()
Overrides
CacheBase.OnRefresh()

Implements

System.IDisposable
IFlushable

Extension Methods

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