///GENMHASH:2357B38E494D9F10171A28E135CB1715:3961EA7B900ECE15CB8B6D76F00F665B internal PacketCaptureImpl(string name, NetworkWatcherImpl parent, PacketCaptureResultInner innerObject, IPacketCapturesOperations client) : base(name, innerObject) { this.client = client; this.parent = parent; this.createParameters = new PacketCaptureInner(); }
/// <summary> /// Create and start a packet capture on the specified VM. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='networkWatcherName'> /// The name of the network watcher. /// </param> /// <param name='packetCaptureName'> /// The name of the packet capture session. /// </param> /// <param name='parameters'> /// Parameters that define the create packet capture operation. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <PacketCaptureResultInner> CreateAsync(this IPacketCapturesOperations operations, string resourceGroupName, string networkWatcherName, string packetCaptureName, PacketCaptureInner parameters, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateWithHttpMessagesAsync(resourceGroupName, networkWatcherName, packetCaptureName, parameters, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }