private async Task uploadLog(FileInfo fileInfo) { if (fileInfo == null) { throw new ArgumentNullException(nameof(fileInfo)); } if (!fileInfo.Exists) { throw new FileNotFoundException(fileInfo.FullName); } try { string resp = await _restfulAPIHelper.uploadDeviceLogAPIService(this._hwProductKey.email, fileInfo); } catch (Exception) { throw; } }