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.

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.

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

ScalingJobBuilder2<'T, 'r>

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.