Exemple #1
0
 protected virtual void UpdateContentFrom(MetaDataWithContent <TKey> source)
 {
     if (!(source.IsLoaded))
     {
         return;
     }
     Content.Data = source.Content.Data;
 }
 private void serializeContent <TObject>(MetaDataWithContent <string> metaDataWithContent, TObject objectToSerialize, bool compress = true)
 {
     metaDataWithContent.Content.Data = _serializationManager.Serialize(objectToSerialize, compress);
 }
 private void serializeContent <T>(MetaDataWithContent <T> metaDataWithContent, object entity)
 {
     metaDataWithContent.Content.Data = _serializationService.SerializeAsBytes(entity);
 }