Example #1
0
    protected override void OnInitialized()
    {
        var packageList = MicroServicesCollector.GetAvailablePackageList();

        package            = packageList.FirstOrDefault(i => i.PackageFileName.Equals(PackageFileName, StringComparison.InvariantCultureIgnoreCase));
        backupFileInfoList = MicroServicesCollector.GetBackupFileList(PackageFileName);
        base.OnInitialized();
    }
Example #2
0
    void RollbackPackage(object fileInfo)
    {
        var result = MicroServicesCollector.RollbackPackage(package, fileInfo as FileInfo);

        if (result != null)
        {
            errorReport = result;
        }
        NavigationManager.NavigateTo("/packages", true);
    }
Example #3
0
    async Task RemovePackage(object packageFileName)
    {
        var result = await MicroServicesCollector.RemovePackage($"{packageFileName}");

        if (result != null)
        {
            errorReport = result;
        }
        StateHasChanged();
    }
Example #4
0
 void UpdateLists()
 {
     RunningMicroServiceList = MicroServicesCollector.GetRunningList();
 }
Example #5
0
 void UpdateLists()
 {
     AvailablePackageList = MicroServicesCollector.GetAvailablePackageList();
 }