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

            return(client.GetZoneAsync(zoneId, CancellationToken.None, auth));
        }