public async Task SendTelemetry(IoTDataPoint IoTDataPoint) { if (IoTDataPoint != null) { await OnInputMessageReceived(IoTDataPoint); } }
public async Task OnInputMessageReceived(IoTDataPoint IoTDataPoint) { await Task.Run(() => { InputMessageReceived?.Invoke(this, IoTDataPoint); }); }