Logo Orsak

Orsak.AspNetCore Namespace

Type/Module Description

BackgroundWorker

Hosts long-running effects as ASP.NET Core background services, with AddEffectWorker.

DelegatingScalingEffectJob<'r, 'err>

A job whose workload is a function, so the builder needs no subclass per job.

EffectDiagnostics

OpenTelemetry-compatible diagnostics for effect endpoints. MapEffectEndpoints instruments every endpoint with an activity (span) per request, and a histogram of handler durations and a counter of running handlers. They are only recorded when something listens, e.g. OpenTelemetry configured with SourceName and MeterName.

EffectRunnerExtensions

Creates endpoints from effects, with a route format string whose values are parsed and passed to the handler, and maps them with MapEffectEndpoints.

EffectType

Endpoint metadata with the type of the effect the route handler creates, such as Effect<AppEnv, Order, OrderError>: known for every endpoint, also one handled by a lambda, which has no HandlingMethod.

Endpoint

An endpoint created by one of the Route* methods, such as RouteGet, to be mapped with MapEffectEndpoints. Its methods add conventions, as on ASP.NET Core's endpoint convention builders.

EnvironmentNotSet

HandlingMethod

Endpoint metadata with the method that handles the endpoint's requests, read from the route handler.

IDescribeResponses

A runner that describes the responses it gives, for OpenAPI: only the runner knows how an effect's result and errors become responses. When the runner of an endpoint implements it, the endpoint gets the responses as metadata.

ResponseDescription

A response an endpoint can give: its status code, the type of its body, if it has one, and what it means. As endpoint metadata, it is an IProducesResponseTypeMetadata, which ApiExplorer and OpenAPI generators read.

RunnerResponses

Endpoint metadata with the responses the endpoint's runner describes, which the endpoint also has as ResponseDescriptions: so an OpenAPI generator can rank them below the endpoint's own, such as its XML docs.

ScalingEffectJob<'r, 's, 'err>

A background service that runs an effect over and over in a baseline worker, and in extra workers added and removed according to GetWorkload, which is checked every monitorInterval, 10 seconds by default. At most maxExtraWorkers are added, 10 by default.

ScalingJob

ScalingJobBuilder

ScalingJobDefinition

A job ready to be added to the services.

ScalingJobSpec<'Work, 'Env, 'Load>

What the builder has collected so far. 'Work, 'Env and 'Load start as markers, and become the types of the functions given to the work, environment and workload operations.

WorkerLoad

How much work a ScalingEffectJob has, and so whether it should change its number of workers.

WorkloadNotSet

WorkNotSet

Type something to start searching.