Пример #1
0
        /// <summary>
        /// Gets all existing GitHub releases.
        /// </summary>
        /// <returns>A collection of all existing releases.</returns>
        public async Task <IReadOnlyCollection <Release> > GetAllReleasesAsync()
        {
            var octokitReleases = await _gitHubApi.GetAllReleasesAsync()
                                  .ConfigureAwait(false);

            return(octokitReleases
                   .Select(octokitRelease => new Release(octokitRelease))
                   .ToList()
                   .AsReadOnly());
        }