// Copyright (c) .NET Foundation. All rights reserved.
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
using Microsoft.AspNet.Mvc.Routing;
namespace Microsoft.AspNet.Mvc.Infrastructure
{
///
/// An interface for metadata which provides values
/// for a controller or action.
///
public interface IRouteConstraintProvider
{
///
/// The route value key.
///
string RouteKey { get; }
///
/// The .
///
RouteKeyHandling RouteKeyHandling { get; }
///
/// The expected route value. Will be null unless is
/// set to .
///
string RouteValue { get; }
///
/// Set to true to negate this constraint on all actions that do not define a behavior for this route key.
///
bool BlockNonAttributedActions { get; }
}
}