예제 #1
0
        async Task LoadRg(string subcriptionId)
        {
            try
            {
                if (subcriptionId.IsNullOrEmptyExt())
                {
                    return;
                }

                ClearSelection();

                var rgs = await ResourceGroupervice.GetResourceGroups(subcriptionId);

                if (rgs != null)
                {
                    ResourceGroups.AddRange(rgs.Select(a => a.Name));
                    StateHasChanged();
                }
            }
            catch (Exception ex)
            {
                Logger.LogErrorCsro(ex);
                await CsroDialogService.ShowError("Error", $"Detail error: {ex.Message}");
            }
        }