DurableHttpEndpointRouteBuilderExtensions
Namespace: Microsoft.AspNetCore.Builder
public static class DurableHttpEndpointRouteBuilderExtensionsRemarks
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 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<T>)MapsPOST {group}/operations/{operationId}/signals/{name}, in a group whichDurableHttpEndpointRouteBuilderExtensionsconfigures, which deliverssignalwith the JSON request body as its value to an operation's work.WithDurableOperations(RouteGroupBuilder, string)Makes the group's endpoints which return durable work start operations, and maps the endpoints which serve the group's operations under{group}/operations.
