Expose parsed route so that observers can get extra details about the route (i.e. optional state)
This commit is contained in:
parent
61831527f8
commit
59b698c8b2
|
|
@ -37,9 +37,9 @@ namespace Microsoft.AspNet.Routing.Template
|
|||
}
|
||||
}
|
||||
|
||||
public List<TemplatePart> Parameters { get; private set; }
|
||||
public IList<TemplatePart> Parameters { get; private set; }
|
||||
|
||||
public List<TemplateSegment> Segments { get; private set; }
|
||||
public IList<TemplateSegment> Segments { get; private set; }
|
||||
|
||||
private string DebuggerToString()
|
||||
{
|
||||
|
|
|
|||
|
|
@ -91,6 +91,11 @@ namespace Microsoft.AspNet.Routing.Template
|
|||
get { return _dataTokens; }
|
||||
}
|
||||
|
||||
public RouteTemplate ParsedTemplate
|
||||
{
|
||||
get { return _parsedTemplate; }
|
||||
}
|
||||
|
||||
public string RouteTemplate
|
||||
{
|
||||
get { return _routeTemplate; }
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ using Microsoft.AspNet.Routing.Template;
|
|||
using Microsoft.Framework.DependencyInjection;
|
||||
using Microsoft.Framework.OptionsModel;
|
||||
using Xunit;
|
||||
using System.Linq;
|
||||
|
||||
namespace Microsoft.AspNet.Routing.Tests
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue