/// <summary> /// Implementation of SearchPostsQuery.Handler. /// </summary> /// <param name="uow">The blog unit of work.</param> /// <param name="postRanker">Post ranker.</param> /// <param name="blogOptions">The blog options.</param> /// <param name="postUrlHelper">Post URL helper.</param> /// <param name="fileUrlHelper">File URL helper.</param> public Handler( IBlogUnitOfWork uow, IPostRanker postRanker, IOptionsSnapshot <PineBlogOptions> blogOptions, PostUrlHelper postUrlHelper, FileUrlHelper fileUrlHelper) { _blogOptions = blogOptions; _uow = uow; _postRanker = postRanker; _postUrlHelper = postUrlHelper; _fileUrlHelper = fileUrlHelper; }
/// <summary> /// Implementation of GetFeedQuery.Handler. /// </summary> /// <param name="context">The blog entity context.</param> /// <param name="blogOptions">The blog options.</param> /// <param name="postUrlHelper">Post URL helper.</param> public Handler(IBlogEntityDbContext context, IOptionsSnapshot <PineBlogOptions> blogOptions, PostUrlHelper postUrlHelper) { _blogOptions = blogOptions; _context = context; _postUrlHelper = postUrlHelper; }