示例#1
0
 /// <summary>
 /// Get a list of available geographical regions.
 /// </summary>
 /// <remarks>
 /// Get a list of available geographical regions.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='sku'>
 /// Name of SKU used to filter the regions. Possible values include: 'Free',
 /// 'Shared', 'Basic', 'Standard', 'Premium', 'Dynamic', 'Isolated',
 /// 'PremiumV2', 'ElasticPremium', 'ElasticIsolated'
 /// </param>
 /// <param name='linuxWorkersEnabled'>
 /// Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions
 /// that support Linux workers.
 /// </param>
 /// <param name='xenonWorkersEnabled'>
 /// Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions
 /// that support Xenon workers.
 /// </param>
 /// <param name='linuxDynamicWorkersEnabled'>
 /// Specify &lt;code&gt;true&lt;/code&gt; if you want to filter to only regions
 /// that support Linux Consumption Workers.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <GeoRegion> > ListGeoRegionsAsync(this IWebSiteManagementClient operations, string sku = default(string), bool?linuxWorkersEnabled = default(bool?), bool?xenonWorkersEnabled = default(bool?), bool?linuxDynamicWorkersEnabled = default(bool?), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListGeoRegionsWithHttpMessagesAsync(sku, linuxWorkersEnabled, xenonWorkersEnabled, linuxDynamicWorkersEnabled, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }