Advertisement
Guest User

Untitled

a guest
Apr 8th, 2017
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.25 KB | None | 0 0
  1.     public interface ICache
  2.     {
  3.         T Get<T>(string key);
  4.     }
  5.  
  6.     public class Processor<T>
  7.     {
  8.         public Processor(ICache cache, Func<T> processorFunction) {...}
  9.         public Process()
  10.         {
  11.             processorFunction(cache.GetFromCache<T>());
  12.         }
  13.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement