コード例 #1
0
        public async Task OnVmSelected(string value)
        {
            try
            {
                if (string.IsNullOrWhiteSpace(value))
                {
                    return;
                }

                Model.VmName = value;
                LastVmStatus = "Loading...";
                ShowLoading();
                var status = await AzureSdkService.GetStatus(Model.SubcriptionId, Model.ResorceGroup, Model.VmName);

                if (status != null)
                {
                    LastVmStatus = status.DisplayStatus;
                }
            }
            catch (Exception ex)
            {
                Logger.LogErrorCsro(ex);
                await CsroDialogService.ShowError("Error", $"Detail error: {ex.Message}");
            }
            await InvokeAsync(() => HideLoading());
        }
コード例 #2
0
 public AzureSdkServiceTests(BaseWebApplicationFactory <TestStartup> applicationFactory, ITestOutputHelper helper)
 {
     _helper       = helper;
     _azureService = applicationFactory.Services.GetService <AzureSdkService>();
 }