public BlogService(IPostRepository postRepository, IBlogCacheService blogCacheService, ICategoryRepository categoryRepository, ITagRepository tagRepository, IPostTagRepository postTagsRepository, IFriendLinkRepository friendLinksRepository) { _postRepository = postRepository; _blogCacheService = blogCacheService; _categoryRepository = categoryRepository; _tagRepository = tagRepository; _postTagsRepository = postTagsRepository; _friendLinksRepository = friendLinksRepository; }
public BlogService(IPostRepository posts, ICategoryRepository categories, ITagRepository tags, IFriendLinkRepository friendLinks, IBlogCacheService cache) { _posts = posts; _categories = categories; _tags = tags; _friendLinks = friendLinks; _cache = cache; }
public BlogService(IBlogCacheService blogCacheService, IPostRepository postRepository, ICategoryRepository categoryRepository, ITagRepository tagRepository, IPostTagRepository postTagRepository, IFriendLinkRepository friendLinksRepository, IDistributedEventBus distributedEventBus) { _blogCacheService = blogCacheService; _postRepository = postRepository; _categoryRepository = categoryRepository; _tagRepository = tagRepository; _postTagRepository = postTagRepository; _friendLinksRepository = friendLinksRepository; _distributedEventBus = distributedEventBus; }
public PostEventHandler(IBlogCacheService cache) { _cache = cache; }
public RenderedPageContent GetBlogPost([FromServices] IBlogCacheService service, string id) => service.GetPost(id);
public PagedCollection <RenderedPageContent> Page([FromServices] IBlogCacheService service, int pageNumber) => service.GetPage(pageNumber);
public FriendLinkEventHandler(IBlogCacheService cache) { _cache = cache; }
public CategoryEventHandler(IBlogCacheService cache) { _cache = cache; }
public BlogCachingRemoveHandler(IBlogCacheService blogCacheService) { _blogCacheService = blogCacheService; }