protected override void OnInitialized() { var packageList = MicroServicesCollector.GetAvailablePackageList(); package = packageList.FirstOrDefault(i => i.PackageFileName.Equals(PackageFileName, StringComparison.InvariantCultureIgnoreCase)); backupFileInfoList = MicroServicesCollector.GetBackupFileList(PackageFileName); base.OnInitialized(); }
void RollbackPackage(object fileInfo) { var result = MicroServicesCollector.RollbackPackage(package, fileInfo as FileInfo); if (result != null) { errorReport = result; } NavigationManager.NavigateTo("/packages", true); }
async Task RemovePackage(object packageFileName) { var result = await MicroServicesCollector.RemovePackage($"{packageFileName}"); if (result != null) { errorReport = result; } StateHasChanged(); }
void UpdateLists() { RunningMicroServiceList = MicroServicesCollector.GetRunningList(); }
void UpdateLists() { AvailablePackageList = MicroServicesCollector.GetAvailablePackageList(); }