PivotalTrackerAPI/Domain/Model/PivotalProject.cs
/// <summary>
/// Fetches current features from Pivotal and optionally reloads the cache and uses the cache
/// </summary>
/// <remarks>The cache is updated with all stories, not just features, 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>features for the project</returns>
Fetches current features from Pivotal and optionally reloads the cache and uses the cache
Fetches current features from Pivotal and optionally reloads the cache and uses the cache
public IList<PivotalStory> FetchFeatures(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.feature).ToList();
      return PivotalStory.FetchStories(user, Id.GetValueOrDefault(), PivotalFilterHelper.BuildStoryTypeFilter(PivotalStoryType.feature, ""));
    }
public IList < PivotalStory > FetchFeatures ( 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 . feature ) . ToList ( ) ; return PivotalStory . FetchStories ( user , Id . GetValueOrDefault ( ) , PivotalFilterHelper . BuildStoryTypeFilter ( PivotalStoryType . feature , " " ) ) ; }
Fetches current features from Pivotal and optionally reloads the cache and uses the cache
Fetches current features from Pivotal and optionally reloads the cache and uses the cache
features for the project
features 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 features, so this can be more intensive than intended.
The cache is updated with all stories not just features so this can be more intensive than intended .