Пример #1
0
 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;
 }
Пример #2
0
 public BlogService(IPostRepository posts,
                    ICategoryRepository categories,
                    ITagRepository tags,
                    IFriendLinkRepository friendLinks,
                    IBlogCacheService cache)
 {
     _posts       = posts;
     _categories  = categories;
     _tags        = tags;
     _friendLinks = friendLinks;
     _cache       = cache;
 }
Пример #3
0
 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;
 }
Пример #4
0
 public PostEventHandler(IBlogCacheService cache)
 {
     _cache = cache;
 }
Пример #5
0
 public RenderedPageContent GetBlogPost([FromServices] IBlogCacheService service, string id)
 => service.GetPost(id);
Пример #6
0
 public PagedCollection <RenderedPageContent> Page([FromServices] IBlogCacheService service, int pageNumber)
 => service.GetPage(pageNumber);
Пример #7
0
 public FriendLinkEventHandler(IBlogCacheService cache)
 {
     _cache = cache;
 }
Пример #8
0
 public CategoryEventHandler(IBlogCacheService cache)
 {
     _cache = cache;
 }
Пример #9
0
 public BlogCachingRemoveHandler(IBlogCacheService blogCacheService)
 {
     _blogCacheService = blogCacheService;
 }