public void DownloadAndSave() { string data1 = null; string data2 = null; Parallel.Invoke( () => data1 = _downloadFromInternet1.Download(), () => data2 = _downloadFromInternet2.Download()); _saveToDatabase.Save(data1 + data2); }
public void DownloadAndSave() { var data = _downloadFromInternet.Download(); _saveToDatabase.Save(data); }