Skip to content

NexusEndpointRouteBuilderExtensions.MapNexusService(IEndpointRouteBuilder, string, string?)

MapNexusService(IEndpointRouteBuilder, string, string?)

staticextension
View source
public static RouteGroupBuilder MapNexusService(this IEndpointRouteBuilder endpoints, string service, string? scope = null)
Maps the Nexus service service, whose operations NexusEndpointRouteBuilderExtensions maps.

Parameters

endpointsIEndpointRouteBuilder
The endpoint route builder, whose prefix is the Nexus endpoint, such as /nexus.
servicestring
The service name, such as payments.v1, of URL-unreserved characters.
scopestring?
The scope of the service's operations, or null for nexus/{service}.

Returns

A group builder which maps the service's operations and configures its endpoints.

Exceptions

System.ArgumentException
service is empty or has characters other than URL-unreserved ones.