public async Task DispatchCoordinatesForPortableSensorAsync(int sensorId, double latitude, double longitude) { await _portableSensorHubContext.Clients.Group(AdminPortableSensorHub.PortableSensorGroup(sensorId)).DispatchCoordinatesAsync(new PortableSensorCoordinatesDispatchModel { Latitude = latitude, Longitude = longitude }); }
public async Task DispatchReadingsForPortableSensorAsync(int sensorId, Reading reading) { await _portableSensorHubContext.Clients.Group(AdminPortableSensorHub.PortableSensorGroup(sensorId)).DispatchReadingAsync(_mapper.Map <Reading, PortableSensorReadingsDispatchModel>(reading)); }