private void SetHttpAccessRules(string url, bool remove)
{
try
{
List<ApplicationAccessRule> rules = new List<ApplicationAccessRule>();
if (!remove)
{
rules = GetAccessRules();
}
HttpAccessRule.SetAccessRules(new Uri(url), rules, false);
}
catch (Exception e)
{
Utils.Trace(e, "Unexpected configuring the HTTP access rules.");
}
}