Beispiel #1
0
        public override void Map(Routing.Route route, IContainer container)
        {
            route.ThrowIfNull("route");
            container.ThrowIfNull("container");

            if (_comparer != null)
            {
                route.RestrictByUrlHosts(_hosts, GetComparer(_comparer.Value));
            }
            else
            {
                route.RestrictByUrlHosts(_hosts);
            }
        }