MapNexusService(IEndpointRouteBuilder, string, string?)
staticextension
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
nullfornexus/{service}.
Returns
A group builder which maps the service's operations and configures its endpoints.
Exceptions
System.ArgumentExceptionserviceis empty or has characters other than URL-unreserved ones.
