Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #6
0
 public Byte[] ExportAFSObject(AFSObject myAFSObject)
 {
     return null;
 }
Beispiel #7
0
 public Byte[] ExportAFSObject(AFSObject myAFSObject)
 {
     throw new NotImplementedException();
 }
Beispiel #8
0
        protected override Exceptional<AFSObject> StoreAFSObject_protected(AFSObject myAFSObject, CacheUUID myCacheUUID, CachePriority myCachePriority = CachePriority.LOW)
        {
            Debug.Assert(myCacheUUID                        != null);

            return new Exceptional<AFSObject>();
        }