private bool PerformStoragePoolScan() { var credentials = StorageLinkCredentials; var scanAction = new SrCslgStoragePoolScanAction(Connection, credentials.Host, credentials.Username, credentials.PasswordSecret, SystemStorage.StorageSystemId, SelectedStorageAdapter.Id); using (var dialog = new ActionProgressDialog(scanAction, ProgressBarStyle.Marquee)) dialog.ShowDialog(this); if (scanAction.Succeeded) { StoragePools = scanAction.CslgStoragePools; } return(scanAction.Succeeded); }
private bool PerformStoragePoolScan() { StorageLinkCredentials credentials = GetStorageLinkCredentials(Connection); var scanAction = new SrCslgStoragePoolScanAction(Connection, Program.StorageLinkConnections.GetCopy(), credentials.Host, credentials.Username, credentials.PasswordSecret, SelectedStorageSystem.StorageSystemId); ActionProgressDialog dialog = new ActionProgressDialog(scanAction, ProgressBarStyle.Marquee); dialog.ShowDialog(this); if (scanAction.Succeeded) { StoragePools = scanAction.CslgStoragePools; } return(scanAction.Succeeded); }