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.
This commit is contained in:
Marius
2026-03-16 12:13:19 +02:00
parent 17a2e67078
commit 28eddc5dc0
7 changed files with 128 additions and 84 deletions
+2 -2
View File
@@ -1,7 +1,7 @@
namespace NordPoolManager.Interface;
namespace NordPoolManager.Interface;
public interface INordPoolInit
{
Task InitializeAsync();
Task CleanupEntitiesAsync();
Task CleanupEntitiesAsync(CancellationToken cancellationToken = default);
}