예제 #1
0
        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);
        }
예제 #2
0
        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);
        }