Class BootstrapAdminSeeder

Assembly: redb.Identity.Web.dll

Once-per-cluster startup task that calls Identity's /internal/bootstrap-admin
endpoint with X-Bootstrap-Secret. Idempotent: 410 Gone on repeat is treated as success.
Disabled by default; turn on via Bootstrap:Enabled=true + supply secret via env/user-secrets.

public sealed class BootstrapAdminSeeder : BackgroundService, IHostedService, IDisposable

Inheritance

Object→BackgroundService→BootstrapAdminSeeder

Implements

Methods

ExecuteAsync(CancellationToken)

This method is called when the starts. The implementation should return a task that represents

protected override Task ExecuteAsync(CancellationToken ct)

Constructors