Пример #1
0
        public override void Map(Routing.Route route, IContainer container)
        {
            route.ThrowIfNull("route");
            container.ThrowIfNull("container");

            if (_valueComparer != null)
            {
                route.RestrictByHeader(_field, _value, GetComparer(_valueComparer.Value));
            }
            else
            {
                route.RestrictByHeader(_field, _value);
            }
        }