Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@biac
Created December 6, 2011 08:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save biac/1437339 to your computer and use it in GitHub Desktop.
Save biac/1437339 to your computer and use it in GitHub Desktop.
FeedReader: 最初の実装 ~ 同期処理だったらこんな感じ
private /* async Task< */FeedData/* > */ Read/* Async */(Uri feedUri)
{
SyndicationClient client = new SyndicationClient() { BypassCacheOnRetrieve = true };
SyndicationFeed feed = /* await */ client.RetrieveFeed/* Async */(feedUri);
return feed.ToFeedData();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment