Class EndpointExtensions
Extensions methods for Endpoint.
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.Common.Extensions
Assembly: Umbraco.Web.Common.dll
Syntax
public static class EndpointExtensions
Methods
View SourceGetControllerActionDescriptor(Endpoint)
Gets the controller action descriptor from the endpoint.
Declaration
public static ControllerActionDescriptor GetControllerActionDescriptor(this Endpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.Endpoint | endpoint | The endpoint. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor | The controller action descriptor or null if not found. |
GetRouteName(Endpoint)
Gets the route name from the endpoint metadata.
Declaration
public static string GetRouteName(this Endpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.Endpoint | endpoint | The endpoint. |
Returns
Type | Description |
---|---|
System.String | The route name or null if not found. |
GetRouteNameMetadata(Endpoint)
Gets the route name metadata from the endpoint.
Declaration
public static RouteNameMetadata GetRouteNameMetadata(this Endpoint endpoint)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Http.Endpoint | endpoint | The endpoint. |
Returns
Type | Description |
---|---|
Microsoft.AspNetCore.Routing.RouteNameMetadata | The route name metadata or null if not found. |