private async Task UpdateImpulsDataAsync(IImpulsDeviceDataRepository repository, VegaDevice device) { var lastUpdateTime = await repository .GetUptimeAsync(device.Id, _cancellationToken) .ConfigureAwait(false); var vegaServerLoadedData = await communicator .GetImpulsDeviceDataAsync(device.Eui, device.Id, lastUpdateTime, _cancellationToken) .ConfigureAwait(false); await repository .AddAsync(vegaServerLoadedData, _cancellationToken) .ConfigureAwait(false); }
public VegaImpulsDeviceDataController(IImpulsDeviceDataRepository repository) { _repository = repository; }