InnerAttributeRoute Class

Summary

An @!:IRouter- implementation for attribute routing.

Syntax

public class InnerAttributeRoute : IRouter

GitHub

View on GitHub

class Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute

Constructors

InnerAttributeRoute(IRouter, System.Collections.Generic.IEnumerable<Microsoft.AspNet.Mvc.Routing.AttributeRouteMatchingEntry>, System.Collections.Generic.IEnumerable<Microsoft.AspNet.Mvc.Routing.AttributeRouteLinkGenerationEntry>, ILogger, ILogger, System.Int32)

Creates a new [Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute](Microsoft.AspNet.Mvc.Routing.InnerAttributeRoute.yml).

Arguments:
  • next (IRouter) – The next router. Invoked when a route entry matches.
  • matchingEntries (System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.Routing.AttributeRouteMatchingEntry}) –
  • linkGenerationEntries (System.Collections.Generic.IEnumerable{Microsoft.AspNet.Mvc.Routing.AttributeRouteLinkGenerationEntry}) –
  • logger (ILogger) –
  • constraintLogger (ILogger) –
  • version (System.Int32) –
public InnerAttributeRoute(IRouter next, IEnumerable<AttributeRouteMatchingEntry> matchingEntries, IEnumerable<AttributeRouteLinkGenerationEntry> linkGenerationEntries, ILogger logger, ILogger constraintLogger, int version)

Properties

Version()

Gets the version of this route. This corresponds to the value of [Microsoft.AspNet.Mvc.ActionDescriptorsCollection.Version](Microsoft.AspNet.Mvc.ActionDescriptorsCollection.yml) when this route was created.

Return type:System.Int32
public int Version { get; }

Methods

GetVirtualPath(VirtualPathContext)
Arguments:
  • context (VirtualPathContext) –
Return type:

VirtualPathData

public VirtualPathData GetVirtualPath(VirtualPathContext context)
RouteAsync(RouteContext)
Arguments:
  • context (RouteContext) –
Return type:

System.Threading.Tasks.Task

public Task RouteAsync(RouteContext context)