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