PivotalTrackerAPI/Domain/Model/PivotalProject.cs
/// <summary>
/// Fetches current releases from Pivotal and optionally reloads the cache and uses the cache
/// </summary>
/// <remarks>The cache is updated with all stories, not just releases, so this can be more intensive than intended.</remarks>
/// <param name="user">The user to get the ApiToken from</param>
/// <param name="options">Options for caching</param>
/// <returns>releases for the project</returns>
Fetches current releases from Pivotal and optionally reloads the cache and uses the cache
Fetches current releases from Pivotal and optionally reloads the cache and uses the cache
public IList<PivotalStory> FetchReleases(PivotalUser user, PivotalFetchOptions options)
    {
      if (options.RefreshCache)
        _storyCache = (List<PivotalStory>)PivotalStory.FetchStories(user, Id.GetValueOrDefault());
      if (options.UseCachedItems)
        return _storyCache.Where(x => x.StoryType == PivotalStoryType.release).ToList();
      return PivotalStory.FetchStories(user, Id.GetValueOrDefault(), PivotalFilterHelper.BuildStoryTypeFilter(PivotalStoryType.release, ""));
    }
public IList < PivotalStory > FetchReleases ( PivotalUser user , PivotalFetchOptions options ) { if ( options . RefreshCache ) _storyCache = ( List < PivotalStory > ) PivotalStory . FetchStories ( user , Id . GetValueOrDefault ( ) ) ; if ( options . UseCachedItems ) return _storyCache . Where ( x => x . StoryType == PivotalStoryType . release ) . ToList ( ) ; return PivotalStory . FetchStories ( user , Id . GetValueOrDefault ( ) , PivotalFilterHelper . BuildStoryTypeFilter ( PivotalStoryType . release , " " ) ) ; }
Fetches current releases from Pivotal and optionally reloads the cache and uses the cache
Fetches current releases from Pivotal and optionally reloads the cache and uses the cache
releases for the project
releases for the project
user
PivotalUser
The user to get the ApiToken from
The user to get the ApiToken from
options
PivotalFetchOptions
Options for caching
Options for caching
remarks
The cache is updated with all stories, not just releases, so this can be more intensive than intended.
The cache is updated with all stories not just releases so this can be more intensive than intended .