Пример #1
0
 /// <summary>
 /// Gets an alert by name.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='deviceName'>
 /// The device name.
 /// </param>
 /// <param name='name'>
 /// The alert name.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The resource group name.
 /// </param>
 public static Alert Get(this IAlertsOperations operations, string deviceName, string name, string resourceGroupName)
 {
     return(operations.GetAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult());
 }
Пример #2
0
 /// <summary>
 /// Returns the requested an alert.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group.
 /// </param>
 /// <param name='location'>
 /// Name of the region
 /// </param>
 /// <param name='alertName'>
 /// Name of the alert.
 /// </param>
 public static Alert Get(this IAlertsOperations operations, string resourceGroupName, string location, string alertName)
 {
     return(operations.GetAsync(resourceGroupName, location, alertName).GetAwaiter().GetResult());
 }