//public delegate void PostProcessing(Post post); public CachedPostService( IPostRepository postRepository, ITermService termService, IShortCodeService shortCode, IPostProcessingService postProcessingService, IMetadataService metadataService, IMemoryCache memoryCache) : base(postRepository, termService, shortCode, postProcessingService, metadataService) { _memoryCache = memoryCache; _cacheOptions = new MemoryCacheEntryOptions().SetAbsoluteExpiration(TimeSpan.FromMinutes(Constants.MinutesToCache)); }
public PostService( IPostRepository postRepository, ITermService termService, IShortCodeService shortCode, IPostProcessingService postProcessingService, IMetadataService metadataService) { _postRepository = postRepository; _termService = termService; _shortCode = shortCode; _postProcessingService = postProcessingService; _metadataService = metadataService; }