Exemplo n.º 1
0
 /// <summary>
 /// Invoke the OnSave event, called whenever a AFSObject
 /// is ready to be saved.
 /// </summary>
 /// <param name="e">EventArgs</param>
 public virtual void OnSaveEvent(ObjectLocation myObjectLocation, AFSObject myAFSObject)
 {
     if (OnSave != null)
         OnSave(myObjectLocation, myAFSObject);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Invoke the OnLoaded event, called whenever a AFSObject
 /// was successfully loaded.
 /// </summary>
 /// <param name="e">EventArgs</param>
 public virtual void OnLoadedEvent(ObjectLocator myObjectLocator, AFSObject myAFSObject)
 {
     if (OnLoaded != null)
         OnLoaded(myObjectLocator, myAFSObject);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Invoke the OnSaved event, called whenever a AFSObject
 /// was successfully saved on disc.
 /// </summary>
 /// <param name="e">EventArgs</param>
 public virtual void OnSavedEvent(ObjectLocator myObjectLocator, AFSObject myAFSObject, ObjectRevisionID myOldObjectRevisionID)
 {
     if (OnSaved != null)
         OnSaved(myObjectLocator, myAFSObject, myOldObjectRevisionID);
 }
Exemplo n.º 4
0
 /// <summary>
 /// This will call the normal Deserialize method and afterwards it will
 /// copy the content of all AGraphStructure and AAFSObject properties
 /// to the clone.
 /// </summary>
 /// <param name="mySerializedData">The fastserialized object as an array of bytes</param>
 /// <param name="myAAFSObject">The AAFSObject to copy the content from</param>
 public void Deserialize(Byte[] mySerializedData, IIntegrityCheck myIntegrityCheckAlgorithm, ISymmetricEncryption myEncryptionAlgorithm, AFSObject myAAFSObject)
 {
     Deserialize(mySerializedData, myIntegrityCheckAlgorithm, myEncryptionAlgorithm, false);
     CloneObjectOntology(myAAFSObject);
 }
Exemplo n.º 5
0
 /// <summary>
 /// This will call the normal Deserialize method and afterwards it will
 /// copy the content of all AGraphStructure and AAFSObject properties
 /// to the clone.
 /// </summary>
 /// <param name="mySerializedData">The fastserialized object as an array of bytes</param>
 /// <param name="myAAFSObject">The AAFSObject to copy the content from</param>
 public void Deserialize(Byte[] mySerializedData, AFSObject myAAFSObject)
 {
     Deserialize(mySerializedData);
     CloneObjectOntology(myAAFSObject);
 }
Exemplo n.º 6
0
 public Byte[] ExportAFSObject(AFSObject myAFSObject)
 {
     return null;
 }
Exemplo n.º 7
0
 public Byte[] ExportAFSObject(AFSObject myAFSObject)
 {
     throw new NotImplementedException();
 }
Exemplo n.º 8
0
        protected override Exceptional<AFSObject> StoreAFSObject_protected(AFSObject myAFSObject, CacheUUID myCacheUUID, CachePriority myCachePriority = CachePriority.LOW)
        {
            Debug.Assert(myCacheUUID                        != null);

            return new Exceptional<AFSObject>();
        }