Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public interface ICache
- {
- T Get<T>(string key);
- }
- public class Processor<T>
- {
- public Processor(ICache cache, Func<T> processorFunction) {...}
- public Process()
- {
- processorFunction(cache.GetFromCache<T>());
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement