// 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 System;
using System.Collections.Generic;
using Microsoft.Framework.Internal;
namespace Microsoft.AspNet.Routing
{
///
/// Information about the current routing path.
///
public class RouteData
{
///
/// Creates a new instance.
///
public RouteData()
{
DataTokens = new Dictionary(StringComparer.OrdinalIgnoreCase);
Routers = new List();
Values = new RouteValueDictionary();
}
///
/// Creates a new instance with values copied from .
///
/// The other instance to copy.
public RouteData([NotNull] RouteData other)
{
DataTokens = new Dictionary(other.DataTokens, StringComparer.OrdinalIgnoreCase);
Routers = new List(other.Routers);
Values = new RouteValueDictionary(other.Values);
}
///
/// Gets the data tokens produced by routes on the current routing path.
///
public IDictionary DataTokens { get; private set; }
///
/// Gets the list of instances on the current routing path.
///
public List Routers { get; private set; }
///
/// Gets the set of values produced by routes on the current routing path.
///
public IDictionary Values { get; private set; }
}
}