UmbracoFlare.Manager.CloudflareManager.GetZone C# (CSharp) Метод

GetZone() публичный Метод

This will get a zone by domain(url)
public GetZone ( string url = null ) : Zone
url string The url of the domain that we are getting the domain for.
Результат UmbracoFlare.Models.Zone
        public Zone GetZone(string url = null)
        {
            IEnumerable<Zone> zones = UmbracoFlareDomainManager.Instance.AllowedZones.Where(x => url.Contains(x.Name));

            //List<Zone> zones = this._api.ListZones(url);

            if(zones == null || !zones.Any())
            {
                Log.Error(String.Format("Could not retrieve the zone from cloudflare with the domain(url) of {0}", url));
                return null;
            }

            return zones.First();
        }