Example #1
0
 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" },
     };
 }
Example #2
0
        public Feeds(IFeedResolver feedResolver)
        {
            Assert.ArgumentNotNull(feedResolver, nameof(feedResolver));

            FeedResolver = feedResolver;
        }
Example #3
0
 public async Task <FeedPageListModel> GetFeedsAsync([Service] IFeedResolver farmResolver, FeedFilterModel criterias)
 {
     return(await farmResolver.GetFeedsAsync(criterias));
 }
Example #4
0
 public BlogSyndicationController(IFeedResolver feedResolver, ISyndicationInclude sl = null)
     : this(sl ?? new SyndicationLink(feedResolver), ServiceLocator.ServiceProvider.GetRequiredService <BaseLinkManager>())
 {
 }
Example #5
0
 public async Task <FeedPageListModel> GetUserFeedsAsync(ClaimsPrincipal claimsPrincipal, [Service] IFeedResolver farmResolver, FeedFilterModel criterias)
 {
     return(await farmResolver.GetUserFeedsAsync(claimsPrincipal, criterias));
 }