using Microsoft.Extensions.Hosting;
using ZB.MOM.WW.OtOpcUa.Driver.Galaxy.Runtime;
namespace ZB.MOM.WW.OtOpcUa.Host.Drivers;
///
/// Runs the refresh loop on driver nodes (lmxopcua#765): an initial
/// refresh at start, then every Drivers:Galaxy:AckIdentityCache:RefreshIntervalSeconds, and early when
/// an identity secret changes or a refusal asks for one.
///
/// The node's directory.
public sealed class GalaxyAckIdentityRefreshService(GalaxyAckIdentityDirectory directory) : BackgroundService
{
///
protected override Task ExecuteAsync(CancellationToken stoppingToken) => directory.RunAsync(stoppingToken);
}