コード例 #1
0
        ///GENMHASH:7D6013E8B95E991005ED921F493EFCE4:A848F2676FADFFFDD0FBF4834FC5D602
        public IEnumerable <Microsoft.Azure.Management.Network.Fluent.IPacketCapture> List()
        {
            Func <PacketCaptureResultInner, IPacketCapture> converter = inner =>
            {
                return((PacketCaptureImpl)WrapModel(inner));
            };

            return(Extensions.Synchronize(() => Inner.ListAsync(parent.ResourceGroupName, parent.Name))
                   .Select(inner => converter(inner)));
        }
コード例 #2
0
 /// <summary>
 /// Lists all packet capture sessions within the specified resource group.
 /// </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 resource.
 /// </param>
 public static IEnumerable <PacketCaptureResult> List(this IPacketCapturesOperations operations, string resourceGroupName, string networkWatcherName)
 {
     return(operations.ListAsync(resourceGroupName, networkWatcherName).GetAwaiter().GetResult());
 }