Table of Contents

Class RssHelper

Namespace
SunamoRss
Assembly
SunamoRss.dll

Provides helper methods for reading and parsing RSS feeds.

public class RssHelper
Inheritance
RssHelper
Inherited Members
Extension Methods

Methods

Latest5PostsFromRss(string)

Reads up to 5 latest posts from an RSS feed file synchronously. Returns a list of tuples containing title, link URL, description and publish date.

public static List<Tuple<string, string, string, DateTimeOffset>> Latest5PostsFromRss(string filePath)

Parameters

filePath string

Absolute path to the RSS feed XML file.

Returns

List<Tuple<string, string, string, DateTimeOffset>>

List of tuples with title, link, description and publish date of the latest posts.

Latest5PostsFromRssAsync(string)

Reads up to 5 latest posts from an RSS feed file asynchronously. Returns a list of tuples containing title, link URL and publish date.

public static Task<List<Tuple<string, string, DateTimeOffset>>> Latest5PostsFromRssAsync(string filePath)

Parameters

filePath string

Absolute path to the RSS feed XML file.

Returns

Task<List<Tuple<string, string, DateTimeOffset>>>

List of tuples with title, link and publish date of the latest posts.