public SyndicationLink(IFeedResolver feedResolver) { Blog = ManagerFactory.BlogManagerInstance.GetCurrentBlog(); Feeds = feedResolver.Resolve(Blog); Attributes = new Dictionary <HtmlTextWriterAttribute, string> { { HtmlTextWriterAttribute.Rel, "alternate" }, { HtmlTextWriterAttribute.Type, "application/rsd+xml" }, }; }
public Feeds(IFeedResolver feedResolver) { Assert.ArgumentNotNull(feedResolver, nameof(feedResolver)); FeedResolver = feedResolver; }
public async Task <FeedPageListModel> GetFeedsAsync([Service] IFeedResolver farmResolver, FeedFilterModel criterias) { return(await farmResolver.GetFeedsAsync(criterias)); }
public BlogSyndicationController(IFeedResolver feedResolver, ISyndicationInclude sl = null) : this(sl ?? new SyndicationLink(feedResolver), ServiceLocator.ServiceProvider.GetRequiredService <BaseLinkManager>()) { }
public async Task <FeedPageListModel> GetUserFeedsAsync(ClaimsPrincipal claimsPrincipal, [Service] IFeedResolver farmResolver, FeedFilterModel criterias) { return(await farmResolver.GetUserFeedsAsync(claimsPrincipal, criterias)); }