Exemplo n.º 1
0
        /// <summary>
        /// Gets the zones for the subscription.
        /// </summary>
        /// <seealso href="https://api.cloudflare.com/#zone-list-zones"/>
        public static Task <IEnumerable <Zone> > GetAllZonesAsync(
            this IZoneClient client,
            ZoneGetParameters parameters = null)
        {
            if (client == null)
            {
                throw new ArgumentNullException(nameof(client));
            }

            return(client.GetAllZonesAsync(CancellationToken.None, parameters));
        }