예제 #1
0
        /// <inheritdoc />
        private ListRequest CreateListProjectsRequest(ListProjectsOptions options)
        {
            var request = Service.Projects.List();

            options?.ModifyRequest(request);
            return(request);
        }
        /// <inheritdoc />
        private ListRequest CreateListProjectsRequest(ListProjectsOptions options)
        {
            var request = Service.Projects.List();

            request.ModifyRequest += _versionHeaderAction;
            options?.ModifyRequest(request);
            return(request);
        }
예제 #3
0
        /// <inheritdoc />
        public override PagedEnumerable <ProjectList, CloudProject> ListProjects(ListProjectsOptions options = null)
        {
            var pageManager = new ProjectsPageManager(this);

            return(new RestPagedEnumerable <ListRequest, ProjectList, CloudProject>(
                       () => CreateListProjectsRequest(options),
                       pageManager));
        }
        /// <inheritdoc />
        private ListRequest CreateListProjectsRequest(ListProjectsOptions options)
        {
            var request = Service.Projects.List();

            options?.ModifyRequest(request);
            RetryHandler.MarkAsRetriable(request);
            return(request);
        }
예제 #5
0
 /// <summary>
 /// Asynchronously lists the cloud projects available using the current credentials.
 /// </summary>
 /// <remarks>
 /// The project associated with this client is irrelevant for this operation.
 /// </remarks>
 /// <param name="options">The options for the operation. May be null, in which case defaults will be supplied.</param>
 /// <returns>An asynchronous sequence of projects the user has access to.</returns>
 public virtual PagedAsyncEnumerable <ProjectList, CloudProject> ListProjectsAsync(ListProjectsOptions options = null)
 {
     throw new NotImplementedException();
 }