Class ExtensibleDependency
ExtensibleDependency is an abstract class extended when Custom Dependency is required.
Inherited Members
Assembly: Alachisoft.NCache.Runtime.dll
Syntax
[Serializable]
public abstract class ExtensibleDependency : CacheDependency, IDisposable, IBinaryProtocolSerializable, ISerializableExtensibleDependency
              Properties
HasChanged
HasChanged bool flag is set true if an item is updated and it also needs to be updated in the cache.
Declaration
public abstract bool HasChanged { get; }
              Property Value
| Type | Description | 
|---|---|
| System.Boolean | Specifies a boolean value either true, or false.  | 
                  
Examples
public override bool HasChanged
{
    get
    {
       if (GetAvailableUnits(_productID) == 100)
       return true;
       return false;
    }
}
              Methods
Initialize()
This method initializes the ExtensibleDependency.
Declaration
public abstract bool Initialize()
              Returns
| Type | Description | 
|---|---|
| System.Boolean | True/False for successful/unsuccessful initialization.  | 
                  
Examples
public override bool Initialize() 
{
   _connection = new OleDbConnection(_connString);
   _connection.Open();
   return true; 
}