private string GetPingText() { var text = string.Empty; PingCollaction.ToList().ForEach(x => text += x.Response + "\r"); return(text); }
private async Task OnExportCommandExecutedAsync() { if (PingCollaction?.Count > 0) { var text = string.Empty; PingCollaction.ToList().ForEach(x => text += x.Response + "\r"); await FileHelper.SaveFileAsync(text, "ping.txt"); } }