NexusEndpointRouteBuilderExtensions
Namespace: Microsoft.AspNetCore.Builder
public static class NexusEndpointRouteBuilderExtensionsRemarks
Nexus is the protocol of Temporal's cross-namespace operations: a caller starts an operation with POST {endpoint}/{service}/{operation} and cancels it with POST {endpoint}/{service}/{operation}/cancel, addressing it by the token which the start returned. See the Nexus HTTP specification.
Nexus operations are durable operations like those which DurableHttpEndpointRouteBuilderExtensions configures: the caller's Nexus-Request-Id names the operation within the service's scope and the caller's, which DurableHttpOptions returns. A group of the same scope, without route parameters, addresses the same operations, so it can stream their status or deliver their signals. Authentication and authorization belong to the application, which configures them on the service's endpoints.
Methods
MapNexusOperation(IEndpointRouteBuilder, string, Delegate)Maps the Nexus operationoperation, whose handler returns durable work, such asgrain.ChargeAsync(input), which a start request starts as an operation.MapNexusService(IEndpointRouteBuilder, string, string?)Maps the Nexus serviceservice, whose operationsNexusEndpointRouteBuilderExtensionsmaps.
