Files
HomeAssistant/NordPool.Manager/Interface/INordPoolInit.cs
T
Marius 28eddc5dc0 Add cancellation token support across NordPool services and update constants for reuse
- Introduced `CancellationToken` to service methods for improved task cancellation handling.
- Centralized reusable constants (`MinutesPerInterval`, `WaterReadyPowerThresholdWatts`) in `NordPoolConsts`.
- Refactored `ConfigureAwait` usage and improved logging within `NordPoolEntityService`.
- Adjusted tests to accommodate cancellation token changes.
2026-03-16 12:13:19 +02:00

7 lines
178 B
C#

namespace NordPoolManager.Interface;
public interface INordPoolInit
{
Task InitializeAsync();
Task CleanupEntitiesAsync(CancellationToken cancellationToken = default);
}