Class ActuatorRouteBuilderExtensions
Inheritance
System.Object
ActuatorRouteBuilderExtensions
Namespace: Steeltoe.Management.Endpoint
Assembly: Steeltoe.Management.EndpointCore.dll
Syntax
public static class ActuatorRouteBuilderExtensions : object
Methods
| Edit this page View SourceLookupMiddleware(Type)
Declaration
public static (Type middleware, Type options) LookupMiddleware(Type endpointType)
Parameters
Type | Name | Description |
---|---|---|
Type | endpointType |
Returns
Type | Description |
---|---|
System.ValueTuple<Type, Type> |
Map<TEndpoint>(IEndpointRouteBuilder, Action<IEndpointConventionBuilder>)
Generic routebuilder extension for Actuators.
Declaration
public static void Map<TEndpoint>(this IEndpointRouteBuilder endpoints, Action<IEndpointConventionBuilder> convention = null)
where TEndpoint : IEndpoint
Parameters
Type | Name | Description |
---|---|---|
IEndpointRouteBuilder | endpoints | IEndpointRouteBuilder to Map route. |
Action<IEndpointConventionBuilder> | convention | A convention builder action that applies a convention to the whole collection. |
Type Parameters
Name | Description |
---|---|
TEndpoint | Middleware for which the route is mapped. |
Map<TEndpoint>(IEndpointRouteBuilder, EndpointCollectionConventionBuilder)
Generic routebuilder extension for Actuators.
Declaration
public static IEndpointConventionBuilder Map<TEndpoint>(this IEndpointRouteBuilder endpoints, EndpointCollectionConventionBuilder conventionBuilder)
where TEndpoint : IEndpoint
Parameters
Type | Name | Description |
---|---|---|
IEndpointRouteBuilder | endpoints | IEndpointRouteBuilder to Map route. |
EndpointCollectionConventionBuilder | conventionBuilder | A convention builder that applies a convention to the whole collection. |
Returns
Type | Description |
---|---|
IEndpointConventionBuilder |
Type Parameters
Name | Description |
---|---|
TEndpoint | Middleware for which the route is mapped. |
MapAllActuators(IEndpointRouteBuilder)
Maps all actuators that have been registered in
Declaration
public static IEndpointConventionBuilder MapAllActuators(this IEndpointRouteBuilder endpoints)
Parameters
Type | Name | Description |
---|---|---|
IEndpointRouteBuilder | endpoints | The endpoint builder |
Returns
Type | Description |
---|---|
IEndpointConventionBuilder | Endpoint convention builder |
MapAllActuators(IEndpointRouteBuilder, Action<IEndpointConventionBuilder>)
Maps all actuators that have been registered in
Declaration
public static void MapAllActuators(this IEndpointRouteBuilder endpoints, Action<IEndpointConventionBuilder> convention)
Parameters
Type | Name | Description |
---|---|---|
IEndpointRouteBuilder | endpoints | The endpoint builder |
Action<IEndpointConventionBuilder> | convention | The convention action to apply |
MapAllActuators(IEndpointRouteBuilder, MediaTypeVersion)
Maps all actuators that have been registered in
Declaration
public static void MapAllActuators(this IEndpointRouteBuilder endpoints, MediaTypeVersion version)
Parameters
Type | Name | Description |
---|---|---|
IEndpointRouteBuilder | endpoints | The endpoint builder |
MediaTypeVersion | version | Media Version |