Class CacheBase
Inheritance
System.Object
CacheBase
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: fcSDK.dll
Syntax
public abstract class CacheBase
Constructors
CacheBase()
Declaration
Fields
UpdateSyncRoot
Declaration
protected readonly object UpdateSyncRoot
Field Value
Type |
Description |
System.Object |
|
Properties
CacheSetName
Declaration
public abstract string CacheSetName { get; }
Property Value
Type |
Description |
System.String |
|
CacheType
Declaration
public abstract CacheType CacheType { get; }
Property Value
Methods
AllTablesExistInDataSet(DataSet, String[])
Declaration
protected bool AllTablesExistInDataSet(DataSet dataDs, params string[] tableNames)
Parameters
Type |
Name |
Description |
System.Data.DataSet |
dataDs |
|
System.String[] |
tableNames |
|
Returns
Type |
Description |
System.Boolean |
|
GenerateMD5Hash(String)
Declaration
protected static string GenerateMD5Hash(string sourceValue)
Parameters
Type |
Name |
Description |
System.String |
sourceValue |
|
Returns
Type |
Description |
System.String |
|
GetCacheDataHash()
Declaration
protected virtual string GetCacheDataHash()
Returns
Type |
Description |
System.String |
|
GetCacheFilePath(String)
Declaration
protected string GetCacheFilePath(string cacheSetName)
Parameters
Type |
Name |
Description |
System.String |
cacheSetName |
|
Returns
Type |
Description |
System.String |
|
InitCacheData()
Declaration
protected abstract object InitCacheData()
Returns
Type |
Description |
System.Object |
|
IsCacheOutOfDate(DateTime)
Declaration
protected abstract bool IsCacheOutOfDate(DateTime testDate)
Parameters
Type |
Name |
Description |
System.DateTime |
testDate |
|
Returns
Type |
Description |
System.Boolean |
|
LoadCacheData(Object)
Declaration
protected virtual void LoadCacheData(object cacheData)
Parameters
Type |
Name |
Description |
System.Object |
cacheData |
|
OnAnyCacheUpdated(CacheBase)
Declaration
protected static void OnAnyCacheUpdated(CacheBase instance)
Parameters
OnCacheUpdated()
Declaration
protected void OnCacheUpdated()
PersistCacheData(Object, String)
Declaration
protected virtual void PersistCacheData(object cacheData, string filePath)
Parameters
Type |
Name |
Description |
System.Object |
cacheData |
|
System.String |
filePath |
|
ReadCacheData(String)
Declaration
protected virtual object ReadCacheData(string filePath)
Parameters
Type |
Name |
Description |
System.String |
filePath |
|
Returns
Type |
Description |
System.Object |
|
SetNameAndParameters(String, String)
Declaration
protected abstract void SetNameAndParameters(string name, string parameters)
Parameters
Type |
Name |
Description |
System.String |
name |
|
System.String |
parameters |
|
UpdateCache()
Declaration
public virtual void UpdateCache()
Events
AnyCacheUpdated
Declaration
public static event EventHandler AnyCacheUpdated
Event Type
Type |
Description |
System.EventHandler |
|
CacheUpdated
Declaration
public event EventHandler CacheUpdated
Event Type
Type |
Description |
System.EventHandler |
|