Ejemplo n.º 1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="projectId">The ID, path or <see cref="Project"/> of the project.</param>
        /// <param name="options">Query options for tags <see cref="TagQueryOptions"/></param>
        /// <returns></returns>
        public async Task <IList <Tag> > GetAsync(ProjectId projectId, Action <TagQueryOptions> options = null)
        {
            var queryOptions = new TagQueryOptions();

            options?.Invoke(queryOptions);

            string url = _tagQueryBuilder.Build($"projects/{projectId}/repository/tags", queryOptions);

            return(await _httpFacade.GetPagedList <Tag>(url));
        }
Ejemplo n.º 2
0
        public async Task <IList <Tag> > GetAsync(string projectId, Action <TagQueryOptions> options)
        {
            var queryOptions = new TagQueryOptions();

            options?.Invoke(queryOptions);

            string url = _tagQueryBuilder.Build(TagsBaseUrl(projectId), queryOptions);

            return(await _httpFacade.GetPagedList <Tag>(url));
        }