Exemplo n.º 1
0
 /// <summary>
 /// Retrieve a list of watchers.
 /// <see href="http://aka.ms/azureautomationsdk/watcheroperations" />
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Name of an Azure Resource group.
 /// </param>
 /// <param name='automationAccountName'>
 /// The name of the automation account.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <Watcher> > ListByAutomationAccountAsync(this IWatcherOperations operations, string resourceGroupName, string automationAccountName, ODataQuery <Watcher> odataQuery = default(ODataQuery <Watcher>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByAutomationAccountWithHttpMessagesAsync(resourceGroupName, automationAccountName, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }