Exemplo n.º 1
0
 /// <summary>
 /// Deletes an entry if it is not newer than a cutoff.
 /// </summary>
 /// <param name="typeId">The <see cref="DataBuffer"/> type
 /// identifier.</param>
 /// <param name="key">The <see cref="StorageKey"/> entry
 /// identifier.</param>
 /// <param name="updated">The <see cref="DateTime"/> version
 /// cut off.</param>
 /// <returns><see langword="true"/> if the entry existed prior and was
 /// deleted; otherwise <see langword="false"/>.</returns>
 internal static bool DeleteVersion(DataBuffer typeId, StorageKey key, DateTime updated)
 {
     if (!_storage.DeleteVersion(typeId, key, updated))
     {
         return(false);
     }
     ProcessObjectDependencies(typeId, key, OperationType.Delete);
     return(true);
 }