// 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.Text;
namespace Microsoft.AspNet.Mvc.Logging
{
///
/// Represents the state of .
///
public class MvcRouteHandlerRouteAsyncValues
{
///
/// The name of the state.
///
public string Name
{
get
{
return "MvcRouteHandler.RouteAsync";
}
}
///
/// True if an action was selected.
///
public bool ActionSelected { get; set; }
///
/// True if the selected action was invoked.
///
public bool ActionInvoked { 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("\tAction selected? ");
builder.Append(ActionSelected);
builder.AppendLine();
builder.Append("\tAction invoked? ");
builder.Append(ActionInvoked);
builder.AppendLine();
builder.Append("\tHandled? ");
builder.Append(Handled);
return builder.ToString();
}
}
///
public override string ToString()
{
return Summary;
}
}
}