Class PluginUpdateCheckHostedService

Namespace
Kuestenlogik.Bowire.Plugins
Assembly
Kuestenlogik.Bowire.dll

Periodically runs CheckAsync(bool, CancellationToken) when the operator has opted in via the Bowire:PluginUpdateCheck configuration section (bound to BowirePluginUpdateCheckOptions).

public sealed class PluginUpdateCheckHostedService : BackgroundService, IHostedService, IDisposable
Inheritance
PluginUpdateCheckHostedService
Implements
Inherited Members

Remarks

Opt-in by design. When Enabled is false (the default) this service is still registered but short-circuits on startup — no network calls are made.

First run happens immediately on host start (so a fresh install surfaces "updates available" without waiting a full day). Subsequent runs honour IntervalHours.

Constructors

PluginUpdateCheckHostedService(PluginUpdateCheckService, IOptions<BowirePluginUpdateCheckOptions>, ILogger<PluginUpdateCheckHostedService>)

public PluginUpdateCheckHostedService(PluginUpdateCheckService service, IOptions<BowirePluginUpdateCheckOptions> options, ILogger<PluginUpdateCheckHostedService> logger)

Parameters

service PluginUpdateCheckService
options IOptions<BowirePluginUpdateCheckOptions>
logger ILogger<PluginUpdateCheckHostedService>

Methods

ExecuteAsync(CancellationToken)

protected override Task ExecuteAsync(CancellationToken stoppingToken)

Parameters

stoppingToken CancellationToken

Returns

Task