Пример #1
0
 ///GENMHASH:5FF6F22B17DD7078FE6B3E25A08DAF00:C76EE92DA65DAA991DB405193AE42CE5
 internal ConnectionMonitorImpl(string name, NetworkWatcherImpl parent, ConnectionMonitorResultInner innerObject, IConnectionMonitorsOperations client)
     : base(name, innerObject)
 {
     this.client           = client;
     this.parent           = parent;
     this.createParameters = new ConnectionMonitorInner()
     {
         Location = parent.RegionName
     };
 }
 /// <summary>
 /// Create or update a connection monitor.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group containing Network Watcher.
 /// </param>
 /// <param name='networkWatcherName'>
 /// The name of the Network Watcher resource.
 /// </param>
 /// <param name='connectionMonitorName'>
 /// The name of the connection monitor.
 /// </param>
 /// <param name='parameters'>
 /// Parameters that define the operation to create a connection monitor.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <ConnectionMonitorResultInner> CreateOrUpdateAsync(this IConnectionMonitorsOperations operations, string resourceGroupName, string networkWatcherName, string connectionMonitorName, ConnectionMonitorInner parameters, CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, networkWatcherName, connectionMonitorName, parameters, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }