public Task PatchAsync(Settings settings) { return(new[] { settings.X32Client, settings.X64Client }.ForEachAsync(async client => { var fullPath = settings.Dota2FolderPath + client.LocalPath; if (settings.Backup) { await _backupManager.CreateBackupAsync(fullPath, $"{fullPath}.back{DateTimeOffset.UtcNow.ToUnixTimeSeconds()}"); } await _dotaClientDistance.SetAsync(fullPath, client.Distance.Value, client.Distance.Offset); })); }