示例#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
文件: JSON_IO.cs 项目: TheByte/sones
 public Byte[] ExportAFSObject(AFSObject myAFSObject)
 {
     return null;
 }
示例#7
0
文件: HTML_IO.cs 项目: TheByte/sones
 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>();
        }