コード例 #1
0
        /// <summary>
        /// Gets an async enumerable to iterate or page through users starting from the specified
        /// page token. If the page token is null or unspecified, iteration starts from the first
        /// page. See <a href="https://googleapis.github.io/google-cloud-dotnet/docs/guides/page-streaming.html">
        /// Page Streaming</a> for more details on how to use this API.
        /// </summary>
        /// <param name="options">The options to control the starting point and page size. Pass null
        /// to list from the beginning with default settings.</param>
        /// <returns>A <see cref="PagedAsyncEnumerable{ExportedUserRecords, ExportedUserRecord}"/> instance.</returns>
        public PagedAsyncEnumerable <ExportedUserRecords, ExportedUserRecord> ListUsersAsync(
            ListUsersOptions options)
        {
            var userManager = this.IfNotDeleted(() => this.userManager.Value);

            return(userManager.ListUsers(options));
        }
コード例 #2
0
 private ListUsersRequest(
     string baseUrl, HttpClient httpClient, ListUsersOptions options)
 {
     this.baseUrl           = baseUrl;
     this.httpClient        = httpClient;
     this.RequestParameters = new Dictionary <string, IParameter>();
     this.SetPageSize(options.PageSize);
     this.SetPageToken(options.PageToken);
 }
コード例 #3
0
        internal Gax.PagedAsyncEnumerable <ExportedUserRecords, ExportedUserRecord> ListUsers(
            ListUsersOptions options)
        {
            var factory = new ListUsersRequest.Factory(this.baseUrl, this.httpClient, options);

            return(new RestPagedAsyncEnumerable
                   <ListUsersRequest, ExportedUserRecords, ExportedUserRecord>(
                       () => factory.Create(),
                       new ListUsersPageManager()));
        }
コード例 #4
0
 private ListUsersRequest(
     string baseUrl,
     ErrorHandlingHttpClient <FirebaseAuthException> httpClient,
     ListUsersOptions options)
 {
     this.baseUrl           = baseUrl;
     this.httpClient        = httpClient;
     this.RequestParameters = new Dictionary <string, IParameter>();
     this.SetPageSize(options.PageSize);
     this.SetPageToken(options.PageToken);
 }