Skip to content

DurableHttpOptions Methods

Configures the HTTP operations which expose durable tasks.

DefaultCreateError(Exception)

static
View source
public static DurableOperationError DefaultCreateError(Exception exception)
Describes an exception by the task's outcome alone, without its type or message.

Parameters

exceptionException
The exception which failed or canceled the task.

Returns

An error whose code is Canceled or Failed.

DefaultGetCallerScope(HttpContext)

static
View source
public static string? DefaultGetCallerScope(HttpContext context)
Returns the authenticated user's System.Security.Claims.ClaimTypes.NameIdentifier claim, or its sub claim, or null for a request without either.

Parameters

contextHttpContext
The request.

Returns

The caller's scope, or null.