// Copyright (c) Microsoft Open Technologies, Inc. All rights reserved. // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System.Collections.Generic; using System.Text; namespace Microsoft.AspNet.Routing.Logging { /// /// Describes the state of /// . /// public class RouteCollectionRouteAsyncValues { /// /// The name of the state. /// public string Name { get { return "RouteCollection.RouteAsync"; } } /// /// The available routes. /// public IList Routes { get; set; } /// /// True if the request is handled. /// public bool Handled { get; set; } /// /// A summary of the data for display. /// public string Summary { get { var builder = new StringBuilder(); builder.AppendLine(Name); builder.Append("\tRoutes: "); StringBuilderHelpers.Append(builder, Routes); builder.AppendLine(); builder.Append("\tHandled? "); builder.Append(Handled); return builder.ToString(); } } /// public override string ToString() { return Summary; } } }