Exemplo n.º 1
0
 public virtual void Dispose()
 {
     MemoryState = MemoryObjectState.DELETING;
     try
     {
         DeleteOverridable();
     }
     finally
     {
         MemoryState = MemoryObjectState.DELETED;
     }
 }
Exemplo n.º 2
0
 public virtual void GetObjectData(SerializationInfo info, StreamingContext ctxt)
 {
     MemoryState = MemoryObjectState.UNLOADING;
     try
     {
         MemoryUnload(info);
     }
     finally
     {
         MemoryState = MemoryObjectState.UNLOADED;
     }
 }
Exemplo n.º 3
0
 public virtual void Initialize()
 {
     if (MemoryState != MemoryObjectState.LOADED)
     {
         return;
     }
     else
     {
         MemoryState = MemoryObjectState.INITIALIZING;
         try
         {
             InitializeOverridable();
         }
         finally
         {
             MemoryState = MemoryObjectState.ALIVE;
         }
     }
 }
Exemplo n.º 4
0
 public MemoryObject()
 {
     MemoryState = MemoryObjectState.LOADED;
 }
Exemplo n.º 5
0
 public MemoryObject(SerializationInfo info, StreamingContext ctxt)
 {
     MemoryState = MemoryObjectState.LOADING;
     MemoryLoad(info);
     MemoryState = MemoryObjectState.LOADED;
 }