/// <summary> /// Gives the list of VpnServerConfigurations associated with Virtual Wan in a /// resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='virtualWANName'> /// The name of the VirtualWAN whose associated VpnServerConfigurations is /// needed. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <VpnServerConfigurationsResponseInner> ListAsync(this IVpnServerConfigurationsAssociatedWithVirtualWanOperations operations, string resourceGroupName, string virtualWANName, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.ListWithHttpMessagesAsync(resourceGroupName, virtualWANName, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Gives the list of VpnServerConfigurations associated with Virtual Wan in a /// resource group. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> /// <param name='virtualWANName'> /// The name of the VirtualWAN whose associated VpnServerConfigurations is /// needed. /// </param> public static VpnServerConfigurationsResponse BeginList(this IVpnServerConfigurationsAssociatedWithVirtualWanOperations operations, string resourceGroupName, string virtualWANName) { return(operations.BeginListAsync(resourceGroupName, virtualWANName).GetAwaiter().GetResult()); }