# NexusEndpointRouteBuilderExtensions

Package: [Microsoft.Orleans.Durable.Http](/orleans/docs/api/csharp/microsoft.orleans.durable.http/) 10.0.0-alpha.1

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/NexusEndpointRouteBuilderExtensions.cs#L28)

```csharp
public static class NexusEndpointRouteBuilderExtensions
```

Maps Nexus services, whose operations start durable work and cancel it, per the Nexus HTTP protocol.

## Remarks

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](https://github.com/nexus-rpc/api/blob/main/SPEC.md).

Nexus operations are durable operations like those which [DurableHttpEndpointRouteBuilderExtensions](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/) configures: the caller's `Nexus-Request-Id` names the operation within the service's scope and the caller's, which [DurableHttpOptions](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.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)](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.nexusendpointroutebuilderextensions/methods/mapnexusoperation-this-microsoft-aspnetcore-routing-iendpointroutebuilder-string-b93f4f74/)
- [MapNexusService(IEndpointRouteBuilder, string, string?)](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.nexusendpointroutebuilderextensions/methods/mapnexusservice-this-microsoft-aspnetcore-routing-iendpointroutebuilder-string-s-df73d914/)
