# DurableHttpEndpointRouteBuilderExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/)

## MapDurableSignal(IEndpointRouteBuilder, DurableSignal&lt;T&gt;) {#mapdurablesignal-1-this-microsoft-aspnetcore-routing-iendpointroutebuilder-orlea-540ee067}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/methods/mapdurablesignal-1-this-microsoft-aspnetcore-routing-iendpointroutebuilder-orlea-540ee067/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableHttpEndpointRouteBuilderExtensions.cs#L150-L161)

```csharp
public static IEndpointConventionBuilder MapDurableSignal<T>(this IEndpointRouteBuilder endpoints, DurableSignal<T> signal)
```

Maps `POST {group}/operations/{operationId}/signals/{name}`, in a group which [DurableHttpEndpointRouteBuilderExtensions](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/) configures, which delivers `signal` with the JSON request body as its value to an operation's work.

### Parameters

- `endpoints` (`IEndpointRouteBuilder`): The group.
- `signal` (`DurableSignal<T>`): The signal, whose name completes the route.

### Returns

A builder which configures the endpoint.

### Exceptions

- `System.ArgumentException`: The signal's name has characters other than URL-unreserved ones.

## WithDurableOperations(RouteGroupBuilder, string) {#withdurableoperations-this-microsoft-aspnetcore-routing-routegroupbuilder-string-aea382fa}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/methods/withdurableoperations-this-microsoft-aspnetcore-routing-routegroupbuilder-string-aea382fa/)

[Source](https://github.com/dotnet/orleans/blob/4e887e9c914a2f2647fb3c81de963511521dd9cb/src/Orleans.Durable.Http/DurableHttpEndpointRouteBuilderExtensions.cs#L102-L127)

```csharp
public static RouteGroupBuilder WithDurableOperations(this RouteGroupBuilder group, string scope)
```

Makes the group's endpoints which return durable work start operations, and maps the endpoints which serve the group's operations under `{group}/operations`.

### Parameters

- `group` (`RouteGroupBuilder`): The route group, such as `app.MapGroup("/orders/{orderId}")`.
- `scope` (`string`): The scope of the group's operations, such as `orders`, which is part of every operation's key, so it stays equal while the group's routes change. Groups, and Nexus services, with equal scopes and route values address the same operations.

### Returns

The group, which maps the group's durable starts and signals, and configures its endpoints.

### Exceptions

- `System.ArgumentException`: `scope` is empty.
