string Token { get; set; }
Source
Gets or sets the nonempty Development token.
Registers an SDK listener for the canonical AppSurface activity source and an optional OTLP exporter.
void Configure(IServiceCollection services, Uri? endpoint)
Configures sampling, canonical source listening, and the optional OTLP export destination.
services
endpoint
Maps the fixed liveness, compatibility, readiness, and authorized payload-free activation routes.
void Map(WebApplication app, ActivationSettings settings)
Maps the sample-owned routes to their application-owned closed projections.
app
settings
Task<IResult> ProbeAsync(HttpContext context, bool readiness)
Returns an independent liveness marker without resolving or calling a Durable service.
context
readiness
A bounded assessment projection and its route-specific status.
Task<IResult> ActivateAsync(HttpContext context, ActivationSettings settings)
Enforces authentication-first, empty-body activation and projects all ten published service outcomes.
context
settings
The exact safe activation DTO or a bounded host-owned error.
void ValidateAssessment(DurableRuntimeHealthSnapshot health)
Validates the provider snapshot before returning its bounded fields to a caller.
health
int GetStatusCode(DurableExternalActivationResult result)
Maps the closed ten-outcome activation contract to stable HTTP statuses.
result
The published sample's status code.
bool IsCompatibilityCode(string? problemCode)
Recognizes only the canonical bounded schema and active-epoch compatibility codes.
problemCode
True only for one of the allowed schema compatibility codes.
void LogSafeFailure(HttpContext context, string failureCode)
Logs a stable host-owned failure category without request, payload, credential, or exception data.
context
failureCode
bool IsNonfatal(Exception exception)
Excludes fatal process errors from fixed safe HTTP projections.
exception
False only for process-fatal exceptions.
Represents the fixed process liveness marker.
Status
Represents one safe health assessment or fixed probe failure.
Outcome
ObservedHealthState
CanEnableActivation
IsReady
ProblemCode
Represents the exact safe activation response projection.
Outcome
ObservedHealthState
ProblemCode
PumpResult
ActivationResponse From(DurableExternalActivationResult result)
Projects only the fields accepted by the activation contract.
result
Safe wire DTO retaining all aggregate counts and elapsed ticks.
Contains the complete safe pump aggregate returned by one completed activation invocation.
Discovered
Claimed
Processed
Deferred
Failed
HasMore
NextDueAtUtc
ElapsedTicks
Represents a fixed host-owned failure label without provider or exception detail.
Error
Stores the required, bounded local bearer token captured before the Development listener starts.
string Token { get; set; }
Source
Gets or sets the nonempty Development token.
Authenticates only the configured Development bearer token using a fixed-size constant-time comparison.
bool IsValidBearerHeader(StringValues values, string configuredToken)
Validates one bounded bearer header without depending on HTTP parser whitespace normalization.
values
configuredToken
True only for exactly one syntactically valid, constant-time matching bearer credential.