public virtual CacheItem Process(CacheItem cacheItem, CommandContext commandContext)
 {
     /*
      * create new cache item
      * assign original item
      * pass to default handler
      * then pass to remaining handlers
      */
     throw new NotImplementedException();
 }
Beispiel #2
0
        public virtual Key Build(CacheItem item, CommandContext commandContext)
        {
            var key = _keyGenerator.Generate(item, commandContext);
            Condition.WithExceptionOnFailure<CachingException>()
                .Requires(key, "generated key")
                .IsNotNull("Key generator failed to produce key.");

            foreach (var keyTransformation in TransformedBy)
            {
                key = keyTransformation.Transform(key, item, commandContext);
                Condition.WithExceptionOnFailure<CachingException>()
                    .Requires(key, "transformed key")
                    .IsNotNull("Key transformation failed to transform key.");
            }

            return key;
        }
 public virtual object Deserialize(object value, CommandContext executingCommand)
 {
     throw new NotImplementedException();
 }