Esempio n. 1
0
 /// <summary>
 /// Retrieve the watcher identified by watcher name.  (see
 /// http://aka.ms/azureautomationsdk/watcheroperations for more
 /// information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Automation.IWatcherOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group.
 /// </param>
 /// <param name='automationAccount'>
 /// Required. The automation account name.
 /// </param>
 /// <param name='watcherName'>
 /// Required. The watcher name.
 /// </param>
 /// <returns>
 /// The response model for the get watcher operation.
 /// </returns>
 public static Task <WatcherGetResponse> GetAsync(this IWatcherOperations operations, string resourceGroupName, string automationAccount, string watcherName)
 {
     return(operations.GetAsync(resourceGroupName, automationAccount, watcherName, CancellationToken.None));
 }
Esempio n. 2
0
 /// <summary>
 /// Retrieve the watcher identified by watcher name.
 /// <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='watcherName'>
 /// The watcher name.
 /// </param>
 public static Watcher Get(this IWatcherOperations operations, string resourceGroupName, string automationAccountName, string watcherName)
 {
     return(operations.GetAsync(resourceGroupName, automationAccountName, watcherName).GetAwaiter().GetResult());
 }