AtomsFramework Persistence Layer Reference Guide

InjectedObjectCache Class

[This is preliminary documentation and subject to change.]

The Cache for InjectedObjects.

For a list of all members of this type, see InjectedObjectCache Members.

System.Object
   System.Collections.Hashtable
      AtomsFramework.InjectedObjectCache

[Visual Basic]
Public Class InjectedObjectCache
    Inherits Hashtable
[C#]
public class InjectedObjectCache : Hashtable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Remarks

The InjectedObjectCache is a collection of InjectedObjects and matching InjectedObjectKeys based on a standard hash table.

The InjectedObject cache is a little difficult to explain, but in simple terms we need to keep track of each object we wish to persist regardless of wether it is inheriting from PersistentObject or not. If it not (a non-inheited object) then we wrap it up in an InjectedObject class and keep track of it using this cache.

By doing so we are able to keep track of it's state, dirtiness, etc and we can treat it internally much the same as an inherited object.

Requirements

Namespace: AtomsFramework

Assembly: AtomsFramework (in AtomsFramework.dll)

See Also

InjectedObjectCache Members | AtomsFramework Namespace