using System.Drawing; using GSS2.Core.Analysis.AmineContent.Database; using GSS2.Core.Hardware; namespace GSS2.Test; public class Worker( ILogger logger, AmineContentCalibrationContext calibrationContext, LightsService lightsService ) : BackgroundService { private readonly ILogger _logger = logger; private readonly AmineContentCalibrationContext _calibrationContext = calibrationContext; private readonly LightsService _lightsService = lightsService; protected override async Task ExecuteAsync(CancellationToken cancellationToken) { _ = _lightsService.Run(cancellationToken); _ = _lightsService.SnowfallAsync(0.3, 1, Color.Aqua, cancellationToken); while (!cancellationToken.IsCancellationRequested) { await Task.Delay(5000); } } }