/// <summary>
 /// Gets a packet capture session by name.
 /// </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>
 public static PacketCaptureResult Get(this IPacketCapturesOperations operations, string resourceGroupName, string networkWatcherName, string packetCaptureName)
 {
     return(operations.GetAsync(resourceGroupName, networkWatcherName, packetCaptureName).GetAwaiter().GetResult());
 }
Example #2
0
        ///GENMHASH:885F10CFCF9E6A9547B0702B4BBD8C9E:174049B94B417C1B8FBE2D335A520FD6
        public async Task <IPacketCapture> GetByNameAsync(string name, CancellationToken cancellationToken = default(CancellationToken))
        {
            var inner = await innerCollection.GetAsync(parent.ResourceGroupName, parent.Name, name);

            return(WrapModel(inner));
        }