AcManager.Pages.Dialogs.AcRootDirectorySelector.ViewModel.SetSteamId C# (CSharp) Метод

SetSteamId() публичный Метод

public SetSteamId ( string steamId ) : void
steamId string
Результат void
            public async void SetSteamId(string steamId) {
                if (steamId == null) return;

                _cancellationTokenSource?.Cancel();

                var existing = SteamProfiles.FirstOrDefault(x => x.SteamId == steamId);
                if (existing != null) {
                    SteamProfile = existing;
                    return;
                }

                var profile = new SteamProfile(steamId);
                SteamProfiles.Add(profile);
                SteamProfile = profile;

                profile.ProfileName = await SteamIdHelper.GetSteamName(steamId);
            }