Exemple #1
0
 public async Task <IPagedCollection <ITenant> > ListAsync(bool loadAllPages = true, CancellationToken cancellationToken = default(CancellationToken))
 {
     return(await PagedCollection <ITenant, TenantIdDescription> .LoadPage(
                async (cancellation) => await innerCollection.ListAsync(cancellation),
                innerCollection.ListNextAsync,
                WrapModel, loadAllPages, cancellationToken));
 }
Exemple #2
0
 /// <summary>
 /// Gets the tenants for your account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <TenantIdDescription> List(this ITenantsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }