Beispiel #1
0
 /// <summary>
 /// Gets service administrator, account administrator, and co-administrators
 /// for the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <ClassicAdministrator> > ListNextAsync(this IClassicAdministratorsOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }
Beispiel #2
0
 /// <summary>
 /// Gets service administrator, account administrator, and co-administrators
 /// for the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 public static IPage <ClassicAdministrator> List(this IClassicAdministratorsOperations operations)
 {
     return(operations.ListAsync().GetAwaiter().GetResult());
 }
Beispiel #3
0
 /// <summary>
 /// Gets service administrator, account administrator, and co-administrators
 /// for the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <ClassicAdministrator> ListNext(this IClassicAdministratorsOperations operations, string nextPageLink)
 {
     return(operations.ListNextAsync(nextPageLink).GetAwaiter().GetResult());
 }
Beispiel #4
0
 /// <summary>
 /// Gets a list of classic administrators for the subscription.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='nextPageLink'>
 /// The NextLink from the previous successful call to List operation.
 /// </param>
 public static IPage <ClassicAdministrator> ListNext(this IClassicAdministratorsOperations operations, string nextPageLink)
 {
     return(Task.Factory.StartNew(s => ((IClassicAdministratorsOperations)s).ListNextAsync(nextPageLink), operations, CancellationToken.None, TaskCreationOptions.None, TaskScheduler.Default).Unwrap().GetAwaiter().GetResult());
 }