/// <summary> /// Retrieves all event routes. /// Status codes: /// 200 (OK): Success. /// 400 (Bad Request): The request is invalid. /// </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='eventRoutesListOptions'> /// Additional parameters for the operation /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <EventRoute> > ListNextAsync(this IEventRoutesOperations operations, string nextPageLink, EventRoutesListOptions eventRoutesListOptions = default(EventRoutesListOptions), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListNextWithHttpMessagesAsync(nextPageLink, eventRoutesListOptions, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }