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

            return new Exceptional<AFSObject>();
        }