# DurableHttpEndpointRouteBuilderExtensions.WithDurableOperations(RouteGroupBuilder, string)

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

[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.
