private static int GetIpRateLimitPriorityByCountry()

in Azure WAF/Alert - Process Azure FrontDoor Alerts/ProcessAFDAlerts.cs [335:351]


        private static int GetIpRateLimitPriorityByCountry(string country)
        {
            return country.ToLower() switch
            {
                "united states" => 1001,
                "unitedStates" => 1001,
                "canada" => 1002,
                "brazil" => 1003,
                "ireland" => 1004,
                "australia" => 1005,
                "singapore" => 1006,
                "japan" => 1007,
                "france" => 1008,
                "india" => 1009,
                _ => new Random().Next(1100, 2000)
            };
        }