LevelUp.Bifrost
4.0.0
dotnet add package LevelUp.Bifrost --version 4.0.0
NuGet\Install-Package LevelUp.Bifrost -Version 4.0.0
<PackageReference Include="LevelUp.Bifrost" Version="4.0.0" />
<PackageVersion Include="LevelUp.Bifrost" Version="4.0.0" />
<PackageReference Include="LevelUp.Bifrost" />
paket add LevelUp.Bifrost --version 4.0.0
#r "nuget: LevelUp.Bifrost, 4.0.0"
#:package LevelUp.Bifrost@4.0.0
#addin nuget:?package=LevelUp.Bifrost&version=4.0.0
#tool nuget:?package=LevelUp.Bifrost&version=4.0.0
LevelUp.Bifrost
Typed service authoring, generated roles, and local execution.
This package selects the role dependencies from the Strategos solution.
Declare, bind and submit
Declare the job once with [Service] and ServiceBuilder.Job. The generator emits a versioned handle, such as Echo.Jobs.EchoV1, and a compiled service catalog. Register an application IJobStartPolicy, the trusted caller in its DI scope, and the handler. This example uses source-generated JSON metadata for the request and result.
builder.Services.AddScoped<EchoHandler>();
builder.Services.AddBifrost(Echo.CompiledService, SampleJson.Default.Options)
.UseLocalExecution()
.Bind(Echo.Jobs.EchoV1, (services, request, _, ct) =>
services.GetRequiredService<EchoHandler>().HandleAsync(request, ct));
After the host starts, resolve IJobClient from the authenticated scope. Keep the delivery key across retries. The start result identifies an accepted job or explains its rejection.
var jobs = scope.ServiceProvider.GetRequiredService<IJobClient>();
var started = await jobs.StartJobAsync(Echo.Jobs.EchoV1, new EchoRequest("hello"), deliveryKey, ct);
if (started is JobStartResult.Accepted accepted)
{
var id = Guid.Parse(accepted.Receipt.WorkId);
var status = await jobs.GetStatusAsync(Echo.Jobs.EchoV1, id, ct);
}
Call RecoverAsync with the same handle and delivery key after a lost reply. When status is terminal, GetResultAsync returns the typed outcome. Local receipts belong to the process and honor the configured retention limit. LevelUp.Bifrost.Durable provides PostgreSQL-backed execution and recovery across restarts.
Observe a local pool
A host can enable bounded process-local observations on a pool by setting
LocalPoolLimits.Observation. Obtain its observer through
LocalDispatcher.GetPoolObserver(pool). The host authorizes the tenant before
calling SubscribeWork(tenant, invocationId) or ReadDeadLetters(tenant).
Use SubscribeScaling() for pool-wide target changes. Each subscription has
its own drop-oldest buffer and dropped-event counter. Cancelling or disposing
the reader detaches it. Consumers read events outside dispatch locks.
Rejections carry an invocation and admission outcome. Accepted transitions also
carry a work ID. The bounded dead-letter buffer retains the latest failed
attempts and rejections. The default payload setting records only metadata.
Enabling IncludePayload retains the submitted object reference until
eviction. Configure this only for observers trusted to inspect the work.
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- LevelUp.Bifrost.Contracts (>= 0.1.0)
- LevelUp.Strategos (>= 4.0.0)
- LevelUp.Strategos.Generators (>= 4.0.0)
NuGet packages (5)
Showing the top 5 NuGet packages that depend on LevelUp.Bifrost:
| Package | Downloads |
|---|---|
|
LevelUp.Bifrost.Resilience
Channel-based work orchestration library with autoscaling, resilience, health checks, and OpenTelemetry support. |
|
|
LevelUp.Bifrost.HealthChecks
Channel-based work orchestration library with autoscaling, resilience, health checks, and OpenTelemetry support. |
|
|
LevelUp.Bifrost.OpenTelemetry
Channel-based work orchestration library with autoscaling, resilience, health checks, and OpenTelemetry support. |
|
|
LevelUp.ServiceDefaults.Bifrost
Bifrost satellite for LevelUp.ServiceDefaults: composes Bifrost work-orchestration onto the shared health + OpenTelemetry pipeline. Work-orchestration only; never a second HTTP-client resilience handler. |
|
|
LevelUp.Bifrost.Scheduling
Channel-based work orchestration library with autoscaling, resilience, health checks, and OpenTelemetry support. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 4.0.0 | 39 | 12/5/2026 |
| 0.7.3 | 165 | 12/3/2026 |
| 0.7.2 | 133 | 12/2/2026 |
| 0.7.1 | 166 | 11/30/2026 |
| 0.7.0 | 165 | 11/30/2026 |
| 0.7.0-rc.1 | 101 | 11/26/2026 |
| 0.6.3-rc.1 | 101 | 11/25/2026 |
| 0.6.2 | 179 | 11/13/2026 |
| 0.6.0 | 3,795 | 10/29/2026 |
| 0.5.2 | 19,265 | 7/7/2026 |
| 0.5.1 | 844 | 6/22/2026 |
| 0.5.0 | 2,394 | 6/16/2026 |
| 0.4.0 | 1,054 | 3/16/2026 |
| 0.3.5 | 179 | 3/15/2026 |
| 0.3.0 | 605 | 3/3/2026 |
| 0.2.0 | 162 | 3/3/2026 |
| 0.1.0 | 599 | 2/3/2026 |