# DurableHttpEndpointRouteBuilderExtensions

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/DurableHttpEndpointRouteBuilderExtensions.cs#L31)

```csharp
public static class DurableHttpEndpointRouteBuilderExtensions
```

Makes route groups serve durable operations: long-running HTTP operations which durable tasks perform.

## Remarks

[DurableHttpEndpointRouteBuilderExtensions](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/) makes each endpoint of a group whose handler returns a durable grain call, such as `grain.PlaceOrderAsync(order)`, or a reference to an existing task, such as `grain.GetDurableTask<T>(id)`, start an operation which performs it, and maps the endpoints which observe, cancel, and signal the group's operations. Other endpoints of the group are unchanged.

An operation is named by the `Idempotency-Key` of the request which starts it, so a retried request reaches the operation which the first request started. Its key combines the group's scope, the request's values for the group's route parameters, such as an order's identifier, the caller's scope, which [DurableHttpOptions](/orleans/docs/api/csharp/microsoft.orleans.durable.http/orleans.durable.http.durablehttpoptions/) returns, and the identifier. An operation host grain, which that key addresses, holds the operation, so requests which observe, cancel, or signal it reach it by its identifier alone, and only from its caller's scope. Authentication and authorization belong to the application, which configures them on the group's endpoints, such as with `RequireAuthorization` or endpoint filters.

## Methods

- [MapDurableSignal(IEndpointRouteBuilder, DurableSignal&lt;T&gt;)](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/methods/mapdurablesignal-1-this-microsoft-aspnetcore-routing-iendpointroutebuilder-orlea-540ee067/)
- [WithDurableOperations(RouteGroupBuilder, string)](/orleans/docs/api/csharp/microsoft.orleans.durable.http/microsoft.aspnetcore.builder.durablehttpendpointroutebuilderextensions/methods/withdurableoperations-this-microsoft-aspnetcore-routing-routegroupbuilder-string-aea382fa/)
