public async Task DownloadStringWithRetriesException() { try { WriteLine($"调用开始 {DateTime.Now}"); await Instance.DownloadStringWithRetries("https://baidu.com"); } catch (Exception ex) { WriteLine($"调用异常 {DateTime.Now}"); WriteLine($"异常消息 {ex.Message}"); } }
public async Task DownloadStringWithRetriesSuc() { WriteLine($"调用开始 {DateTime.Now}"); await Instance.DownloadStringWithRetries("https://www.baidu.com/"); }