/// <summary> /// Gets the list of Azure Site Recovery events. /// </summary> /// <remarks> /// Gets the list of Azure Site Recovery events for the vault. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='odataQuery'> /// OData parameters to apply to the operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <IPage <EventModel> > ListAsync(this IReplicationEventsOperations operations, ODataQuery <EventQueryParameter> odataQuery = default(ODataQuery <EventQueryParameter>), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(odataQuery, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }