@@ -240,93 +240,6 @@ public static void Stop(this IConnectionMonitorsOperations operations, string re
240
240
( await operations . StopWithHttpMessagesAsync ( resourceGroupName , networkWatcherName , connectionMonitorName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
241
241
}
242
242
/// <summary>
243
- /// Starts the specified connection monitor.
244
- /// </summary>
245
- /// <param name='operations'>
246
- /// The operations group for this extension method.
247
- /// </param>
248
- /// <param name='resourceGroupName'>
249
- /// The name of the resource group containing Network Watcher.
250
- /// </param>
251
- /// <param name='networkWatcherName'>
252
- /// The name of the Network Watcher resource.
253
- /// </param>
254
- /// <param name='connectionMonitorName'>
255
- /// The name of the connection monitor.
256
- /// </param>
257
- public static void Start ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName )
258
- {
259
- ( ( IConnectionMonitorsOperations ) operations ) . StartAsync ( resourceGroupName , networkWatcherName , connectionMonitorName ) . GetAwaiter ( ) . GetResult ( ) ;
260
- }
261
-
262
- /// <summary>
263
- /// Starts the specified connection monitor.
264
- /// </summary>
265
- /// <param name='operations'>
266
- /// The operations group for this extension method.
267
- /// </param>
268
- /// <param name='resourceGroupName'>
269
- /// The name of the resource group containing Network Watcher.
270
- /// </param>
271
- /// <param name='networkWatcherName'>
272
- /// The name of the Network Watcher resource.
273
- /// </param>
274
- /// <param name='connectionMonitorName'>
275
- /// The name of the connection monitor.
276
- /// </param>
277
- /// <param name='cancellationToken'>
278
- /// The cancellation token.
279
- /// </param>
280
- public static async System . Threading . Tasks . Task StartAsync ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
281
- {
282
- ( await operations . StartWithHttpMessagesAsync ( resourceGroupName , networkWatcherName , connectionMonitorName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
283
- }
284
- /// <summary>
285
- /// Query a snapshot of the most recent connection states.
286
- /// </summary>
287
- /// <param name='operations'>
288
- /// The operations group for this extension method.
289
- /// </param>
290
- /// <param name='resourceGroupName'>
291
- /// The name of the resource group containing Network Watcher.
292
- /// </param>
293
- /// <param name='networkWatcherName'>
294
- /// The name of the Network Watcher resource.
295
- /// </param>
296
- /// <param name='connectionMonitorName'>
297
- /// The name given to the connection monitor.
298
- /// </param>
299
- public static ConnectionMonitorQueryResult Query ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName )
300
- {
301
- return ( ( IConnectionMonitorsOperations ) operations ) . QueryAsync ( resourceGroupName , networkWatcherName , connectionMonitorName ) . GetAwaiter ( ) . GetResult ( ) ;
302
- }
303
-
304
- /// <summary>
305
- /// Query a snapshot of the most recent connection states.
306
- /// </summary>
307
- /// <param name='operations'>
308
- /// The operations group for this extension method.
309
- /// </param>
310
- /// <param name='resourceGroupName'>
311
- /// The name of the resource group containing Network Watcher.
312
- /// </param>
313
- /// <param name='networkWatcherName'>
314
- /// The name of the Network Watcher resource.
315
- /// </param>
316
- /// <param name='connectionMonitorName'>
317
- /// The name given to the connection monitor.
318
- /// </param>
319
- /// <param name='cancellationToken'>
320
- /// The cancellation token.
321
- /// </param>
322
- public static async System . Threading . Tasks . Task < ConnectionMonitorQueryResult > QueryAsync ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
323
- {
324
- using ( var _result = await operations . QueryWithHttpMessagesAsync ( resourceGroupName , networkWatcherName , connectionMonitorName , null , cancellationToken ) . ConfigureAwait ( false ) )
325
- {
326
- return _result . Body ;
327
- }
328
- }
329
- /// <summary>
330
243
/// Lists all connection monitors for the specified Network Watcher.
331
244
/// </summary>
332
245
/// <param name='operations'>
@@ -502,92 +415,5 @@ public static void BeginStop(this IConnectionMonitorsOperations operations, stri
502
415
{
503
416
( await operations . BeginStopWithHttpMessagesAsync ( resourceGroupName , networkWatcherName , connectionMonitorName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
504
417
}
505
- /// <summary>
506
- /// Starts the specified connection monitor.
507
- /// </summary>
508
- /// <param name='operations'>
509
- /// The operations group for this extension method.
510
- /// </param>
511
- /// <param name='resourceGroupName'>
512
- /// The name of the resource group containing Network Watcher.
513
- /// </param>
514
- /// <param name='networkWatcherName'>
515
- /// The name of the Network Watcher resource.
516
- /// </param>
517
- /// <param name='connectionMonitorName'>
518
- /// The name of the connection monitor.
519
- /// </param>
520
- public static void BeginStart ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName )
521
- {
522
- ( ( IConnectionMonitorsOperations ) operations ) . BeginStartAsync ( resourceGroupName , networkWatcherName , connectionMonitorName ) . GetAwaiter ( ) . GetResult ( ) ;
523
- }
524
-
525
- /// <summary>
526
- /// Starts the specified connection monitor.
527
- /// </summary>
528
- /// <param name='operations'>
529
- /// The operations group for this extension method.
530
- /// </param>
531
- /// <param name='resourceGroupName'>
532
- /// The name of the resource group containing Network Watcher.
533
- /// </param>
534
- /// <param name='networkWatcherName'>
535
- /// The name of the Network Watcher resource.
536
- /// </param>
537
- /// <param name='connectionMonitorName'>
538
- /// The name of the connection monitor.
539
- /// </param>
540
- /// <param name='cancellationToken'>
541
- /// The cancellation token.
542
- /// </param>
543
- public static async System . Threading . Tasks . Task BeginStartAsync ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
544
- {
545
- ( await operations . BeginStartWithHttpMessagesAsync ( resourceGroupName , networkWatcherName , connectionMonitorName , null , cancellationToken ) . ConfigureAwait ( false ) ) . Dispose ( ) ;
546
- }
547
- /// <summary>
548
- /// Query a snapshot of the most recent connection states.
549
- /// </summary>
550
- /// <param name='operations'>
551
- /// The operations group for this extension method.
552
- /// </param>
553
- /// <param name='resourceGroupName'>
554
- /// The name of the resource group containing Network Watcher.
555
- /// </param>
556
- /// <param name='networkWatcherName'>
557
- /// The name of the Network Watcher resource.
558
- /// </param>
559
- /// <param name='connectionMonitorName'>
560
- /// The name given to the connection monitor.
561
- /// </param>
562
- public static ConnectionMonitorQueryResult BeginQuery ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName )
563
- {
564
- return ( ( IConnectionMonitorsOperations ) operations ) . BeginQueryAsync ( resourceGroupName , networkWatcherName , connectionMonitorName ) . GetAwaiter ( ) . GetResult ( ) ;
565
- }
566
-
567
- /// <summary>
568
- /// Query a snapshot of the most recent connection states.
569
- /// </summary>
570
- /// <param name='operations'>
571
- /// The operations group for this extension method.
572
- /// </param>
573
- /// <param name='resourceGroupName'>
574
- /// The name of the resource group containing Network Watcher.
575
- /// </param>
576
- /// <param name='networkWatcherName'>
577
- /// The name of the Network Watcher resource.
578
- /// </param>
579
- /// <param name='connectionMonitorName'>
580
- /// The name given to the connection monitor.
581
- /// </param>
582
- /// <param name='cancellationToken'>
583
- /// The cancellation token.
584
- /// </param>
585
- public static async System . Threading . Tasks . Task < ConnectionMonitorQueryResult > BeginQueryAsync ( this IConnectionMonitorsOperations operations , string resourceGroupName , string networkWatcherName , string connectionMonitorName , System . Threading . CancellationToken cancellationToken = default ( System . Threading . CancellationToken ) )
586
- {
587
- using ( var _result = await operations . BeginQueryWithHttpMessagesAsync ( resourceGroupName , networkWatcherName , connectionMonitorName , null , cancellationToken ) . ConfigureAwait ( false ) )
588
- {
589
- return _result . Body ;
590
- }
591
- }
592
418
}
593
419
}
0 commit comments