public override void Map(Routing.Route route, IContainer container) { route.ThrowIfNull("route"); container.ThrowIfNull("container"); if (_nameComparer != null && _valueComparer != null) { route.RestrictByCookie(_name, GetComparer(_nameComparer.Value), _value, GetComparer(_valueComparer.Value), _optional); } else { route.RestrictByCookie(_name, _value, _optional); } }