28eddc5dc0
- 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.
12 lines
477 B
C#
12 lines
477 B
C#
using NordPoolManager.Models;
|
|
|
|
namespace NordPoolManager.Interface;
|
|
|
|
public interface INordPoolEntityService
|
|
{
|
|
Task CreateEntitiesAsync(string? unitOfMeasurement, CancellationToken cancellationToken = default);
|
|
Task ResetEntitiesAsync(CancellationToken cancellationToken = default);
|
|
Task UpdateEntitiesAsync(EntityUpdateContext context, CancellationToken cancellationToken = default);
|
|
Task CleanupEntitiesAsync(CancellationToken cancellationToken = default);
|
|
}
|