diff --git a/build.psm1 b/build.psm1
index 619b862d70..ac16bf14d2 100644
--- a/build.psm1
+++ b/build.psm1
@@ -34,7 +34,7 @@ if ($IsLinux) {
}
#
-# At the moment, we just support x64 builds. When we support x86 builds, this
+# At the moment, we just support x64 builds. When we support x86 builds, this
# check may need to verify the SDK for the specified architecture.
#
function Get-Win10SDKBinDir {
@@ -120,7 +120,7 @@ function Start-PSBuild {
Push-Location $PSScriptRoot
try {
git clean -fdX
- # Extra cleaning is required to delete the CMake temporary files.
+ # Extra cleaning is required to delete the CMake temporary files.
# These are not cleaned when using "X" and cause CMake to retain state, leading to
# mis-configured environment issues when switching between x86 and x64 compilation
# environments.
@@ -318,7 +318,7 @@ cmd.exe /C cd /d "$currentLocation" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeH
# Describes wither it should build the CoreCLR or FullCLR version
[ValidateSet("ON", "OFF")]
[string]$OneCoreValue,
-
+
# Array of file names to copy from the local build directory to the packaging directory
[string[]]$FilesToCopy
)
@@ -348,19 +348,19 @@ cmd.exe /C cd /d "$location" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeHostArch
Copy-Item $srcPath $dstPath
}
}
-
+
if ($FullCLR) {
- $fullBinaries = @(
+ $fullBinaries = @(
'powershell.exe',
'powershell.pdb',
'pwrshplugin.dll',
'pwrshplugin.pdb'
)
- Build-NativeWindowsBinaries "OFF" $fullBinaries
+ Build-NativeWindowsBinaries "OFF" $fullBinaries
}
else
{
- $coreClrBinaries = @(
+ $coreClrBinaries = @(
'pwrshplugin.dll',
'pwrshplugin.pdb'
)
@@ -405,7 +405,7 @@ cmd.exe /C cd /d "$location" "&" "$($vcVarsPath)\vcvarsall.bat" "$NativeHostArch
# $Options.Output is pointing to something like "...\src\powershell-win-core\bin\Debug\netcoreapp1.1\win10-x64\publish\powershell.exe",
# so we need to get its parent directory
$publishPath = Split-Path $Options.Output -Parent
- log "Restore PowerShell modules to $publishPath"
+ log "Restore PowerShell modules to $publishPath"
# PowerShellGet depends on PackageManagement module, so PackageManagement module will be installed with the PowerShellGet module.
Restore-PSModule -Name @('PowerShellGet') -Destination (Join-Path -Path $publishPath -ChildPath "Modules")
}
@@ -417,11 +417,11 @@ function Compress-TestContent {
$Destination
)
- $powerShellTestRoot = Join-Path $PSScriptRoot 'test\powershell'
+ $powerShellTestRoot = Join-Path $PSScriptRoot 'test\powershell'
Add-Type -AssemblyName System.IO.Compression.FileSystem
$resolvedPath = $ExecutionContext.SessionState.Path.GetUnresolvedProviderPathFromPSPath($Destination)
- [System.IO.Compression.ZipFile]::CreateFromDirectory($powerShellTestRoot, $resolvedPath)
+ [System.IO.Compression.ZipFile]::CreateFromDirectory($powerShellTestRoot, $resolvedPath)
}
function New-PSOptions {
@@ -718,7 +718,7 @@ function Start-PSPester {
{
$outputBufferFilePath = [System.IO.Path]::GetTempFileName()
}
-
+
$Command += "Invoke-Pester "
$Command += "-OutputFormat ${OutputFormat} -OutputFile ${OutputFile} "
@@ -784,7 +784,7 @@ function Start-PSPester {
{
Remove-Item $outputBufferFilePath
}
- }
+ }
}
if($ThrowOnFailure)
{
@@ -819,7 +819,7 @@ function Show-PSPesterError
#
# Read the test result file and
-# Throw if a test failed
+# Throw if a test failed
function Test-PSPesterResults
{
param(
@@ -830,7 +830,7 @@ function Test-PSPesterResults
if(!(Test-Path $TestResultsFile))
{
throw "Test result file '$testResultsFile' not found for $TestArea."
- }
+ }
$x = [xml](Get-Content -raw $testResultsFile)
if ([int]$x.'test-results'.failures -gt 0)
@@ -1204,7 +1204,7 @@ function Start-PSPackage {
[ValidateSet("deb", "osxpkg", "rpm", "msi", "appx", "zip")]
[string[]]$Type,
- # Generate windows downlevel package
+ # Generate windows downlevel package
[ValidateSet("win81-x64", "win7-x86", "win7-x64")]
[ValidateScript({$IsWindows})]
[string]$WindowsDownLevel
@@ -1733,7 +1733,7 @@ function Start-DevPowerShell {
{
Remove-Item env:DEVPATH
}
-
+
if ($ZapDisable) {
Remove-Item env:COMPLUS_ZapDisable
}
@@ -2305,7 +2305,7 @@ function New-MSIPackage
{
[CmdletBinding()]
param (
-
+
# Name of the Product
[ValidateNotNullOrEmpty()]
[string] $ProductName = 'PowerShell',
@@ -2334,7 +2334,7 @@ function New-MSIPackage
# Path to Assets folder containing artifacts such as icons, images
[Parameter(Mandatory = $true)]
[ValidateNotNullOrEmpty()]
- [string] $AssetsPath,
+ [string] $AssetsPath,
# Path to license.rtf file - for the EULA
[Parameter(Mandatory = $true)]
@@ -2364,16 +2364,16 @@ function New-MSIPackage
$ProductSemanticVersion = Get-PackageSemanticVersion -Version $ProductVersion
$ProductVersion = Get-PackageVersionAsMajorMinorBuildRevision -Version $ProductVersion
-
+
$assetsInSourcePath = Join-Path $ProductSourcePath 'assets'
New-Item $assetsInSourcePath -type directory -Force | Write-Verbose
- Write-Verbose "Place dependencies such as icons to $assetsInSourcePath"
+ Write-Verbose "Place dependencies such as icons to $assetsInSourcePath"
Copy-Item "$AssetsPath\*.ico" $assetsInSourcePath -Force
-
+
$productVersionWithName = $ProductName + "_" + $ProductVersion
$productSemanticVersionWithName = $ProductName + "_" + $ProductSemanticVersion
-
+
Write-Verbose "Create MSI for Product $productSemanticVersionWithName"
[Environment]::SetEnvironmentVariable("ProductSourcePath", $ProductSourcePath, "Process")
@@ -2398,13 +2398,13 @@ function New-MSIPackage
if ($ProductNameSuffix) {
$packageName += "-$ProductNameSuffix"
}
- $msiLocationPath = Join-Path $pwd "$packageName.msi"
+ $msiLocationPath = Join-Path $pwd "$packageName.msi"
Remove-Item -ErrorAction SilentlyContinue $msiLocationPath -Force
& $wixHeatExePath dir $ProductSourcePath -dr $productVersionWithName -cg $productVersionWithName -gg -sfrag -srd -scom -sreg -out $wixFragmentPath -var env.ProductSourcePath -v | Write-Verbose
& $wixCandleExePath "$ProductWxsPath" "$wixFragmentPath" -out (Join-Path "$env:Temp" "\\") -arch x64 -v | Write-Verbose
& $wixLightExePath -out $msiLocationPath $wixObjProductPath $wixObjFragmentPath -ext WixUIExtension -dWixUILicenseRtf="$LicenseFilePath" -v | Write-Verbose
-
+
Remove-Item -ErrorAction SilentlyContinue *.wixpdb -Force
Write-Verbose "You can find the MSI @ $msiLocationPath" -Verbose
@@ -2439,8 +2439,8 @@ function New-AppxPackage
[ValidateNotNullOrEmpty()]
[string] $AssetsPath
)
-
- $PackageSemanticVersion = Get-PackageSemanticVersion -Version $PackageVersion
+
+ $PackageSemanticVersion = Get-PackageSemanticVersion -Version $PackageVersion
$PackageVersion = Get-PackageVersionAsMajorMinorBuildRevision -Version $PackageVersion
Write-Verbose "Package Version is $PackageVersion"
@@ -2527,7 +2527,7 @@ function New-ZipPackage
{
[CmdletBinding()]
param (
-
+
# Name of the Product
[ValidateNotNullOrEmpty()]
[string] $PackageName = 'PowerShell',
@@ -2547,12 +2547,12 @@ function New-ZipPackage
)
$ProductSemanticVersion = Get-PackageSemanticVersion -Version $PackageVersion
-
+
$zipPackageName = $PackageName + "_" + $ProductSemanticVersion
if ($PackageNameSuffix) {
$zipPackageName = $zipPackageName, $PackageNameSuffix -join "-"
}
-
+
Write-Verbose "Create Zip for Product $zipPackageName"
$zipLocationPath = Join-Path $PWD "$zipPackageName.zip"
@@ -2565,7 +2565,7 @@ function New-ZipPackage
$zipLocationPath
}
- #TODO: Use .NET Api to do compresss-archive equivalent if the cmdlet is not present
+ #TODO: Use .NET Api to do compresss-archive equivalent if the cmdlet is not present
else
{
Write-Error -Message "Compress-Archive cmdlet is missing in this PowerShell version"
@@ -2755,7 +2755,7 @@ function Clear-PSRepo
[switch] $IncludePackages
)
Get-ChildItem $PSScriptRoot\* -Directory -Exclude 'Packages' | ForEach-Object {
- Write-Verbose "Cleaning $_ ..."
+ Write-Verbose "Cleaning $_ ..."
git clean -fdX $_
}
@@ -2846,7 +2846,7 @@ function Restore-PSModule
# pull down the module
log "running save-module $_"
PowerShellGet\Save-Module @command -Force
-
+
# Remove PSGetModuleInfo.xml file
Find-Module -Name $_ -Repository $RepositoryName -IncludeDependencies | ForEach-Object {
Remove-Item -Path $Destination\$($_.Name)\*\PSGetModuleInfo.xml -Force
diff --git a/demos/Apache/Apache/Apache.psm1 b/demos/Apache/Apache/Apache.psm1
index c5d6e44f0d..5537fd124f 100644
--- a/demos/Apache/Apache/Apache.psm1
+++ b/demos/Apache/Apache/Apache.psm1
@@ -100,7 +100,7 @@ Class ApacheVirtualHost{
$vHostDef += ""
$filName = $ConfigurationFile
$VhostDef | Out-File "/tmp/${filName}" -Force -Encoding:ascii
- & $global:sudocmd "mv" "/tmp/${filName}" "${VhostsDirectory}/${filName}"
+ & $global:sudocmd "mv" "/tmp/${filName}" "${VhostsDirectory}/${filName}"
Write-Information "Restarting Apache HTTP Server"
Restart-ApacheHTTPServer
}
diff --git a/demos/Azure/Azure-Demo.ps1 b/demos/Azure/Azure-Demo.ps1
index 8678bd8e15..e08371d109 100644
--- a/demos/Azure/Azure-Demo.ps1
+++ b/demos/Azure/Azure-Demo.ps1
@@ -20,11 +20,11 @@ Login-AzureRmAccount
$resourceGroupName = "PSAzDemo" + (New-Guid | % guid) -replace "-",""
$resourceGroupName
-### Create a new Azure Resource Group
+### Create a new Azure Resource Group
New-AzureRmResourceGroup -Name $resourceGroupName -Location "West US"
### Deploy an Ubuntu 14.04 VM using Resource Manager cmdlets
-### Template is available at
+### Template is available at
### http://armviz.io/#/?load=https:%2F%2Fraw.githubusercontent.com%2FAzure%2Fazure-quickstart-templates%2Fmaster%2F101-vm-simple-linux%2Fazuredeploy.json
$dnsLabelPrefix = $resourceGroupName | % tolower
$dnsLabelPrefix
@@ -32,7 +32,7 @@ $password = ConvertTo-SecureString -String "PowerShellRocks!" -AsPlainText -Forc
New-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName -TemplateFile ./Compute-Linux.json -adminUserName psuser -adminPassword $password -dnsLabelPrefix $dnsLabelPrefix
### Monitor the status of the deployment
-Get-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName
+Get-AzureRmResourceGroupDeployment -ResourceGroupName $resourceGroupName
### Discover the resources we created by the previous deployment
Find-AzureRmResource -ResourceGroupName $resourceGroupName | select Name,ResourceType,Location
@@ -46,20 +46,20 @@ Get-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/vir
Get-AzureRmProviderOperation -OperationSearchString Microsoft.Compute/* | select OperationName,Operation
### Power Off the Virtual Machine we created
-Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action poweroff
+Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action poweroff
### Check the VM state again. It should be stopped now.
Get-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/virtualMachines -ResourceGroupName $resourceGroupName -ODataQuery '$expand=instanceView' | % properties | % instanceview | % statuses
### As you know, you may still be incurring charges even if the VM is in stopped state
### Deallocate the resource to avoid this charge
-Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action deallocate
+Invoke-AzureRmResourceAction -ResourceGroupName $resourceGroupName -ResourceType Microsoft.Compute/virtualMachines -ResourceName MyUbuntuVM -Action deallocate
### The following command removes the Virtual Machine
-Remove-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/virtualMachines -ResourceGroupName $resourceGroupName
+Remove-AzureRmResource -ResourceName MyUbuntuVM -ResourceType Microsoft.Compute/virtualMachines -ResourceGroupName $resourceGroupName
### Look at the resources that still exists
Find-AzureRmResource -ResourceGroupName $resourceGroupName | select Name,ResourceType,Location
### Remove the resource group and its resources
-Remove-AzureRmResourceGroup -Name $resourceGroupName
+Remove-AzureRmResourceGroup -Name $resourceGroupName
diff --git a/demos/DSC/dsc-demo.ps1 b/demos/DSC/dsc-demo.ps1
index e35a36f418..95b694c638 100644
--- a/demos/DSC/dsc-demo.ps1
+++ b/demos/DSC/dsc-demo.ps1
@@ -1,6 +1,6 @@
#Get Distro type and set distro-specific variables
-$OSname = Get-Content "/etc/os-release" |Select-String -Pattern "^Name="
+$OSname = Get-Content "/etc/os-release" |Select-String -Pattern "^Name="
$OSName = $OSName.tostring().split("=")[1].Replace('"','')
if ($OSName -like "Ubuntu*"){
$distro = "Ubuntu"
@@ -56,12 +56,12 @@ Configuration ApacheServer{
nxFile Welcome.conf{
DestinationPath = "${VhostDir}/welcome.conf"
- Ensure = "Absent"
+ Ensure = "Absent"
}
nxFile UserDir.conf{
DestinationPath = "${VhostDir}/userdir.conf"
- Ensure = "Absent"
+ Ensure = "Absent"
}
#Ensure website is defined
@@ -107,8 +107,8 @@ ServerName $hostname
Controller = $ServiceCtl
DependsOn = "[nxFile]DefaultSite.conf"
}
-
- }
+
+ }
}
ApacheServer -OutputPath "/tmp"
diff --git a/demos/crontab/CronTab/CronTab.ps1xml b/demos/crontab/CronTab/CronTab.ps1xml
index 1d1f1f90d8..4246b1f62a 100644
--- a/demos/crontab/CronTab/CronTab.ps1xml
+++ b/demos/crontab/CronTab/CronTab.ps1xml
@@ -1,6 +1,6 @@
-
+Default
diff --git a/demos/crontab/CronTab/CronTab.psm1 b/demos/crontab/CronTab/CronTab.psm1
index 308ff4ea9e..d706333126 100644
--- a/demos/crontab/CronTab/CronTab.psm1
+++ b/demos/crontab/CronTab/CronTab.psm1
@@ -51,7 +51,7 @@ function Invoke-CronTab ([String] $user, [String[]] $arguments, [Switch] $noThro
If ($user -ne [String]::Empty) {
$arguments = Write-Output "-u" $UserName $arguments
}
-
+
Write-Verbose "Running: $crontabcmd $arguments"
$output = & $crontabcmd @arguments 2>&1
if ($LastExitCode -ne 0 -and -not $noThrow) {
@@ -87,7 +87,7 @@ function Remove-CronJob {
Cron job object returned from Get-CronJob
.PARAMETER Force
Don't prompt when removing the cron job
-#>
+#>
[CmdletBinding(SupportsShouldProcess=$true,ConfirmImpact="High")]
param (
[ArgumentCompleter( { $wordToComplete = $args[2]; Get-CronTabUser | Where-Object { $_ -like "$wordToComplete*" } | Sort-Object } )]
@@ -109,7 +109,7 @@ function Remove-CronJob {
[string[]] $crontab = Get-CronTab -user $UserName
$newcrontab = [List[string]]::new()
$found = $false
-
+
$JobAsString = $Job.ToString()
foreach ($line in $crontab) {
if ($JobAsString -ceq $line) {
@@ -118,7 +118,7 @@ function Remove-CronJob {
$newcrontab.Add($line)
}
}
-
+
if (-not $found) {
$e = New-Object System.Exception -ArgumentList "Job not found"
throw $e
@@ -126,7 +126,7 @@ function Remove-CronJob {
if ($Force -or $pscmdlet.ShouldProcess($Job.Command,"Remove")) {
Import-CronTab -user $UserName -crontab $newcrontab
}
- }
+ }
}
function New-CronJob {
@@ -136,7 +136,7 @@ function New-CronJob {
.DESCRIPTION
Create a new job in the cron table. Date and time parameters can be specified
as ranges such as 10-30, as a list: 5,6,7, or combined 1-5,10-15. An asterisk
- means 'first through last' (the entire allowed range). Step values can be used
+ means 'first through last' (the entire allowed range). Step values can be used
with ranges or with an asterisk. Every 2 hours can be specified as either
0-23/2 or */2.
.EXAMPLE
@@ -157,7 +157,7 @@ function New-CronJob {
Valid values are 0-7. 0 and 7 are both Sunday. If not specified, defaults to *.
.PARAMETER Command
Command to execute at the scheduled time and day.
-#>
+#>
[CmdletBinding()]
param (
[ArgumentCompleter( { $wordToComplete = $args[2]; Get-CronTabUser | Where-Object { $_ -like "$wordToComplete*" } | Sort-Object } )]
@@ -175,7 +175,7 @@ function New-CronJob {
)
process {
# TODO: validate parameters, note that different versions of crontab support different capabilities
- $line = "{0} {1} {2} {3} {4} {5}" -f [String]::Join(",",$Minute), [String]::Join(",",$Hour),
+ $line = "{0} {1} {2} {3} {4} {5}" -f [String]::Join(",",$Minute), [String]::Join(",",$Hour),
[String]::Join(",",$DayOfMonth), [String]::Join(",",$Month), [String]::Join(",",$DayOfWeek), $Command
[string[]] $crontab = Get-CronTab -user $UserName
$crontab += $line
@@ -196,7 +196,7 @@ function Get-CronJob {
CronJob objects
.PARAMETER UserName
Optional parameter to specify a specific user's cron table
-#>
+#>
[CmdletBinding()]
[OutputType([CronJob])]
param (
diff --git a/demos/dsc.ps1 b/demos/dsc.ps1
index c1fdd69037..27e09f29e4 100644
--- a/demos/dsc.ps1
+++ b/demos/dsc.ps1
@@ -3,7 +3,7 @@
# Defines base configuration users, groups, settings
# Uses PS function to set package configuration (ensure=Present) for an array of packages
# Probes for the existence of a package (Apache or MySQL) and conditionally configures the workload. I.e., if Apache is installed, configure Apache settings
-
+
# Demo execution:
# Show the .ps1
# Run the .ps1 to generate a MOF
diff --git a/demos/powershellget/PowerShellGet.ps1 b/demos/powershellget/PowerShellGet.ps1
index d371a7d42a..6703215241 100644
--- a/demos/powershellget/PowerShellGet.ps1
+++ b/demos/powershellget/PowerShellGet.ps1
@@ -49,7 +49,7 @@ Update-Module
#endregion
-#region Using PowerShellGet with tags
+#region Using PowerShellGet with tags
# Look for all the scripts we'll be demoing today
Find-Script -Tag 'PowerShellCore_Demo'
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs
index 70492544e5..4cb2c7ab20 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimAsyncOperation.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs
index c5a21c4f3f..829152def7 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimBaseAction.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs
index 4e62515f95..b8138e8768 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCmdletModuleInitialize.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
index dbf90255cc..2f545311bc 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimCommandBase.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -697,7 +697,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
///
- /// Set object, to which
+ /// Set object, to which
/// current cmdlet will delegate all operations.
///
///
@@ -787,7 +787,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// resource Uri computer set name
///
- internal const string ResourceUriComputerSet = "ResourceUriComputerSet";
+ internal const string ResourceUriComputerSet = "ResourceUriComputerSet";
///
/// computer set name
@@ -808,7 +808,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// resource Uri session set name
///
- internal const string ResourceUriSessionSet = "ResourceUriSessionSet";
+ internal const string ResourceUriSessionSet = "ResourceUriSessionSet";
///
/// session set name
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs
index 4f83c7dee4..b21e8304ac 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetAssociatedInstance.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs
index 4c7b2dc5b2..2fec594ad3 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetCimClass.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs
index b0495df2b4..562bce3b62 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimGetInstance.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -182,7 +182,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
proxy.EnumerateInstancesAsync(GetNamespace(cmdlet), GetClassName(cmdlet));
}
- break;
+ break;
default:
break;
}
@@ -375,7 +375,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
proxy.OperationTimeout = removeCimInstance.OperationTimeoutSec;
if(removeCimInstance.ResourceUri != null )
{
- proxy.ResourceUri = removeCimInstance.ResourceUri;
+ proxy.ResourceUri = removeCimInstance.ResourceUri;
}
CimRemoveCimInstanceContext context = new CimRemoveCimInstanceContext(
ConstValue.GetNamespace(removeCimInstance.Namespace),
@@ -388,7 +388,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
proxy.OperationTimeout = setCimInstance.OperationTimeoutSec;
if(setCimInstance.ResourceUri != null )
{
- proxy.ResourceUri = setCimInstance.ResourceUri;
+ proxy.ResourceUri = setCimInstance.ResourceUri;
}
CimSetCimInstanceContext context = new CimSetCimInstanceContext(
ConstValue.GetNamespace(setCimInstance.Namespace),
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
index 91d9006f6c..98098e0f3f 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimIndicationWatcher.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs
index 6e38493a06..63c8bafbe0 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimInvokeCimMethod.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -106,7 +106,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
break;
case CimBaseCommand.ClassNameComputerSet:
case CimBaseCommand.CimClassComputerSet:
- case CimBaseCommand.ResourceUriComputerSet:
+ case CimBaseCommand.ResourceUriComputerSet:
case CimBaseCommand.QueryComputerSet:
foreach (string computerName in computerNames)
{
@@ -127,7 +127,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
default:
break;
}
- CimMethodParametersCollection paramsCollection =
+ CimMethodParametersCollection paramsCollection =
CreateParametersCollection(cmdlet.Arguments, cmdlet.CimClass, cmdlet.CimInstance, cmdlet.MethodName);
// Invoke methods
@@ -135,7 +135,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
case CimBaseCommand.ClassNameComputerSet:
case CimBaseCommand.ClassNameSessionSet:
- case CimBaseCommand.ResourceUriSessionSet:
+ case CimBaseCommand.ResourceUriSessionSet:
case CimBaseCommand.ResourceUriComputerSet:
{
string target = string.Format(CultureInfo.CurrentUICulture, targetClass, cmdlet.ClassName);
@@ -408,7 +408,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
if (parameterValue == null)
{
- // try the best to get the type while value is null
+ // try the best to get the type while value is null
parameter = CimMethodParameter.Create(
parameterName,
parameterValue,
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs
index bc462dd7c6..c56e604d90 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimNewCimInstance.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -81,11 +81,11 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cmdlet.Key,
cmdlet.Property,
cmdlet);
-
+
}
- break;
+ break;
case CimBaseCommand.ResourceUriSessionSet:
- case CimBaseCommand.ResourceUriComputerSet:
+ case CimBaseCommand.ResourceUriComputerSet:
{
nameSpace = cmdlet.Namespace; //passing null is ok for resourceUri set
cimInstance = CreateCimInstance("DummyClass",
@@ -93,7 +93,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cmdlet.Key,
cmdlet.Property,
cmdlet);
-
+
}
break;
case CimBaseCommand.CimClassComputerSet:
@@ -103,7 +103,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cimInstance = CreateCimInstance(cmdlet.CimClass,
cmdlet.Property,
cmdlet);
-
+
}
break;
default:
@@ -272,7 +272,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
return cimInstance;
}
-
+
List keys = new List();
if (key != null)
{
@@ -309,7 +309,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
flag);
cimInstance.CimInstanceProperties.Add(newProperty);
}
-
+
}
return cimInstance;
}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs
index 0c9ee96dba..a36c59a2ca 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimPromptUser.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -31,7 +31,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
this.message = message;
this.prompt = prompt;
- }
+ }
///
///
@@ -77,13 +77,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
catch
{
this.responseType = CimResponseType.NoToAll;
- throw;
+ throw;
}
finally
{
// unblocking the waiting thread
this.OnComplete();
- }
+ }
break;
case CimPromptType.Normal:
try
@@ -101,26 +101,26 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
catch
{
this.responseType = CimResponseType.NoToAll;
- throw;
+ throw;
}
finally
{
// unblocking the waiting thread
this.OnComplete();
- }
+ }
break;
default:
break;
}
this.OnComplete();
- }
+ }
#region members
///
/// prompt message
///
- public string Message
+ public string Message
{
get
{
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs
index d1635eb98c..81e3cf2adb 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRegisterCimIndication.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs
index 20837d5b7a..726136fa33 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimRemoveCimInstance.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs
index eb7c10ebb7..0ea01b2a64 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimResultObserver.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
index d17891c084..bbf9094988 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionOperations.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -95,7 +95,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
case ProtocolType.Dcom:
return "DCOM";
case ProtocolType.Default:
- case ProtocolType.Wsman:
+ case ProtocolType.Wsman:
default:
return "WSMAN";
}
@@ -919,7 +919,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// Create a new base on given cmdlet
/// and its parameter
- ///
+ ///
///
///
///
@@ -952,7 +952,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
else
{
//CimSession will be returned as part of TestConnection
- this.cimTestSession.TestCimSession(computerName, proxy);
+ this.cimTestSession.TestCimSession(computerName, proxy);
}
}
}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
index 80c2f474fa..ba2cd51372 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSessionProxy.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -401,7 +401,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
Debug.Assert(cimInstance != null, "Caller should verify cimInstance != null");
-
+
// computerName is null, fallback to create session from cimInstance
CimSessionState state = CimSessionBase.GetCimSessionState();
if (state != null)
@@ -569,7 +569,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
return this.options.ResourceUri;
}
- }
+ }
///
/// Enable/Disable the method result streaming,
@@ -600,9 +600,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
if(value)
{
this.options.PromptUser = this.PromptUser;
- }
+ }
}
- }
+ }
///
/// Enable the pssemantics
@@ -1021,7 +1021,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
}
///
- /// This method adds a note property to ,
+ /// This method adds a note property to ,
/// which will cause the default PowerShell formatting and output
/// to include PSComputerName column/property in the display.
///
@@ -1639,8 +1639,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private IObjectPreProcess objectPreprocess;
///
- /// is true if this was
- /// created to handle the "default" session, in cases where cmdlets are invoked without
+ /// is true if this was
+ /// created to handle the "default" session, in cases where cmdlets are invoked without
/// ComputerName and/or CimSession parameters.
///
private bool isDefaultSession;
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
index 46e40ef539..57ddb857cc 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimSetCimInstance.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs
index 780eae5254..97c45cd77c 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteError.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs
index 914d499bbf..b224364bfc 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteMessage.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -34,7 +34,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region Properties
- internal UInt32 Channel
+ internal UInt32 Channel
{
get { return channel; }
}
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs
index ce28ce1440..08eb6acc87 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteProgress.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs
index c95bb72846..b060a728c0 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CimWriteResultObject.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs
index b3aac9c1ce..9d770ee22d 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/CmdletOperation.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -140,7 +140,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
: base(cmdlet)
{
ValidationHelper.ValidateNoNullArgument(cimRemoveCimInstance, cimRemoveCimInstanceParameterName);
- this.removeCimInstance = cimRemoveCimInstance;
+ this.removeCimInstance = cimRemoveCimInstance;
}
///
@@ -295,7 +295,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
DebugHelper.WriteLogEx();
if (sendToPipeline is CimInstance)
- {
+ {
this.cimInvokeCimMethod.InvokeCimMethodOnCimInstance(sendToPipeline as CimInstance, context, this);
}
else
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs
index 642b02a362..7afe732523 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimAssociatedInstanceCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -33,7 +33,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public class GetCimAssociatedInstanceCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -42,7 +42,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region parameters
@@ -175,7 +175,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
base.SetParameter(value, nameResourceUri);
}
}
- private Uri resourceUri;
+ private Uri resourceUri;
///
///
@@ -311,7 +311,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// Noun of current cmdlet
///
- internal const string Noun = @"CimAssociatedInstance";
+ internal const string Noun = @"CimAssociatedInstance";
#endregion
@@ -324,7 +324,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
// internal const string nameOperationTimeoutSec = "OperationTimeoutSec";
internal const string nameComputerName = "ComputerName";
internal const string nameCimSession = "CimSession";
- internal const string nameResourceUri = "ResourceUri";
+ internal const string nameResourceUri = "ResourceUri";
// internal const string nameKeyOnly = "KeyOnly";
#endregion
@@ -340,19 +340,19 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
},
{
nameCimSession, new HashSet {
- new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true),
+ new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true),
}
},
{
nameCimInstance, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ComputerSetName, true),
- new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true),
+ new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true),
}
},
{
nameResourceUri, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ComputerSetName, false),
- new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, false),
+ new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, false),
}
},
};
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs
index 5684d4c0dd..2201d64fdf 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimClassCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -16,7 +16,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
///
///
- /// Enables the user to enumerate the list of CIM Classes under a specific
+ /// Enables the user to enumerate the list of CIM Classes under a specific
/// Namespace. If no list of classes is given, the Cmdlet returns all
/// classes in the given namespace.
///
@@ -30,7 +30,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public class GetCimClassCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -39,7 +39,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region parameters
@@ -211,7 +211,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
cimGetCimClass = CreateOperationAgent();
}
cimGetCimClass.GetCimClass(this);
- cimGetCimClass.ProcessActions(this.CmdletOperation);
+ cimGetCimClass.ProcessActions(this.CmdletOperation);
}//End ProcessRecord()
///
@@ -283,7 +283,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.SessionSetName, true),
}
},
-
+
{
nameComputerName, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ComputerSetName, false),
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs
index 91706dd397..248e716c51 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimInstanceCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -17,8 +17,8 @@ using System.Diagnostics.CodeAnalysis;
namespace Microsoft.Management.Infrastructure.CimCmdlets
{
///
- /// Returns zero, one or more CIM (dynamic) instances with the properties
- /// specified in the Property parameter, KeysOnly parameter or the Select clause
+ /// Returns zero, one or more CIM (dynamic) instances with the properties
+ /// specified in the Property parameter, KeysOnly parameter or the Select clause
/// of the Query parameter.
///
[Cmdlet(VerbsCommon.Get, "CimInstance", DefaultParameterSetName = CimBaseCommand.ClassNameComputerSet, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227961")]
@@ -26,7 +26,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public class GetCimInstanceCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -35,7 +35,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region parameters
@@ -61,7 +61,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(
Mandatory = true,
ValueFromPipeline = true,
- ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
@@ -114,13 +114,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(
ParameterSetName = CimBaseCommand.CimInstanceComputerSet)]
[Parameter(
- ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
+ ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.QueryComputerSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.QuerySessionSet)]
+ ParameterSetName = CimBaseCommand.QuerySessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
@@ -130,12 +130,12 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
base.SetParameter(value, nameResourceUri);
}
}
- private Uri resourceUri;
+ private Uri resourceUri;
///
- /// The following is the definition of the input parameter "ComputerName".
- /// Provides the name of the computer from which to retrieve the instances. The
- /// ComputerName is used to create a temporary CimSession with default parameter
+ /// The following is the definition of the input parameter "ComputerName".
+ /// Provides the name of the computer from which to retrieve the instances. The
+ /// ComputerName is used to create a temporary CimSession with default parameter
/// values, which is then used to retrieve the instances.
///
///
@@ -148,7 +148,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.QueryComputerSet)]
@@ -176,7 +176,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
[Parameter(ParameterSetName = CimBaseCommand.ClassNameSessionSet)]
[Parameter(ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
- [Parameter(ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
+ [Parameter(ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
public SwitchParameter KeyOnly
{
get { return keyOnly; }
@@ -205,7 +205,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.QueryComputerSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -307,19 +307,19 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
///
/// The following is the definition of the input parameter "QueryDialect".
- /// Specifies the dialect used by the query Engine that interprets the Query
+ /// Specifies the dialect used by the query Engine that interprets the Query
/// string.
///
///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.QueryComputerSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.QuerySessionSet)]
+ ParameterSetName = CimBaseCommand.QuerySessionSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.ClassNameSessionSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
-
+
public String QueryDialect
{
get { return queryDialect; }
@@ -334,16 +334,16 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
///
/// The following is the definition of the input parameter "Shallow".
- /// If the switch is set to True, only instance of the class identified by
- /// Namespace + ClassName will be returned. If the switch is not set, instances
- /// of the above class and of all of its descendents will be returned (the
+ /// If the switch is set to True, only instance of the class identified by
+ /// Namespace + ClassName will be returned. If the switch is not set, instances
+ /// of the above class and of all of its descendents will be returned (the
/// enumeration will cascade the class inheritance hierarchy).
///
///
[Parameter(ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
[Parameter(ParameterSetName = CimBaseCommand.ClassNameSessionSet)]
[Parameter(ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
- [Parameter(ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ [Parameter(ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[Parameter(ParameterSetName = CimBaseCommand.QueryComputerSet)]
[Parameter(ParameterSetName = CimBaseCommand.QuerySessionSet)]
public SwitchParameter Shallow
@@ -370,7 +370,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
public String Filter
{
get { return filter; }
@@ -395,7 +395,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
[Alias("SelectProperties")]
public String[] Property
@@ -513,7 +513,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal const string nameCimInstance = "InputObject";
internal const string nameCimSession = "CimSession";
internal const string nameClassName = "ClassName";
- internal const string nameResourceUri = "ResourceUri";
+ internal const string nameResourceUri = "ResourceUri";
internal const string nameComputerName = "ComputerName";
internal const string nameFilter = "Filter";
internal const string nameKeyOnly = "KeyOnly";
@@ -545,9 +545,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false),
}
- },
+ },
{
nameClassName, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true),
@@ -559,7 +559,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
}
},
{
@@ -567,7 +567,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
}
},
{
@@ -575,7 +575,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false),
}
@@ -598,7 +598,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
-
+
}
},
{
@@ -606,7 +606,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
}
@@ -616,7 +616,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
}
},
{
@@ -624,7 +624,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
}
},
};
@@ -640,7 +640,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.ClassNameSessionSet, new ParameterSetEntry(2) },
{ CimBaseCommand.QueryComputerSet, new ParameterSetEntry(1) },
{ CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(2) },
- { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) },
+ { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) },
{ CimBaseCommand.QuerySessionSet, new ParameterSetEntry(2) }
};
#endregion
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs
index f7145e6aee..86b26890b7 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/GetCimSessionCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -14,7 +14,7 @@ using System.Management.Automation;
namespace Microsoft.Management.Infrastructure.CimCmdlets
{
///
- /// The command returns zero, one or more CimSession objects that represent
+ /// The command returns zero, one or more CimSession objects that represent
/// connections with remote computers established from the current PS Session.
///
@@ -23,7 +23,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public sealed class GetCimSessionCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -32,7 +32,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region parameters
@@ -40,17 +40,17 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
///
/// The following is the definition of the input parameter "ComputerName".
- /// Specifies one or more connections by providing their ComputerName(s). The
- /// Cmdlet then gets CimSession(s) opened with those connections. This parameter
- /// is an alternative to using CimSession(s) that also identifies the remote
+ /// Specifies one or more connections by providing their ComputerName(s). The
+ /// Cmdlet then gets CimSession(s) opened with those connections. This parameter
+ /// is an alternative to using CimSession(s) that also identifies the remote
/// computer(s).
///
///
- /// This is the only optional parameter of the Cmdlet. If not provided, the
- /// Cmdlet returns all CimSession(s) live/active in the runspace.
+ /// This is the only optional parameter of the Cmdlet. If not provided, the
+ /// Cmdlet returns all CimSession(s) live/active in the runspace.
///
///
- /// If an instance of CimSession is pipelined to Get-CimSession, the
+ /// If an instance of CimSession is pipelined to Get-CimSession, the
/// ComputerName property of the instance is bound by name with this parameter.
///
///
@@ -111,7 +111,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "Name".
- /// Specifies one or more session Name(s) for which to get CimSession(s). The
+ /// Specifies one or more session Name(s) for which to get CimSession(s). The
/// argument may contain wildcard characters.
///
[Parameter(Mandatory = true,
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs
index c23b9b20e5..eb434f16b6 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/InvokeCimMethodCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -15,7 +15,7 @@ using System.Management.Automation;
namespace Microsoft.Management.Infrastructure.CimCmdlets
{
///
- /// This cmdlet enables the user to invoke a static method on a CIM class using
+ /// This cmdlet enables the user to invoke a static method on a CIM class using
/// the arguments passed as a list of name value pair dictionary.
///
@@ -28,7 +28,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public class InvokeCimMethodCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -37,7 +37,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region parameters
@@ -75,13 +75,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.CimInstanceComputerSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
+ ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
[Parameter(Mandatory = true,
ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[Parameter(Mandatory = true,
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
@@ -90,8 +90,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.resourceUri = value;
base.SetParameter(value, nameResourceUri);
}
- }
- private Uri resourceUri;
+ }
+ private Uri resourceUri;
///
/// The following is the definition of the input parameter "CimClass".
@@ -140,7 +140,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
///
/// The following is the definition of the input parameter "QueryDialect".
- /// Specifies the dialect used by the query Engine that interprets the Query
+ /// Specifies the dialect used by the query Engine that interprets the Query
/// string.
///
///
@@ -193,9 +193,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private CimInstance cimInstance;
///
- /// The following is the definition of the input parameter "ComputerName".
- /// Provides the name of the computer from which to invoke the method. The
- /// ComputerName is used to create a temporary CimSession with default parameter
+ /// The following is the definition of the input parameter "ComputerName".
+ /// Provides the name of the computer from which to invoke the method. The
+ /// ComputerName is used to create a temporary CimSession with default parameter
/// values, which is then used to retrieve the instances.
///
///
@@ -216,7 +216,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.CimClassComputerSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public String[] ComputerName
{
@@ -254,7 +254,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimClassSessionSet)]
[Parameter(Mandatory = true,
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public CimSession[] CimSession
{
@@ -274,7 +274,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
[Parameter(Position = 1, ValueFromPipelineByPropertyName = true)]
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
- public IDictionary Arguments
+ public IDictionary Arguments
{
get { return arguments; }
set { arguments = value; }
@@ -314,10 +314,10 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.QuerySessionSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
public String Namespace
{
get { return nameSpace; }
@@ -331,7 +331,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "OperationTimeoutSec".
- /// Enables the user to specify the operation timeout in Seconds. This value
+ /// Enables the user to specify the operation timeout in Seconds. This value
/// overwrites the value specified by the CimSession Operation timeout.
///
[Alias(AliasOT)]
@@ -438,7 +438,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
internal const string nameClassName = "ClassName";
internal const string nameCimClass = "CimClass";
internal const string nameQuery = "Query";
- internal const string nameResourceUri = "ResourceUri";
+ internal const string nameResourceUri = "ResourceUri";
internal const string nameQueryDialect = "QueryDialect";
internal const string nameCimInstance = "InputObject";
internal const string nameComputerName = "ComputerName";
@@ -489,7 +489,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
}
},
{
@@ -498,9 +498,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, true),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true),
new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true),
}
- },
+ },
{
nameMethodName, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, true),
@@ -512,7 +512,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true),
new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true),
}
},
{
@@ -522,7 +522,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.QueryComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.QuerySessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
}
},
{
@@ -530,9 +530,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true),
}
- },
+ },
};
///
@@ -541,8 +541,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
static Dictionary parameterSets = new Dictionary
{
{ CimBaseCommand.ClassNameComputerSet, new ParameterSetEntry(2, true) },
- { CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(3) },
- { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(2) },
+ { CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(3) },
+ { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(2) },
{ CimBaseCommand.ClassNameSessionSet, new ParameterSetEntry(3) },
{ CimBaseCommand.QueryComputerSet, new ParameterSetEntry(2) },
{ CimBaseCommand.QuerySessionSet, new ParameterSetEntry(3) },
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs
index 1f916b5f60..b1a5986a0f 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimInstanceCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -29,7 +29,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public class NewCimInstanceCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -38,7 +38,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region parameters
@@ -79,7 +79,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[Parameter(Mandatory = true,
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
public Uri ResourceUri
{
get { return resourceUri; }
@@ -89,7 +89,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
base.SetParameter(value, nameResourceUri);
}
}
- private Uri resourceUri;
+ private Uri resourceUri;
///
///
@@ -111,7 +111,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays")]
public String[] Key
{
@@ -163,7 +163,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ValueFromPipelineByPropertyName = true)]
[SuppressMessage("Microsoft.Usage", "CA2227:CollectionPropertiesShouldBeReadOnly")]
[Alias("Arguments")]
- public IDictionary Property
+ public IDictionary Property
{
get { return property; }
set { property = value; }
@@ -186,7 +186,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
public String Namespace
{
get { return nameSpace; }
@@ -200,7 +200,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "OperationTimeoutSec".
- /// Operation Timeout of the cmdlet in seconds. Overrides the value in the Cim
+ /// Operation Timeout of the cmdlet in seconds. Overrides the value in the Cim
/// Session.
///
[Alias(AliasOT)]
@@ -225,7 +225,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(
Mandatory = true,
ValueFromPipeline = true,
- ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriSessionSet)]
[Parameter(
Mandatory = true,
ValueFromPipeline = true,
@@ -243,7 +243,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
private CimSession[] cimSession;
///
- /// The following is the definition of the input parameter "ComputerName".
+ /// The following is the definition of the input parameter "ComputerName".
/// Provides the name of the computer from which to create the instances.
///
///
@@ -256,7 +256,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
ParameterSetName = CimBaseCommand.ClassNameComputerSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
+ ParameterSetName = CimBaseCommand.ResourceUriComputerSet)]
[Parameter(
ValueFromPipelineByPropertyName = true,
ParameterSetName = CimClassComputerSet)]
@@ -286,13 +286,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(
ParameterSetName = CimBaseCommand.CimClassComputerSet)]
[Parameter(
- ParameterSetName = CimBaseCommand.CimClassSessionSet)]
- public SwitchParameter ClientOnly
+ ParameterSetName = CimBaseCommand.CimClassSessionSet)]
+ public SwitchParameter ClientOnly
{
get { return clientOnly; }
- set {
- clientOnly = value;
- base.SetParameter(value, nameClientOnly);
+ set {
+ clientOnly = value;
+ base.SetParameter(value, nameClientOnly);
}
}
private SwitchParameter clientOnly;
@@ -431,15 +431,15 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
nameResourceUri, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, true),
}
- },
+ },
{
nameKey, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
}
},
{
@@ -447,26 +447,26 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true),
new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true),
}
- },
+ },
{
nameNamespace, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, false),
}
},
{
nameCimSession, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriSessionSet, true),
new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true),
}
},
{
nameComputerName, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, false),
- new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
+ new ParameterDefinitionEntry(CimBaseCommand.ResourceUriComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, false),
}
},
@@ -475,9 +475,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, true),
new ParameterDefinitionEntry(CimBaseCommand.CimClassSessionSet, true),
- new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true),
+ new ParameterDefinitionEntry(CimBaseCommand.CimClassComputerSet, true),
}
- },
+ },
};
///
@@ -490,7 +490,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{ CimBaseCommand.CimClassSessionSet, new ParameterSetEntry(2) },
{ CimBaseCommand.CimClassComputerSet, new ParameterSetEntry(1) },
{ CimBaseCommand.ResourceUriSessionSet, new ParameterSetEntry(2) },
- { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) },
+ { CimBaseCommand.ResourceUriComputerSet, new ParameterSetEntry(1) },
};
#endregion
}//End Class
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
index 99b7d46bd0..f1083747e8 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -15,10 +15,10 @@ using Microsoft.Management.Infrastructure.Options;
namespace Microsoft.Management.Infrastructure.CimCmdlets
{
///
- /// This Cmdlet enables the IT Pro to create a CIM Session. CIM Session object
- /// is a client-side representation of the connection between the client and the
- /// server.
- /// The CimSession object returned by the Cmdlet is used by all other CIM
+ /// This Cmdlet enables the IT Pro to create a CIM Session. CIM Session object
+ /// is a client-side representation of the connection between the client and the
+ /// server.
+ /// The CimSession object returned by the Cmdlet is used by all other CIM
/// cmdlets.
///
[Cmdlet(VerbsCommon.New, "CimSession", DefaultParameterSetName = CredentialParameterSet, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227967")]
@@ -74,7 +74,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "ComputerName".
- /// Specifies the computer on which the commands associated with this session
+ /// Specifies the computer on which the commands associated with this session
/// will run. The default value is LocalHost.
///
[Alias(AliasCN, AliasServerName)]
@@ -96,8 +96,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
/// Specifies a friendly name for the CIM Session connection.
///
///
- /// If a name is not passed, then the session is given the name CimSession,
- /// where is the next available session number. Example, CimSession1,
+ /// If a name is not passed, then the session is given the name CimSession,
+ /// where is the next available session number. Example, CimSession1,
/// CimSession2, etc...
///
///
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs
index 05d3276010..9e12e007f3 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/NewCimSessionOptionCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -28,14 +28,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
};
///
- /// The Cmdlet allows the IT Pro to create a CimSessionOptions object that she/he
- /// can subsequently use to create one or more CimSession connections. The
- /// options object holds the CIM Session information that is less commonly set
- /// and used by the IT Pro, and most commonly defaulted.
+ /// The Cmdlet allows the IT Pro to create a CimSessionOptions object that she/he
+ /// can subsequently use to create one or more CimSession connections. The
+ /// options object holds the CIM Session information that is less commonly set
+ /// and used by the IT Pro, and most commonly defaulted.
///
- /// The Cmdlet has two parameter sets, one for WMMan options and one for DCOM
- /// options. Depending on the arguments the Cmdlet will return an instance of
- /// DComSessionOptions or WSManSessionOptions, which derive from
+ /// The Cmdlet has two parameter sets, one for WMMan options and one for DCOM
+ /// options. Depending on the arguments the Cmdlet will return an instance of
+ /// DComSessionOptions or WSManSessionOptions, which derive from
/// CimSessionOptions.
///
[Cmdlet(VerbsCommon.New, "CimSessionOption", DefaultParameterSetName = ProtocolNameParameterSet, HelpUri = "https://go.microsoft.com/fwlink/?LinkId=227969")]
@@ -43,7 +43,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public sealed class NewCimSessionOptionCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -52,7 +52,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region cmdlet parameters
@@ -153,8 +153,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "Encoding".
- /// Defined the message encoding.
- /// The allowed encodings are { Default | Utf8 | Utf16 }. The default value
+ /// Defined the message encoding.
+ /// The allowed encodings are { Default | Utf8 | Utf16 }. The default value
/// should be Utf8.
///
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -174,7 +174,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "HttpPrefix".
- /// This is the HTTP URL on the server on which the WSMan service is listening.
+ /// This is the HTTP URL on the server on which the WSMan service is listening.
/// In most cases it is /wsman, which is the default.
///
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -302,7 +302,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "Impersonation".
- /// Used to select if, and if so what kind of, impersonation should be used.
+ /// Used to select if, and if so what kind of, impersonation should be used.
/// Applies only to the DCOM channel.
///
[Parameter(ParameterSetName = DcomParameterSet)]
@@ -321,7 +321,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "PacketIntegrity".
- /// Switch indicating if the package integrity in DCOM connections should be
+ /// Switch indicating if the package integrity in DCOM connections should be
/// checked/enforced.
///
[Parameter(ParameterSetName = DcomParameterSet)]
@@ -340,7 +340,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "PacketPrivacy".
- /// Switch indicating if packet privacy of the packets in DCOM communications
+ /// Switch indicating if packet privacy of the packets in DCOM communications
/// should be checked/enforced.
///
[Parameter(ParameterSetName = DcomParameterSet)]
@@ -660,13 +660,13 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
}
},
-
+
{
nameSkipCACheck, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
}
},
-
+
{
nameSkipCNCheck, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
@@ -677,7 +677,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
}
},
-
+
{
nameEncodePortInServicePrincipalName, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
@@ -688,7 +688,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
}
},
-
+
{
nameHttpPrefix, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
@@ -699,7 +699,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
}
},
-
+
{
nameProxyAuthentication, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
@@ -710,7 +710,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
}
},
-
+
{
nameProxyCredential, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
@@ -721,7 +721,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
}
},
-
+
{
nameUseSsl, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.WSManParameterSet, false),
@@ -732,7 +732,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.DcomParameterSet, false),
}
},
-
+
{
namePacketIntegrity, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.DcomParameterSet, false),
@@ -743,7 +743,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.DcomParameterSet, false),
}
},
-
+
{
nameProtocol, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.ProtocolNameParameterSet, true),
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs
index 68ef388c49..6621385061 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RegisterCimIndicationCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -15,10 +15,10 @@ using Microsoft.PowerShell.Commands;
namespace Microsoft.Management.Infrastructure.CimCmdlets
{
///
- /// Enables the user to subscribe to indications using Filter Expression or
+ /// Enables the user to subscribe to indications using Filter Expression or
/// Query Expression.
/// -SourceIdentifier is a name given to the subscription
- /// The Cmdlet should return a PS EventSubscription object that can be used to
+ /// The Cmdlet should return a PS EventSubscription object that can be used to
/// cancel the subscription
/// Should we have the second parameter set with a -Query?
///
@@ -92,7 +92,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
///
/// The following is the definition of the input parameter "QueryDialect".
- /// Specifies the dialect used by the query Engine that interprets the Query
+ /// Specifies the dialect used by the query Engine that interprets the Query
/// string.
///
///
@@ -146,7 +146,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "ComputerName".
- /// Specifies the computer on which the commands associated with this session
+ /// Specifies the computer on which the commands associated with this session
/// will run. The default value is LocalHost.
///
[Alias(CimBaseCommand.AliasCN, CimBaseCommand.AliasServerName)]
@@ -308,7 +308,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.ClassNameSessionSet, true),
new ParameterDefinitionEntry(CimBaseCommand.ClassNameComputerSet, true),
}
- },
+ },
{
nameQuery, new HashSet {
new ParameterDefinitionEntry(CimBaseCommand.QueryExpressionSessionSet, true),
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs
index c3d0517c74..3e6e4166a4 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimInstanceCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -27,7 +27,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
public class RemoveCimInstanceCommand : CimBaseCommand
{
#region constructor
-
+
///
/// constructor
///
@@ -36,7 +36,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
DebugHelper.WriteLogEx();
}
-
+
#endregion
#region parameters
@@ -74,7 +74,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.CimInstanceComputerSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
+ ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
@@ -83,8 +83,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.resourceUri = value;
base.SetParameter(value, nameResourceUri);
}
- }
- private Uri resourceUri;
+ }
+ private Uri resourceUri;
///
/// The following is the definition of the input parameter "ComputerName".
@@ -352,7 +352,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false),
}
- },
+ },
};
///
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs
index 8361729fbd..f02f159859 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/RemoveCimSessionCommand.cs
@@ -35,14 +35,14 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
: base(parameters, parameterSets)
{
}
-
+
#endregion
#region parameters
///
/// The following is the definition of the input parameter "CimSession".
- /// Specifies one or more CimSession object to be removed from the local PS
+ /// Specifies one or more CimSession object to be removed from the local PS
/// session/runspace.
///
[Parameter(
@@ -65,9 +65,9 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
///
/// The following is the definition of the input parameter "ComputerName".
- /// Specified one or more computer names for which all CimSession(s)
+ /// Specified one or more computer names for which all CimSession(s)
/// (connections) should be removed (terminated).
- /// This is the only optional parameter. If no value for this parameter is
+ /// This is the only optional parameter. If no value for this parameter is
/// provided, all CimSession(s) are terminated.
///
[Alias(AliasCN, AliasServerName)]
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs
index 6d8e78a61d..717d3f805b 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/SetCimInstanceCommand.cs
@@ -1,5 +1,5 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
@@ -36,7 +36,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
: base(parameters, parameterSets)
{
}
-
+
#endregion
#region parameters
@@ -94,7 +94,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = CimBaseCommand.CimInstanceComputerSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
- ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
+ ParameterSetName = CimBaseCommand.CimInstanceSessionSet)]
public Uri ResourceUri
{
get { return resourceUri; }
@@ -103,8 +103,8 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
this.resourceUri = value;
base.SetParameter(value, nameResourceUri);
}
- }
- private Uri resourceUri;
+ }
+ private Uri resourceUri;
///
/// The following is the definition of the input parameter "Namespace".
@@ -350,7 +350,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
#region const string of parameter names
internal const string nameCimSession = "CimSession";
internal const string nameComputerName = "ComputerName";
- internal const string nameResourceUri = "ResourceUri";
+ internal const string nameResourceUri = "ResourceUri";
internal const string nameNamespace = "Namespace";
internal const string nameCimInstance = "InputObject";
internal const string nameQuery = "Query";
@@ -412,7 +412,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceComputerSet, false),
new ParameterDefinitionEntry(CimBaseCommand.CimInstanceSessionSet, false),
}
- },
+ },
};
///
diff --git a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
index 0c32a51805..5482e4bbb4 100644
--- a/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
+++ b/src/Microsoft.Management.Infrastructure.CimCmdlets/Utils.cs
@@ -1,9 +1,9 @@
/*============================================================================
- * Copyright (C) Microsoft Corporation, All rights reserved.
+ * Copyright (C) Microsoft Corporation, All rights reserved.
*============================================================================
*/
-// #define LOGENABLE // uncomment this line to enable the log,
+// #define LOGENABLE // uncomment this line to enable the log,
// create c:\temp\cim.log before invoking cimcmdlets
using System;
@@ -231,7 +231,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
return string.Format(CultureInfo.CurrentUICulture, "{0}::{1} ",
frame.GetMethod().DeclaringType.Name,
frame.GetMethod().Name);
-
+
#endif
}
#endregion
@@ -371,7 +371,7 @@ namespace Microsoft.Management.Infrastructure.CimCmdlets
{
writer.WriteLineAsync(spaces[indent] + sourceInformation + @" " + message);
}
-
+
}
}
}
diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs
index 97fb15bc21..046fdb79fe 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/GetCimAssociatedInstanceActivity.cs
@@ -25,14 +25,14 @@ namespace Microsoft.PowerShell.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "CimCmdlets\\Get-CimAssociatedInstance"; } }
-
+
///
/// The .NET type implementing the cmdlet to invoke.
///
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.GetCimAssociatedInstanceCommand); } }
-
+
// Arguments
-
+
///
/// Provides access to the Association parameter.
///
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Association.Expression != null)
{
targetCommand.AddParameter("Association", Association.Get(context));
diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs
index 249864c181..04cf6c7bd2 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/GetCimClassActivity.cs
@@ -30,9 +30,9 @@ namespace Microsoft.PowerShell.Activities
/// The .NET type implementing the cmdlet to invoke.
///
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.GetCimClassCommand); } }
-
+
// Arguments
-
+
///
/// Provides access to the ClassName parameter.
///
diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs
index bf08b44b64..10bada7885 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/GetCimInstanceActivity.cs
@@ -30,9 +30,9 @@ namespace Microsoft.PowerShell.Activities
/// The .NET type implementing the cmdlet to invoke.
///
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.GetCimInstanceCommand); } }
-
+
// Arguments
-
+
///
/// Provides access to the ClassName parameter.
///
@@ -115,7 +115,7 @@ namespace Microsoft.PowerShell.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(ClassName.Expression != null)
{
targetCommand.AddParameter("ClassName", ClassName.Get(context));
diff --git a/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs b/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs
index a2a7b9daac..599480c688 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/GetPSWorkflowData.cs
@@ -13,159 +13,159 @@ namespace Microsoft.PowerShell.Activities
{
///
- ///
+ ///
///
public enum PSWorkflowRuntimeVariable
{
// Command Parameters
///
- ///
+ ///
///
PSComputerName = 0,
///
- ///
+ ///
///
PSCredential = 1,
///
- ///
+ ///
///
PSPort = 2,
///
- ///
+ ///
///
PSUseSsl = 3,
///
- ///
+ ///
///
PSConfigurationName = 4,
///
- ///
+ ///
///
PSApplicationName = 5,
///
- ///
+ ///
///
PSConnectionUri = 6,
///
- ///
+ ///
///
PSAllowRedirection = 7,
///
- ///
+ ///
///
PSSessionOption = 8,
///
- ///
+ ///
///
PSAuthentication = 9,
///
- ///
+ ///
///
PSAuthenticationLevel = 10,
///
- ///
+ ///
///
PSCertificateThumbprint = 11,
///
- ///
+ ///
///
Input = 13,
///
- ///
+ ///
///
Verbose = 15,
// Retry policy constants
///
- ///
+ ///
///
PSConnectionRetryCount = 19,
///
- ///
+ ///
///
PSConnectionRetryIntervalSec = 21,
///
- ///
+ ///
///
PSPrivateMetadata = 24,
// Timers
///
- ///
+ ///
///
PSRunningTimeoutSec = 27,
///
- ///
+ ///
///
PSElapsedTimeoutSec = 28,
///
- ///
+ ///
///
PSWorkflowRoot = 31,
///
- ///
+ ///
///
JobName = 32,
///
- ///
+ ///
///
JobInstanceId = 33,
///
- ///
+ ///
///
JobId = 34,
///
- ///
+ ///
///
- JobCommandName = 36,
+ JobCommandName = 36,
///
- ///
+ ///
///
ParentJobInstanceId = 40,
///
- ///
+ ///
///
ParentJobName = 41,
///
- ///
+ ///
///
ParentJobId = 42,
///
- ///
+ ///
///
ParentCommandName = 43,
///
- ///
+ ///
///
WorkflowInstanceId = 48,
///
- ///
+ ///
///
PSSenderInfo = 49,
///
- ///
+ ///
///
PSCulture = 50,
///
- ///
+ ///
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly")]
PSUICulture = 51,
///
- ///
+ ///
///
PSVersionTable = 52,
@@ -279,7 +279,7 @@ namespace Microsoft.PowerShell.Activities
outputStream = parameter.Value as PSDataCollection;
}
}
-
+
//
// If the property to return was all, then just return the entire collection as a hashtable.
// (We still needed to loop to find the output stream to write into.)
@@ -305,7 +305,7 @@ namespace Microsoft.PowerShell.Activities
//
if (workflowRuntimeVariables.ContainsKey(varKey))
{
- Object value = null;
+ Object value = null;
dictionaryParam.TryGetValue(varKey, out value);
workflowRuntimeVariables[varKey] = value;
}
diff --git a/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs
index da7558d5f0..5dda7530c0 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/InvokeCimMethodActivity.cs
@@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.Activities
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.InvokeCimMethodCommand); } }
// Arguments
-
+
///
/// Provides access to the ClassName parameter.
///
@@ -113,7 +113,7 @@ namespace Microsoft.PowerShell.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(ClassName.Expression != null)
{
targetCommand.AddParameter("ClassName", ClassName.Get(context));
diff --git a/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs
index 53f94aa054..7d503cb4e4 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/NewCimInstanceActivity.cs
@@ -30,9 +30,9 @@ namespace Microsoft.PowerShell.Activities
/// The .NET type implementing the cmdlet to invoke.
///
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.NewCimInstanceCommand); } }
-
+
// Arguments
-
+
///
/// Provides access to the ClassName parameter.
///
@@ -99,7 +99,7 @@ namespace Microsoft.PowerShell.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(ClassName.Expression != null)
{
targetCommand.AddParameter("ClassName", ClassName.Get(context));
diff --git a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs
index 26511b9a72..291c9ef5ae 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionActivity.cs
@@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.Activities
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.NewCimSessionCommand); } }
// Arguments
-
+
///
/// Provides access to the Authentication parameter.
///
diff --git a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs
index 570c667316..695072fffd 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/NewCimSessionOptionActivity.cs
@@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.Activities
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.NewCimSessionOptionCommand); } }
// Arguments
-
+
///
/// Provides access to the NoEncryption parameter.
///
@@ -183,7 +183,7 @@ namespace Microsoft.PowerShell.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(NoEncryption.Expression != null)
{
targetCommand.AddParameter("NoEncryption", NoEncryption.Get(context));
diff --git a/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs b/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs
index c945009255..9c1e7cf46f 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/PowerShellValue.cs
@@ -79,7 +79,7 @@ namespace Microsoft.PowerShell.Activities
// The guard check for a null expression string is done in Execute() instead
// of in this property. It's also done in the validation check for CacheMetadata
string updatedExpression = Expression;
-
+
// Hack to make sure the $input *does* get unrolled...
if (string.Equals("$input", Expression.Trim(), StringComparison.OrdinalIgnoreCase))
{
@@ -134,7 +134,7 @@ namespace Microsoft.PowerShell.Activities
/// List of command names to allow in the expression
///
///
- /// List of variable names to allow in the expression. If the collection contains a single
+ /// List of variable names to allow in the expression. If the collection contains a single
/// element "*", all variables will be allowed including environment variables
/// functions, etc.
///
@@ -270,7 +270,7 @@ namespace Microsoft.PowerShell.Activities
}
catch (Exception)
{
- // it is fine to catch generic exception here
+ // it is fine to catch generic exception here
// if the local runspace provider does not give us
// a runspace we will create one locally (fallback)
}
diff --git a/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs
index bcc130c665..44e6fc1694 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/RemoveCimInstanceActivity.cs
@@ -83,7 +83,7 @@ namespace Microsoft.PowerShell.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Namespace.Expression != null)
{
targetCommand.AddParameter("Namespace", Namespace.Get(context));
diff --git a/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs b/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs
index 16759ec2b4..2e90f2ae24 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/SetCimInstanceActivity.cs
@@ -30,7 +30,7 @@ namespace cimcmdlets.Activities
/// The .NET type implementing the cmdlet to invoke.
///
public override System.Type TypeImplementingCmdlet { get { return typeof(Microsoft.Management.Infrastructure.CimCmdlets.SetCimInstanceCommand); } }
-
+
///
/// Provides access to the Namespace parameter.
///
@@ -87,7 +87,7 @@ namespace cimcmdlets.Activities
protected override string PSDefiningModule { get { return "CimCmdlets"; } }
// Additional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
diff --git a/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs b/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs
index eb06b2da64..42b26f9c68 100644
--- a/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs
+++ b/src/Microsoft.PowerShell.Activities/Activities/SetHostValue.cs
@@ -29,7 +29,7 @@ namespace Microsoft.PowerShell.Activities
}
///
- ///
+ ///
///
[DefaultValue(null)]
public InArgument
///
@@ -1915,7 +1915,7 @@ namespace Microsoft.PowerShell.Workflow
{
return false;
}
-
+
string variableName = variableExpr.VariablePath.ToString();
if (variableName.IndexOf(':') != -1 && !variableName.StartsWith("ENV:", StringComparison.OrdinalIgnoreCase))
{
@@ -2061,7 +2061,7 @@ namespace Microsoft.PowerShell.Workflow
/// This needs to be propagated to the synthesized driver function .
///
internal string CmdletAttributeText { get; set; }
-
+
object ICustomAstVisitor.VisitParamBlock(ParamBlockAst paramBlockAst)
{
foreach (ParameterAst parameter in paramBlockAst.Parameters)
@@ -2102,8 +2102,8 @@ namespace Microsoft.PowerShell.Workflow
object ICustomAstVisitor.VisitStatementBlock(StatementBlockAst statementBlockAst)
{
- // If the statement block is the body of a parallel block statement, we enclose each
- // statement in a Try/Catch block, so that:
+ // If the statement block is the body of a parallel block statement, we enclose each
+ // statement in a Try/Catch block, so that:
// 1. the activities generated for each statement will be executed sequentially.
// 2. the terminating exception thrown from one statement will not terminate other statements that
// are running in parallel.
@@ -2206,7 +2206,7 @@ namespace Microsoft.PowerShell.Workflow
{
WriteLine("");
IndentLevel();
-
+
WriteLine("");
IndentLevel();
@@ -2432,7 +2432,7 @@ namespace Microsoft.PowerShell.Workflow
UnaryExpressionAst unaryExpression = value as UnaryExpressionAst;
if ((
- (rightExpression != null) && (!(rightExpression.Expression is SubExpressionAst)) &&
+ (rightExpression != null) && (!(rightExpression.Expression is SubExpressionAst)) &&
((rightExpression.Expression is ConvertExpressionAst) || !(rightExpression.Expression is AttributedExpressionAst))
) ||
(unaryExpression != null)
@@ -2594,7 +2594,7 @@ namespace Microsoft.PowerShell.Workflow
resultVariables.Pop();
}
-
+
private StorageVariable GetVariableToUse()
{
if (resultVariables != null && resultVariables.Count > 0)
@@ -2624,7 +2624,7 @@ namespace Microsoft.PowerShell.Workflow
{
string trimmedExpression = expression.Trim();
- if (trimmedExpression.StartsWith("{", StringComparison.OrdinalIgnoreCase) &&
+ if (trimmedExpression.StartsWith("{", StringComparison.OrdinalIgnoreCase) &&
trimmedExpression.EndsWith("}", StringComparison.OrdinalIgnoreCase))
{
trimmedExpression = trimmedExpression.Remove(0, 1);
@@ -2695,7 +2695,7 @@ namespace Microsoft.PowerShell.Workflow
return visitor.ExpressionHasSideEffects;
}
-
+
object ICustomAstVisitor.VisitPipeline(PipelineAst pipelineAst)
{
// If it's one command, generate the call alone
@@ -2740,7 +2740,7 @@ namespace Microsoft.PowerShell.Workflow
// foreach($a2 in A)
// {
// $psPipelineResults = @( @{} )
- //
+ //
// $psPipelineResults = foreach($item in $psPipelineResults)
// {
// foreach($output in Command1)
@@ -2808,7 +2808,7 @@ namespace Microsoft.PowerShell.Workflow
}
boundParameter = parameterName;
-
+
// DisplayName can also be used as a Activity.DisplayName in that case DisplayName param value is not treated as a PipelineVariable
if (String.Equals(parameterName, "DisplayName", StringComparison.OrdinalIgnoreCase) &&
!Regex.IsMatch(currentPipelineVariable, "^[a-zA-Z][a-zA-Z0-9-_]*$"))
@@ -3500,7 +3500,7 @@ namespace Microsoft.PowerShell.Workflow
{
ReportError("OperatorRequiresVariable", ActivityResources.OperatorRequiresVariable, unaryExpressionAst.Extent);
}
-
+
break;
case TokenKind.Minus:
case TokenKind.Plus:
@@ -3823,11 +3823,11 @@ namespace Microsoft.PowerShell.Workflow
// Remove the ")" from the end
string newParamBlock = paramBlock.Substring(0, paramBlock.Length - 2);
-
+
StringBuilder actualParamBlock = new StringBuilder();
actualParamBlock.Append(newParamBlock);
actualParamBlock.Append(additionalParameters);
-
+
// Add the ")" at the end
actualParamBlock.Append("\n)");
@@ -3915,7 +3915,7 @@ namespace Microsoft.PowerShell.Workflow
StringBuilder newFunctionCall = null;
int baseOffset = command.Extent.StartOffset;
int commandTextRelativeStartOffset = 0;
-
+
foreach (Ast ast in variableExprs)
{
var variableExpr = ast as VariableExpressionAst;
@@ -4389,7 +4389,7 @@ namespace Microsoft.PowerShell.Workflow
Sequence undoSequenceInCatch = new Sequence() { Activities = { } };
Collection savedHostDefaults = new Collection();
-
+
// Go through all the properties in PSRemotingActivity they use, and add them as
// virtual properties to this activity
foreach (PropertyInfo field in propertiesToUse)
@@ -4752,7 +4752,7 @@ namespace Microsoft.PowerShell.Workflow
// Update the activity map with the full name to support users specifying
// an activity with full name.
- // If the activity map already contains an assembly with this full name,
+ // If the activity map already contains an assembly with this full name,
// set the value to NULL as is done for Name key.
if (activityMap.ContainsKey(type.FullName))
{
@@ -5117,7 +5117,7 @@ namespace Microsoft.PowerShell.Workflow
}
StaticBindingResult bindingResult = StaticParameterBinder.BindCommand(commandAst, false);
-
+
// Remove the first positional element (the script) if there is one
if (bindingResult.BoundParameters.ContainsKey("0"))
{
@@ -5233,8 +5233,8 @@ namespace Microsoft.PowerShell.Workflow
private void SetVariableArgumentValue(CommandArgumentInfo argument, ref object argumentValue)
{
- System.Diagnostics.Debug.Assert(argumentValue != null, "argumentValue should not be null");
-
+ System.Diagnostics.Debug.Assert(argumentValue != null, "argumentValue should not be null");
+
if (argument != null)
{
argumentValue = "$" + argument.OriginalValue;
@@ -5387,7 +5387,7 @@ namespace Microsoft.PowerShell.Workflow
variableToUseDefinition = GetVariableDefinition(variableToUse);
variableToUseDefinition = variableToUseDefinition ?? members[variableToUse];
}
-
+
string appendOutput = String.Empty;
string actualAggregatingVariable = String.Empty;
bool needAggregationVariable = false;
@@ -5696,7 +5696,7 @@ namespace Microsoft.PowerShell.Workflow
// of the properties for them.
List completeProperties = new List(availableProperties.Keys);
- // If this is a workflow calling workflow, add in the virtual properties that don't exist, since they may not
+ // If this is a workflow calling workflow, add in the virtual properties that don't exist, since they may not
// have been actually compiled (if they were not used).
foreach(PropertyInfo psRemotingProperty in typeof(PSRemotingActivity).GetProperties())
{
@@ -5736,7 +5736,7 @@ namespace Microsoft.PowerShell.Workflow
}
}
}
-
+
// Check if multiple specified parameters can be resolved to the same actual parameter
if (!boundParameters.Contains(parameterName))
{
@@ -6056,8 +6056,8 @@ namespace Microsoft.PowerShell.Workflow
// --- 'ResolveGenericParameterType' returns null if we cannot find the actual type of the specified generic parameter,
// in that case, we use the "actualPropertyType" directly
Type parameterType = ResolveGenericParameterType(actualPropertyType, genericTypeMap, parameterName, extent);
- actualPropertyType = !this.validateOnly
- ? parameterType
+ actualPropertyType = !this.validateOnly
+ ? parameterType
: (parameterType ?? actualPropertyType);
}
else if (actualPropertyType.IsGenericType && actualPropertyType.ContainsGenericParameters)
@@ -6256,7 +6256,7 @@ namespace Microsoft.PowerShell.Workflow
// The list of parameters that need to be ignored.
static List ignoredParameters;
-
+
private static bool IsNotSupportedCommonParameter(string parameterName)
{
return ignoredParameters.Contains(parameterName, StringComparer.OrdinalIgnoreCase);
@@ -7062,7 +7062,7 @@ namespace Microsoft.PowerShell.Workflow
// And the statement body
WriteLine("");
IndentLevel();
-
+
if (isParallel)
{
EnterScope();
@@ -7366,7 +7366,7 @@ namespace Microsoft.PowerShell.Workflow
foreach (CatchClauseAst catchClause in tryStatementAst.CatchClauses)
{
List catchTypes = new List();
-
+
if (catchClause.IsCatchAll)
{
catchTypes.Add(typeof(System.Exception));
@@ -7401,7 +7401,7 @@ namespace Microsoft.PowerShell.Workflow
WriteLine(@"");
UnindentLevel();
WriteLine(@"");
-
+
WriteLine("");
IndentLevel();
@@ -7568,7 +7568,7 @@ namespace Microsoft.PowerShell.Workflow
LeaveStorage();
}
- // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to
+ // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to
// the 'Data' property. Then we re-throw the exception.
GenerateXamlForThrowStatement(rethrowExceptionName, isRethrow: true);
}
@@ -7592,7 +7592,7 @@ namespace Microsoft.PowerShell.Workflow
string errorTemplate = ActivityResources.ThrowStatementCannotInvokeActivities;
ReportError("ThrowStatementCannotInvokeActivities", errorTemplate, throwStatementAst.Pipeline.Extent);
}
-
+
if (isInParallelBlock)
{
// Define the temp variable
@@ -7614,7 +7614,7 @@ namespace Microsoft.PowerShell.Workflow
LeaveStorage();
}
- // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to
+ // Check if the exception is thrown by the 'Throw' statement. If not, add the special key-value pair to
// the 'Data' property. Then we throw the exception.
GenerateXamlForThrowStatement(throwExceptionName, isRethrow: false);
}
@@ -7695,7 +7695,7 @@ namespace Microsoft.PowerShell.Workflow
IndentLevel();
AddOrRemoveSpecialKey(variableName, addKey: true);
-
+
UnindentLevel();
WriteLine(@"");
UnindentLevel();
@@ -8001,7 +8001,7 @@ namespace Microsoft.PowerShell.Workflow
/// This indicates if the variable is one that will aggregate results from a parallel/sequence/foreach block.
/// For example:
/// workflow bar { $a = parallel { Get-Process -Name powershell; Get-Service -Name Dhcp } }
- /// $a here will contain all results generated from the parallel block, including a process object "powershell"
+ /// $a here will contain all results generated from the parallel block, including a process object "powershell"
/// and a service object "Dhcp". We call $a an aggregating variable.
///
internal bool IsAggregatingVariable { get; set; }
@@ -8034,7 +8034,7 @@ namespace Microsoft.PowerShell.Workflow
StackTrace = 8,
PID = 9
}
-
+
internal class ExpressionHasUnsupportedVariableOrSideEffectsVisitor : AstVisitor
{
internal bool ExpressionHasSideEffects { get; set; }
diff --git a/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml b/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml
index a01b00c045..6b5083509e 100644
--- a/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml
+++ b/src/Microsoft.PowerShell.Activities/Xamls/InlineScriptDesigner.xaml
@@ -1,14 +1,14 @@
@@ -19,8 +19,8 @@
-
-
diff --git a/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml b/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml
index 2a4934e903..e036a2d26d 100644
--- a/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml
+++ b/src/Microsoft.PowerShell.GraphicalHost/xamls/ColumnPicker.xaml
@@ -74,7 +74,7 @@
StoreLocation
}
@@ -714,7 +714,7 @@ namespace Microsoft.PowerShell.Commands
///
/// cache that stores paths and their associated objects.
- ///
+ ///
/// key is full path to store-location/store/certificate
/// value is X509StoreLocation/X509NativeStore/X509Certificate2 object
///
@@ -740,14 +740,14 @@ namespace Microsoft.PowerShell.Commands
///
/// On demand create the Regex to avoid a hit to startup perf.
///
- ///
+ ///
///
/// Note, its OK that staticLock is being used here because only
/// IsValidPath is calling this static property so we shouldn't
/// have any deadlocks due to other locked static members calling
/// this property.
///
- ///
+ ///
private static Regex s_certPathRegex = null;
private static Regex CertPathRegex
{
@@ -813,19 +813,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes an item at the specified path
///
- ///
+ ///
///
/// The path of the item to remove.
///
- ///
+ ///
///
/// Recursively remove.
///
- ///
+ ///
///
- /// Nothing.
+ /// Nothing.
///
- ///
+ ///
///
/// path is null or empty.
/// destination is null or empty.
@@ -905,16 +905,16 @@ namespace Microsoft.PowerShell.Commands
/// Provider. We currently only support one dynamic parameter,
/// "DeleteKey," that delete private key when we delete a certificate.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -927,19 +927,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Moves an item at the specified path to the given destination.
///
- ///
+ ///
///
/// The path of the item to move.
///
- ///
+ ///
///
/// The path of the destination.
///
- ///
+ ///
///
/// Nothing. Moved items are written to the context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
/// destination is null or empty.
@@ -970,13 +970,13 @@ namespace Microsoft.PowerShell.Commands
ThrowInvalidOperation(errorId, message);
}
- if (destElements.Length != 2) //not a store
+ if (destElements.Length != 2) //not a store
{
//if the destination leads to the same thumbprint
if (destElements.Length == 3 &&
(String.Equals(pathElements[2], destElements[2], StringComparison.OrdinalIgnoreCase)))
{
- //in this case we think of destination path as valid
+ //in this case we think of destination path as valid
//and strip the thumbprint part
destination = Path.GetDirectoryName(destination);
}
@@ -1055,34 +1055,34 @@ namespace Microsoft.PowerShell.Commands
///
/// Creates a certificate store with the given path.
///
- ///
+ ///
///
/// New-Item doesn't go through the method "ItemExists". But for the
/// CertificateProvider, New-Item can create an X509Store and return
/// it, and the user can access the certificates within the store via its
/// property "Certificates". We want the extra new properties of the
- /// X509Certificate2 objects to be shown to the user, so we also need
+ /// X509Certificate2 objects to be shown to the user, so we also need
/// to import the PKI module in this method, if we haven't tried it yet.
///
- ///
+ ///
///
/// The path of the certificate store to create.
///
- ///
+ ///
///
- /// Ignored.
+ /// Ignored.
/// Only support store.
///
///
///
/// Ignored
///
- ///
+ ///
///
- /// Nothing. The new certificate store object is
+ /// Nothing. The new certificate store object is
/// written to the context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -1177,23 +1177,23 @@ namespace Microsoft.PowerShell.Commands
} // InitializeDefaultDrives
///
- /// Determines if the item at the given path is a store-location
+ /// Determines if the item at the given path is a store-location
/// or store with items in it.
///
- ///
+ ///
///
/// The full path to the item.
///
- ///
+ ///
///
/// True if the path refers to a store location, or store that contains
/// certificates. False otherwise.
///
- ///
+ ///
///
/// Path is null
///
- ///
+ ///
///
/// This exception can be thrown if any cryptographic error occurs.
/// It is not possible to know exactly what went wrong.
@@ -1250,11 +1250,11 @@ namespace Microsoft.PowerShell.Commands
/// An example path looks like this:
/// cert:\CurrentUser\My\5F98EBBFE735CDDAE00E33E0FD69050EF9220254
///
- ///
+ ///
///
/// The path of the item to check.
///
- ///
+ ///
///
/// True if the path is valid, false otherwise.
///
@@ -1269,12 +1269,12 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Determines if the store location, store, or certificate exists
+ /// Determines if the store location, store, or certificate exists
/// at the specified path.
///
///
///
- /// The method ItemExists will be hit by all built-in cmdlets that interact
+ /// The method ItemExists will be hit by all built-in cmdlets that interact
/// with the CertificateProvider except for the New-Item. They are:
/// Get-ChildItem
/// Set-Location
@@ -1286,20 +1286,20 @@ namespace Microsoft.PowerShell.Commands
/// Remove-Item
/// So we import the PKI module in this method if we haven't tried yet.
///
- ///
+ ///
///
/// The path of the item to check.
///
///
///
- /// True if a the store location, store, or certificate exists
+ /// True if a the store location, store, or certificate exists
/// at the specified path. False otherwise.
///
///
///
/// Path is null
///
- ///
+ ///
///
/// This exception can be thrown if any cryptographic error occurs.
/// It is not possible to know exactly what went wrong.
@@ -1310,7 +1310,7 @@ namespace Microsoft.PowerShell.Commands
/// -- certificate password mismatch
/// -- etc
///
- ///
+ ///
protected override bool ItemExists(string path)
{
if (!_hasAttemptedToLoadPkiModule)
@@ -1363,7 +1363,7 @@ namespace Microsoft.PowerShell.Commands
} // ItemExists
///
- /// Gets the store location, store, or certificate
+ /// Gets the store location, store, or certificate
/// at the specified path.
///
///
@@ -1371,11 +1371,11 @@ namespace Microsoft.PowerShell.Commands
/// The path of the item to retrieve.
///
///
- ///
+ ///
///
/// Path is null
///
- ///
+ ///
///
/// This exception can be thrown if any cryptographic error occurs.
/// It is not possible to know exactly what went wrong.
@@ -1386,7 +1386,7 @@ namespace Microsoft.PowerShell.Commands
/// -- certificate password mismatch
/// -- etc
///
- ///
+ ///
protected override void GetItem(string path)
{
bool isContainer = false;
@@ -1453,15 +1453,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the parent of the given path.
///
- ///
+ ///
///
/// The path of which to get the parent.
///
- ///
+ ///
///
/// The root of the drive.
///
- ///
+ ///
///
/// The parent of the given path.
///
@@ -1475,11 +1475,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the name of the leaf element of the specified path.
///
- ///
+ ///
///
/// The fully qualified path to the item.
///
- ///
+ ///
///
/// The leaf element of the specified path.
///
@@ -1578,7 +1578,7 @@ namespace Microsoft.PowerShell.Commands
return result;
}
///
- /// Invokes the certificate management UI (certmgr.msc)
+ /// Invokes the certificate management UI (certmgr.msc)
/// for any path.
///
///
@@ -1791,7 +1791,7 @@ namespace Microsoft.PowerShell.Commands
///
///
/// key prov info
- ///
+ ///
/// no return
[SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults", MessageId = "System.Management.Automation.Security.NativeMethods.NCryptSetProperty(System.IntPtr,System.String,System.Void*,System.Int32,System.Int32)")]
@@ -1914,7 +1914,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Delete the cert store; if -DeleteKey is specified, we also delete
+ /// Delete the cert store; if -DeleteKey is specified, we also delete
/// the associated private key
///
///
@@ -1923,8 +1923,8 @@ namespace Microsoft.PowerShell.Commands
/// boolean to specify whether or not to delete private key
///
/// source path
- ///
- /// no return
+ ///
+ /// no return
private void RemoveCertStore(string storeName, bool fDeleteKey, string sourcePath)
{
@@ -1980,7 +1980,7 @@ namespace Microsoft.PowerShell.Commands
}
}
///
- /// Delete the a single cert from the store; if -DeleteKey is specified, we also delete
+ /// Delete the a single cert from the store; if -DeleteKey is specified, we also delete
/// the associated private key
///
///
@@ -1991,8 +1991,8 @@ namespace Microsoft.PowerShell.Commands
/// machine context or user
///
/// source path
- ///
- /// no return
+ ///
+ /// no return
private void RemoveCertItem(X509Certificate2 cert, bool fDeleteKey, bool fMachine, string sourcePath)
{
if (cert != null)
@@ -2020,7 +2020,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Delete the cert from the store; if -DeleteKey is specified, we also delete
+ /// Delete the cert from the store; if -DeleteKey is specified, we also delete
/// the associated private key
///
///
@@ -2031,7 +2031,7 @@ namespace Microsoft.PowerShell.Commands
/// machine context or user
///
/// source path
- ///
+ ///
/// no return
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Usage", "CA1806:DoNotIgnoreMethodResults")]
@@ -2111,7 +2111,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Commit store for UserDS store
+ /// Commit store for UserDS store
///
///
/// an IntPtr for store handle
@@ -2368,11 +2368,11 @@ namespace Microsoft.PowerShell.Commands
///
/// If true, recursively enumerates the child items as well.
///
- ///
+ ///
///
/// Path is null or empty.
///
- ///
+ ///
///
/// This exception can be thrown if any cryptographic error occurs.
/// It is not possible to know exactly what went wrong.
@@ -2383,7 +2383,7 @@ namespace Microsoft.PowerShell.Commands
/// -- certificate password mismatch
/// -- etc
///
- ///
+ ///
protected override void GetChildItems(string path, bool recurse)
{
path = NormalizePath(path);
@@ -2403,11 +2403,11 @@ namespace Microsoft.PowerShell.Commands
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
/// Path is null or empty.
///
- ///
+ ///
///
/// This exception can be thrown if any cryptographic error occurs.
/// It is not possible to know exactly what went wrong.
@@ -2418,7 +2418,7 @@ namespace Microsoft.PowerShell.Commands
/// -- certificate password mismatch
/// -- etc
///
- ///
+ ///
protected override void GetChildNames(
string path,
ReturnContainers returnContainers)
@@ -2431,7 +2431,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the item at the specified path is a store
/// or location.
- ///
+ ///
///
///
/// True if the item at the specified path is a store or location.
@@ -2441,7 +2441,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Path is null or empty.
///
- ///
+ ///
///
/// This exception can be thrown if any cryptographic error occurs.
/// It is not possible to know exactly what went wrong.
@@ -2452,7 +2452,7 @@ namespace Microsoft.PowerShell.Commands
/// -- certificate password mismatch
/// -- etc
///
- ///
+ ///
protected override bool IsItemContainer(string path)
{
path = NormalizePath(path);
@@ -2486,17 +2486,17 @@ namespace Microsoft.PowerShell.Commands
/// "CodeSigning," that returns only certificates good for signing
/// code or scripts.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
protected override object GetItemDynamicParameters(string path)
{
if (DownLevelHelper.NativeFilteringSupported())
@@ -2515,16 +2515,16 @@ namespace Microsoft.PowerShell.Commands
/// "CodeSigning," that returns only certificates good for signing
/// code or scripts.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -3209,14 +3209,14 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines a class to represent a store location in the certificate
- /// provider. The two possible store locations are CurrentUser and
+ /// provider. The two possible store locations are CurrentUser and
/// LocalMachine
- ///
+ ///
public sealed class X509StoreLocation
{
///
/// Gets the location, as a string.
- ///
+ ///
public string LocationName
{
get
@@ -3226,9 +3226,9 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets the location as a
+ /// Gets the location as a
///
- ///
+ ///
public StoreLocation Location
{
get
@@ -3245,7 +3245,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the list of stores at this location.
- ///
+ ///
public Hashtable StoreNames
{
get
@@ -3268,7 +3268,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Initializes a new instance of the X509StoreLocation class.
- ///
+ ///
public X509StoreLocation(StoreLocation location)
{
Location = location;
@@ -3284,17 +3284,17 @@ namespace Microsoft.PowerShell.Commands
{
///
/// Localized friendly name of EKU
- ///
+ ///
private string _friendlyName;
///
/// OID of EKU
- ///
+ ///
private string _oid;
///
/// constructor of an EnhancedKeyUsageRepresentation
- ///
+ ///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Oid")]
@@ -3306,7 +3306,7 @@ namespace Microsoft.PowerShell.Commands
///
/// value comparison
- ///
+ ///
public bool Equals(EnhancedKeyUsageRepresentation keyUsage)
{
bool match = false;
@@ -3369,7 +3369,7 @@ namespace Microsoft.PowerShell.Commands
{
///
/// get property of SendAsTrustedIssuer
- ///
+ ///
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static bool ReadSendAsTrustedIssuerProperty(X509Certificate2 cert)
@@ -3405,7 +3405,7 @@ namespace Microsoft.PowerShell.Commands
///
/// set property of SendAsTrustedIssuer
- ///
+ ///
[SuppressMessage("Microsoft.Design", "CA1011:ConsiderPassingBaseTypesAsParameters")]
public static void WriteSendAsTrustedIssuerProperty(X509Certificate2 cert, string certPath, bool addProperty)
@@ -3518,7 +3518,7 @@ namespace Microsoft.PowerShell.Commands
}
///
/// class for ekulist
- ///
+ ///
public sealed class EnhancedKeyUsageProperty
{
@@ -3527,7 +3527,7 @@ namespace Microsoft.PowerShell.Commands
///
/// get property of EKUList
- ///
+ ///
public List EnhancedKeyUsageList
{
get
@@ -3538,7 +3538,7 @@ namespace Microsoft.PowerShell.Commands
///
/// constructor for EnhancedKeyUsageProperty
- ///
+ ///
public EnhancedKeyUsageProperty(X509Certificate2 cert)
{
if (DownLevelHelper.NativeFilteringSupported())
@@ -3575,8 +3575,8 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// class for DNSNameList
- ///
+ /// class for DNSNameList
+ ///
public sealed class DnsNameProperty
{
@@ -3584,7 +3584,7 @@ namespace Microsoft.PowerShell.Commands
///
/// get property of DnsNameList
- ///
+ ///
public List DnsNameList
{
get
@@ -3595,7 +3595,7 @@ namespace Microsoft.PowerShell.Commands
///
/// constructor for EkuList
- ///
+ ///
public DnsNameProperty(X509Certificate2 cert)
{
if (DownLevelHelper.NativeFilteringSupported())
@@ -3610,7 +3610,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- // Wrapper function for CCGetCertNameList and CCFreeStringArray
+ // Wrapper function for CCGetCertNameList and CCFreeStringArray
private List GetCertNames(IntPtr certHandle, Security.NativeMethods.AltNameType nameType)
{
DWORD cPunycodeName;
@@ -3827,7 +3827,7 @@ namespace Microsoft.PowerShell.Commands
///
/// container for helper functions that use pinvoke into crypt32.dll
- ///
+ ///
internal static class Crypt32Helpers
{
///
@@ -3840,7 +3840,7 @@ namespace Microsoft.PowerShell.Commands
///
/// get a list of store names at the specified location
- ///
+ ///
[ArchitectureSensitive]
internal static List GetStoreNamesAtLocation(StoreLocation location)
{
diff --git a/src/Microsoft.PowerShell.Security/security/CmsCommands.cs b/src/Microsoft.PowerShell.Security/security/CmsCommands.cs
index 5b916f89c7..a4bf918ad5 100644
--- a/src/Microsoft.PowerShell.Security/security/CmsCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/CmsCommands.cs
@@ -21,7 +21,7 @@ namespace Microsoft.PowerShell.Commands
{
///
/// Defines the implementation of the 'Protect-CmsMessage' cmdlet.
- ///
+ ///
/// This cmdlet generates a new encrypted CMS message given the
/// recipient and content supplied.
///
@@ -191,7 +191,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines the implementation of the 'Get-CmsMessage' cmdlet.
- ///
+ ///
/// This cmdlet retrieves information about an encrypted CMS
/// message.
///
@@ -334,7 +334,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines the implementation of the 'Unprotect-CmsMessage' cmdlet.
- ///
+ ///
/// This cmdlet retrieves the clear text content of an encrypted CMS
/// message.
///
diff --git a/src/Microsoft.PowerShell.Security/security/CredentialCommands.cs b/src/Microsoft.PowerShell.Security/security/CredentialCommands.cs
index 3b07aac605..cc5a871fbb 100644
--- a/src/Microsoft.PowerShell.Security/security/CredentialCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/CredentialCommands.cs
@@ -10,9 +10,9 @@ namespace Microsoft.PowerShell.Commands
{
///
/// Defines the implementation of the 'get-credential' cmdlet.
- /// The get-credential Cmdlet establishes a credential object called a
+ /// The get-credential Cmdlet establishes a credential object called a
/// Msh credential, by pairing a given username with
- /// a prompted password. That credential object can then be used for other
+ /// a prompted password. That credential object can then be used for other
/// operations involving security.
///
[Cmdlet(VerbsCommon.Get, "Credential", DefaultParameterSetName = GetCredentialCommand.credentialSet, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=113311")]
@@ -40,7 +40,7 @@ namespace Microsoft.PowerShell.Commands
public PSCredential Credential { get; set; }
///
- /// Gets and sets the user supplied message providing description about which script/function is
+ /// Gets and sets the user supplied message providing description about which script/function is
/// requesting the PSCredential from the user.
///
[Parameter(Mandatory = false, ParameterSetName = messageSet)]
diff --git a/src/Microsoft.PowerShell.Security/security/ExecutionPolicyCommands.cs b/src/Microsoft.PowerShell.Security/security/ExecutionPolicyCommands.cs
index f927ac765d..47a998f15d 100644
--- a/src/Microsoft.PowerShell.Security/security/ExecutionPolicyCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/ExecutionPolicyCommands.cs
@@ -17,12 +17,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines the implementation of the 'Get-ExecutionPolicy' cmdlet.
/// This cmdlet gets the effective execution policy of the shell.
- ///
+ ///
/// In priority-order (highest priority first,) these come from:
/// - Machine-wide Group Policy
/// - Current-user Group Policy
/// - Current session preference
- /// - Current user machine preference
+ /// - Current user machine preference
/// - Local machine preference
///
[Cmdlet(VerbsCommon.Get, "ExecutionPolicy", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=113315")]
@@ -106,9 +106,9 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines the implementation of the 'Set-ExecutionPolicy' cmdlet.
- /// This cmdlet sets the local preference for the execution policy of the
+ /// This cmdlet sets the local preference for the execution policy of the
/// shell.
- ///
+ ///
/// The execution policy may be overridden by settings in Group Policy.
/// If the Group Policy setting overrides the desired behaviour, the Cmdlet
/// generates a terminating error.
@@ -272,7 +272,7 @@ namespace Microsoft.PowerShell.Commands
catch (System.Management.Automation.Host.HostException)
{
// Host doesn't implement ShouldContinue. This should
- // return false, but must return true due
+ // return false, but must return true due
// to backward compatibility.
return true;
}
diff --git a/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs b/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs
index 4333f5665d..61e2616b00 100644
--- a/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/SecureStringCommands.cs
@@ -68,7 +68,7 @@ namespace Microsoft.PowerShell.Commands
private byte[] _key;
///
- /// Gets or sets the SecureString version of the encryption
+ /// Gets or sets the SecureString version of the encryption
/// key used by the SecureString cmdlets.
///
[Parameter(Position = 1, ParameterSetName = "Secure")]
@@ -86,7 +86,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets or sets the byte version of the encryption
+ /// Gets or sets the byte version of the encryption
/// key used by the SecureString cmdlets.
///
[Parameter(ParameterSetName = "Open")]
@@ -106,10 +106,10 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines the implementation of the 'ConvertFrom-SecureString' cmdlet.
- /// This cmdlet exports a new SecureString -- one that represents
- /// text that should be kept confidential. The text is encrypted
- /// for privacy when being used, and deleted from computer memory
- /// when no longer needed. When no key is specified, the command
+ /// This cmdlet exports a new SecureString -- one that represents
+ /// text that should be kept confidential. The text is encrypted
+ /// for privacy when being used, and deleted from computer memory
+ /// when no longer needed. When no key is specified, the command
/// uses the DPAPI to encrypt the string. When a key is specified, the
/// command uses the AES algorithm to encrypt the string.
///
@@ -202,12 +202,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines the implementation of the 'ConvertTo-SecureString' cmdlet.
- /// This cmdlet imports a new SecureString from encrypted data --
- /// one that represents text that should be kept confidential.
- /// The text is encrypted for privacy when being used, and deleted
- /// from computer memory when no longer needed. When no key is
- /// specified, the command uses the DPAPI to decrypt the data.
- /// When a key is specified, the command uses the AES algorithm
+ /// This cmdlet imports a new SecureString from encrypted data --
+ /// one that represents text that should be kept confidential.
+ /// The text is encrypted for privacy when being used, and deleted
+ /// from computer memory when no longer needed. When no key is
+ /// specified, the command uses the DPAPI to decrypt the data.
+ /// When a key is specified, the command uses the AES algorithm
/// to decrypt the data.
///
[Cmdlet(VerbsData.ConvertTo, "SecureString", DefaultParameterSetName = "Secure", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=113291")]
@@ -242,7 +242,7 @@ namespace Microsoft.PowerShell.Commands
/// Gets or sets the flag that marks the unsecured string as a plain
/// text string.
///
- ///
+ ///
[Parameter(Position = 1, ParameterSetName = "PlainText")]
public SwitchParameter AsPlainText
{
@@ -262,7 +262,7 @@ namespace Microsoft.PowerShell.Commands
/// Gets or sets the flag that will force the import of a plaintext
/// unsecured string.
///
- ///
+ ///
[Parameter(Position = 2, ParameterSetName = "PlainText")]
public SwitchParameter Force
{
diff --git a/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs b/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs
index ec55d61a49..1e6a3ae6a0 100644
--- a/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs
+++ b/src/Microsoft.PowerShell.Security/security/SignatureCommands.cs
@@ -28,7 +28,7 @@ namespace Microsoft.PowerShell.Commands
public abstract class SignatureCommandsBase : PSCmdlet
{
///
- /// Gets or sets the path to the file for which to get or set the
+ /// Gets or sets the path to the file for which to get or set the
/// digital signature.
///
[Parameter(Position = 0, Mandatory = true, ValueFromPipeline = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByPath")]
@@ -47,7 +47,7 @@ namespace Microsoft.PowerShell.Commands
private string[] _path;
///
- /// Gets or sets the literal path to the file for which to get or set the
+ /// Gets or sets the literal path to the file for which to get or set the
/// digital signature.
///
[Parameter(Mandatory = true, ValueFromPipelineByPropertyName = true, ParameterSetName = "ByLiteralPath")]
@@ -69,7 +69,7 @@ namespace Microsoft.PowerShell.Commands
private bool _isLiteralPath = false;
///
- /// Gets or sets the digital signature to be written to
+ /// Gets or sets the digital signature to be written to
/// the output pipeline.
///
protected Signature Signature
@@ -233,7 +233,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Performs the action (ie: get signature, or set signature)
+ /// Performs the action (ie: get signature, or set signature)
/// on the specified file.
///
///
@@ -242,7 +242,7 @@ namespace Microsoft.PowerShell.Commands
protected abstract Signature PerformAction(string filePath);
///
- /// Performs the action (ie: get signature, or set signature)
+ /// Performs the action (ie: get signature, or set signature)
/// on the specified contents.
///
///
@@ -337,7 +337,7 @@ namespace Microsoft.PowerShell.Commands
/// Use 'notroot' to include all certificates in the certificate
/// chain, except for the root authority.
/// Use 'all' to include all certificates in the certificate chain.
- ///
+ ///
/// Defaults to 'notroot'.
///
///
diff --git a/src/Microsoft.PowerShell.Security/security/Utils.cs b/src/Microsoft.PowerShell.Security/security/Utils.cs
index 604bd1c63a..1bc0d25d5b 100644
--- a/src/Microsoft.PowerShell.Security/security/Utils.cs
+++ b/src/Microsoft.PowerShell.Security/security/Utils.cs
@@ -109,7 +109,7 @@ namespace Microsoft.PowerShell
return ss;
}
-#if !CORECLR
+#if !CORECLR
///
/// get plain text string from a SecureString
///
@@ -120,9 +120,9 @@ namespace Microsoft.PowerShell
///
/// -- X509Certificate2.Import (String, String, X509KeyStorageFlags)
/// (DCR #33007 in the DevDiv Schedule db)
- ///
+ ///
/// -- NetworkCredential(string, string);
- ///
+ ///
///
///
/// input data
@@ -159,7 +159,7 @@ namespace Microsoft.PowerShell
string userName = null;
FileSystemRights rights = 0;
AccessControlType aceType = 0;
-
+
rules = sd.GetAccessRules(true, false, typeof(NTAccount));
foreach (FileSystemAccessRule r in rules)
diff --git a/src/Microsoft.PowerShell.Security/security/certificateproviderexceptions.cs b/src/Microsoft.PowerShell.Security/security/certificateproviderexceptions.cs
index fe42213478..9c6d87203e 100644
--- a/src/Microsoft.PowerShell.Security/security/certificateproviderexceptions.cs
+++ b/src/Microsoft.PowerShell.Security/security/certificateproviderexceptions.cs
@@ -14,7 +14,7 @@ using Microsoft.PowerShell.CoreClr.Stubs;
namespace Microsoft.PowerShell.Commands
{
///
- /// Defines the base class for exceptions thrown by the
+ /// Defines the base class for exceptions thrown by the
/// certificate provider when the specified item cannot be located.
///
[Serializable]
@@ -62,7 +62,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The serialization information.
///
- ///
+ ///
///
/// The streaming context.
///
@@ -137,7 +137,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The serialization information.
///
- ///
+ ///
///
/// The streaming context.
///
@@ -212,7 +212,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The serialization information.
///
- ///
+ ///
///
/// The streaming context.
///
@@ -287,7 +287,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The serialization information.
///
- ///
+ ///
///
/// The streaming context.
///
diff --git a/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs b/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs
index ca07bc89a7..dbaa0e32c8 100644
--- a/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs
+++ b/src/Microsoft.PowerShell.Security/singleshell/installer/MshSecurityMshSnapin.cs
@@ -16,19 +16,19 @@ using System.Management.Automation;
namespace Microsoft.PowerShell
{
///
- ///
- /// MshSecurityMshSnapin (or MshSecurityMshSnapinInstaller) is a class for facilitating registry
- /// of necessary information for monad security mshsnapin.
- ///
- /// This class will be built with monad security dll
- ///
+ ///
+ /// MshSecurityMshSnapin (or MshSecurityMshSnapinInstaller) is a class for facilitating registry
+ /// of necessary information for monad security mshsnapin.
+ ///
+ /// This class will be built with monad security dll
+ ///
///
- ///
+ ///
[RunInstaller(true)]
public sealed class PSSecurityPSSnapIn : PSSnapIn
{
///
- /// Create an instance of this class.
+ /// Create an instance of this class.
///
public PSSecurityPSSnapIn()
: base()
@@ -47,7 +47,7 @@ namespace Microsoft.PowerShell
}
///
- /// Get the default vendor string for this mshsnapin.
+ /// Get the default vendor string for this mshsnapin.
///
public override string Vendor
{
@@ -58,7 +58,7 @@ namespace Microsoft.PowerShell
}
///
- /// Get resource information for vendor. This is a string of format: resourceBaseName,resourceName.
+ /// Get resource information for vendor. This is a string of format: resourceBaseName,resourceName.
///
public override string VendorResource
{
@@ -69,7 +69,7 @@ namespace Microsoft.PowerShell
}
///
- /// Get the default description string for this mshsnapin.
+ /// Get the default description string for this mshsnapin.
///
public override string Description
{
@@ -80,7 +80,7 @@ namespace Microsoft.PowerShell
}
///
- /// Get resource information for description. This is a string of format: resourceBaseName,resourceName.
+ /// Get resource information for description. This is a string of format: resourceBaseName,resourceName.
///
public override string DescriptionResource
{
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs
index 9f00d4ac38..71b3b4f7d2 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddMemberActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Add-Member"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -110,10 +110,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -127,7 +127,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs
index 8163cf65d9..f85c85ec74 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/AddTypeActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Add-Type"; } }
-
+
// Arguments
-
+
///
/// Provides access to the CodeDomProvider parameter.
///
@@ -145,10 +145,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -162,7 +162,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(CodeDomProvider.Expression != null)
{
targetCommand.AddParameter("CodeDomProvider", CodeDomProvider.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs
index 02d505ab75..57a8810ccc 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/CompareObjectActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Compare-Object"; } }
-
+
// Arguments
-
+
///
/// Provides access to the ReferenceObject parameter.
///
@@ -96,10 +96,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -113,7 +113,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(ReferenceObject.Expression != null)
{
targetCommand.AddParameter("ReferenceObject", ReferenceObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs
index 3f560cbac7..8faf02f505 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromCsvActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-Csv"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Delimiter parameter.
///
@@ -61,10 +61,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -78,7 +78,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Delimiter.Expression != null)
{
targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs
index 7279aea6c1..30a1717b52 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromJsonActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-Json"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs
index 8c8ca86e21..6336af1329 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-String"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Delimiter parameter.
///
@@ -82,10 +82,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -99,7 +99,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Delimiter.Expression != null)
{
targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs
index e5bf0eafb9..7dbf8ef419 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertFromStringDataActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertFrom-StringData"; } }
-
+
// Arguments
-
+
///
/// Provides access to the StringData parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(StringData.Expression != null)
{
targetCommand.AddParameter("StringData", StringData.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs
index a3f2938181..bc4a7f07b2 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToCsvActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Csv"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -61,10 +61,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -78,7 +78,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs
index 24e0b31b57..022b643896 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToHtmlActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Html"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -103,10 +103,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -120,7 +120,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs
index 2cd0cc1beb..61b0abd758 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToJsonActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Json"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -54,10 +54,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs
index fe3aae5be3..fe42c1d91b 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ConvertToXmlActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\ConvertTo-Xml"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Depth parameter.
///
@@ -61,10 +61,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -78,7 +78,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Depth.Expression != null)
{
targetCommand.AddParameter("Depth", Depth.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs
index 641500dbcb..c23f83d357 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportClixmlActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-Clixml"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Depth parameter.
///
@@ -82,10 +82,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -99,7 +99,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Depth.Expression != null)
{
targetCommand.AddParameter("Depth", Depth.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs
index 523e53c7ec..faca15b235 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportCsvActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-Csv"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -103,10 +103,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -120,7 +120,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs
index c7e736e452..89be91850e 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ExportFormatDataActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Export-FormatData"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -75,10 +75,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs
index 8776aeffa3..f840e7dc61 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetCultureActivity.cs
@@ -28,15 +28,15 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Culture"; } }
-
+
// Arguments
-
+
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -50,7 +50,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs
index 836a4efdb8..9ce505e332 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetDateActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Date"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Date parameter.
///
@@ -110,10 +110,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -127,7 +127,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Date.Expression != null)
{
targetCommand.AddParameter("Date", Date.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs
index db1c25dca4..8e51627ab7 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Event"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SourceIdentifier parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SourceIdentifier.Expression != null)
{
targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs
index fa764d41dd..91024fe862 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetEventSubscriberActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-EventSubscriber"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SourceIdentifier parameter.
///
@@ -54,10 +54,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SourceIdentifier.Expression != null)
{
targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs
index dc803e2773..c4ae871278 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetHostActivity.cs
@@ -28,15 +28,15 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Host"; } }
-
+
// Arguments
-
+
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -50,7 +50,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs
index f2cee3ad8a..2950db89b4 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetMemberActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Member"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -75,10 +75,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs
index 73777801ec..324bd484a4 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetRandomActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Random"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SetSeed parameter.
///
@@ -68,10 +68,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -85,7 +85,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SetSeed.Expression != null)
{
targetCommand.AddParameter("SetSeed", SetSeed.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs
index a4b4ce91ab..41c8ed24ae 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTraceSourceActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-TraceSource"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Name parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs
index e6c440d884..b38be6c724 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetTypeDataActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-TypeData"; } }
-
+
// Arguments
-
+
///
/// Provides access to the TypeName parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(TypeName.Expression != null)
{
targetCommand.AddParameter("TypeName", TypeName.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs
index 6934f0a070..1d9a9f19c4 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUICultureActivity.cs
@@ -28,15 +28,15 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-UICulture"; } }
-
+
// Arguments
-
+
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -50,7 +50,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
return new ActivityImplementationContext() { PowerShellInstance = invoker };
}
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs
index ad825d27c1..a79c6e20a6 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GetUniqueActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Get-Unique"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -54,10 +54,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs
index e8272eec85..49b83ace44 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/GroupObjectActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Group-Object"; } }
-
+
// Arguments
-
+
///
/// Provides access to the NoElement parameter.
///
@@ -82,10 +82,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -99,7 +99,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(NoElement.Expression != null)
{
targetCommand.AddParameter("NoElement", NoElement.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs
index 9300926c36..a63f350e15 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportClixmlActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-Clixml"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Path parameter.
///
@@ -68,10 +68,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -85,7 +85,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs
index 3115ee7941..fd770477f2 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/ImportCsvActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-Csv"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Delimiter parameter.
///
@@ -75,10 +75,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Delimiter.Expression != null)
{
targetCommand.AddParameter("Delimiter", Delimiter.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs
index 90f2526ff6..8b59c788ac 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeExpressionActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-Expression"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Command parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Command.Expression != null)
{
targetCommand.AddParameter("Command", Command.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs
index 7959a6795e..11c6944d38 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeRestMethodActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-RestMethod"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Method parameter.
///
@@ -194,10 +194,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -211,7 +211,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Method.Expression != null)
{
targetCommand.AddParameter("Method", Method.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs
index 7c8031eb3f..773d1ee7da 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/InvokeWebRequestActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Invoke-WebRequest"; } }
-
+
// Arguments
-
+
///
/// Provides access to the UseBasicParsing parameter.
///
@@ -194,10 +194,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -211,7 +211,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(UseBasicParsing.Expression != null)
{
targetCommand.AddParameter("UseBasicParsing", UseBasicParsing.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs
index 54fd5320a2..f441e7b429 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureCommandActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Measure-Command"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs
index 0351dd9547..2f48de25e8 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/MeasureObjectActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Measure-Object"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -103,10 +103,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -120,7 +120,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs
index 10048a6221..9c9fdcfe9b 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewEventActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\New-Event"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SourceIdentifier parameter.
///
@@ -61,10 +61,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -78,7 +78,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SourceIdentifier.Expression != null)
{
targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs
index 03645ad4cd..7e26ab3ce8 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/NewTimeSpanActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\New-TimeSpan"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Start parameter.
///
@@ -75,10 +75,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Start.Expression != null)
{
targetCommand.AddParameter("Start", Start.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs
index cc26822e99..aa875ee221 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutFileActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-File"; } }
-
+
// Arguments
-
+
///
/// Provides access to the FilePath parameter.
///
@@ -96,10 +96,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -113,7 +113,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(FilePath.Expression != null)
{
targetCommand.AddParameter("FilePath", FilePath.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs
index 8e8187772a..82bb408c43 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutPrinterActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-Printer"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Name parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs
index 3296989522..42797e8fd9 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/OutStringActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Out-String"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Stream parameter.
///
@@ -54,10 +54,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Stream.Expression != null)
{
targetCommand.AddParameter("Stream", Stream.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs
index 9e4dcea0f4..7bdeda89a1 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterEngineEventActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Register-EngineEvent"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SourceIdentifier parameter.
///
@@ -75,10 +75,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SourceIdentifier.Expression != null)
{
targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs
index 473e4fd48d..e544f6f1e0 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RegisterObjectEventActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Register-ObjectEvent"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -89,10 +89,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -106,7 +106,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs
index 2abcbf4c1e..e864d7ad0d 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/RemoveEventActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Remove-Event"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SourceIdentifier parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SourceIdentifier.Expression != null)
{
targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs
index b8b3fa590a..47c016c367 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectObjectActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-Object"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -110,10 +110,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -127,7 +127,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs
index 4b862d3aef..5ce4bcd389 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectStringActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-String"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -131,10 +131,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -148,7 +148,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs
index 269da1b872..9f62c07501 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SelectXmlActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Select-Xml"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Path parameter.
///
@@ -75,10 +75,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs
index bc187c61b9..58f98c00ff 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SendMailMessageActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Send-MailMessage"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Attachments parameter.
///
@@ -138,10 +138,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -155,7 +155,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Attachments.Expression != null)
{
targetCommand.AddParameter("Attachments", Attachments.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs
index ed3932d29d..7dea544d6b 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetDateActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Set-Date"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Date parameter.
///
@@ -54,10 +54,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Date.Expression != null)
{
targetCommand.AddParameter("Date", Date.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs
index f9bdb41dcd..deefdb9cbe 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SetTraceSourceActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Set-TraceSource"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Name parameter.
///
@@ -103,10 +103,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -120,7 +120,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Name.Expression != null)
{
targetCommand.AddParameter("Name", Name.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs
index ee0f50b94c..ab7361ede5 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/SortObjectActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Sort-Object"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Descending parameter.
///
@@ -75,10 +75,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -92,7 +92,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Descending.Expression != null)
{
targetCommand.AddParameter("Descending", Descending.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs
index 7dc604582a..fd2b238310 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/StartSleepActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Start-Sleep"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Seconds parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Seconds.Expression != null)
{
targetCommand.AddParameter("Seconds", Seconds.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs
index 02a9445d6b..90779598ff 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/TeeObjectActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Tee-Object"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -68,10 +68,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -85,7 +85,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs
index 9de3c3a065..816cc4efb9 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnblockFileActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Unblock-File"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Path parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Path.Expression != null)
{
targetCommand.AddParameter("Path", Path.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs
index c93a5903f6..3f9ec130b1 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/UnregisterEventActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Unregister-Event"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SourceIdentifier parameter.
///
@@ -54,10 +54,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SourceIdentifier.Expression != null)
{
targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs
index a78dd17e59..1bc031f427 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/UpdateListActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Update-List"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Add parameter.
///
@@ -68,10 +68,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -85,7 +85,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Add.Expression != null)
{
targetCommand.AddParameter("Add", Add.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs
index e5914e7109..ba1fd311d8 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WaitEventActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Wait-Event"; } }
-
+
// Arguments
-
+
///
/// Provides access to the SourceIdentifier parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(SourceIdentifier.Expression != null)
{
targetCommand.AddParameter("SourceIdentifier", SourceIdentifier.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs
index 9025e52f15..df38492161 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteDebugActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Debug"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Message parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Message.Expression != null)
{
targetCommand.AddParameter("Message", Message.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs
index 4a1df077e8..714f6f5fd5 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteErrorActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Error"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Exception parameter.
///
@@ -110,10 +110,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -127,7 +127,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Exception.Expression != null)
{
targetCommand.AddParameter("Exception", Exception.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs
index d25ca58059..4165e93941 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteInformationActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Information"; } }
-
+
// Arguments
-
+
///
/// Provides access to the MessageData parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(MessageData.Expression != null)
{
targetCommand.AddParameter("MessageData", MessageData.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs
index c7de974603..5c7d854fef 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteOutputActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Output"; } }
-
+
// Arguments
-
+
///
/// Provides access to the InputObject parameter.
///
@@ -47,10 +47,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(InputObject.Expression != null)
{
targetCommand.AddParameter("InputObject", InputObject.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs
index 78fca89474..2bc0663cf3 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteProgressActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Progress"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Activity parameter.
///
@@ -96,10 +96,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -113,7 +113,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Activity.Expression != null)
{
targetCommand.AddParameter("Activity", Activity.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs
index de3c9c1879..9810d7557f 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteVerboseActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Verbose"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Message parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Message.Expression != null)
{
targetCommand.AddParameter("Message", Message.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs
index 1acb4a9732..16a7279e23 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/Generated/WriteWarningActivity.cs
@@ -28,9 +28,9 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Write-Warning"; } }
-
+
// Arguments
-
+
///
/// Provides access to the Message parameter.
///
@@ -40,10 +40,10 @@ namespace Microsoft.PowerShell.Utility.Activities
// Module defining this command
-
+
// Optional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Utility.Activities
System.Management.Automation.PowerShell targetCommand = invoker.AddCommand(PSCommandName);
// Initialize the arguments
-
+
if(Message.Expression != null)
{
targetCommand.AddParameter("Message", Message.Get(context));
diff --git a/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs b/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs
index c04e3225aa..7e19a2c951 100644
--- a/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs
+++ b/src/Microsoft.PowerShell.Utility.Activities/ImportLocalizedDataActivity.cs
@@ -24,7 +24,7 @@ namespace Microsoft.PowerShell.Utility.Activities
/// Gets the fully qualified name of the command invoked by this activity.
///
public override string PSCommandName { get { return "Microsoft.PowerShell.Utility\\Import-LocalizedData"; } }
-
+
// Arguments
///
@@ -56,10 +56,10 @@ namespace Microsoft.PowerShell.Utility.Activities
public InArgument SupportedCommand { get; set; }
// Module defining this command
-
+
// Additional custom code for this activity
-
+
///
/// Returns a configured instance of System.Management.Automation.PowerShell, pre-populated with the command to run.
@@ -86,7 +86,7 @@ namespace Microsoft.PowerShell.Utility.Activities
//If BaseDirectory is not specified, try to use the workflow base directory.
else
{
- throw new ArgumentException(GeneratedActivitiesResources.ImportLocalizedDataWithEmptyEmptyorNullBaseDirectory);
+ throw new ArgumentException(GeneratedActivitiesResources.ImportLocalizedDataWithEmptyEmptyorNullBaseDirectory);
}
if(FileName.Expression != null)
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityCategories.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityCategories.cs
index dde7af650a..5f438fae44 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityCategories.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityCategories.cs
@@ -10,7 +10,7 @@ using Microsoft.PowerShell.Workflow;
namespace Microsoft.PowerShell.Activities
{
///
- /// Category attribute for "Activity-Specific Parameters"
+ /// Category attribute for "Activity-Specific Parameters"
///
[AttributeUsage(AttributeTargets.All, AllowMultiple = false, Inherited = true)]
public sealed class ParameterSpecificCategoryAttribute : CategoryAttribute
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostManager.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostManager.cs
index 55edd85e40..34efb708c3 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostManager.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostManager.cs
@@ -71,7 +71,7 @@ namespace Microsoft.PowerShell.Workflow
}
// invoke callback if available
- if (null != _callback)
+ if (null != _callback)
_callback(this);
}
@@ -94,7 +94,7 @@ namespace Microsoft.PowerShell.Workflow
#region Overrides
///
- /// Whether the operation represented by this method is
+ /// Whether the operation represented by this method is
/// completed
///
public bool IsCompleted
@@ -151,7 +151,7 @@ namespace Microsoft.PowerShell.Workflow
/// host processes until all of them are used after which
/// it will start queueing requests
///
- /// Whether this class needs to remain public should be
+ /// Whether this class needs to remain public should be
/// evaluated
internal sealed class PSOutOfProcessActivityController : PSActivityHostController
{
@@ -201,7 +201,7 @@ namespace Microsoft.PowerShell.Workflow
_requests.Enqueue(invoker);
CheckAndStartServicingThread();
- }
+ }
///
/// This is a helper method which should only be called
@@ -246,7 +246,7 @@ namespace Microsoft.PowerShell.Workflow
{
ActivityHostProcess process = CreateNewActivityHostProcess();
_hostProcesses.Add(process);
- }
+ }
}
private ActivityHostProcess CreateNewActivityHostProcess()
@@ -268,7 +268,7 @@ namespace Microsoft.PowerShell.Workflow
ActivityHostProcess process = sender as ActivityHostProcess;
Debug.Assert(process != null, "ActivityHostProcess did not raise event correctly");
Debug.Assert(process.Busy, "When ProcessCrashed is raised busy should not be reset");
- process.MarkForRemoval = true;
+ process.MarkForRemoval = true;
if (e.FailureOnSetup)
{
@@ -284,7 +284,7 @@ namespace Microsoft.PowerShell.Workflow
// Below call is added to fix the race condition:
// When OOP host process is crashed, ProcessCrashed() method sets the process as MarkForRemoval, context switch happened at this time
- // and another process has finished and started the servicing thread, which checks the above process as MarkForRemoval and disposes it.
+ // and another process has finished and started the servicing thread, which checks the above process as MarkForRemoval and disposes it.
// ProcessFinished event handler is unregistered from the process and ActivityHostProcess.HandleTransportError will not be able to raise
// process finished event, resulting inconsistent _busyHost count.
//
@@ -292,14 +292,14 @@ namespace Microsoft.PowerShell.Workflow
}
private void ProcessFinished(object sender, EventArgs e)
- {
+ {
DecrementHostCountAndStartThreads();
}
private void DecrementHostCountAndStartThreads()
{
Interlocked.Decrement(ref _busyHosts);
-
+
PerfCountersMgr.UpdateCounterByValue(
PSWorkflowPerformanceCounterSetInfo.CounterSetId,
PSWorkflowPerformanceCounterIds.ActivityHostMgrBusyProcessesCount,
@@ -357,7 +357,7 @@ namespace Microsoft.PowerShell.Workflow
foreach(var process in toRemove)
{
SafelyDisposeProcess(process);
- }
+ }
ActivityInvoker invoker;
// first service previously failed request
@@ -405,7 +405,7 @@ namespace Microsoft.PowerShell.Workflow
if (processed) continue;
ActivityHostProcess hostProcess = CreateNewActivityHostProcess();
- _hostProcesses.Add(hostProcess);
+ _hostProcesses.Add(hostProcess);
RunInProcess(invoker, hostProcess);
}
@@ -422,7 +422,7 @@ namespace Microsoft.PowerShell.Workflow
}
}
-
+
///
/// Unregisters all wait handles and disposes a process
///
@@ -444,7 +444,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- /// Method called by servicing thread. This method will run the command in the
+ /// Method called by servicing thread. This method will run the command in the
/// specified process on a separate thread
///
///
@@ -483,8 +483,8 @@ namespace Microsoft.PowerShell.Workflow
/// optional callback
/// optional caller specified state
/// IAsyncResult
- internal IAsyncResult BeginInvokePowerShell(System.Management.Automation.PowerShell command,
- PSDataCollection input, PSDataCollection output, PSActivityEnvironment policy,
+ internal IAsyncResult BeginInvokePowerShell(System.Management.Automation.PowerShell command,
+ PSDataCollection input, PSDataCollection output, PSActivityEnvironment policy,
AsyncCallback callback, object state)
{
if (command == null)
@@ -527,7 +527,7 @@ namespace Microsoft.PowerShell.Workflow
{
ConnectionAsyncResult result = asyncResult as ConnectionAsyncResult;
- if (result == null)
+ if (result == null)
{
throw new PSInvalidOperationException(Resources.AsyncResultNotValid);
}
@@ -608,7 +608,7 @@ namespace Microsoft.PowerShell.Workflow
: PowerShell.BeginInvoke(Input, Output);
// _invoked should bet set here as powershell object can be disposed before runspace assignment due to cancelling an activity
- //
+ //
_invoked = true;
} // end of lock
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs
index 24cb93e3ef..83ab8a5433 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ActivityHostProcess.cs
@@ -27,7 +27,7 @@ namespace Microsoft.PowerShell.Workflow
///
/// Encapsulates an out of process activity host
///
- /// This class is not thread safe. Caller has to
+ /// This class is not thread safe. Caller has to
/// ensure thread safety of accessing internal properties
internal class ActivityHostProcess : IDisposable
{
@@ -70,16 +70,16 @@ namespace Microsoft.PowerShell.Workflow
{
[CmdletBinding()]
param(
-
+
[Parameter(Position=0)]
[string[]]
$Name,
-
+
[Parameter(Position=1)]
[object[]]
- $Value
+ $Value
)
-
+
for($i=0; $i -lt $Name.Count; $i++)
{
microsoft.powershell.utility\set-variable -name $Name[$i] -value $Value[$i] -scope global
@@ -189,7 +189,7 @@ namespace Microsoft.PowerShell.Workflow
///
/// Opens the specified runspace. If there are any errors in
/// opening the runspace, the method just eats them so that
- /// an unhandled exception in the background thread in which this
+ /// an unhandled exception in the background thread in which this
/// method is invoked does not lead to a process crash
///
/// runspace to open
@@ -216,7 +216,7 @@ namespace Microsoft.PowerShell.Workflow
}
catch (PSRemotingTransportRedirectException)
{
- // we should not be getting this exception
+ // we should not be getting this exception
// in the normal case
_tracer.WriteMessage("Opening runspace threw PSRemotingTransportRedirectException", _runspace.InstanceId.ToString());
Debug.Assert(false, "We should not get a redirect exception under normal circumstances");
@@ -244,7 +244,7 @@ namespace Microsoft.PowerShell.Workflow
/// true if setting up of runspace from policy succeeded
private void ImportModulesFromPolicy(Runspace runspace, ICollection modules)
{
- // If any modules are specified, load them into the runspace.
+ // If any modules are specified, load them into the runspace.
// In general, autoloading should be preferred to explicitly loading a module
// at startup time...
if (modules.Count <= 0)
@@ -269,7 +269,7 @@ namespace Microsoft.PowerShell.Workflow
{
using (System.Management.Automation.PowerShell ps = System.Management.Automation.PowerShell.Create())
{
- ps.Runspace = runspace;
+ ps.Runspace = runspace;
ps.AddScript(SetVariableFunction);
ps.Invoke();
@@ -308,9 +308,9 @@ namespace Microsoft.PowerShell.Workflow
lock(_syncObject)
{
// Process state should not be set to false if it is already marked for removal
- // Process is marked for removal in two cases:
- // 1) When PSRemotingTransportException is received in PrepareAndRun, in this case Server process is already crashed/exited.
- // If busy state is set to false, this process can be assigned to another activity by the servicing thread.
+ // Process is marked for removal in two cases:
+ // 1) When PSRemotingTransportException is received in PrepareAndRun, in this case Server process is already crashed/exited.
+ // If busy state is set to false, this process can be assigned to another activity by the servicing thread.
// Instead of adding separate boolean variable in PrepareAndRun to call ResetBusy we are checking for not marked for removal here.
// 2) When idle time of 5 min elapsed, process is marked for removal so that server process can be killed. After this, ResetBusy is never called.
//
@@ -365,7 +365,7 @@ namespace Microsoft.PowerShell.Workflow
if (ProcessCrashed != null)
{
ActivityHostCrashedEventArgs eventArgs = new ActivityHostCrashedEventArgs
- {FailureOnSetup = onSetup,
+ {FailureOnSetup = onSetup,
Invoker = _currentInvoker};
ProcessCrashed(this, eventArgs);
}
@@ -407,9 +407,9 @@ namespace Microsoft.PowerShell.Workflow
Runspace runspace = null;
// Retry for 10 times if runspace is in Broken state
//
- // Runspace can be broken, when a remote runspace is getting closed during the next activity execution,
- // the close ack is getting timedout and that close ack is received by the newly created remote runspace for
- // the next activity since stdoutput stream of server process is not cleared/discarded,
+ // Runspace can be broken, when a remote runspace is getting closed during the next activity execution,
+ // the close ack is getting timedout and that close ack is received by the newly created remote runspace for
+ // the next activity since stdoutput stream of server process is not cleared/discarded,
// that is why during new runspace is in broken state while it is being opened.
//
for (int i = 1; (i <= 10) && !invoker.IsCancelled; i++)
@@ -447,8 +447,8 @@ namespace Microsoft.PowerShell.Workflow
_tracer.WriteMessage("END Setting up runspace from policy ", _runspace.InstanceId.ToString());
}
- // Prepare phase is completed without any issues.
- // setupSucceeded flag is used in HandleTransportError method to enqueue the current activity for retry.
+ // Prepare phase is completed without any issues.
+ // setupSucceeded flag is used in HandleTransportError method to enqueue the current activity for retry.
// If there is any PSRemotingTransportException during InvokePowershell current activity will not be enqueued to setup failed requests in ActivityHostManager.
//
setupSucceeded = true;
@@ -456,7 +456,7 @@ namespace Microsoft.PowerShell.Workflow
// at this point we assume we have a clean runspace to
// run the command
// if the runspace is broken then the invocation will
- // result in an error either ways
+ // result in an error either ways
invoker.InvokePowerShell(runspace);
}
catch (PSRemotingTransportException transportException)
@@ -465,7 +465,7 @@ namespace Microsoft.PowerShell.Workflow
}
catch (Exception e)
{
- // at this point there is an exception other than a
+ // at this point there is an exception other than a
// transport exception that is caused by trying to
// setup the runspace. Release the asyncresult
// accordingly
@@ -502,10 +502,10 @@ namespace Microsoft.PowerShell.Workflow
/// Indicates that the associated process crashed and this object
/// needs to be removed by ActivityHostManager
///
- internal bool MarkForRemoval {
+ internal bool MarkForRemoval {
get
{
- // _processInstance.HasExited can not be used to tell as marked for removal
+ // _processInstance.HasExited can not be used to tell as marked for removal
// as it will cause inconsistent busy host count
//
return _markForRemoval;
@@ -522,7 +522,7 @@ namespace Microsoft.PowerShell.Workflow
#region IDisposable
///
- /// Dispose
+ /// Dispose
///
public void Dispose()
{
@@ -560,5 +560,5 @@ namespace Microsoft.PowerShell.Workflow
}
#endregion IDisposable
- }
+ }
}
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs
index e8077a095e..93404b4c62 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/ConnectionManager.cs
@@ -27,7 +27,7 @@ namespace Microsoft.PowerShell.Workflow
/// data for managing the same
///
/// the only reason this class has an internal scope is for
- /// test purposes. Else this can be a private class inside
+ /// test purposes. Else this can be a private class inside
/// connection manager
internal class Connection
{
@@ -53,7 +53,7 @@ namespace Microsoft.PowerShell.Workflow
internal uint RetryCount { get; set; }
internal GetRunspaceAsyncResult AsyncResult { get; set; }
internal WSManConnectionInfo ConnectionInfo { get; set; }
-
+
internal event EventHandler CloseCompleted;
internal event EventHandler OpenCompleted;
internal event EventHandler DisconnectCompleted;
@@ -142,7 +142,7 @@ namespace Microsoft.PowerShell.Workflow
}
}
- internal bool Busy
+ internal bool Busy
{
get
{
@@ -178,7 +178,7 @@ namespace Microsoft.PowerShell.Workflow
internal uint RetryInterval
{
get { return _retryInterval; }
- set
+ set
{
_retryInterval = value;
if (_retryInterval == 0) _retryInterval = 1;
@@ -205,7 +205,7 @@ namespace Microsoft.PowerShell.Workflow
try
{
- // Queries the server for disconnected runspaces.
+ // Queries the server for disconnected runspaces.
// Each runspace object in the returned array is in the Disconnected state and can be
// connected to the server by calling the Connect() or ConnectAsync() methods on the runspace.
runspaces = Runspace.GetRunspaces(connectionInfo);
@@ -298,7 +298,7 @@ namespace Microsoft.PowerShell.Workflow
WSManConnectionInfo copyConnectionInfo = ConnectionInfo.Copy();
copyConnectionInfo.EnableNetworkAccess = true;
- // If the remote runspace is not available after crash/shutdown,
+ // If the remote runspace is not available after crash/shutdown,
// activity task resume will fall back to reexecuting in a new runspace is assigned for the connection
if (!CheckAndReconnectAfterCrashOrShutdown(copyConnectionInfo))
{
@@ -316,7 +316,7 @@ namespace Microsoft.PowerShell.Workflow
// at this point the runspace can be in a closed or broken state
// if so then close has to simply raise the event
// if it was not in a terminal state when checking but happens
- // later but before CloseAsync() is called then the other
+ // later but before CloseAsync() is called then the other
// call which caused the state change will raise an event
if (_runspace.RunspaceStateInfo.State == RunspaceState.Broken ||
_runspace.RunspaceStateInfo.State == RunspaceState.Closed)
@@ -348,10 +348,10 @@ namespace Microsoft.PowerShell.Workflow
_manager.DisconnectCalled();
_runspace.DisconnectAsync();
return;
- }
+ }
}
RaiseEvents(Disconnect);
- }
+ }
internal void ReconnectAsync()
{
@@ -400,7 +400,7 @@ namespace Microsoft.PowerShell.Workflow
case RunspaceState.Opened:
{
- // runspace opened successfully, assign it to the asyncresult
+ // runspace opened successfully, assign it to the asyncresult
// reset retry counter
RetryAttempt = 0;
ReadyForReconnect = false;
@@ -427,7 +427,7 @@ namespace Microsoft.PowerShell.Workflow
Timer timer = new Timer { AutoReset = false, Enabled = false, Interval = _retryInterval * 1000 };
timer.Elapsed += RetryTimerElapsed;
- timer.Start();
+ timer.Start();
}
else
{
@@ -553,7 +553,7 @@ namespace Microsoft.PowerShell.Workflow
/// AsyncResult object returned by ConnectionManager
///
/// the only reason this class has an internal scope is for
- /// test purposes. Else this can be a private class inside
+ /// test purposes. Else this can be a private class inside
/// connection manager
internal class GetRunspaceAsyncResult : ConnectionAsyncResult
{
@@ -702,7 +702,7 @@ namespace Microsoft.PowerShell.Workflow
_connection.ReconnectCompleted -= HandleReconnectCompleted;
RaiseOperationComplete();
}
-
+
internal override void DoOperation()
{
if (_connection.Runspace.RunspaceStateInfo.State != RunspaceState.Disconnected)
@@ -804,7 +804,7 @@ namespace Microsoft.PowerShell.Workflow
private const int TimerFired = 1;
private const int TimerReset = 0;
private bool _isDisposed;
- private bool _isDisposing;
+ private bool _isDisposing;
private readonly PowerShellTraceSource _tracer = PowerShellTraceSourceFactory.GetTraceSource();
private readonly object _syncObject = new object();
private static readonly PSPerfCountersMgr _perfCountersMgr = PSPerfCountersMgr.Instance;
@@ -955,7 +955,7 @@ namespace Microsoft.PowerShell.Workflow
_tracer.WriteMessage("PSW ConnMgr: Request serviced and runspace returned");
Runspace runspace = result.Connection != null ? result.Connection.Runspace : null;
- return runspace;
+ return runspace;
}
///
@@ -1097,7 +1097,7 @@ namespace Microsoft.PowerShell.Workflow
{
foreach (Connection connection in connections.Values)
{
- // if connection has been marked idle the last
+ // if connection has been marked idle the last
// time remove resources
if (connection.Idle)
{
@@ -1115,7 +1115,7 @@ namespace Microsoft.PowerShell.Workflow
{
Connection removeConnection;
_createdConnections--;
- // remove connection from the table before attempting to
+ // remove connection from the table before attempting to
// close it. This will ensure that this connection is not
// assigned by mistake
connections.TryRemove(connection.InstanceId, out removeConnection);
@@ -1160,7 +1160,7 @@ namespace Microsoft.PowerShell.Workflow
_timerThreadRelease.Set();
}
catch (ObjectDisposedException)
- {
+ {
// Ignoring this exception
}
finally
@@ -1203,7 +1203,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- /// Checks to see if a thread is already servicing callbacks
+ /// Checks to see if a thread is already servicing callbacks
/// and if not starts one
///
private void CheckAndStartCallbackServicingThread()
@@ -1328,7 +1328,7 @@ namespace Microsoft.PowerShell.Workflow
return;
}
- } // service incoming requests
+ } // service incoming requests
}
catch (ObjectDisposedException)
{
@@ -1393,7 +1393,7 @@ namespace Microsoft.PowerShell.Workflow
if (!activityResumption)
{
// table is available, check if there are any free runspaces
- // if the collections was newly created, then this loop will
+ // if the collections was newly created, then this loop will
// be skipped)
foreach (Connection connection in
connections.Values.Where(connection => !connection.Busy).Where(connection => ValidateConnection(requestInfo, connection)))
@@ -1433,7 +1433,7 @@ namespace Microsoft.PowerShell.Workflow
return true;
}
- // when the existing connections are maxed out, there
+ // when the existing connections are maxed out, there
// are one of two choices
// 1. all connections are busy, in which case
// the request cannot be serviced
@@ -1479,7 +1479,7 @@ namespace Microsoft.PowerShell.Workflow
}
// there is a potential connection which can be closed,
- // close the same and create a new one
+ // close the same and create a new one
removeConnections.TryRemove(potentialConnection.InstanceId, out potentialConnection);
Debug.Assert(potentialConnection != null, "Trying to remove an element not in the dictionary");
@@ -1591,7 +1591,7 @@ namespace Microsoft.PowerShell.Workflow
connectionInfo2 = connection.Runspace.ConnectionInfo as WSManConnectionInfo;
if (connectionInfo2 == null) return false;
-
+
// check URI related stuff
if (!WorkflowUtils.CompareConnectionUri(connectionInfo, connectionInfo2))
{
@@ -1622,13 +1622,13 @@ namespace Microsoft.PowerShell.Workflow
return false;
}
- //check proxy settings
+ //check proxy settings
if (!WorkflowUtils.CompareProxySettings(connectionInfo, connectionInfo2))
{
return false;
}
- //check rest of wsman settings
+ //check rest of wsman settings
if (!WorkflowUtils.CompareOtherWSManSettings(connectionInfo, connectionInfo2))
{
return false;
@@ -1708,7 +1708,7 @@ namespace Microsoft.PowerShell.Workflow
}
// if this point is reached, then there is no match
- // invalid runspace specified, throw an exception
+ // invalid runspace specified, throw an exception
_tracer.WriteMessage("PSW ConnMgr: Cannot find the actual connection object");
ThrowInvalidRunspaceException(runspace);
@@ -1815,7 +1815,7 @@ namespace Microsoft.PowerShell.Workflow
if (removedTable != null)
{
- // if this thread is the one that removed the table, then
+ // if this thread is the one that removed the table, then
// make all the callbacks in this thread
RaiseCallbacksAfterCleanup(computerName);
}
@@ -1985,7 +1985,7 @@ namespace Microsoft.PowerShell.Workflow
// close and clear all connections in connection pool
ClearAll();
-
+
// This should be done after closing all connections.
// Throttling thread executes the close operations
Interlocked.CompareExchange(ref _isOperationsServiced, Servicing, NotServicing);
@@ -2120,7 +2120,7 @@ namespace Microsoft.PowerShell.Workflow
Debug.Assert(operation != null, "OperationComplete event does not pass ThrottleOperation as sender");
operation.OperationComplete -= HandleOperationComplete;
Interlocked.Decrement(ref _inProgressCount);
- CheckAndStartRequiredThreads();
+ CheckAndStartRequiredThreads();
}
#endregion Throttling
@@ -2147,7 +2147,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- ///
+ ///
///
///
public bool MoveNext()
@@ -2192,7 +2192,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- ///
+ ///
///
public void Reset()
{
@@ -2206,7 +2206,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- ///
+ ///
///
public object Current
{
@@ -2214,7 +2214,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- ///
+ ///
///
///
public IEnumerator GetEnumerator()
@@ -2238,7 +2238,7 @@ namespace Microsoft.PowerShell.Workflow
if (Interlocked.CompareExchange(ref _isReconnectServicing, Servicing, NotServicing) != NotServicing) return;
- TraceThreadPoolInfo("Queuing user workitem disconnect/reconnect worker");
+ TraceThreadPoolInfo("Queuing user workitem disconnect/reconnect worker");
ThreadPool.QueueUserWorkItem(DisconnectReconnectWorker);
}
@@ -2295,7 +2295,7 @@ namespace Microsoft.PowerShell.Workflow
// reset flag that disconnect/reconnect thread is running
Interlocked.CompareExchange(ref _isReconnectServicing, NotServicing, Servicing);
}
-
+
///
/// Callback to indicate that this runspace been initiated with
/// a pipeline and can be disconnected
@@ -2328,7 +2328,7 @@ namespace Microsoft.PowerShell.Workflow
CheckAndStartRequiredThreads();
}
- }
+ }
#endregion Disconnect/Reconnect
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/DefaultWorkflowSessionConfiguration.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/DefaultWorkflowSessionConfiguration.cs
index 886841dae4..e5bbab4a0c 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/DefaultWorkflowSessionConfiguration.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/DefaultWorkflowSessionConfiguration.cs
@@ -28,7 +28,7 @@ namespace Microsoft.PowerShell.Workflow
#region Overrides of PSSessionConfiguration
///
- ///
+ ///
///
///
///
@@ -39,7 +39,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- ///
+ ///
///
///
///
@@ -105,7 +105,7 @@ namespace Microsoft.PowerShell.Workflow
throw;
}
}
-
+
if (configProviderId.ToLower(CultureInfo.InvariantCulture).Equals("http://schemas.microsoft.com/powershell/microsoft.windows.servermanagerworkflows"))
{
PSSessionConfigurationData.IsServerManager = true;
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/AsyncResult.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/AsyncResult.cs
index 8935ea98fa..2c04a68721 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/AsyncResult.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/AsyncResult.cs
@@ -138,7 +138,7 @@ namespace Microsoft.PowerShell.Workflow
{
throw new ArgumentNullException("result");
}
-
+
TAsyncResult asyncResult = result as TAsyncResult;
if (asyncResult == null)
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs
index f418499568..0f7bafaf63 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStoreCryptography.cs
@@ -23,7 +23,7 @@ namespace Microsoft.PowerShell.Workflow
/// The additional entry for security 'POWERSHELLWORKFLOW'
///
private static byte[] s_additionalEntropy = { (byte)'P', (byte)'O', (byte)'W', (byte)'E', (byte)'R', (byte)'S', (byte)'H', (byte)'E', (byte)'L', (byte)'L', (byte)'W', (byte)'O', (byte)'R', (byte)'K', (byte)'F', (byte)'L', (byte)'O', (byte)'W' };
-
+
///
/// Protect the data.
///
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs
index bf86e48065..0d29a001b0 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/InstanceStorePermission.cs
@@ -23,12 +23,12 @@ namespace Microsoft.PowerShell.Workflow
AddDirectorySecurity(folderName, account, FileSystemRights.Modify, InheritanceFlags.ContainerInherit | InheritanceFlags.ObjectInherit, PropagationFlags.None, AccessControlType.Allow);
}
- private static void AddDirectorySecurity(string folderName, string account, FileSystemRights rights, InheritanceFlags inheritance, PropagationFlags propagation, AccessControlType controlType)
- {
- DirectoryInfo info = new DirectoryInfo(folderName);
- DirectorySecurity dSecurity = info.GetAccessControl();
- dSecurity.AddAccessRule(new FileSystemAccessRule(account, rights, inheritance, propagation, controlType));
- info.SetAccessControl(dSecurity);
+ private static void AddDirectorySecurity(string folderName, string account, FileSystemRights rights, InheritanceFlags inheritance, PropagationFlags propagation, AccessControlType controlType)
+ {
+ DirectoryInfo info = new DirectoryInfo(folderName);
+ DirectorySecurity dSecurity = info.GetAccessControl();
+ dSecurity.AddAccessRule(new FileSystemAccessRule(account, rights, inheritance, propagation, controlType));
+ info.SetAccessControl(dSecurity);
}
private static void RemoveInheritablePermissions(string folderName)
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs
index f81d3faf0b..70b065a4b6 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/FileInstanceStore/WorkflowAdditionalStores.cs
@@ -419,7 +419,7 @@ namespace Microsoft.PowerShell.Workflow
}
- // Now verify if the data can be in allowed max persistence limit
+ // Now verify if the data can be in allowed max persistence limit
long oldValue = (
contextLengthOld +
streamLengthOld +
@@ -505,7 +505,7 @@ namespace Microsoft.PowerShell.Workflow
}
}
- # region Stream
+ # region Stream
private ArraySegment serializedInputStreamData;
private ArraySegment serializedOutputStreamData;
@@ -802,7 +802,7 @@ namespace Microsoft.PowerShell.Workflow
if (!string.IsNullOrEmpty(runtimeAssemblyPath) && File.Exists(runtimeAssemblyPath))
{
string radllPath = Path.Combine(storePath, RuntimeAssembly_dll);
-
+
// Copy if file locations are different.
// Both paths are same when a suspended job from another console is resumed and end persistence happened.
if (!String.Equals(radllPath, runtimeAssemblyPath, StringComparison.OrdinalIgnoreCase))
@@ -1316,7 +1316,7 @@ namespace Microsoft.PowerShell.Workflow
return _disablePersistenceLimits
? (Dictionary>>)LoadFromFileAndDeserialize(Path.Combine(storePath, ActivityState_xml))
- : (Dictionary>>)DeserializeObject(Decrypt(LoadFromFile(Path.Combine(storePath, ActivityState_xml))));
+ : (Dictionary>>)DeserializeObject(Decrypt(LoadFromFile(Path.Combine(storePath, ActivityState_xml))));
}
# endregion
@@ -1754,7 +1754,7 @@ namespace Microsoft.PowerShell.Workflow
}
return tmpBuf;
- }
+ }
internal void DoSave2(IEnumerable
///
///
- public PSWorkflowConfigurationProvider(string applicationPrivateData, string configProviderId)
+ public PSWorkflowConfigurationProvider(string applicationPrivateData, string configProviderId)
{
Populate(applicationPrivateData, configProviderId);
}
@@ -548,7 +548,7 @@ namespace Microsoft.PowerShell.Workflow
#endregion
///
- /// CurrentUserIdentity returns the current user
+ /// CurrentUserIdentity returns the current user
///
internal WindowsIdentity CurrentUserIdentity
{
@@ -612,14 +612,14 @@ namespace Microsoft.PowerShell.Workflow
if (CurrentUserIdentity.User != null)
{
string path = Path.Combine(_wfOptions.PersistencePath ?? DefaultPersistencePath, _configProviderId ?? "default", CurrentUserIdentity.User.Value);
-
+
WindowsPrincipal principal = new WindowsPrincipal(CurrentUserIdentity);
bool elevated = false;
bool nonInteractive = false;
bool credssp = false;
-
+
if (principal.IsInRole(WindowsBuiltInRole.Administrator))
elevated = true;
@@ -653,7 +653,7 @@ namespace Microsoft.PowerShell.Workflow
_instanceStorePath = path;
}
- IsDefaultStorePath = string.IsNullOrEmpty(_configProviderId) ? true : false;
+ IsDefaultStorePath = string.IsNullOrEmpty(_configProviderId) ? true : false;
}
return _instanceStorePath;
}
@@ -813,7 +813,7 @@ namespace Microsoft.PowerShell.Workflow
return _wfOptions.ActivitiesCacheCleanupIntervalMSec;
}
}
-
+
///
/// Local Machine Runspace Language Mode
///
@@ -856,7 +856,7 @@ namespace Microsoft.PowerShell.Workflow
{
return _wfOptions.SessionThrottleLimit;
}
- }
+ }
internal int ValidationCacheLimit
{
@@ -924,7 +924,7 @@ namespace Microsoft.PowerShell.Workflow
? new WildcardPattern(allowedActivity, WildcardOptions.IgnoreCase).IsMatch(match)
: string.Equals(allowedActivity, match, StringComparison.OrdinalIgnoreCase));
}
-
+
#endregion Configuration Properties
}
}
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/LocalRunspaceProvider.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/LocalRunspaceProvider.cs
index 7a5e4c1df5..0f8a741053 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/LocalRunspaceProvider.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/LocalRunspaceProvider.cs
@@ -19,7 +19,7 @@ namespace Microsoft.PowerShell.Workflow
internal LocalRunspaceAsyncResult(object state, AsyncCallback callback, Guid ownerId)
:base(state, callback, ownerId)
{
-
+
}
internal Runspace Runspace { get; set; }
@@ -67,7 +67,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- ///
+ ///
///
///
///
@@ -103,7 +103,7 @@ namespace Microsoft.PowerShell.Workflow
(_maxRunspaces == MaxRunspacesPossible || _runspaceCache.Cache.Count < _maxRunspaces))
{
runspace = CreateLocalActivityRunspace(languageMode);
-
+
runspace.Open();
_tracer.WriteMessage("New local runspace created");
@@ -251,7 +251,7 @@ namespace Microsoft.PowerShell.Workflow
return asyncResult;
}
-
+
///
/// End for obtaining a runspace for the specified connection info
///
@@ -278,11 +278,11 @@ namespace Microsoft.PowerShell.Workflow
Debug.Assert(runspace.RunspaceStateInfo.State == RunspaceState.Opened, "Only opened runspace should be returned");
- return runspace;
+ return runspace;
}
///
- ///
+ ///
///
///
public override void ReleaseRunspace(Runspace runspace)
@@ -381,7 +381,7 @@ namespace Microsoft.PowerShell.Workflow
}
///
- ///
+ ///
///
///
protected void Dispose(bool disposing)
diff --git a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs
index 3556e7a6f8..acd19ead7d 100644
--- a/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs
+++ b/src/Microsoft.PowerShell.Workflow.ServiceCore/ServiceCore/WorkflowCore/PSActivityBase.cs
@@ -89,9 +89,9 @@ namespace Microsoft.PowerShell.Activities
internal PSDataCollection
diff --git a/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml b/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml
index 32de7568aa..d4e78a3d31 100644
--- a/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml
+++ b/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml
@@ -89,7 +89,7 @@
-
+
Default
@@ -116,6 +116,6 @@
-
+
diff --git a/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml b/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml
index bebbb9ea51..29a42edfab 100644
--- a/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml
+++ b/src/Modules/Windows-Core/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml
@@ -1,18 +1,18 @@
@@ -104,7 +104,7 @@ REMAINS WITH THE USER.
Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
-
+ PSStandardMembers
@@ -112,7 +112,7 @@ REMAINS WITH THE USER.
DefaultDisplayPropertySetTimestamp
- Readings
+ Readings
@@ -128,12 +128,12 @@ REMAINS WITH THE USER.
$strPaths = ""
foreach ($ctr in $this.CounterSamples)
{
- $strPaths += ($ctr.Path + " :" + "`n")
- $strPaths += ($ctr.CookedValue.ToString() + "`n`n")
- }
+ $strPaths += ($ctr.Path + " :" + "`n")
+ $strPaths += ($ctr.CookedValue.ToString() + "`n`n")
+ }
return $strPaths
-
+
diff --git a/src/Modules/Windows-Core/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1 b/src/Modules/Windows-Core/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1
index a8fae4e37c..252185f5ea 100644
--- a/src/Modules/Windows-Core/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1
+++ b/src/Modules/Windows-Core/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1
@@ -8,7 +8,7 @@ PowerShellVersion="3.0"
CmdletsToExport= "Format-List", "Format-Custom", "Format-Table", "Format-Wide",
"Out-File", "Out-String", "Get-FormatData", "Export-FormatData", "ConvertFrom-Json", "ConvertTo-Json",
"Invoke-RestMethod", "Invoke-WebRequest", "Register-ObjectEvent", "Register-EngineEvent",
- "Wait-Event", "Get-Event", "Remove-Event", "Get-EventSubscriber", "Unregister-Event", "New-Guid",
+ "Wait-Event", "Get-Event", "Remove-Event", "Get-EventSubscriber", "Unregister-Event", "New-Guid",
"New-Event", "Add-Member", "Add-Type", "Compare-Object", "ConvertTo-Html", "ConvertFrom-StringData",
"Export-Csv", "Import-Csv", "ConvertTo-Csv", "ConvertFrom-Csv", "Export-Alias", "Invoke-Expression",
"Get-Alias", "Get-Culture", "Get-Date", "Get-Host", "Get-Member", "Get-Random", "Get-UICulture",
diff --git a/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Diagnostics.format.ps1xml b/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Diagnostics.format.ps1xml
index 8d1bb7ff60..a290c620ce 100644
--- a/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Diagnostics.format.ps1xml
+++ b/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Diagnostics.format.ps1xml
@@ -1,14 +1,14 @@
-
+
-
+ CounterMicrosoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
-
+
@@ -20,7 +20,7 @@
left100
-
+
@@ -31,7 +31,7 @@
Readings
-
+
@@ -74,6 +74,6 @@
-
+
diff --git a/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml b/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml
index d0a56b23c0..476af9f5e2 100644
--- a/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml
+++ b/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/Event.format.ps1xml
@@ -89,7 +89,7 @@
-
+
Default
@@ -116,6 +116,6 @@
-
+
diff --git a/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml b/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml
index a39f4cba06..6a9bc8edaf 100644
--- a/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml
+++ b/src/Modules/Windows-Full/Microsoft.PowerShell.Diagnostics/GetEvent.types.ps1xml
@@ -1,18 +1,18 @@
@@ -104,7 +104,7 @@ REMAINS WITH THE USER.
Microsoft.PowerShell.Commands.GetCounter.PerformanceCounterSampleSet
-
+ PSStandardMembers
@@ -112,7 +112,7 @@ REMAINS WITH THE USER.
DefaultDisplayPropertySetTimestamp
- Readings
+ Readings
@@ -128,12 +128,12 @@ REMAINS WITH THE USER.
$strPaths = ""
foreach ($ctr in $this.CounterSamples)
{
- $strPaths += ($ctr.Path + " :" + "`n")
- $strPaths += ($ctr.CookedValue.ToString() + "`n`n")
- }
+ $strPaths += ($ctr.Path + " :" + "`n")
+ $strPaths += ($ctr.CookedValue.ToString() + "`n`n")
+ }
return $strPaths
-
+
diff --git a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataAdapter.ps1 b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataAdapter.ps1
index 46cd5f9cc1..367a4acea4 100644
--- a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataAdapter.ps1
+++ b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataAdapter.ps1
@@ -5,11 +5,11 @@
Add-Type -TypeDefinition $global:BaseClassDefinitions
#########################################################
-# Generates PowerShell module containing client side
-# proxy cmdlets that can be used to interact with an
+# Generates PowerShell module containing client side
+# proxy cmdlets that can be used to interact with an
# OData based server side endpoint.
-#########################################################
-function ExportODataEndpointProxy
+#########################################################
+function ExportODataEndpointProxy
{
param
(
@@ -35,16 +35,16 @@ function ExportODataEndpointProxy
[ODataUtils.Metadata] $metaData = ParseMetadata $metadataXML $MetadataUri $CmdletAdapter $PSCmdlet
VerifyMetaData $MetadataUri $metaData $AllowClobber.IsPresent $PSCmdlet $progressBarStatus $CmdletAdapter $CustomData $ResourceNameMapping
-
+
GenerateClientSideProxyModule $metaData $MetadataUri $Uri $OutputModule $CreateRequestMethod $UpdateRequestMethod $CmdletAdapter $ResourceNameMapping $CustomData $ProgressBarStatus $PSCmdlet
}
#########################################################
-# ParseMetaData is a helper function used to parse the
-# metadata to convert it in to an object structure for
+# ParseMetaData is a helper function used to parse the
+# metadata to convert it in to an object structure for
# further consumption during proxy generation.
-#########################################################
-function ParseMetaData
+#########################################################
+function ParseMetaData
{
param
(
@@ -83,8 +83,8 @@ function ParseMetaData
$metaDataVersion = New-Object -TypeName System.Version -ArgumentList @($metadataXML.Edmx.Version)
- # When we support plug-in model, We would have to fetch the
- # $minSupportedVersionString & $maxSupportedVersionString
+ # When we support plug-in model, We would have to fetch the
+ # $minSupportedVersionString & $maxSupportedVersionString
# from the plug-in instead of using an hardcoded value.
$minSupportedVersionString = '1.0'
$maxSupportedVersionString = '3.0'
@@ -123,7 +123,7 @@ function ParseMetaData
}
$metaData = New-Object -TypeName ODataUtils.Metadata
-
+
# this is a processing queue for those types that require base types that haven't been defined yet
$entityAndComplexTypesQueue = @{}
@@ -241,7 +241,7 @@ function ParseMetaData
"Name" = $association.Name;
"Type" = $newAssociationType;
}
-
+
$metaData.Associations += $newAssociation
}
}
@@ -270,7 +270,7 @@ function ParseMetaData
# we don't care about IsAlwaysBindable, since we populate actions information from $metaData
# so we can't know the state of the entity
}
-
+
# Actions are always SideEffecting, otherwise it's an OData function
if ($newAction.IsSideEffecting -ne $false)
{
@@ -322,11 +322,11 @@ function ParseMetaData
}
#########################################################
-# VerifyMetaData is a helper function used to validate
+# VerifyMetaData is a helper function used to validate
# the processed metadata to make sure client side proxy
# can be created for the supplied metadata.
-#########################################################
-function VerifyMetaData
+#########################################################
+function VerifyMetaData
{
param
(
@@ -362,15 +362,15 @@ function VerifyMetaData
$errorRecord = CreateErrorRecordHelper "ODataEndpointProxyInvalidMetaDataUri" $null ([System.Management.Automation.ErrorCategory]::InvalidArgument) $exception $metaDataUri
$callerPSCmdlet.ThrowTerminatingError($errorRecord)
}
-
+
# All the generated proxy cmdlets would have the following parameters added.
- # The ODataAdapter has the default implementation on how to handle the
+ # The ODataAdapter has the default implementation on how to handle the
# scenario when these parameters are used during proxy invocations.
- # The default implementation can be overridden using adapter derivation model.
+ # The default implementation can be overridden using adapter derivation model.
$reservedProperties = @("Filter", "IncludeTotalResponseCount", "OrderBy", "Select", "Skip", "Top", "ConnectionUri", "CertificateThumbprint", "Credential")
$validEntitySets = @()
$sessionCommands = Get-Command -All
-
+
foreach ($entitySet in $metaData.EntitySets)
{
if ($entitySet.Type -eq $null)
@@ -404,7 +404,7 @@ function VerifyMetaData
$callerPSCmdlet.WriteError($errorRecord)
}
else
- {
+ {
$warningMessage = ($LocalizedData.EntitySetProxyCreationWithWarning -f $entitySet.Name, $entityProperty.Name, $entitySet.Type.Name)
$callerPSCmdlet.WriteWarning($warningMessage)
}
@@ -419,10 +419,10 @@ function VerifyMetaData
$generatedCommandName = $resourceNameMapping[$entitySet.Name]
}
- if(($currentCommand.Noun -ne $null -and $currentCommand.Noun -eq $generatedCommandName) -and
- ($currentCommand.Verb -eq "Get" -or
- $currentCommand.Verb -eq "Set" -or
- $currentCommand.Verb -eq "New" -or
+ if(($currentCommand.Noun -ne $null -and $currentCommand.Noun -eq $generatedCommandName) -and
+ ($currentCommand.Verb -eq "Get" -or
+ $currentCommand.Verb -eq "Set" -or
+ $currentCommand.Verb -eq "New" -or
$currentCommand.Verb -eq "Remove"))
{
$hasConflictingCommand = $true
@@ -435,7 +435,7 @@ function VerifyMetaData
foreach($currentAction in $metaData.Actions)
{
$actionCommand = "Invoke-" + "$($entitySet.Name)$($currentAction.Verb)"
-
+
foreach($currentCommand in $sessionCommands)
{
if($actionCommand -eq $currentCommand.Name)
@@ -453,17 +453,17 @@ function VerifyMetaData
$validEntitySets += $entitySet
}
}
-
+
if ($cmdletAdapter -ne "NetworkControllerAdapter") {
-
+
$metaData.EntitySets = $validEntitySets
-
- $validServiceActions = @()
+
+ $validServiceActions = @()
$hasConflictingServiceActionCommand = $true
foreach($currentAction in $metaData.Actions)
{
$serviceActionCommand = "Invoke-" + "$($currentAction.Verb)"
-
+
foreach($currentCommand in $sessionCommands)
{
if($serviceActionCommand -eq $currentCommand.Name)
@@ -474,37 +474,37 @@ function VerifyMetaData
$currentCommand.Name $metaDataUri $allowClobber $callerPSCmdlet
}
}
-
+
if(!$hasConflictingServiceActionCommand -or $allowClobber)
{
$validServiceActions += $currentAction
}
}
-
+
$metaData.Actions = $validServiceActions
}
-
+
# Update Progress bar.
ProgressBarHelper "Export-ODataEndpointProxy" $progressBarStatus 5 20 1 1
}
#########################################################
-# GenerateClientSideProxyModule is a helper function used
+# GenerateClientSideProxyModule is a helper function used
# to generate a PowerShell module that serves as a client
-# side proxy for interacting with the server side
+# side proxy for interacting with the server side
# OData endpoint. The proxy module contains proxy cmdlets
-# implemented in CDXML modules and they are exposed
+# implemented in CDXML modules and they are exposed
# through module manifest as nested modules.
-# One CDXML module is created for each EntitySet
+# One CDXML module is created for each EntitySet
# described in the metadata. Each CDXML module contains
# CRUD & Service Action specific proxy cmdlets targeting
# the underlying EntityType. There is 1:M mapping between
# EntitySet & its underlying EntityTypes (i.e., all
# entities with in the single EntitySet will be of the
-# same EntityType but there can be multiple entities
-# of the same type with in an EntitySet).
+# same EntityType but there can be multiple entities
+# of the same type with in an EntitySet).
#########################################################
-function GenerateClientSideProxyModule
+function GenerateClientSideProxyModule
{
param
(
@@ -513,9 +513,9 @@ function GenerateClientSideProxyModule
[string] $uri,
[string] $outputModule,
[string] $createRequestMethod,
- [string] $updateRequestMethod,
- [string] $cmdletAdapter,
- [Hashtable] $resourceNameMapping,
+ [string] $updateRequestMethod,
+ [string] $cmdletAdapter,
+ [Hashtable] $resourceNameMapping,
[Hashtable] $customData,
[string] $progressBarStatus,
[System.Management.Automation.PSCmdlet] $callerPSCmdlet
@@ -526,11 +526,11 @@ function GenerateClientSideProxyModule
if($callerPSCmdlet -eq $null) { throw ($LocalizedData.ArguementNullError -f "PSCmdlet", "GenerateClientSideProxyModule") }
if($progressBarStatus -eq $null) { throw ($LocalizedData.ArguementNullError -f "ProgressBarStatus", "GenerateClientSideProxyModule") }
- # This function performs the following set of tasks
+ # This function performs the following set of tasks
# while creating the client side proxy module:
# 1. If the server side endpoint exposes complex types,
# the client side proxy complex types are created
- # as C# class in ComplexTypeDefinitions.psm1
+ # as C# class in ComplexTypeDefinitions.psm1
# 2. Creates proxy cmdlets for CRUD operations.
# 3. Creates proxy cmdlets for Service action operations.
# 4. Creates module manifest.
@@ -548,11 +548,11 @@ function GenerateClientSideProxyModule
{
$proxyFile = New-Object -TypeName System.IO.FileInfo -ArgumentList $complexTypeFileDefinitionPath | Get-Item
if($callerPSCmdlet -ne $null)
- {
+ {
$callerPSCmdlet.WriteObject($proxyFile)
}
}
-
+
$currentEntryCount = 0
foreach ($entitySet in $metaData.EntitySets)
{
@@ -562,7 +562,7 @@ function GenerateClientSideProxyModule
ProgressBarHelper "Export-ODataEndpointProxy" $progressBarStatus 40 20 $metaData.EntitySets.Count $currentEntryCount
continue
}
-
+
GenerateCRUDProxyCmdlet $entitySet $metaData $uri $outputModule $createRequestMethod $updateRequestMethod $cmdletAdapter $resourceNameMapping $customData $complexTypeMapping "Export-ODataEndpointProxy" $progressBarStatus 40 20 $metaData.EntitySets.Count $currentEntryCount $callerPSCmdlet
}
@@ -574,12 +574,12 @@ function GenerateClientSideProxyModule
}
#########################################################
-# GenerateCRUDProxyCmdlet is a helper function used
-# to generate Get, Set, New & Remove proxy cmdlet.
-# The proxy cmdlet is generated in the CDXML
-# compliant format.
+# GenerateCRUDProxyCmdlet is a helper function used
+# to generate Get, Set, New & Remove proxy cmdlet.
+# The proxy cmdlet is generated in the CDXML
+# compliant format.
#########################################################
-function GenerateCRUDProxyCmdlet
+function GenerateCRUDProxyCmdlet
{
param
(
@@ -590,7 +590,7 @@ function GenerateCRUDProxyCmdlet
[string] $createRequestMethod,
[string] $UpdateRequestMethod,
[string] $cmdletAdapter,
- [Hashtable] $resourceNameMapping,
+ [Hashtable] $resourceNameMapping,
[Hashtable] $customData,
[Hashtable] $complexTypeMapping,
[string] $progressBarActivityName,
@@ -608,8 +608,8 @@ function GenerateCRUDProxyCmdlet
if($callerPSCmdlet -eq $null) { throw ($LocalizedData.ArguementNullError -f "PSCmdlet", "GenerateClientSideProxyModule") }
if($progressBarStatus -eq $null) { throw ($LocalizedData.ArguementNullError -f "ProgressBarStatus", "GenerateClientSideProxyModule") }
- $entitySetName = $entitySet.Name
- if(($resourceNameMapping -ne $null) -and
+ $entitySetName = $entitySet.Name
+ if(($resourceNameMapping -ne $null) -and
$resourceNameMapping.ContainsKey($entitySetName))
{
$entitySetName = $resourceNameMapping[$entitySetName]
@@ -727,22 +727,22 @@ function GenerateCRUDProxyCmdlet
}
#########################################################
-# GenerateGetProxyCmdlet is a helper function used
+# GenerateGetProxyCmdlet is a helper function used
# to generate Get-* proxy cmdlet. The proxy cmdlet is
-# generated in the CDXML compliant format.
+# generated in the CDXML compliant format.
#########################################################
-function GenerateGetProxyCmdlet
+function GenerateGetProxyCmdlet
{
param
(
[System.XMl.XmlTextWriter] $xmlWriter,
- [ODataUtils.Metadata] $metaData,
+ [ODataUtils.Metadata] $metaData,
[object[]] $keys,
[object[]] $navigationProperties,
[string] $cmdletAdapter,
[Hashtable] $complexTypeMapping
)
-
+
# $cmdletAdapter is already validated at the cmdlet layer.
if($xmlWriter -eq $null) { throw ($LocalizedData.ArguementNullError -f "xmlWriter", "GenerateGetProxyCmdlet") }
if($metaData -eq $null) { throw ($LocalizedData.ArguementNullError -f "metadata", "GenerateGetProxyCmdlet") }
@@ -757,7 +757,7 @@ function GenerateGetProxyCmdlet
{
$xmlWriter.WriteStartElement('QueryableProperties')
$position = 0
-
+
$keys | ? { $_ -ne $null } | % {
$xmlWriter.WriteStartElement('Property')
$xmlWriter.WriteAttributeString('PropertyName', $_.Name)
@@ -812,16 +812,16 @@ function GenerateGetProxyCmdlet
$xmlWriter.WriteEndElement()
}
}
-
+
# Add Query Parameters (i.e., Top, Skip, OrderBy, Filter) to the generated Get-* cmdlets.
- $queryParameters =
+ $queryParameters =
@{
"Filter" = "Edm.String";
"IncludeTotalResponseCount" = "switch";
"OrderBy" = "Edm.String";
- "Select" = "Edm.String";
- "Skip" = "Edm.Int32";
+ "Select" = "Edm.String";
+ "Skip" = "Edm.Int32";
"Top" = "Edm.Int32";
}
@@ -846,7 +846,7 @@ function GenerateGetProxyCmdlet
if($queryParameters[$currentQueryParameter] -eq "Edm.Int32")
{
$minValue = 1
- # For Skip Query parameter we want to support 0 as the
+ # For Skip Query parameter we want to support 0 as the
# minimum skip value in order to support client side paging.
if($currentQueryParameter -eq 'Skip')
{
@@ -879,11 +879,11 @@ function GenerateGetProxyCmdlet
}
#########################################################
-# GenerateNewProxyCmdlet is a helper function used
+# GenerateNewProxyCmdlet is a helper function used
# to generate New-* proxy cmdlet. The proxy cmdlet is
-# generated in the CDXML compliant format.
+# generated in the CDXML compliant format.
#########################################################
-function GenerateNewProxyCmdlet
+function GenerateNewProxyCmdlet
{
param
(
@@ -911,7 +911,7 @@ function GenerateNewProxyCmdlet
$xmlWriter.WriteStartElement('Method')
$xmlWriter.WriteAttributeString('MethodName', 'Create')
$xmlWriter.WriteAttributeString('CmdletParameterSet', 'Default')
-
+
AddParametersNode $xmlWriter $keyProperties $nonNullableProperties $nullableProperties $null $true $true $complexTypeMapping
$xmlWriter.WriteEndElement()
@@ -925,23 +925,23 @@ function GenerateNewProxyCmdlet
$xmlWriter.WriteStartElement('Method')
$xmlWriter.WriteAttributeString('MethodName', "Association:Create:$($associatedEntitySet.Name)")
$xmlWriter.WriteAttributeString('CmdletParameterSet', $_.Name)
-
+
$associatedKeys = ((GetAllProperties $associatedType) | ? { $_.isKey })
AddParametersNode $xmlWriter $associatedKeys $keyProperties $null "Associated$($_.Name)" $true $true $complexTypeMapping
$xmlWriter.WriteEndElement()
}
}
-
+
$xmlWriter.WriteEndElement()
}
#########################################################
-# GenerateRemoveProxyCmdlet is a helper function used
+# GenerateRemoveProxyCmdlet is a helper function used
# to generate Remove-* proxy cmdlet. The proxy cmdlet is
-# generated in the CDXML compliant format.
+# generated in the CDXML compliant format.
#########################################################
-function GenerateRemoveProxyCmdlet
+function GenerateRemoveProxyCmdlet
{
param
(
@@ -999,7 +999,7 @@ function GenerateRemoveProxyCmdlet
$xmlWriter.WriteStartElement('Method')
$xmlWriter.WriteAttributeString('MethodName', "Association:Delete:$($associatedEntitySet.Name)")
$xmlWriter.WriteAttributeString('CmdletParameterSet', $_.Name)
-
+
$associatedType = GetAssociatedType $metaData $_
$associatedKeys = ((GetAllProperties $associatedType) | ? { $_.isKey })
@@ -1011,12 +1011,12 @@ function GenerateRemoveProxyCmdlet
}
#########################################################
-# GenerateActionProxyCmdlet is a helper function used
+# GenerateActionProxyCmdlet is a helper function used
# to generate Invoke-* proxy cmdlet. These proxy cmdlets
-# support Instance/Service level actions. They are
-# generated in the CDXML compliant format.
+# support Instance/Service level actions. They are
+# generated in the CDXML compliant format.
#########################################################
-function GenerateActionProxyCmdlet
+function GenerateActionProxyCmdlet
{
param
(
@@ -1106,12 +1106,12 @@ function GenerateActionProxyCmdlet
}
#########################################################
-# GenerateServiceActionProxyCmdlet is a helper function
-# used to generate Invoke-* proxy cmdlet. These proxy
-# cmdlets support all Service-level actions. They are
-# generated in the CDXML compliant format.
+# GenerateServiceActionProxyCmdlet is a helper function
+# used to generate Invoke-* proxy cmdlet. These proxy
+# cmdlets support all Service-level actions. They are
+# generated in the CDXML compliant format.
#########################################################
-function GenerateServiceActionProxyCmdlet
+function GenerateServiceActionProxyCmdlet
{
param
(
@@ -1165,19 +1165,19 @@ function GenerateServiceActionProxyCmdlet
}
#########################################################
-# GenerateModuleManifest is a helper function used
+# GenerateModuleManifest is a helper function used
# to generate a wrapper module manifest file. The
# generated module manifest is persisted to the disk at
-# the specified OutPutModule path. When the module
-# manifest is imported, the following commands will
+# the specified OutPutModule path. When the module
+# manifest is imported, the following commands will
# be imported:
# 1. Get, Set, New & Remove proxy cmdlets.
# 2. If the server side Odata endpoint exposes complex
# types, then the corresponding client side proxy
# complex types imported.
-# 3. Service Action proxy cmdlets.
+# 3. Service Action proxy cmdlets.
#########################################################
-function GenerateModuleManifest
+function GenerateModuleManifest
{
param
(
@@ -1196,8 +1196,8 @@ function GenerateModuleManifest
$NestedModules = @()
foreach ($entitySet in $metaData.EntitySets)
{
- $entitySetName = $entitySet.Name
- if(($resourceNameMapping -ne $null) -and
+ $entitySetName = $entitySet.Name
+ if(($resourceNameMapping -ne $null) -and
$resourceNameMapping.ContainsKey($entitySetName))
{
$entitySetName = $resourceNameMapping[$entitySetName]
@@ -1216,10 +1216,10 @@ function GenerateModuleManifest
}
#########################################################
-# GetBaseType is a helper function used to fetch the
-# base type of the given type.
+# GetBaseType is a helper function used to fetch the
+# base type of the given type.
#########################################################
-function GetBaseType
+function GetBaseType
{
param
(
@@ -1227,8 +1227,8 @@ function GetBaseType
[ODataUtils.Metadata] $metaData
)
- if ($metadataEntityDefinition -ne $null -and
- $metaData -ne $null -and
+ if ($metadataEntityDefinition -ne $null -and
+ $metaData -ne $null -and
$metadataEntityDefinition.BaseType -ne $null)
{
$baseType = $metaData.EntityTypes | Where {$_.Namespace+"."+$_.Name -eq $metadataEntityDefinition.BaseType}
@@ -1246,15 +1246,15 @@ function GetBaseType
#########################################################
# AddDerivedTypes is a helper function used to process
-# derived types of a newly added type, that were
+# derived types of a newly added type, that were
# previously waiting in the queue.
#########################################################
-function AddDerivedTypes
+function AddDerivedTypes
{
param
(
[ODataUtils.EntityType] $baseType,
- [Hashtable]$entityAndComplexTypesQueue,
+ [Hashtable]$entityAndComplexTypesQueue,
[ODataUtils.Metadata] $metaData,
[string] $namespace
)
@@ -1287,10 +1287,10 @@ function AddDerivedTypes
}
#########################################################
-# ParseMetadataTypeDefinition is a helper function used
+# ParseMetadataTypeDefinition is a helper function used
# to parse types definitions element of metadata xml.
#########################################################
-function ParseMetadataTypeDefinition
+function ParseMetadataTypeDefinition
{
param
(
@@ -1358,27 +1358,27 @@ function ParseMetadataTypeDefinition
}
#########################################################
-# GetAllProperties is a helper function used to fetch
-# the entity properties or navigation properties of
-# the entity type as well as that of complete base
+# GetAllProperties is a helper function used to fetch
+# the entity properties or navigation properties of
+# the entity type as well as that of complete base
# type hierarchy.
#########################################################
-function GetAllProperties
+function GetAllProperties
{
param
(
[ODataUtils.EntityType] $entityType,
- [switch] $IncludeOnlyNavigationProperties
+ [switch] $IncludeOnlyNavigationProperties
)
if($entityType -eq $null) { throw ($LocalizedData.ArguementNullError -f "EntityType", "GetAllProperties") }
$requestedProperties = @()
- # Populate EntityType property from current EntityType as well
- # as from the corresponding base types recursively if
+ # Populate EntityType property from current EntityType as well
+ # as from the corresponding base types recursively if
# $IncludeOnlyNavigationProperties switch parameter is used then follow
- # the same routine for navigation properties.
+ # the same routine for navigation properties.
$currentEntityType = $entityType
while($currentEntityType -ne $null)
{
@@ -1399,11 +1399,11 @@ function GetAllProperties
}
#########################################################
-# SplitNamespaceAndName is a helper function used
+# SplitNamespaceAndName is a helper function used
# to split Namespace and actual Name.
# e.g. "a.b.c" is namespace "a.b" and name "c"
#########################################################
-function SplitNamespaceAndName
+function SplitNamespaceAndName
{
param
(
@@ -1433,12 +1433,12 @@ function SplitNamespaceAndName
}
#########################################################
-# GetEntitySetForEntityType is a helper function used
-# to fetch EntitySet for a given EntityType by
-# searching the inheritance hierarchy in the
+# GetEntitySetForEntityType is a helper function used
+# to fetch EntitySet for a given EntityType by
+# searching the inheritance hierarchy in the
# supplied metadata.
#########################################################
-function GetEntitySetForEntityType
+function GetEntitySetForEntityType
{
param
(
@@ -1464,15 +1464,15 @@ function GetEntitySetForEntityType
}
#########################################################
-# ProcessStreamHelper is a helper function that performs
+# ProcessStreamHelper is a helper function that performs
# the following utility tasks:
# 1. Writes verbose messages to the stream.
-# 2. Writes FileInfo objects for the proxy modules
-# saved to the disk. This is done to keep the user
+# 2. Writes FileInfo objects for the proxy modules
+# saved to the disk. This is done to keep the user
# experience in consistent with Export-PSSession.
# 3. Updates progress bar.
#########################################################
-function ProcessStreamHelper
+function ProcessStreamHelper
{
param
(
@@ -1497,12 +1497,12 @@ function ProcessStreamHelper
}
#########################################################
-# GetAssociatedType is a helper function used
-# to fetch associated instance's EntityType
-# for a given Navigation property in the
+# GetAssociatedType is a helper function used
+# to fetch associated instance's EntityType
+# for a given Navigation property in the
# supplied metadata.
#########################################################
-function GetAssociatedType
+function GetAssociatedType
{
param
(
@@ -1544,13 +1544,13 @@ function GetAssociatedType
}
#########################################################
-# AddParametersNode is a helper function used
-# to add parameters to the generated proxy cmdlet,
+# AddParametersNode is a helper function used
+# to add parameters to the generated proxy cmdlet,
# based on mandatoryProperties and otherProperties.
-# PrefixForKeys is used by associations to append a
+# PrefixForKeys is used by associations to append a
# prefix to PowerShell parameter name.
#########################################################
-function AddParametersNode
+function AddParametersNode
{
param
(
@@ -1567,8 +1567,8 @@ function AddParametersNode
if($xmlWriter -eq $null) { throw ($LocalizedData.ArguementNullError -f "xmlWriter", "AddParametersNode") }
- if(($keyProperties.Length -gt 0) -or
- ($mandatoryProperties.Length -gt 0) -or
+ if(($keyProperties.Length -gt 0) -or
+ ($mandatoryProperties.Length -gt 0) -or
($otherProperties.Length -gt 0) -or
($addForceParameter))
{
@@ -1613,13 +1613,13 @@ function AddParametersNode
}
#########################################################
-# AddParametersNode is a helper function used
+# AddParametersNode is a helper function used
# to add Parameter node to CDXML based on properties.
-# Prefix is appended to PS parameter names, used for
-# associations. Suffix is appended to all parameter
+# Prefix is appended to PS parameter names, used for
+# associations. Suffix is appended to all parameter
# names, for ex. to differentiate keys. returns new $pos
#########################################################
-function AddParametersCDXML
+function AddParametersCDXML
{
param
(
@@ -1660,10 +1660,10 @@ function AddParametersCDXML
}
#########################################################
-# GenerateComplexTypeDefinition is a helper function used
+# GenerateComplexTypeDefinition is a helper function used
# to generate complex type definition from the metadata.
#########################################################
-function GenerateComplexTypeDefinition
+function GenerateComplexTypeDefinition
{
param
(
@@ -1682,7 +1682,7 @@ function GenerateComplexTypeDefinition
$Path = "$OutputModule\$typeDefinitionFileName"
- # We are currently generating classes for EntityType & ComplexType
+ # We are currently generating classes for EntityType & ComplexType
# definition exposed in the metadata.
$typesToBeGenerated = $metaData.EntityTypes+$metadata.ComplexTypes
@@ -1725,7 +1725,7 @@ using System.Management.Automation;
$entityTypes = $entityTypeNameSpaceMapping[$currentNameSpace]
$output += "`r`nnamespace $(ValidateComplexTypeIdentifier $currentNameSpace $true $metaDataUri $callerPSCmdlet)`r`n{"
-
+
foreach ($entityType in $entityTypes)
{
$entityTypeFullName = (ValidateComplexTypeIdentifier $entityType.Namespace $true $metaDataUri $callerPSCmdlet) + '.' + $entityType.Name
@@ -1759,7 +1759,7 @@ using System.Management.Automation;
$navigationTypeName = GetNavigationPropertyTypeName $property $metaData
$typeName = Convert-ODataTypeToCLRType $navigationTypeName $complexTypeMapping
$properties += "`r`n public $typeName $(ValidateComplexTypeIdentifier $property.Name $false $metaDataUri $callerPSCmdlet);"
- }
+ }
}
$output += $properties
@@ -1779,21 +1779,21 @@ using System.Management.Automation;
return $complexTypeMapping
}
-# Creating a single instance of CSharpCodeProvider that would be used
+# Creating a single instance of CSharpCodeProvider that would be used
# for Identifier validation in the ValidateComplexTypeIdentifier helper method.
$cSharpCodeProvider = [Microsoft.CSharp.CSharpCodeProvider]::new()
#########################################################
-# ValidateComplexTypeIdentifier is a helper function to
-# make sure that the type names defined in the
-# metadata are valid C# Identifier names. This validation
-# is performed to make sure that there are no security
-# threat from importing the generated complex type
+# ValidateComplexTypeIdentifier is a helper function to
+# make sure that the type names defined in the
+# metadata are valid C# Identifier names. This validation
+# is performed to make sure that there are no security
+# threat from importing the generated complex type
# (which is created using the metadata file).
-# This method return the identifier name if its a
-# valid identifier, else a terminating error in thrown.
+# This method return the identifier name if its a
+# valid identifier, else a terminating error in thrown.
#########################################################
-function ValidateComplexTypeIdentifier
+function ValidateComplexTypeIdentifier
{
param
(
@@ -1836,11 +1836,11 @@ function ValidateComplexTypeIdentifier
}
#########################################################
-# GetKeys is a helper function used to
-# return the keys for the entity if customUri
+# GetKeys is a helper function used to
+# return the keys for the entity if customUri
# is specified.
#########################################################
-function GetKeys
+function GetKeys
{
param
(
@@ -1889,7 +1889,7 @@ function GetKeys
# Foreach old key check if that key is present in the new keyList
# Else add the key to new key list
$keyParams = $keys | ForEach-Object {$_.Name}
-
+
if ($keyParams -eq $null -Or $keyParams.Count -eq 0) {
$keys = $key
}
@@ -1910,13 +1910,13 @@ function GetKeys
}
#########################################################
-# GetNetworkControllerAdditionalProperties is a helper
+# GetNetworkControllerAdditionalProperties is a helper
# function used to fetch network controller specific
# additional properties.
#########################################################
-function GetNetworkControllerAdditionalProperties
+function GetNetworkControllerAdditionalProperties
{
- param
+ param
(
$navigationProperties,
$metaData
@@ -1940,7 +1940,7 @@ function GetNetworkControllerAdditionalProperties
"IsNullable" = $isNullable;
}
}
-
+
# Add etag to the additionalProperties
if ($additionalProperties -ne $null)
@@ -1961,21 +1961,21 @@ function GetNetworkControllerAdditionalProperties
"Name" = "Etag";
"TypeName" = "Edm.String";
"IsNullable" = $true;
- }
- }
+ }
+ }
$additionalProperties
}
#########################################################
-# UpdateNetworkControllerSpecificProperties is a
-# helper function used to append additionalProperties
-# to nullable/nonNullable Properties. This is network controller
+# UpdateNetworkControllerSpecificProperties is a
+# helper function used to append additionalProperties
+# to nullable/nonNullable Properties. This is network controller
# specific logic.
#########################################################
-function UpdateNetworkControllerSpecificProperties
+function UpdateNetworkControllerSpecificProperties
{
- param
+ param
(
$nullableProperties,
$additionalProperties,
@@ -2009,7 +2009,7 @@ function UpdateNetworkControllerSpecificProperties
$keyProperties = @($keyProperties)
}
- $keys = $keyProperties | ForEach-Object {$_.Name}
+ $keys = $keyProperties | ForEach-Object {$_.Name}
if ($keys.Count -eq 1) {
$keys = @($keys)
@@ -2022,14 +2022,14 @@ function UpdateNetworkControllerSpecificProperties
}
#########################################################
-# GetNavigationPropertyTypeName is a
-# helper function used to fetch the type corresponding
-# to navigation property in this metadata. This is
+# GetNavigationPropertyTypeName is a
+# helper function used to fetch the type corresponding
+# to navigation property in this metadata. This is
# network controller specific logic.
#########################################################
-function GetNavigationPropertyTypeName
+function GetNavigationPropertyTypeName
{
- param
+ param
(
$navigationProperty,
$metaData
@@ -2054,12 +2054,12 @@ function GetNavigationPropertyTypeName
$type = $association.Type.EndType2
$multiplicity = $association.Type.Multiplicity2
}
-
+
break
}
$fullName = $type.Namespace + '.' + $type.Name
-
+
# Check the multiplicity and convert to array if needed
if ($multiplicity -eq "*")
{
diff --git a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtils.psm1 b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtils.psm1
index 2d62889262..611e45d815 100644
--- a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtils.psm1
+++ b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtils.psm1
@@ -19,11 +19,11 @@ if ($ProcessorArchitecture -eq 5)
. "$PSScriptRoot\Microsoft.PowerShell.ODataUtilsHelper.ps1"
#########################################################
-# Generates PowerShell module containing client side
-# proxy cmdlets that can be used to interact with an
+# Generates PowerShell module containing client side
+# proxy cmdlets that can be used to interact with an
# OData based server side endpoint.
-#########################################################
-function Export-ODataEndpointProxy
+#########################################################
+function Export-ODataEndpointProxy
{
[CmdletBinding(
DefaultParameterSetName='CDXML',
@@ -46,11 +46,11 @@ function Export-ODataEndpointProxy
[Parameter(Position=3, ValueFromPipelineByPropertyName=$true)]
[PSCredential] $Credential,
-
+
[Parameter(Position=4, ValueFromPipelineByPropertyName=$true)]
[ValidateSet('Put', 'Post', 'Patch')]
[string] $CreateRequestMethod='Post',
-
+
[Parameter(Position=5, ValueFromPipelineByPropertyName=$true)]
[ValidateSet('Put', 'Post', 'Patch')]
[string] $UpdateRequestMethod='Patch',
@@ -79,7 +79,7 @@ function Export-ODataEndpointProxy
[Hashtable] $Headers
)
- BEGIN
+ BEGIN
{
if (!$MetadataUri)
{
@@ -128,7 +128,7 @@ function Export-ODataEndpointProxy
$errorRecord = CreateErrorRecordHelper "ODataEndpointProxyOutputModuleExists" $errorMessage ([System.Management.Automation.ErrorCategory]::ResourceExists) $null $OutputModule
$PSCmdlet.ThrowTerminatingError($errorRecord)
}
-
+
$isWhatIf = $psboundparameters.ContainsKey("WhatIf")
if(!$OutputModuleExists)
@@ -142,12 +142,12 @@ function Export-ODataEndpointProxy
{
$resolvedOutputModulePath = Resolve-Path -Path $OutputModule -ErrorAction Stop -Verbose
if($resolvedOutputModulePath.Count -gt 1)
- {
+ {
$errorMessage = ($LocalizedData.OutputModulePathIsNotUnique -f $OutputModule)
$errorRecord = CreateErrorRecordHelper "ODataEndpointProxyOutputModulePathIsNotUnique" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $null $OutputModule
$PSCmdlet.ThrowTerminatingError($errorRecord)
}
-
+
# Make sure that the path specified is a valid file system directory path.
if([system.IO.Directory]::Exists($resolvedOutputModulePath))
{
@@ -158,7 +158,7 @@ function Export-ODataEndpointProxy
$errorMessage = ($LocalizedData.OutputModulePathIsNotFileSystemPath -f $OutputModule)
$errorRecord = CreateErrorRecordHelper "ODataEndpointProxyPathIsNotFileSystemPath" $errorMessage ([System.Management.Automation.ErrorCategory]::InvalidArgument) $null $OutputModule
$PSCmdlet.ThrowTerminatingError($errorRecord)
- }
+ }
}
$rootDir = [System.IO.Directory]::GetDirectoryRoot($OutputModule)
@@ -188,7 +188,7 @@ function Export-ODataEndpointProxy
}
}
- END
+ END
{
if($pscmdlet.ShouldProcess($Uri))
{
@@ -199,17 +199,17 @@ function Export-ODataEndpointProxy
# Import module based on selected CmdletAdapter
$adapterToImport = $CmdletAdapter
-
+
# NetworkControllerAdapter relies on ODataAdapter
if ($CmdletAdapter -eq 'NetworkControllerAdapter')
{
$adapterToImport = 'ODataAdapter'
}
-
+
Write-Debug ($LocalizedData.SelectedAdapter -f $adapterPSScript)
$adapterPSScript = "$PSScriptRoot\Microsoft.PowerShell." + $adapterToImport + ".ps1"
-
+
. $adapterPSScript
ExportODataEndpointProxy @PSBoundParameters
}
diff --git a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtilsHelper.ps1 b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtilsHelper.ps1
index 42fdc5aca5..6023cc6727 100644
--- a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtilsHelper.ps1
+++ b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataUtilsHelper.ps1
@@ -1,6 +1,6 @@
# Base class definitions used by the actual Adapter modules
$global:BaseClassDefinitions = @"
-using System;
+using System;
namespace ODataUtils
{
@@ -28,7 +28,7 @@ namespace ODataUtils
public class EntityTypeBase
{
- public String Namespace;
+ public String Namespace;
public String Name;
public TypeProperty[] EntityProperties;
public bool IsEntity;
@@ -47,7 +47,7 @@ namespace ODataUtils
public String Multiplicity2;
public String NavPropertyName2;
}
-
+
public class EntitySet
{
public String Namespace;
@@ -136,7 +136,7 @@ namespace ODataUtils
public NavigationPropertyV4[] NavigationProperties;
public String BaseTypeStr;
}
-
+
public class SingletonType
{
public String Namespace;
@@ -144,7 +144,7 @@ namespace ODataUtils
public String Name;
public String Type;
public NavigationPropertyBinding[] NavigationPropertyBindings;
- }
+ }
public class EntitySetV4
{
@@ -217,9 +217,9 @@ namespace ODataUtils
public string Alias;
public Reference[] References;
public string DefaultEntityContainerName;
- public EntitySetV4[] EntitySets;
+ public EntitySetV4[] EntitySets;
public EntityTypeV4[] EntityTypes;
- public SingletonType[] SingletonTypes;
+ public SingletonType[] SingletonTypes;
public EntityTypeV4[] ComplexTypes;
public EntityTypeV4[] TypeDefinitions;
public EnumType[] EnumTypes;
@@ -248,11 +248,11 @@ namespace ODataUtils
{
public NavigationProperty[] NavigationProperties;
}
-
+
public class Metadata : MetadataBase
{
public String DefaultEntityContainerName;
- public EntitySet[] EntitySets;
+ public EntitySet[] EntitySets;
public EntityType[] EntityTypes;
public EntityType[] ComplexTypes;
public AssociationSet[] Associations;
@@ -262,10 +262,10 @@ namespace ODataUtils
"@
#########################################################
-# GetMetaData is a helper function used to fetch metadata
+# GetMetaData is a helper function used to fetch metadata
# from the specified file or web URL.
-#########################################################
-function GetMetaData
+#########################################################
+function GetMetaData
{
param
(
@@ -286,7 +286,7 @@ function GetMetaData
# By default, proxy generation is supported on secured Uri (i.e., https).
# However if the user trusts the unsecure http uri, then they can override
# the security check by specifying -AllowSecureConnection parameter during
- # proxy generation.
+ # proxy generation.
if($uri.Scheme -eq "http" -and !$AllowUnsecureConnection.IsPresent)
{
$errorMessage = ($LocalizedData.AllowUnsecureConnectionMessage -f $callerPSCmdlet.MyInvocation.MyCommand.Name, $uri, "MetaDataUri")
@@ -392,11 +392,11 @@ function GetMetaData
}
#########################################################
-# VerifyMetadataHelper is a helper function used to
-# validate if Error/Warning message has to be displayed
-# during command collision.
+# VerifyMetadataHelper is a helper function used to
+# validate if Error/Warning message has to be displayed
+# during command collision.
#########################################################
-function VerifyMetadataHelper
+function VerifyMetadataHelper
{
param
(
@@ -421,19 +421,19 @@ function VerifyMetadataHelper
$callerPSCmdlet.WriteError($errorRecord)
}
else
- {
+ {
$warningMessage = ($localizedDataWarningString -f $entitySetName, $currentCommandName)
$callerPSCmdlet.WriteWarning($warningMessage)
}
}
#########################################################
-# CreateErrorRecordHelper is a helper function used to
+# CreateErrorRecordHelper is a helper function used to
# create an error record.
#########################################################
-function CreateErrorRecordHelper
+function CreateErrorRecordHelper
{
- param
+ param
(
[string] $errorId,
[string] $errorMessage,
@@ -452,12 +452,12 @@ function CreateErrorRecordHelper
}
#########################################################
-# ProgressBarHelper is a helper function used to
-# used to display progress message.
+# ProgressBarHelper is a helper function used to
+# used to display progress message.
#########################################################
-function ProgressBarHelper
+function ProgressBarHelper
{
- param
+ param
(
[string] $cmdletName,
[string] $status,
@@ -470,22 +470,22 @@ function ProgressBarHelper
if($cmdletName -eq $null) { throw ($LocalizedData.ArguementNullError -f "CmdletName", "ProgressBarHelper") }
if($status -eq $null) { throw ($LocalizedData.ArguementNullError -f "Status", "ProgressBarHelper") }
- if($currentEntryCount -gt 0 -and
- $totalNumberofEntries -gt 0 -and
- $previousSegmentWeight -ge 0 -and
+ if($currentEntryCount -gt 0 -and
+ $totalNumberofEntries -gt 0 -and
+ $previousSegmentWeight -ge 0 -and
$currentSegmentWeight -gt 0)
{
$entryDefaultWeight = $currentSegmentWeight/[double]$totalNumberofEntries
$percentComplete = $previousSegmentWeight + ($entryDefaultWeight * $currentEntryCount)
- Write-Progress -Activity $cmdletName -Status $status -PercentComplete $percentComplete
+ Write-Progress -Activity $cmdletName -Status $status -PercentComplete $percentComplete
}
}
#########################################################
-# Convert-ODataTypeToCLRType is a helper function used to
+# Convert-ODataTypeToCLRType is a helper function used to
# Convert OData type to its CLR equivalent.
#########################################################
-function Convert-ODataTypeToCLRType
+function Convert-ODataTypeToCLRType
{
param
(
@@ -495,7 +495,7 @@ function Convert-ODataTypeToCLRType
if($typeName -eq $null) { throw ($LocalizedData.ArguementNullError -f "TypeName", "Convert-ODataTypeToCLRType ") }
- switch ($typeName)
+ switch ($typeName)
{
"Edm.Binary" {"Byte[]"}
"Edm.Boolean" {"Boolean"}
@@ -513,10 +513,10 @@ function Convert-ODataTypeToCLRType
"Edm.PropertyPath" {"String"}
"switch" {"switch"}
"Edm.DateTimeOffset" {"DateTimeOffset"}
- default
+ default
{
- if($complexTypeMapping -ne $null -and
- $complexTypeMapping.Count -gt 0 -and
+ if($complexTypeMapping -ne $null -and
+ $complexTypeMapping.Count -gt 0 -and
$complexTypeMapping.ContainsKey($typeName))
{
$typeName
@@ -539,11 +539,11 @@ function Convert-ODataTypeToCLRType
}
#########################################################
-# SaveCDXMLHeader is a helper function used
-# to save CDXML headers common to all
+# SaveCDXMLHeader is a helper function used
+# to save CDXML headers common to all
# PSODataUtils modules.
#########################################################
-function SaveCDXMLHeader
+function SaveCDXMLHeader
{
param
(
@@ -591,7 +591,7 @@ function SaveCDXMLHeader
$xmlWriter.WriteStartElement('Class')
$xmlWriter.WriteAttributeString('ClassName', $fullName)
$xmlWriter.WriteAttributeString('ClassVersion', '1.0.0')
-
+
$DotNetAdapter = 'Microsoft.PowerShell.Cmdletization.OData.ODataCmdletAdapter'
if ($CmdletAdapter -eq "NetworkControllerAdapter") {
@@ -600,7 +600,7 @@ function SaveCDXMLHeader
elseif ($CmdletAdapter -eq "ODataV4Adapter") {
$DotNetAdapter = 'Microsoft.PowerShell.Cmdletization.OData.ODataV4CmdletAdapter'
}
-
+
$xmlWriter.WriteAttributeString('CmdletAdapter', $DotNetAdapter + ', Microsoft.PowerShell.Cmdletization.OData, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35')
$xmlWriter.WriteElementString('Version', '1.0')
@@ -610,11 +610,11 @@ function SaveCDXMLHeader
}
#########################################################
-# SaveCDXMLFooter is a helper function used
-# to save CDXML closing attributes corresponding
+# SaveCDXMLFooter is a helper function used
+# to save CDXML closing attributes corresponding
# to SaveCDXMLHeader function.
#########################################################
-function SaveCDXMLFooter
+function SaveCDXMLFooter
{
param
(
@@ -632,13 +632,13 @@ function SaveCDXMLFooter
}
#########################################################
-# AddParametersNode is a helper function used
-# to add parameters to the generated proxy cmdlet,
+# AddParametersNode is a helper function used
+# to add parameters to the generated proxy cmdlet,
# based on mandatoryProperties and otherProperties.
-# PrefixForKeys is used by associations to append a
+# PrefixForKeys is used by associations to append a
# prefix to PowerShell parameter name.
#########################################################
-function AddParametersNode
+function AddParametersNode
{
param
(
@@ -655,8 +655,8 @@ function AddParametersNode
if($xmlWriter -eq $null) { throw ($LocalizedData.ArguementNullError -f "xmlWriter", "AddParametersNode") }
- if(($keyProperties.Length -gt 0) -or
- ($mandatoryProperties.Length -gt 0) -or
+ if(($keyProperties.Length -gt 0) -or
+ ($mandatoryProperties.Length -gt 0) -or
($otherProperties.Length -gt 0) -or
($addForceParameter))
{
@@ -701,13 +701,13 @@ function AddParametersNode
}
#########################################################
-# AddParametersCDXML is a helper function used
+# AddParametersCDXML is a helper function used
# to add Parameter node to CDXML based on properties.
-# Prefix is appended to PS parameter names, used for
-# associations. Suffix is appended to all parameter
+# Prefix is appended to PS parameter names, used for
+# associations. Suffix is appended to all parameter
# names, for ex. to differentiate keys. returns new $pos
#########################################################
-function AddParametersCDXML
+function AddParametersCDXML
{
param
(
@@ -748,11 +748,11 @@ function AddParametersCDXML
}
#########################################################
-# GenerateSetProxyCmdlet is a helper function used
+# GenerateSetProxyCmdlet is a helper function used
# to generate Set-* proxy cmdlet. The proxy cmdlet is
-# generated in the CDXML compliant format.
+# generated in the CDXML compliant format.
#########################################################
-function GenerateSetProxyCmdlet
+function GenerateSetProxyCmdlet
{
param
(
diff --git a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataV4Adapter.ps1 b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataV4Adapter.ps1
index a37dddaadb..b7aa441111 100644
--- a/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataV4Adapter.ps1
+++ b/src/Modules/Windows-Full/Microsoft.PowerShell.ODataUtils/Microsoft.PowerShell.ODataV4Adapter.ps1
@@ -4,11 +4,11 @@ Import-LocalizedData LocalizedData -FileName Microsoft.PowerShell.ODataUtilsStri
Add-Type -TypeDefinition $global:BaseClassDefinitions
#########################################################
-# Generates PowerShell module containing client side
-# proxy cmdlets that can be used to interact with an
+# Generates PowerShell module containing client side
+# proxy cmdlets that can be used to interact with an
# OData based server side endpoint.
-#########################################################
-function ExportODataEndpointProxy
+#########################################################
+function ExportODataEndpointProxy
{
param
(
@@ -33,8 +33,8 @@ function ExportODataEndpointProxy
# used to avoid parsing the same file twice, if referenced in multiple
# metadata files
$script:processedFiles = @()
-
- # Record of all referenced and parsed metadata files (including entry point metadata)
+
+ # Record of all referenced and parsed metadata files (including entry point metadata)
$script:GlobalMetadata = New-Object System.Collections.ArrayList
# The namespace name might have invalid characters or might be conflicting with class names in inheritance scenarios
@@ -59,7 +59,7 @@ function ExportODataEndpointProxy
VerifyMetadata $GlobalMetadata $AllowClobber.IsPresent $PSCmdlet $ProgressBarStatus
- # Get Uri Resource path key format. It can be either 'EmbeddedKey' or 'SeparateKey'.
+ # Get Uri Resource path key format. It can be either 'EmbeddedKey' or 'SeparateKey'.
# If not provided, default value will be set to 'EmbeddedKey'.
$UriResourcePathKeyFormat = 'EmbeddedKey'
if ($CustomData -and $CustomData.ContainsKey("UriResourcePathKeyFormat"))
@@ -71,10 +71,10 @@ function ExportODataEndpointProxy
}
#########################################################
-# GetTypeInfo is a helper method used to get all the types
+# GetTypeInfo is a helper method used to get all the types
# from metadata files in a recursive manner
#########################################################
-function GetTypeInfo
+function GetTypeInfo
{
param
(
@@ -89,11 +89,11 @@ function GetTypeInfo
$metadataSet = New-Object System.Collections.ArrayList
$metadataXML = GetMetaData $MetadataUri $callerPSCmdlet $ODataEndpointProxyParameters.Credential $Headers $ODataEndpointProxyParameters.AllowUnsecureConnection
$script:processedFiles += $MetadataUri
-
+
# parses all referenced metadata XML files recursively
- foreach ($reference in $metadataXML.Edmx.Reference)
+ foreach ($reference in $metadataXML.Edmx.Reference)
{
- if (-not $script:processedFiles.Contains($reference.Uri))
+ if (-not $script:processedFiles.Contains($reference.Uri))
{
$tmpMetadataSet = $null
$tmpMetadataSet = GetTypeInfo -callerPSCmdlet $callerPSCmdlet -MetadataUri $reference.Uri -ODataEndpointProxyParameters $ODataEndpointProxyParameters
@@ -168,7 +168,7 @@ function NormalizeNamespace
}
}
- # Print warning
+ # Print warning
if ($doesNamespaceContainsInvalidChars)
{
# Normalization needed
@@ -201,7 +201,7 @@ function NormalizeNamespaceCollisionWithClassName
# BaseTypeStr contains Namespace and TypeName. Extract Namespace name.
$dotNetNamespace = $BaseTypeName.SubString(0, $BaseTypeName.LastIndexOf("."))
}
-
+
if (![string]::IsNullOrEmpty($dotNetNamespace) -and $InheritingType -eq $dotNetNamespace)
{
# Collision between namespace name and type name detected (example: namespace TaskService { class Service : Service.BasicService { ... } ... })
@@ -213,7 +213,7 @@ function NormalizeNamespaceCollisionWithClassName
}
#########################################################
-# This helper method is used by functions,
+# This helper method is used by functions,
# writing directly to CDXML files or to .Net namespace/class definitions ComplexTypes file
#########################################################
function GetNamespace
@@ -233,10 +233,10 @@ function GetNamespace
{
if ($Namespace.LastIndexOf(".") -gt 0)
{
- # For example, from following namespace (Namespace.TypeName) Service.1.0.0.Service we'll extract only namespace name, which is Service.1.0.0
+ # For example, from following namespace (Namespace.TypeName) Service.1.0.0.Service we'll extract only namespace name, which is Service.1.0.0
$dotNetNamespace = $Namespace.SubString(0, $Namespace.LastIndexOf("."))
- $dotNetClassName = $Namespace.SubString($Namespace.LastIndexOf(".") + 1, $Namespace.Length - $Namespace.LastIndexOf(".") - 1)
- }
+ $dotNetClassName = $Namespace.SubString($Namespace.LastIndexOf(".") + 1, $Namespace.Length - $Namespace.LastIndexOf(".") - 1)
+ }
}
# Check if the namespace has to be normalized.
@@ -244,18 +244,18 @@ function GetNamespace
{
$dotNetNamespace = $NormalizedNamespaces.Get_Item($dotNetNamespace)
}
-
+
if (![string]::IsNullOrEmpty($dotNetClassName))
{
return ($dotNetNamespace + "." + $dotNetClassName)
}
- else
+ else
{
return $dotNetNamespace
}
}
-function NormalizeNamespaceHelper
+function NormalizeNamespaceHelper
{
param
(
@@ -266,7 +266,7 @@ function NormalizeNamespaceHelper
# For example, following namespace: Service.1.0.0
# Will change to: Service_1_0_0
- # Ns postfix in Namespace name will allow to differentiate between this namespace
+ # Ns postfix in Namespace name will allow to differentiate between this namespace
# and a colliding type name from different namespace
$updatedNs = $Namespace
if ($DoesNamespaceContainsInvalidChars)
@@ -282,7 +282,7 @@ function NormalizeNamespaceHelper
}
#########################################################
-# Processes EntityTypes (OData V4 schema) from plain text
+# Processes EntityTypes (OData V4 schema) from plain text
# xml metadata into our custom structure
#########################################################
function ParseEntityTypes
@@ -316,7 +316,7 @@ function ParseEntityTypes
# Check if Namespace has to be normalized because of the collision with the inheriting Class name
NormalizeNamespaceCollisionWithClassName -InheritingType $entityType.Name -BaseTypeName $entityType.BaseType -MetadataUri $Metadata.Uri
}
-
+
[ODataUtils.EntityTypeV4] $newType = ParseMetadataTypeDefinition $entityType $baseType $Metadata $schema.Namespace $Alias $true $entityType.BaseType
$Metadata.EntityTypes += $newType
AddDerivedTypes $newType $entityAndComplexTypesQueue $Metadata $SchemaXML.Namespace
@@ -324,7 +324,7 @@ function ParseEntityTypes
}
#########################################################
-# Processes ComplexTypes from plain text xml metadata
+# Processes ComplexTypes from plain text xml metadata
# into our custom structure
#########################################################
function ParseComplexTypes
@@ -341,7 +341,7 @@ function ParseComplexTypes
)
if($SchemaXML -eq $null) { throw ($LocalizedData.ArguementNullError -f "SchemaXML", "ParseComplexTypes") }
-
+
foreach ($complexType in $SchemaXML.ComplexType)
{
$baseType = $null
@@ -355,7 +355,7 @@ function ParseComplexTypes
$entityAndComplexTypesQueue[$complexType.BaseType] += @(@{type='ComplexType'; value=$complexType})
continue
}
-
+
# Check if Namespace has to be normalized because of the collision with the inheriting Class name
NormalizeNamespaceCollisionWithClassName -InheritingType $complexType.Name -BaseTypeName $complexType.BaseType -MetadataUri $Metadata.Uri
}
@@ -367,7 +367,7 @@ function ParseComplexTypes
}
#########################################################
-# Processes TypeDefinition from plain text xml metadata
+# Processes TypeDefinition from plain text xml metadata
# into our custom structure
#########################################################
function ParseTypeDefinitions
@@ -381,9 +381,9 @@ function ParseTypeDefinitions
[AllowEmptyString()]
[string] $Alias
)
-
+
if($SchemaXML -eq $null) { throw ($LocalizedData.ArguementNullError -f "SchemaXML", "ParseTypeDefinitions") }
-
+
foreach ($typeDefinition in $SchemaXML.TypeDefinition)
{
@@ -398,7 +398,7 @@ function ParseTypeDefinitions
}
#########################################################
-# Processes EnumTypes from plain text xml metadata
+# Processes EnumTypes from plain text xml metadata
# into our custom structure
#########################################################
function ParseEnumTypes
@@ -410,9 +410,9 @@ function ParseEnumTypes
)
if($SchemaXML -eq $null) { throw ($LocalizedData.ArguementNullError -f "SchemaXML", "ParseEnumTypes") }
-
+
foreach ($enum in $SchemaXML.EnumType)
- {
+ {
$newEnumType = [ODataUtils.EnumType] @{
"Namespace" = $Metadata.Namespace;
"Alias" = $Metadata.Alias;
@@ -425,7 +425,7 @@ function ParseEnumTypes
if (!$newEnumType.UnderlyingType)
{
# If no type specified set the default type which is Edm.Int32
- $newEnumType.UnderlyingType = "Edm.Int32"
+ $newEnumType.UnderlyingType = "Edm.Int32"
}
if ($newEnumType.IsFlags -eq $null)
@@ -440,7 +440,7 @@ function ParseEnumTypes
# Now parse EnumType elements
foreach ($element in $enum.Member)
{
-
+
if ($element.Value -eq "" -and $newEnumType.IsFlags -eq $true)
{
# When IsFlags set to true each edm:Member element MUST specify a non-negative integer Value in the value attribute
@@ -452,7 +452,7 @@ function ParseEnumTypes
}
elseif (($element.Value -eq $null) -or ($element.Value.GetType().Name -eq "Int32" -and $element.Value -eq ""))
{
- # If no values are specified, the members are assigned consecutive integer values in the order of their appearance,
+ # If no values are specified, the members are assigned consecutive integer values in the order of their appearance,
# starting with zero for the first member.
$currentEnumValue = $enumValue
}
@@ -468,14 +468,14 @@ function ParseEnumTypes
$newEnumType.Members += $tmp
$enumValue++
- }
-
+ }
+
$Metadata.EnumTypes += $newEnumType
}
}
#########################################################
-# Processes SingletonTypes from plain text xml metadata
+# Processes SingletonTypes from plain text xml metadata
# into our custom structure
#########################################################
function ParseSingletonTypes
@@ -487,13 +487,13 @@ function ParseSingletonTypes
)
if($SchemaEntityContainerXML -eq $null) { throw ($LocalizedData.ArguementNullError -f "SchemaEntityContainerXML", "ParseSingletonTypes") }
-
+
foreach ($singleton in $SchemaEntityContainerXML.Singleton)
{
$navigationPropertyBindings = @()
foreach ($navigationPropertyBinding in $singleton.NavigationPropertyBinding)
- {
+ {
$tmp = [ODataUtils.NavigationPropertyBinding] @{
"Path" = $navigationPropertyBinding.Path;
"Target" = $navigationPropertyBinding.Target;
@@ -515,7 +515,7 @@ function ParseSingletonTypes
}
#########################################################
-# Processes EntitySets from plain text xml metadata
+# Processes EntitySets from plain text xml metadata
# into our custom structure
#########################################################
function ParseEntitySets
@@ -528,7 +528,7 @@ function ParseEntitySets
[AllowEmptyString()]
[string] $Alias
)
-
+
if($SchemaEntityContainerXML -eq $null) { throw ($LocalizedData.ArguementNullError -f "SchemaEntityContainerXML", "ParseEntitySets") }
$entityTypeToEntitySetMapping = @{};
@@ -553,13 +553,13 @@ function ParseEntitySets
"Name" = $entitySet.Name;
"Type" = $entityType;
}
-
+
$Metadata.EntitySets += $newEntitySet
}
}
#########################################################
-# Processes Actions from plain text xml metadata
+# Processes Actions from plain text xml metadata
# into our custom structure
#########################################################
function ParseActions
@@ -571,7 +571,7 @@ function ParseActions
)
if($SchemaActionsXML -eq $null) { throw ($LocalizedData.ArguementNullError -f "SchemaActionsXML", "ParseActions") }
-
+
foreach ($action in $SchemaActionsXML)
{
# HttpMethod is only used for legacy Service Operations
@@ -583,7 +583,7 @@ function ParseActions
"Name" = $action.Name;
"Action" = $Metadata.Namespace + '.' + $action.Name;
}
-
+
# Actions are always SideEffecting, otherwise it's an OData function
foreach ($parameter in $action.Parameter)
{
@@ -616,7 +616,7 @@ function ParseActions
}
#########################################################
-# Processes Functions from plain text xml metadata
+# Processes Functions from plain text xml metadata
# into our custom structure
#########################################################
function ParseFunctions
@@ -628,7 +628,7 @@ function ParseFunctions
)
if($SchemaFunctionsXML -eq $null) { throw ($LocalizedData.ArguementNullError -f "SchemaFunctionsXML", "ParseFunctions") }
-
+
foreach ($function in $SchemaFunctionsXML)
{
# HttpMethod is only used for legacy Service Operations
@@ -688,7 +688,7 @@ function ParseFunctions
# Processes plain text xml metadata (OData V4 schema version) into our custom structure
# MetadataSet contains all parsed so far referenced Metadatas (for base class lookup)
#########################################################
-function ParseMetadata
+function ParseMetadata
{
param
(
@@ -760,7 +760,7 @@ function ParseMetadata
#########################################################
# Verifies processed metadata for correctness
#########################################################
-function VerifyMetadata
+function VerifyMetadata
{
param
(
@@ -778,7 +778,7 @@ function VerifyMetadata
$reservedProperties = @("Filter", "OrderBy", "Skip", "Top", "ConnectionUri", "CertificateThumbPrint", "Credential")
$validEntitySets = @()
$sessionCommands = Get-Command -All
-
+
foreach ($metadata in $metadataSet)
{
@@ -809,7 +809,7 @@ function VerifyMetadata
$callerPSCmdlet.WriteError($errorRecord)
}
else
- {
+ {
$warningMessage = ($LocalizedData.EntitySetProxyCreationWithWarning -f $entitySet.Name, $entityProperty.Name, $entitySet.Type.Name)
$callerPSCmdlet.WriteWarning($warningMessage)
}
@@ -818,10 +818,10 @@ function VerifyMetadata
foreach($currentCommand in $sessionCommands)
{
- if(($null -ne $currentCommand.Noun -and $currentCommand.Noun -eq $entitySet.Name) -and
- ($currentCommand.Verb -eq "Get" -or
- $currentCommand.Verb -eq "Set" -or
- $currentCommand.Verb -eq "New" -or
+ if(($null -ne $currentCommand.Noun -and $currentCommand.Noun -eq $entitySet.Name) -and
+ ($currentCommand.Verb -eq "Get" -or
+ $currentCommand.Verb -eq "Set" -or
+ $currentCommand.Verb -eq "New" -or
$currentCommand.Verb -eq "Remove"))
{
$hasConflictingCommand = $true
@@ -834,7 +834,7 @@ function VerifyMetadata
foreach($currentAction in $metadata.Actions)
{
$actionCommand = "Invoke-" + "$($entitySet.Name)$($currentAction.Verb)"
-
+
foreach($currentCommand in $sessionCommands)
{
if($actionCommand -eq $currentCommand.Name)
@@ -886,10 +886,10 @@ function VerifyMetadata
}
#########################################################
-# Takes xml definition of a class from metadata document,
+# Takes xml definition of a class from metadata document,
# plus existing metadata structure and finds its base class
#########################################################
-function GetBaseType
+function GetBaseType
{
param
(
@@ -899,8 +899,8 @@ function GetBaseType
[System.Collections.ArrayList] $GlobalMetadata
)
- if ($metadataEntityDefinition -ne $null -and
- $metaData -ne $null -and
+ if ($metadataEntityDefinition -ne $null -and
+ $metaData -ne $null -and
$MetadataEntityDefinition.BaseType -ne $null)
{
$baseType = $Metadata.EntityTypes | Where { $_.Namespace + "." + $_.Name -eq $MetadataEntityDefinition.BaseType -or $_.Alias + "." + $_.Name -eq $MetadataEntityDefinition.BaseType }
@@ -931,10 +931,10 @@ function GetBaseType
}
#########################################################
-# Takes base class name and global metadata structure
+# Takes base class name and global metadata structure
# and finds its base class
#########################################################
-function GetBaseTypeByName
+function GetBaseTypeByName
{
param
(
@@ -944,7 +944,7 @@ function GetBaseTypeByName
if ($BaseTypeStr -ne $null)
{
-
+
# Look for base class definition in all referenced metadatas (including entry point)
foreach ($referencedMetadata in $GlobalMetadata)
{
@@ -962,13 +962,13 @@ function GetBaseTypeByName
$baseType[0]
}
else
- {
+ {
$null
}
}
#########################################################
-# Processes derived types of a newly added type,
+# Processes derived types of a newly added type,
# that were previously waiting in the queue
#########################################################
function AddDerivedTypes {
@@ -989,7 +989,7 @@ function AddDerivedTypes {
if ($entityAndComplexTypesQueue.ContainsKey($baseTypeFullName) -or $entityAndComplexTypesQueue.ContainsKey($baseTypeShortName))
{
$types = $entityAndComplexTypesQueue[$baseTypeFullName] + $entityAndComplexTypesQueue[$baseTypeShortName]
-
+
foreach ($type in $types)
{
if ($type.type -eq 'EntityType')
@@ -1011,7 +1011,7 @@ function AddDerivedTypes {
#########################################################
# Parses types definitions element of metadata xml
#########################################################
-function ParseMetadataTypeDefinitionHelper
+function ParseMetadataTypeDefinitionHelper
{
param
(
@@ -1024,7 +1024,7 @@ function ParseMetadataTypeDefinitionHelper
[string] $alias,
[bool] $isEntity
)
-
+
if($metadataEntityDefinition -eq $null) { throw ($LocalizedData.ArguementNullError -f "MetadataEntityDefinition", "ParseMetadataTypeDefinition") }
if($namespace -eq $null) { throw ($LocalizedData.ArguementNullError -f "Namespace", "ParseMetadataTypeDefinition") }
@@ -1058,12 +1058,12 @@ function ParseMetadataTypeDefinitionHelper
}
# odataId property will be inherited from base type, if it exists.
- # Otherwise, it should be added to current type
+ # Otherwise, it should be added to current type
if ($baseType -eq $null)
{
# @odata.Id property (renamed to odataId) is required for dynamic Uri creation
- # This property is only available when user executes auto-generated cmdlet with -AllowAdditionalData,
- # but ODataAdapter needs it to construct Uri to access navigation properties.
+ # This property is only available when user executes auto-generated cmdlet with -AllowAdditionalData,
+ # but ODataAdapter needs it to construct Uri to access navigation properties.
# Thus, we need to fetch this info for scenario when -AllowAdditionalData isn't used.
$newEntityType.EntityProperties += [ODataUtils.TypeProperty] @{
"Name" = "odataId";
@@ -1072,8 +1072,8 @@ function ParseMetadataTypeDefinitionHelper
}
}
- # Property name can't be identical to entity type name.
- # If such property exists, "Property" suffix will be added to its name.
+ # Property name can't be identical to entity type name.
+ # If such property exists, "Property" suffix will be added to its name.
foreach ($property in $newEntityType.EntityProperties)
{
if ($property.Name -eq $newEntityType.Name)
@@ -1181,7 +1181,7 @@ function ParseMetadataTypeDefinitionNavigationProperties
#########################################################
# Parses types definitions element of metadata xml for OData V4 schema
#########################################################
-function ParseMetadataTypeDefinition
+function ParseMetadataTypeDefinition
{
param
(
@@ -1205,10 +1205,10 @@ function ParseMetadataTypeDefinition
}
#########################################################
-# Create psd1 and cdxml files required to auto-generate
+# Create psd1 and cdxml files required to auto-generate
# cmdlets for given service.
#########################################################
-function GenerateClientSideProxyModule
+function GenerateClientSideProxyModule
{
param
(
@@ -1228,7 +1228,7 @@ function GenerateClientSideProxyModule
if($progressBarStatus -eq $null) { throw ($LocalizedData.ArguementNullError -f "ProgressBarStatus", "GenerateClientSideProxyModule") }
Write-Verbose ($LocalizedData.VerboseSavingModule -f $OutputModule)
-
+
# Save ComplexTypes for all metadata schemas in single file
$typeDefinitionFileName = "ComplexTypeDefinitions.psm1"
$complexTypeMapping = GenerateComplexTypeDefinition $GlobalMetadata $OutputModule $typeDefinitionFileName $NormalizedNamespaces
@@ -1237,7 +1237,7 @@ function GenerateClientSideProxyModule
$actions = @()
$functions = @()
-
+
$currentEntryCount = 0
foreach ($Metadata in $GlobalMetadata)
{
@@ -1286,7 +1286,7 @@ function GenerateClientSideProxyModule
#########################################################
# Generates CDXML module for a specific OData EntitySet
#########################################################
-function SaveCDXML
+function SaveCDXML
{
param
(
@@ -1308,8 +1308,8 @@ function SaveCDXML
if($EntitySet -eq $null) { throw ($LocalizedData.ArguementNullError -f "EntitySet", "GenerateClientSideProxyModule") }
if($Metadata -eq $null) { throw ($LocalizedData.ArguementNullError -f "metadata", "GenerateClientSideProxyModule") }
- $entitySetName = $EntitySet.Name
- if(($null -ne $resourceNameMappings) -and
+ $entitySetName = $EntitySet.Name
+ if(($null -ne $resourceNameMappings) -and
$resourceNameMappings.ContainsKey($entitySetName))
{
$entitySetName = $resourceNameMappings[$entitySetName]
@@ -1330,9 +1330,9 @@ function SaveCDXML
$xmlWriter = SaveCDXMLHeader $xmlWriter $Uri $EntitySet.Name $entitySetName $CmdletAdapter
- # Get the keys
+ # Get the keys
$keys = $EntitySet.Type.EntityProperties | Where-Object { $_.IsKey }
-
+
$navigationProperties = $EntitySet.Type.NavigationProperties
SaveCDXMLInstanceCmdlets $xmlWriter $Metadata $GlobalMetadata $EntitySet.Type $keys $navigationProperties $CmdletAdapter $complexTypeMapping $false
@@ -1346,7 +1346,7 @@ function SaveCDXML
$keyProperties = $keys
SaveCDXMLNewCmdlet $xmlWriter $Metadata $GlobalMetadata $keyProperties $nonNullableProperties $nullableProperties $navigationProperties $CmdletAdapter $complexTypeMapping
-
+
GenerateSetProxyCmdlet $xmlWriter $keyProperties $nonKeyProperties $complexTypeMapping
SaveCDXMLRemoveCmdlet $xmlWriter $Metadata $GlobalMetadata $keyProperties $navigationProperties $CmdletAdapter $complexTypeMapping
@@ -1372,7 +1372,7 @@ function SaveCDXML
}
$xmlWriter.WriteEndElement()
-
+
$normalizedDotNetNamespace = GetNamespace $EntitySet.Type.Namespace $normalizedNamespaces
$normalizedDotNetAlias = GetNamespace $EntitySet.Alias $normalizedNamespaces
$normalizedDotNetEntitySetNamespace = $normalizedDotNetNamespace
@@ -1398,7 +1398,7 @@ function SaveCDXML
$xmlWriter.WriteAttributeString('Name', 'EntitySetName')
$xmlWriter.WriteString("$($normalizedDotNetEntitySetNamespace).$($EntitySet.Name)")
$xmlWriter.WriteEndElement()
-
+
# Add URI resource path format (webservice.svc/ResourceName/ResourceId vs webservice.svc/ResourceName(QueryKeyName=ResourceId))
if ($UriResourcePathKeyFormat -ne $null -and $UriResourcePathKeyFormat -ne '')
{
@@ -1408,7 +1408,7 @@ function SaveCDXML
$xmlWriter.WriteEndElement()
}
- # Add information about navigation properties and their types
+ # Add information about navigation properties and their types
# Used in scenario where user requests navigation property in -Select query
foreach ($navProperty in $navigationProperties)
{
@@ -1420,7 +1420,7 @@ function SaveCDXML
$xmlWriter.WriteEndElement()
}
}
-
+
# Add CreateRequestMethod and UpdateRequestMethod to privateData
$xmlWriter.WriteStartElement('Data')
$xmlWriter.WriteAttributeString('Name', 'CreateRequestMethod')
@@ -1442,7 +1442,7 @@ function SaveCDXML
#########################################################
# Save Singleton Cmdlets to CDXML
#########################################################
-function SaveCDXMLSingletonCmdlets
+function SaveCDXMLSingletonCmdlets
{
param
(
@@ -1477,7 +1477,7 @@ function SaveCDXMLSingletonCmdlets
# Get associated EntityType
$associatedEntityType = $Metadata.EntityTypes | Where-Object { $_.Namespace + "." + $_.Name -eq $singletonType -or $_.Alias + "." + $_.Name -eq $singletonType}
-
+
if ($associatedEntityType -eq $null)
{
# Look in other metadatas, since the class can be defined in referenced metadata
@@ -1508,7 +1508,7 @@ function SaveCDXMLSingletonCmdlets
$navigationProperties = $associatedEntityType.NavigationProperties
- SaveCDXMLInstanceCmdlets $xmlWriter $Metadata $GlobalMetadata $associatedEntityType $keys $navigationProperties $CmdletAdapter $complexTypeMapping $true
+ SaveCDXMLInstanceCmdlets $xmlWriter $Metadata $GlobalMetadata $associatedEntityType $keys $navigationProperties $CmdletAdapter $complexTypeMapping $true
$nonKeyProperties = $associatedEntityType.EntityProperties | ? { -not $_.isKey }
$nullableProperties = $nonKeyProperties | ? { $_.isNullable }
@@ -1529,7 +1529,7 @@ function SaveCDXMLSingletonCmdlets
$xmlWriter = SaveCDXMLAction $xmlWriter $Metadata $action $EntitySet.Name $true $keys $complexTypeMapping
}
}
-
+
$entityFunctions = $Metadata.Functions | Where-Object { $_.EntitySet.Name -eq $associatedEntityType.Name }
if ($entityFunctions.Length -gt 0)
@@ -1567,7 +1567,7 @@ function SaveCDXMLSingletonCmdlets
$xmlWriter.WriteString("True")
$xmlWriter.WriteEndElement()
- # Add information about navigation properties and their types
+ # Add information about navigation properties and their types
# Used in scenario where user requests navigation property in -Select query
foreach ($navProperty in $navigationProperties)
{
@@ -1597,12 +1597,12 @@ function SaveCDXMLSingletonCmdlets
#########################################################
# Saves InstanceCmdlets node to CDXML
#########################################################
-function SaveCDXMLInstanceCmdlets
+function SaveCDXMLInstanceCmdlets
{
param
(
[System.XMl.XmlTextWriter] $xmlWriter,
- [ODataUtils.MetadataV4] $Metadata,
+ [ODataUtils.MetadataV4] $Metadata,
[System.Collections.ArrayList] $GlobalMetadata,
[ODataUtils.EntityTypeV4] $EntityType,
$keys,
@@ -1620,9 +1620,9 @@ function SaveCDXMLInstanceCmdlets
# adding key parameters and association parameters to QueryableProperties, each in a different parameter set
# to be used by GET cmdlet
if (($keys.Length -gt 0) -or ($navigationProperties.Length -gt 0))
- {
- $queryableNavProperties = @{}
-
+ {
+ $queryableNavProperties = @{}
+
if ($isSingleton -eq $false)
{
foreach ($navProperty in $navigationProperties)
@@ -1631,21 +1631,21 @@ function SaveCDXMLInstanceCmdlets
{
$associatedType = GetAssociatedType $Metadata $GlobalMetadata $navProperty
$associatedTypeKeyProperties = $associatedType.EntityProperties | ? { $_.IsKey }
-
+
# Make sure associated parameter (based on navigation property) has EntitySet or Singleton, which makes it accessible from the service root
# Otherwise the Uri for associated navigation property won't be valid
if ($associatedTypeKeyProperties.Length -gt 0 -and (ShouldBeAssociatedParameter $GlobalMetadata $EntityType $associatedType $isSingleton))
- {
+ {
$queryableNavProperties.Add($navProperty, $associatedTypeKeyProperties)
}
}
}
}
-
+
$defaultCmdletParameterSet = 'Default'
if ($isSingleton -eq $true -and $queryableNavProperties.Count -gt 0)
{
- foreach($item in $queryableNavProperties.GetEnumerator())
+ foreach($item in $queryableNavProperties.GetEnumerator())
{
$defaultCmdletParameterSet = $item.Key.Name
break
@@ -1653,11 +1653,11 @@ function SaveCDXMLInstanceCmdlets
}
$xmlWriter.WriteAttributeString('DefaultCmdletParameterSet', $defaultCmdletParameterSet)
-
+
$xmlWriter.WriteStartElement('QueryableProperties')
-
+
$position = 0
-
+
if ($isSingleton -eq $false)
{
$keys | ? { $_ -ne $null } | % {
@@ -1682,10 +1682,10 @@ function SaveCDXMLInstanceCmdlets
$position++
}
}
-
+
if ($queryableNavProperties.Count -gt 0)
{
- foreach($item in $queryableNavProperties.GetEnumerator())
+ foreach($item in $queryableNavProperties.GetEnumerator())
{
$xmlWriter.WriteStartElement('Property')
$xmlWriter.WriteAttributeString('PropertyName', $item.Key.Name + ':' + $item.Value.Name + ':Key')
@@ -1709,24 +1709,24 @@ function SaveCDXMLInstanceCmdlets
if ($isSingleton -eq $false)
{
# Add Query Parameters (i.e., Top, Skip, OrderBy, Filter) to the generated Get-* cmdlets.
- $queryParameters =
+ $queryParameters =
@{
"Filter" = "Edm.String";
"IncludeTotalResponseCount" = "switch";
"OrderBy" = "Edm.String";
- "Select" = "Edm.String";
- "Skip" = "Edm.Int32";
+ "Select" = "Edm.String";
+ "Skip" = "Edm.Int32";
"Top" = "Edm.Int32";
}
}
else
{
- $queryParameters =
+ $queryParameters =
@{
"Select" = "Edm.String";
}
}
-
+
foreach($currentQueryParameter in $queryParameters.Keys)
{
$xmlWriter.WriteStartElement('Property')
@@ -1756,12 +1756,12 @@ function SaveCDXMLInstanceCmdlets
$xmlWriter.WriteEndElement()
$xmlWriter.WriteEndElement()
$xmlWriter.WriteEndElement()
- }
-
-
+ }
+
+
$xmlWriter.WriteEndElement()
}
-
+
$xmlWriter.WriteEndElement()
$xmlWriter.WriteStartElement('GetCmdlet')
@@ -1786,10 +1786,10 @@ function ShouldBeAssociatedParameter
)
# Check if associated type has navigation property, which links back to current type
- $associatedTypeNavProperties = $AssociatedType.NavigationProperties | ? {
- $_.Type -eq ($EntityType.Namespace + "." + $EntityType.Name) -or
+ $associatedTypeNavProperties = $AssociatedType.NavigationProperties | ? {
+ $_.Type -eq ($EntityType.Namespace + "." + $EntityType.Name) -or
$_.Type -eq ($EntityType.Alias + "." + $EntityType.Name) -or
- $_.Type -eq ("Collection(" + $EntityType.Namespace + "." + $EntityType.Name + ")") -or
+ $_.Type -eq ("Collection(" + $EntityType.Namespace + "." + $EntityType.Name + ")") -or
$_.Type -eq ("Collection(" + $EntityType.Alias + "." + $EntityType.Name + ")")
}
@@ -1798,11 +1798,11 @@ function ShouldBeAssociatedParameter
return $false
}
- # Now check if associated parameter type (i.e, type of navigation property) has corresponding EntitySet or Singleton,
+ # Now check if associated parameter type (i.e, type of navigation property) has corresponding EntitySet or Singleton,
# which makes it accessible from the service root.
# Otherwise the Uri for associated navigation property won't be valid
foreach ($currentMetadata in $GlobalMetadata)
- {
+ {
# Look for EntitySet with given type
foreach ($currentEntitySet in $currentMetadata.EntitySets)
{
@@ -1812,10 +1812,10 @@ function ShouldBeAssociatedParameter
return $true
}
}
-
+
# Look for Singleton with given type
foreach ($currentSingleton in $currentMetadata.Singletons)
- {
+ {
if ($currentSingleton.Type.Namespace -eq $EntityType.Namespace -and
$currentSingleton.Type.Name -eq $EntityType.Name)
{
@@ -1830,7 +1830,7 @@ function ShouldBeAssociatedParameter
#########################################################
# Saves NewCmdlet node to CDXML
#########################################################
-function SaveCDXMLNewCmdlet
+function SaveCDXMLNewCmdlet
{
param
(
@@ -1840,14 +1840,14 @@ function SaveCDXMLNewCmdlet
$keyProperties,
$nonNullableProperties,
$nullableProperties,
- $navigationProperties,
+ $navigationProperties,
$CmdletAdapter,
$complexTypeMapping
)
if($xmlWriter -eq $null) { throw ($LocalizedData.ArguementNullError -f "xmlWriter", "SaveCDXMLNewCmdlet") }
if($Metadata -eq $null) { throw ($LocalizedData.ArguementNullError -f "Metadata", "SaveCDXMLNewCmdlet") }
-
+
$xmlWriter.WriteStartElement('Cmdlet')
$xmlWriter.WriteStartElement('CmdletMetadata')
$xmlWriter.WriteAttributeString('Verb', 'New')
@@ -1858,7 +1858,7 @@ function SaveCDXMLNewCmdlet
$xmlWriter.WriteStartElement('Method')
$xmlWriter.WriteAttributeString('MethodName', 'Create')
$xmlWriter.WriteAttributeString('CmdletParameterSet', 'Default')
-
+
AddParametersNode $xmlWriter $keyProperties $nonNullableProperties $nullableProperties $null $true $true $complexTypeMapping
$xmlWriter.WriteEndElement()
@@ -1870,14 +1870,14 @@ function SaveCDXMLNewCmdlet
$xmlWriter.WriteStartElement('Method')
$xmlWriter.WriteAttributeString('MethodName', "Association:Create:$($associatedEntitySet.Name)")
$xmlWriter.WriteAttributeString('CmdletParameterSet', $_.Name)
-
+
$associatedKeys = ($associatedType.EntityProperties | ? { $_.isKey })
AddParametersNode $xmlWriter $associatedKeys $keyProperties $null "Associated$($_.Name)" $true $true $complexTypeMapping
$xmlWriter.WriteEndElement()
}
-
+
$xmlWriter.WriteEndElement()
}
@@ -1909,7 +1909,7 @@ function GetEntitySetForEntityType {
#########################################################
# Saves RemoveCmdlet node to CDXML
#########################################################
-function SaveCDXMLRemoveCmdlet
+function SaveCDXMLRemoveCmdlet
{
param
(
@@ -1924,7 +1924,7 @@ function SaveCDXMLRemoveCmdlet
if($xmlWriter -eq $null) { throw ($LocalizedData.ArguementNullError -f "xmlWriter", "SaveCDXMLRemoveCmdlet") }
if($Metadata -eq $null) { throw ($LocalizedData.ArguementNullError -f "Metadata", "SaveCDXMLRemoveCmdlet") }
-
+
$xmlWriter.WriteStartElement('Cmdlet')
$xmlWriter.WriteStartElement('CmdletMetadata')
$xmlWriter.WriteAttributeString('Verb', 'Remove')
@@ -1937,7 +1937,7 @@ function SaveCDXMLRemoveCmdlet
$xmlWriter.WriteAttributeString('CmdletParameterSet', 'Default')
AddParametersNode $xmlWriter $keyProperties $nul $null $null $true $true $complexTypeMapping
-
+
$xmlWriter.WriteEndElement()
$navigationProperties | ? { $_ -ne $null } | % {
@@ -1948,7 +1948,7 @@ function SaveCDXMLRemoveCmdlet
$xmlWriter.WriteStartElement('Method')
$xmlWriter.WriteAttributeString('MethodName', "Association:Delete:$($associatedEntitySet.Name)")
$xmlWriter.WriteAttributeString('CmdletParameterSet', $_.Name)
-
+
$associatedType = GetAssociatedType $Metadata $GlobalMetadata $_
$associatedKeys = ($associatedType.EntityProperties | ? { $_.isKey })
@@ -1966,7 +1966,7 @@ function GetAssociatedType {
param(
[ODataUtils.MetadataV4] $Metadata,
[System.Collections.ArrayList] $GlobalMetadata,
- [ODataUtils.NavigationPropertyV4] $navProperty
+ [ODataUtils.NavigationPropertyV4] $navProperty
)
$associationType = $navProperty.Type
@@ -1976,7 +1976,7 @@ function GetAssociatedType {
$associationType = $associationType.Replace(")", "")
$associatedType = $Metadata.EntityTypes | ? { $_.Name -eq $associationType }
-
+
if (!$associatedType -and $GlobalMetadata -ne $null)
{
$associationFullTypeName = $navProperty.Type.Replace("Collection(", "").Replace(")", "")
@@ -1984,7 +1984,7 @@ function GetAssociatedType {
foreach ($referencedMetadata in $GlobalMetadata)
{
if (($associatedType = $referencedMetadata.EntityTypes | Where { $_.Namespace + "." + $_.Name -eq $associationFullTypeName -or $_.Alias + "." + $_.Name -eq $associationFullTypeName }) -ne $null -or
- ($associatedType = $referencedMetadata.ComplexTypes | Where { $_.Namespace + "." + $_.Name -eq $associationFullTypeName -or $_.Alias + "." + $_.Name -eq $associationFullTypeName }) -ne $null -or
+ ($associatedType = $referencedMetadata.ComplexTypes | Where { $_.Namespace + "." + $_.Name -eq $associationFullTypeName -or $_.Alias + "." + $_.Name -eq $associationFullTypeName }) -ne $null -or
($associatedType = $referencedMetadata.EnumTypes | Where { $_.Namespace + "." + $_.Name -eq $associationFullTypeName -or $_.Alias + "." + $_.Name -eq $associationFullTypeName }) -ne $null)
{
# Found associated class
@@ -2009,7 +2009,7 @@ function GetAssociatedType {
#########################################################
# Saves CDXML for Instance/Service level actions
#########################################################
-function SaveCDXMLAction
+function SaveCDXMLAction
{
param
(
@@ -2097,7 +2097,7 @@ function SaveCDXMLAction
#########################################################
# Saves CDXML for Instance/Service level functions
#########################################################
-function SaveCDXMLFunction
+function SaveCDXMLFunction
{
param
(
@@ -2109,7 +2109,7 @@ function SaveCDXMLFunction
[ODataUtils.TypeProperty] $keys,
[Hashtable] $complexTypeMapping
)
-
+
if($xmlWriter -eq $null) { throw ($LocalizedData.ArguementNullError -f "xmlWriter", "SaveCDXMLFunction") }
if($function -eq $null) { throw ($LocalizedData.ArguementNullError -f "function", "SaveCDXMLFunction") }
@@ -2128,7 +2128,7 @@ function SaveCDXMLFunction
}
else
{
- $xmlWriter.WriteAttributeString('MethodName', "Action:$($function.Name):$($function.EntitySet)")
+ $xmlWriter.WriteAttributeString('MethodName', "Action:$($function.Name):$($function.EntitySet)")
}
$xmlWriter.WriteStartElement('Parameters')
@@ -2192,7 +2192,7 @@ function SaveCDXMLFunction
#########################################################
# Saves CDXML for Service-level actions and functions
#########################################################
-function SaveServiceActionsCDXML
+function SaveServiceActionsCDXML
{
param
(
@@ -2272,7 +2272,7 @@ function SaveServiceActionsCDXML
$xmlWriter.WriteString("$($EntitySet.Alias)")
}
$xmlWriter.WriteEndElement()
-
+
$xmlWriter.WriteStartElement('Data')
$xmlWriter.WriteAttributeString('Name', 'CreateRequestMethod')
$xmlWriter.WriteString("Post")
@@ -2288,20 +2288,20 @@ function SaveServiceActionsCDXML
}
#########################################################
-# GenerateModuleManifest is a helper function used
+# GenerateModuleManifest is a helper function used
# to generate a wrapper module manifest file. The
# generated module manifest is persisted to the disk at
-# the specified OutputModule path. When the module
-# manifest is imported, the following commands will
+# the specified OutputModule path. When the module
+# manifest is imported, the following commands will
# be imported:
-# 1. Get, Set, New & Remove proxy cmdlets for entity
+# 1. Get, Set, New & Remove proxy cmdlets for entity
# sets and singletons.
# 2. If the server side Odata endpoint exposes complex
-# types, enum types, type definitions, then the corresponding
+# types, enum types, type definitions, then the corresponding
# client side proxy types imported.
-# 3. Service Action/Function proxy cmdlets.
+# 3. Service Action/Function proxy cmdlets.
#########################################################
-function GenerateModuleManifest
+function GenerateModuleManifest
{
param
(
@@ -2320,8 +2320,8 @@ function GenerateModuleManifest
{
foreach ($entitySet in $Metadata.EntitySets)
{
- $entitySetName = $entitySet.Name
- if(($null -ne $resourceNameMappings) -and
+ $entitySetName = $entitySet.Name
+ if(($null -ne $resourceNameMappings) -and
$resourceNameMappings.ContainsKey($entitySetName))
{
$entitySetName = $resourceNameMappings[$entitySetName]
@@ -2333,14 +2333,14 @@ function GenerateModuleManifest
$NestedModules += "$OutputModule\$($entitySetName).cdxml"
}
-
+
foreach ($singleton in $Metadata.SingletonTypes)
{
- $singletonName = $singleton.Name
+ $singletonName = $singleton.Name
$NestedModules += "$OutputModule\$($singletonName)" + "Singleton" + ".cdxml"
}
}
-
+
New-ModuleManifest -Path $ModulePath -NestedModules ($AdditionalModules + $NestedModules)
Write-Verbose ($LocalizedData.VerboseSavedModuleManifest -f $ModulePath)
@@ -2350,10 +2350,10 @@ function GenerateModuleManifest
}
#########################################################
-# This is a helper function used to generate complex
+# This is a helper function used to generate complex
# type definition from the metadata.
#########################################################
-function GenerateComplexTypeDefinition
+function GenerateComplexTypeDefinition
{
param
(
@@ -2375,9 +2375,9 @@ using System.Management.Automation;
using System.ComponentModel;
"@
- # We are currently generating classes for EntityType & ComplexType
+ # We are currently generating classes for EntityType & ComplexType
# definition exposed in the metadata.
-
+
$complexTypeMapping = @{}
# First, create complex type mappings for all metadata files at once
@@ -2474,7 +2474,7 @@ using System.ComponentModel;
if($typesToBeGenerated.Count -gt 0 -or $enumTypesToBeGenerated.Count -gt 0)
{
if ($metadata.Alias -ne $null -and $metadata.Alias -ne "")
- {
+ {
# Check if this namespace has to be normalized in the .Net namespace/class definitions file.
$dotNetAlias = GetNamespace $metadata.Alias $normalizedNamespaces
@@ -2485,12 +2485,12 @@ namespace $($dotNetAlias)
"@
}
else
- {
+ {
# Check if this namespace has to be normalized in the .Net namespace/class definitions file.
$dotNetNamespace = GetNamespace $metadata.Namespace $normalizedNamespaces
-
+
$output += @"
-
+
namespace $($dotNetNamespace)
{
"@
@@ -2511,7 +2511,7 @@ namespace $($dotNetNamespace)
"@
}
}
-
+
$DotNETKeywords = ("abstract", "as", "base", "bool", "break", "byte", "case", "catch", "char", "checked", "class", "const", "continue", "decimal", "default", "delegate", "do", "double", "else", "enum", "event", "explicit", "extern", "false", "finally", "fixed", "float", "for", "foreach", "goto", "if", "implicit", "in", "in", "int", "interface", "internal", "is", "lock", "long", "namespace", "new", "null", "object", "operator", "out", "out", "override", "params", "private", "protected", "public", "readonly", "ref", "return", "sbyte", "sealed", "short", "sizeof", "stackalloc", "static", "string", "struct", "switch", "this", "throw", "true", "try", "typeof", "uint", "ulong", "unchecked", "unsafe", "ushort", "using", "virtual", "void", "volatile", "while", "add", "alias", "ascending", "async", "await", "descending", "dynamic", "from", "get", "global", "group", "into", "join", "let", "orderby", "partial", "partial", "remove", "select", "set", "value", "var", "where", "yield")
foreach ($enumType in $enumTypesToBeGenerated)
@@ -2519,11 +2519,11 @@ namespace $($dotNetNamespace)
if ($enumType -ne $null)
{
$enumTypeFullName = $enumType.Namespace + '.' + $enumType.Name
-
+
Write-Verbose ($LocalizedData.VerboseAddingTypeDefinationToGeneratedModule -f $enumTypeFullName, "$OutputModule\$typeDefinationFileName")
$output += "`n public enum $($enumType.Name)`n {"
-
+
$properties = $null
for($index = 0; $index -lt $enumType.Members.Count; $index++)
@@ -2531,7 +2531,7 @@ namespace $($dotNetNamespace)
$memberName = $enumType.Members[$index].Name
$formattedMemberName = [System.Text.RegularExpressions.Regex]::Replace($memberName, "[^0-9a-zA-Z]", "_");
$memberValue = $enumType.Members[$index].Value
-
+
if ($DotNETKeywords -contains $formattedMemberName)
{
# If member name is a known keyword in .Net, add '@' prefix
@@ -2576,7 +2576,7 @@ namespace $($dotNetNamespace)
if ($entityType -ne $null)
{
$entityTypeFullName = $entityType.Namespace + '.' + $entityType.Name
-
+
Write-Verbose ($LocalizedData.VerboseAddingTypeDefinationToGeneratedModule -f $entityTypeFullName, "$OutputModule\$typeDefinationFileName")
if ($entityType.BaseTypeStr -ne $null -and $entityType.BaseTypeStr -ne '' -and $entityType.BaseType -eq $null)
diff --git a/src/Modules/Windows-Full/PSScheduledJob/PSScheduledJob.types.ps1xml b/src/Modules/Windows-Full/PSScheduledJob/PSScheduledJob.types.ps1xml
index c58b8f35a1..1bba20b14b 100644
--- a/src/Modules/Windows-Full/PSScheduledJob/PSScheduledJob.types.ps1xml
+++ b/src/Modules/Windows-Full/PSScheduledJob/PSScheduledJob.types.ps1xml
@@ -1,17 +1,17 @@
@@ -20,5 +20,5 @@ REMAINS WITH THE USER.
Microsoft.PowerShell.ScheduledJob.JobTriggerToCimInstanceConverter, Microsoft.PowerShell.ScheduledJob, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35
-
+
diff --git a/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.psm1 b/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.psm1
index 6a9ce2cf3a..eeb09e8b03 100644
--- a/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.psm1
+++ b/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.psm1
@@ -11,7 +11,7 @@
[ValidateNotNullOrEmpty()]
[string[]]
$ComputerName,
-
+
[Parameter(ParameterSetName='ComputerName', ValueFromPipelineByPropertyName=$true)]
[Object]
$Credential,
@@ -35,7 +35,7 @@
[Parameter(ParameterSetName='ComputerName')]
[int]
$ThrottleLimit,
-
+
[Parameter(ParameterSetName='ComputerName')]
[ValidateNotNull()]
[System.Management.Automation.Remoting.PSSessionOption]
diff --git a/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.types.ps1xml b/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.types.ps1xml
index 621b1fb4fc..7459661a55 100644
--- a/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.types.ps1xml
+++ b/src/Modules/Windows-Full/PSWorkflow/PSWorkflow.types.ps1xml
@@ -1,17 +1,17 @@
@@ -69,7 +69,7 @@ REMAINS WITH THE USER.
CommandPSCommandNameDisplayName
- Id
+ Id
diff --git a/src/Modules/Windows-Full/PSWorkflowUtility/PSWorkflowUtility.psm1 b/src/Modules/Windows-Full/PSWorkflowUtility/PSWorkflowUtility.psm1
index 7e1ec155d0..1b5075d91b 100644
--- a/src/Modules/Windows-Full/PSWorkflowUtility/PSWorkflowUtility.psm1
+++ b/src/Modules/Windows-Full/PSWorkflowUtility/PSWorkflowUtility.psm1
@@ -16,11 +16,11 @@ workflow Invoke-AsWorkflow
)
if($CommandName)
{
- if($Parameter)
+ if($Parameter)
{
InlineScript {& $using:CommandName @using:Parameter}
}
- else
+ else
{
InlineScript {& $using:CommandName}
}
diff --git a/src/ResGen/Program.cs b/src/ResGen/Program.cs
index fe7524c8de..047baf7a3f 100644
--- a/src/ResGen/Program.cs
+++ b/src/ResGen/Program.cs
@@ -43,7 +43,7 @@ namespace ConsoleApplication
// className = Full.Name.Of.The.ClassFoo
// shortClassName = ClassFoo
// namespaceName = Full.Name.Of.The
-
+
string shortClassName = className;
string namespaceName = null;
int lastIndexOfDot = className.LastIndexOf('.');
diff --git a/src/System.Management.Automation/CoreCLR/CorePsExtensions.cs b/src/System.Management.Automation/CoreCLR/CorePsExtensions.cs
index 7e529ba452..2c43255cca 100644
--- a/src/System.Management.Automation/CoreCLR/CorePsExtensions.cs
+++ b/src/System.Management.Automation/CoreCLR/CorePsExtensions.cs
@@ -35,8 +35,8 @@ namespace System.Management.Automation
///
/// The type extension methods within this partial class are only used for CoreCLR powershell.
- ///
- /// * If you want to add an extension method that will be used by both FullCLR and CoreCLR powershell, please
+ ///
+ /// * If you want to add an extension method that will be used by both FullCLR and CoreCLR powershell, please
/// add it to the 'PSTypeExtensions' partial class in 'ExtensionMethods.cs'.
/// * If you want to add an extension method that will be used only by CoreCLR powershell, please add it here.
///
@@ -152,7 +152,7 @@ namespace System.Management.Automation
{
if (isInHierarchy)
{
- // Specify BindingFlags.FlattenHierarchy to include public and protected static members up the hierarchy;
+ // Specify BindingFlags.FlattenHierarchy to include public and protected static members up the hierarchy;
// private static members in inherited classes are not included
if (!field.IsPublic && !(field.IsFamily && field.IsStatic))
{
@@ -235,7 +235,7 @@ namespace System.Management.Automation
{
if (isInHierarchy)
{
- // Specify BindingFlags.FlattenHierarchy to include public and protected static members up the hierarchy;
+ // Specify BindingFlags.FlattenHierarchy to include public and protected static members up the hierarchy;
// private static members in inherited classes are not included
if (!IsPublicProperty(property) && !(IsProtectedProperty(property) && IsStaticProperty(property)))
{
@@ -411,7 +411,7 @@ namespace System.Management.Automation
///
private static ConstructorInfo GetMatchingConstructor(ConstructorInfo[] constructors, Type[] types)
{
- // Compare the parameter types in two passes.
+ // Compare the parameter types in two passes.
// The first pass is to check if the parameter types are exactly the same,
// The second pass is to check if the parameter types is assignable from the given argument types.
var matchConstructors = new List();
@@ -443,7 +443,7 @@ namespace System.Management.Automation
}
}
- // Flip the 'inSecondPass' flag, so that we run another pass only if we're about
+ // Flip the 'inSecondPass' flag, so that we run another pass only if we're about
// to start the second pass and we didn't find anything from the first pass.
inSecondPass = !inSecondPass;
@@ -473,7 +473,7 @@ namespace System.Management.Automation
throw new PSArgumentException("Invalid binding flags");
}
- // If bindingFlags is zero, return null.
+ // If bindingFlags is zero, return null.
if (bindingFlags == 0)
{
return null;
@@ -562,7 +562,7 @@ namespace System.Management.Automation
// Helper method
private static MethodInfo GetMatchingMethod(MethodInfo[] methods, Type[] types)
{
- // Compare the parameter types in two passes.
+ // Compare the parameter types in two passes.
// The first pass is to check if the parameter types are exactly the same,
// The second pass is to check if the parameter types is assignable from the given argument types.
var matchMethods = new List();
@@ -594,7 +594,7 @@ namespace System.Management.Automation
}
}
- // Flip the 'inSecondPass' flag, so that we run another pass only if we're about
+ // Flip the 'inSecondPass' flag, so that we run another pass only if we're about
// to start the second pass and we didn't find anything from the first pass.
inSecondPass = !inSecondPass;
@@ -660,7 +660,7 @@ namespace System.Management.Automation
{
if (isInHierarchy)
{
- // Specify BindingFlags.FlattenHierarchy to include public and protected static members up the hierarchy;
+ // Specify BindingFlags.FlattenHierarchy to include public and protected static members up the hierarchy;
// private static members in inherited classes are not included
if (!method.IsPublic && !(method.IsFamily && method.IsStatic))
{
@@ -875,7 +875,7 @@ namespace System.Management.Automation
return GetRegistryKeyNameValuePairs(environmentKey);
}
}
- else // target == EnvironmentVariableTarget.User
+ else // target == EnvironmentVariableTarget.User
{
using (RegistryKey environmentKey =
Registry.CurrentUser.OpenSubKey("Environment", false))
@@ -997,7 +997,7 @@ namespace System.Management.Automation
}
///
- /// OSVersion
+ /// OSVersion
///
public static OperatingSystem OSVersion
{
@@ -1518,7 +1518,7 @@ namespace System.Management.Automation
#region Methods
///
- /// Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed Pointer wrapper object.
+ /// Boxes the supplied unmanaged memory pointer and the type associated with that pointer into a managed Pointer wrapper object.
/// The value and the type are saved so they can be accessed from the native code during an invocation.
///
///
diff --git a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs
index 99019fa3f6..62f84e8545 100644
--- a/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs
+++ b/src/System.Management.Automation/CoreCLR/CorePsPlatform.cs
@@ -75,7 +75,7 @@ namespace System.Management.Automation
#endif
}
}
-
+
///
/// True if the underlying system is NanoServer.
///
@@ -89,7 +89,7 @@ namespace System.Management.Automation
return false;
#else
if (_isNanoServer.HasValue) { return _isNanoServer.Value; }
-
+
_isNanoServer = false;
using (RegistryKey regKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Server\ServerLevels"))
{
@@ -167,7 +167,7 @@ namespace System.Management.Automation
}
}
-#if !UNIX
+#if !UNIX
private static bool? _isNanoServer = null;
private static bool? _isIoT = null;
private static bool? _isInbox = null;
diff --git a/src/System.Management.Automation/CoreCLR/CorePsStub.cs b/src/System.Management.Automation/CoreCLR/CorePsStub.cs
index faf91ed3c9..662356ccf4 100644
--- a/src/System.Management.Automation/CoreCLR/CorePsStub.cs
+++ b/src/System.Management.Automation/CoreCLR/CorePsStub.cs
@@ -32,7 +32,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public sealed class SpecialNameAttribute : Attribute
{
///
- ///
+ ///
///
public SpecialNameAttribute() { }
}
@@ -43,7 +43,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public sealed class SerializableAttribute : Attribute
{
///
- ///
+ ///
///
public SerializableAttribute() { }
}
@@ -54,7 +54,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public sealed class NonSerializedAttribute : Attribute
{
///
- ///
+ ///
///
public NonSerializedAttribute() { }
}
@@ -88,7 +88,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public sealed class TypeLibTypeAttribute : Attribute
{
///
- ///
+ ///
///
///
public TypeLibTypeAttribute(short flags) { }
@@ -149,7 +149,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public sealed class ReliabilityContractAttribute : Attribute
{
///
- ///
+ ///
///
public ReliabilityContractAttribute(Consistency consistencyGuarantee, Cer cer)
{
@@ -213,12 +213,12 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public sealed class SerializationInfo
{
///
- ///
+ ///
///
public SerializationInfo() { }
///
- ///
+ ///
///
///
///
@@ -228,7 +228,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -238,7 +238,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -249,7 +249,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -259,7 +259,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -270,7 +270,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -280,7 +280,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -290,7 +290,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -300,7 +300,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
public void SetType(System.Type type)
@@ -309,7 +309,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
}
///
- ///
+ ///
///
///
///
@@ -329,7 +329,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public interface ISerializable
{
///
- ///
+ ///
///
///
///
@@ -342,7 +342,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public interface ICloneable
{
///
- ///
+ ///
///
///
object Clone();
@@ -354,7 +354,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public interface IObjectReference
{
///
- ///
+ ///
///
///
///
@@ -367,12 +367,12 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
public interface IRuntimeVariables
{
///
- ///
+ ///
///
int Count { get; }
///
- ///
+ ///
///
///
///
@@ -510,7 +510,7 @@ namespace Microsoft.PowerShell.CoreClr.Stubs
///
/// Constructor
///
- protected SafeHandleMinusOneIsInvalid(bool ownsHandle)
+ protected SafeHandleMinusOneIsInvalid(bool ownsHandle)
: base(new IntPtr(-1), ownsHandle)
{
}
@@ -641,7 +641,7 @@ namespace System
internal sealed class AppDomain
{
///
- ///
+ ///
///
public static System.AppDomain CreateDomain(string friendlyName)
{
@@ -649,7 +649,7 @@ namespace System
}
///
- ///
+ ///
///
public static void Unload(System.AppDomain domain)
{
@@ -659,7 +659,7 @@ namespace System
namespace System.Net
{
- internal class WebClient //: Component
+ internal class WebClient //: Component
{
public WebClient() { }
@@ -674,8 +674,8 @@ namespace System.Security
using System.Text;
///
- ///
- ///
+ ///
+ ///
sealed public class SecurityElement
{
private static readonly string[] s_escapeStringPairs = new string[]
@@ -691,7 +691,7 @@ namespace System.Security
///
/// Replaces invalid XML characters in a string with their valid XML equivalent.
- ///
+ ///
public static string Escape(string str)
{
if (str == null)
@@ -760,7 +760,7 @@ namespace System.Management.Automation
#region PSTransaction
///
- /// We don't need PSTransaction related types on CSS because System.Transactions
+ /// We don't need PSTransaction related types on CSS because System.Transactions
/// namespace is not available in CoreCLR
///
public sealed class PSTransactionContext : IDisposable
@@ -842,7 +842,7 @@ namespace System.Management.Automation
namespace System.Management.Automation.Internal
{
///
- /// We don't need PSTransaction related types on CSS because System.Transactions
+ /// We don't need PSTransaction related types on CSS because System.Transactions
/// namespace is not available in CoreCLR
///
internal sealed class PSTransactionManager : IDisposable
@@ -997,7 +997,7 @@ namespace System.Management.Automation.ComInterop
internal class VarEnumSelector
{
private static readonly Dictionary _ComToManagedPrimitiveTypes = CreateComToManagedPrimitiveTypes();
-
+
internal static Type GetTypeForVarEnum(VarEnum vt)
{
Type type;
@@ -1055,9 +1055,9 @@ namespace System.Management.Automation.ComInterop
///
/// Gets the managed type that an object needs to be coverted to in order for it to be able
/// to be represented as a Variant.
- ///
+ ///
/// In general, there is a many-to-many mapping between Type and VarEnum. However, this method
- /// returns a simple mapping that is needed for the current implementation. The reason for the
+ /// returns a simple mapping that is needed for the current implementation. The reason for the
/// many-to-many relation is:
/// 1. Int32 maps to VT_I4 as well as VT_ERROR, and Decimal maps to VT_DECIMAL and VT_CY. However,
/// this changes if you throw the wrapper types into the mix.
@@ -1155,7 +1155,7 @@ namespace System.Management.Automation.ComInterop
case VarEnum.VT_BSTR:
// *** END GENERATED CODE ***
-
+
return true;
}
@@ -1372,11 +1372,11 @@ namespace System.Management.Automation
#endregion
- #region Environment
+ #region Environment
internal static partial class Environment
{
- //TODO:CORECLR Need to be removed once we decide what will be the replacement
+ //TODO:CORECLR Need to be removed once we decide what will be the replacement
internal static void Exit(int exitCode)
{
}
@@ -1444,13 +1444,13 @@ namespace System.Management.Automation.Tracing
using System.Management.Automation.Internal;
///
- ///
+ ///
///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly")]
public abstract class EtwActivity
{
///
- ///
+ ///
///
///
///
@@ -1460,7 +1460,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
public static Guid CreateActivityId()
@@ -1469,7 +1469,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
public static Guid GetActivityId()
@@ -1587,17 +1587,17 @@ namespace System.Management.Automation.Tracing
ManagedPlugIn = 0x100,
///
- ///
+ ///
///
UseAlwaysDebug = 0x2000000000000000,
///
- ///
+ ///
///
UseAlwaysOperational = 0x8000000000000000,
///
- ///
+ ///
///
UseAlwaysAnalytic = 0x4000000000000000,
}
@@ -1675,7 +1675,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1686,7 +1686,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1698,7 +1698,7 @@ namespace System.Management.Automation.Tracing
///
- ///
+ ///
///
///
///
@@ -1712,7 +1712,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1738,10 +1738,10 @@ namespace System.Management.Automation.Tracing
public static class PowerShellTraceSourceFactory
{
///
- /// Returns an instance of BaseChannelWriter.
+ /// Returns an instance of BaseChannelWriter.
/// If the Etw is not supported by the platform it will return NullWriter.Instance
- ///
- /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
+ ///
+ /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
/// The supplied task and keywords are used to pass to the Etw provider in case they are
/// not defined in the manifest file.
///
@@ -1751,10 +1751,10 @@ namespace System.Management.Automation.Tracing
}
///
- /// Returns an instance of BaseChannelWriter.
+ /// Returns an instance of BaseChannelWriter.
/// If the Etw is not supported by the platform it will return NullWriter.Instance
- ///
- /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
+ ///
+ /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
/// The supplied task and keywords are used to pass to the Etw provider in case they are
/// not defined in the manifest file.
///
@@ -1764,10 +1764,10 @@ namespace System.Management.Automation.Tracing
}
///
- /// Returns an instance of BaseChannelWriter.
+ /// Returns an instance of BaseChannelWriter.
/// If the Etw is not supported by the platform it will return NullWriter.Instance
- ///
- /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
+ ///
+ /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
/// The supplied task and keywords are used to pass to the Etw provider in case they are
/// not defined in the manifest file.
///
diff --git a/src/System.Management.Automation/DscSupport/CimDSCParser.cs b/src/System.Management.Automation/DscSupport/CimDSCParser.cs
index e6a6cc58b1..8f86b4cdd0 100644
--- a/src/System.Management.Automation/DscSupport/CimDSCParser.cs
+++ b/src/System.Management.Automation/DscSupport/CimDSCParser.cs
@@ -28,14 +28,14 @@ using Environment = System.Management.Automation.Environment;
namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
{
///
- ///
+ ///
///
[SuppressMessage("Microsoft.MSInternal", "CA903:InternalNamespaceShouldNotContainPublicTypes",
Justification = "Needed Internal use only")]
public static class DscRemoteOperationsClass
{
///
- /// Convert Cim Instance representing Resource desired state to Powershell Class Object
+ /// Convert Cim Instance representing Resource desired state to Powershell Class Object
///
public static object ConvertCimInstanceToObject(Type targetType, CimInstance instance, string moduleName)
{
@@ -75,7 +75,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
{
MemberInfo[] memberInfo = targetType.GetMember(property.Name, BindingFlags.Public | BindingFlags.Instance);
- // verify property exists in corresponding class type
+ // verify property exists in corresponding class type
if (memberInfo == null || memberInfo.Length > 1 || !(memberInfo[0] is PropertyInfo || memberInfo[0] is FieldInfo))
{
errorMessage = string.Format(CultureInfo.CurrentCulture, ParserStrings.PropertyNotDeclaredInPSClass, new object[] { property.Name, className });
@@ -170,10 +170,10 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
}
///
- /// Convert hashtable from Ciminstance to hashtable primitive type
+ /// Convert hashtable from Ciminstance to hashtable primitive type
///
///
- ///
+ ///
///
private static object ConvertCimInstanceHashtable(string providerName, CimInstance[] arrayInstance)
{
@@ -209,7 +209,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
/// Convert CIM instance to PS Credential
///
///
- ///
+ ///
///
private static object ConvertCimInstancePsCredential(string providerName, CimInstance propertyInstance)
{
@@ -503,7 +503,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
///
/// DSC class cache for this runspace.
- /// Cache stores the DSCRunAsBehavior for the class along with actual cim class.
+ /// Cache stores the DSCRunAsBehavior for the class along with actual cim class.
///
private static Dictionary> ClassCache
{
@@ -1364,7 +1364,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
{
if (String.Equals(prop.Name, "PsDscRunAsCredential", StringComparison.OrdinalIgnoreCase))
{
- // skip adding PsDscRunAsCredential to the dynamic word for the dsc resource.
+ // skip adding PsDscRunAsCredential to the dynamic word for the dsc resource.
continue;
}
}
@@ -1424,7 +1424,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
keyProp.Mandatory = true;
}
- // set the property to mandatory is specified for the resource.
+ // set the property to mandatory is specified for the resource.
if (runAsBehavior == DSCResourceRunAsCredential.Mandatory)
{
if (String.Equals(prop.Name, "PsDscRunAsCredential", StringComparison.OrdinalIgnoreCase))
@@ -1680,13 +1680,13 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
string.Format(CultureInfo.CurrentCulture, ParserStrings.ImportDscResourceNeedParams)));
}
- // Check here if Version is specified but modulename is not specified
+ // Check here if Version is specified but modulename is not specified
if (moduleVersionBindingResult != null && moduleNameBindingResult == null)
{
// only add this error again to the error list if resources is not null
// if resources and modules are both null we have already added this error in collection
// we do not want to do this twice. since we are giving same error ImportDscResourceNeedParams in both cases
- // once we have different error messages for 2 scenarios we can remove this check
+ // once we have different error messages for 2 scenarios we can remove this check
if (resourceNameBindingResult != null)
{
errorList.Add(new ParseError(kwAst.Extent,
@@ -1748,7 +1748,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
if (LanguagePrimitives.TryConvertTo(moduleName, out moduleSpecifications))
{
- // if resourceNames are specified then we can not specify multiple modules name
+ // if resourceNames are specified then we can not specify multiple modules name
if (moduleSpecifications != null && moduleSpecifications.Length > 1 && resourceNames != null)
{
errorList.Add(new ParseError(moduleNameBindingResult.Value.Extent,
@@ -1756,7 +1756,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
string.Format(CultureInfo.CurrentCulture, ParserStrings.ImportDscResourceMultipleModulesNotSupportedWithName)));
}
- // if moduleversion is specified then we can not specify multiple modules name
+ // if moduleversion is specified then we can not specify multiple modules name
if (moduleSpecifications != null && moduleSpecifications.Length > 1 && moduleVersion != null)
{
errorList.Add(new ParseError(moduleNameBindingResult.Value.Extent,
@@ -1764,7 +1764,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
string.Format(CultureInfo.CurrentCulture, ParserStrings.ImportDscResourceNeedParams)));
}
- // if moduleversion is specified then we can not specify another version in modulespecification object of ModuleName
+ // if moduleversion is specified then we can not specify another version in modulespecification object of ModuleName
if (moduleSpecifications != null && (moduleSpecifications[0].Version != null || moduleSpecifications[0].MaximumVersion != null) && moduleVersion != null)
{
errorList.Add(new ParseError(moduleNameBindingResult.Value.Extent,
@@ -1773,7 +1773,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
}
// If moduleVersion is specified we have only one module Name in valid scenario
- // So update it's version property in module specification object that will be used to load modules
+ // So update it's version property in module specification object that will be used to load modules
if (moduleSpecifications != null && moduleSpecifications[0].Version == null && moduleSpecifications[0].MaximumVersion == null && moduleVersion != null)
{
moduleSpecifications[0].Version = moduleVersion;
@@ -2587,7 +2587,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
if (skip) continue;
- // Parse the Resource Attribute to see if RunAs behavior is specified for the resource.
+ // Parse the Resource Attribute to see if RunAs behavior is specified for the resource.
DSCResourceRunAsCredential runAsBehavior = DSCResourceRunAsCredential.Default;
foreach (var attr in resourceDefnAst.Attributes)
{
@@ -2708,7 +2708,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
return false;
}
- // #3 property count, names, values, qualifiers and types should be same
+ // #3 property count, names, values, qualifiers and types should be same
if (!ArePropertiesSame(oldClass.CimClassProperties, newClass.CimClassProperties))
{
return false;
@@ -3290,7 +3290,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
}
///
- /// Refresh Mode can not be Disabled for the Partial Configurations.
+ /// Refresh Mode can not be Disabled for the Partial Configurations.
///
///
///
@@ -3429,9 +3429,9 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
}
///
- /// Returns an error record to use when composite resource and its resource instances both has PsDscRunAsCredentials value
+ /// Returns an error record to use when composite resource and its resource instances both has PsDscRunAsCredentials value
///
- /// resourceId of resource
+ /// resourceId of resource
///
public static ErrorRecord PsDscRunAsCredentialMergeErrorForCompositeResources(string resourceId)
{
@@ -3714,23 +3714,23 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
if($PsDscRunAsCredential -ne $null)
{
# Check if resource is also trying to set the value for RunAsCred
-# In that case we will generate error during compilation, this is merge error
+# In that case we will generate error during compilation, this is merge error
if($value['PsDscRunAsCredential'] -ne $null)
{
Update-ConfigurationErrorCount
- Write-Error -ErrorRecord ([Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache]::PsDscRunAsCredentialMergeErrorForCompositeResources($resourceId))
+ Write-Error -ErrorRecord ([Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache]::PsDscRunAsCredentialMergeErrorForCompositeResources($resourceId))
}
-# Set the Value of RunAsCred to that of outer configuration
+# Set the Value of RunAsCred to that of outer configuration
else
{
$value['PsDscRunAsCredential'] = $PsDscRunAsCredential
}
}
-
+
# Save the resource id in a per-node dictionary to do cross validation at the end
if($keywordData.ImplementingModule -ieq ""PSDesiredStateConfigurationEngine"")
{
-#$keywordName is PartialConfiguration
+#$keywordName is PartialConfiguration
if($keywordName -eq 'PartialConfiguration')
{
# RefreshMode is 'Pull' and .ConfigurationSource is empty
@@ -3739,7 +3739,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
Update-ConfigurationErrorCount
Write-Error -ErrorRecord ([Microsoft.PowerShell.DesiredStateConfiguration.Internal.DscClassCache]::GetPullModeNeedConfigurationSource($resourceId))
}
-
+
# Verify that RefreshMode is not Disabled for Partial configuration
if($value['RefreshMode'] -eq 'Disabled')
{
@@ -3925,7 +3925,7 @@ namespace Microsoft.PowerShell.DesiredStateConfiguration.Internal
Update-ConfigurationErrorCount
}
}
-
+
# Generate the MOF text for this resource instance.
# when generate mof text for OMI_ConfigurationDocument we handle below two cases:
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/ObjectModelWrapper.cs b/src/System.Management.Automation/cimSupport/cmdletization/ObjectModelWrapper.cs
index b1b054bbab..8a6742acde 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/ObjectModelWrapper.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/ObjectModelWrapper.cs
@@ -108,7 +108,7 @@ namespace Microsoft.PowerShell.Cmdletization
///
/// When overridden in the derived class, interrupts currently
- /// running code within the .
+ /// running code within the .
/// Default implementation in the base class just returns.
///
///
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/QueryBuilder.cs b/src/System.Management.Automation/cimSupport/cmdletization/QueryBuilder.cs
index 1222edacfb..e484359f9e 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/QueryBuilder.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/QueryBuilder.cs
@@ -16,17 +16,17 @@ namespace Microsoft.PowerShell.Cmdletization
/// Default behavior is to be consistent with the built-in cmdlets:
/// - When a wildcard is specified, then no errors are reported (i.e. Get-Process -Name noSuchProcess*)
/// - When no wildcard is specified, then errors are reported (i.e. Get-Process -Name noSuchProcess)
- ///
+ ///
/// Note that the following conventions are adopted:
- /// - Min/max queries
- /// ( and
- /// )
+ /// - Min/max queries
+ /// ( and
+ /// )
/// are treated as wildcards
- /// - Exclusions
- /// ()
+ /// - Exclusions
+ /// ()
/// are treated as wildcards
- /// - Associations
- /// ()
+ /// - Associations
+ /// ()
/// are treated as not a wildcard
///
Default = 0,
@@ -53,7 +53,7 @@ namespace Microsoft.PowerShell.Cmdletization
/// Property name to query on
/// Property values to accept in the query
///
- /// true if should be treated as a containing a wildcard pattern;
+ /// true if should be treated as a containing a wildcard pattern;
/// false otherwise
///
///
@@ -70,7 +70,7 @@ namespace Microsoft.PowerShell.Cmdletization
/// Property name to query on
/// Property values to reject in the query
///
- /// true if should be treated as a containing a wildcard pattern;
+ /// true if should be treated as a containing a wildcard pattern;
/// false otherwise
///
///
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs b/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs
index fbbde9f06f..96980f0978 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/ScriptWriter.cs
@@ -221,14 +221,14 @@ function __cmdletization_BindCommonParameters
param(
$__cmdletization_objectModelWrapper,
$myPSBoundParameters
- )
+ )
");
foreach (ParameterMetadata commonParameter in this.GetCommonParameters().Values)
{
output.WriteLine(@"
- if ($myPSBoundParameters.ContainsKey('{0}')) {{
- $__cmdletization_objectModelWrapper.PSObject.Properties['{0}'].Value = $myPSBoundParameters['{0}']
+ if ($myPSBoundParameters.ContainsKey('{0}')) {{
+ $__cmdletization_objectModelWrapper.PSObject.Properties['{0}'].Value = $myPSBoundParameters['{0}']
}}
",
CodeGeneration.EscapeSingleQuotedStringContent(commonParameter.Name));
@@ -765,7 +765,7 @@ function __cmdletization_BindCommonParameters
if (this.GetCommonParameters().ContainsKey(parameter.Key))
{
string message = string.Format(
- CultureInfo.InvariantCulture, // parameter name
+ CultureInfo.InvariantCulture, // parameter name
CmdletizationCoreResources.ScriptWriter_ParameterNameConflictsWithCommonParameters,
parameter.Key,
commandMetadata.Name,
@@ -775,7 +775,7 @@ function __cmdletization_BindCommonParameters
else
{
string message = string.Format(
- CultureInfo.InvariantCulture, // parameter name
+ CultureInfo.InvariantCulture, // parameter name
CmdletizationCoreResources.ScriptWriter_ParameterNameConflictsWithQueryParameters,
parameter.Key,
commandMetadata.Name,
@@ -925,7 +925,7 @@ function __cmdletization_BindCommonParameters
}
- private const string StaticCommonParameterSetTemplate = "{1}"; //"{0}::{1}";
+ private const string StaticCommonParameterSetTemplate = "{1}"; //"{0}::{1}";
private const string StaticMethodParameterSetTemplate = "{0}"; //"{1}::{0}";
private const string InstanceCommonParameterSetTemplate = "{1}"; //"{0}::{1}::{2}";
@@ -1773,7 +1773,7 @@ function {0}
{4})
DynamicParam {{
- try
+ try
{{
if (-not $__cmdletization_exceptionHasBeenThrown)
{{
@@ -1795,7 +1795,7 @@ function {0}
Begin {{
$__cmdletization_exceptionHasBeenThrown = $false
- try
+ try
{{
__cmdletization_BindCommonParameters $__cmdletization_objectModelWrapper $PSBoundParameters
$__cmdletization_objectModelWrapper.BeginProcessing()
@@ -1810,7 +1810,7 @@ function {0}
private const string CmdletProcessBlockTemplate = @"
Process {{
- try
+ try
{{
if (-not $__cmdletization_exceptionHasBeenThrown)
{{
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/cim/WildcardPatternToCimQueryParser.cs b/src/System.Management.Automation/cimSupport/cmdletization/cim/WildcardPatternToCimQueryParser.cs
index e7fa65b8f0..ec4d542df2 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/cim/WildcardPatternToCimQueryParser.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/cim/WildcardPatternToCimQueryParser.cs
@@ -16,7 +16,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
/// Documentation on MSDN (http://msdn.microsoft.com/en-us/library/aa392263(VS.85).aspx) is
/// 1) rather slim / incomplete
/// 2) sometimes incorrect (i.e. says that '=' is used for character ranges, when it should have said '-')
- ///
+ ///
/// The code below is therefore mainly based on reverse engineering of admin\wmi\wbem\winmgmt\wbecomn\like.cpp
///
internal class WildcardPatternToCimQueryParser : WildcardPatternParser
@@ -116,7 +116,7 @@ namespace Microsoft.PowerShell.Cmdletization.Cim
}
///
- /// Converts into a value of a right-hand-side operand of LIKE operator of a WQL query.
+ /// Converts into a value of a right-hand-side operand of LIKE operator of a WQL query.
/// Return value still has to be string-escaped (i.e. by doubling '\'' character), before embedding it into a query.
///
internal static string Parse(WildcardPattern wildcardPattern, out bool needsClientSideFiltering)
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.objectModel.autogen.cs b/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.objectModel.autogen.cs
index 4b13a76ffe..15b27e0671 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.objectModel.autogen.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.objectModel.autogen.cs
@@ -12,9 +12,9 @@
//
//------------------------------------------------------------------------------
-//
+//
// This source code was auto-generated by xsd, Version=4.0.30319.17929.
-//
+//
namespace Microsoft.PowerShell.Cmdletization.Xml
{
using System.Xml.Serialization;
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.xmlSerializer.autogen.cs b/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.xmlSerializer.autogen.cs
index 0cd50fedf8..a0143cac91 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.xmlSerializer.autogen.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/xml/CoreCLR/cmdlets-over-objects.xmlSerializer.autogen.cs
@@ -391,7 +391,7 @@ namespace Microsoft.PowerShell.Cmdletization.Xml
// XmlNodeType.Whitespace
// XmlNodeType.SignificantWhitespace
// In this case, we use 'ReadContentAsString()' to read the text content at the current position.
- // We cannot use 'ReadElementContentAsString()'. It will fail because the XmlReader is not positioned on an Element start node.
+ // We cannot use 'ReadElementContentAsString()'. It will fail because the XmlReader is not positioned on an Element start node.
string str = _r.ReadContentAsString();
if (str != null && trim)
str = str.Trim();
@@ -514,7 +514,7 @@ namespace Microsoft.PowerShell.Cmdletization.Xml
// CDXML files are all under the namespace 'http://schemas.microsoft.com/cmdlets-over-objects/2009/11', so
// they will never fall into the following namespaces:
// schemaNsID, soapNsID, soap12NsID, schemaNs2000ID, schemaNs1999ID, schemaNonXsdTypesNsID
- //
+ //
// Actually, in the context of CDXML deserialization, GetXsiType() will always return null, so
// the only possible 'type' passed in this method should be like this:
// type.Name = "anyType"; type.Namespace = "http://www.w3.org/2001/XMLSchema"
@@ -527,7 +527,7 @@ namespace Microsoft.PowerShell.Cmdletization.Xml
InitPrimitiveIDs();
// This method is only used in Read1_Object(bool isNullable, bool checkType).
- // This method is invoked only if GetXsiType() returns a value that is not null. Actually, in the context of
+ // This method is invoked only if GetXsiType() returns a value that is not null. Actually, in the context of
// CDXML deserialization, GetXsiType() will always return null, so this method will never be called in runtime.
return null;
}
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs
index d31dab66f6..b1236bc59a 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.objectModel.autogen.cs
@@ -1,8 +1,8 @@
// PLEASE DO NOT EDIT THIS FILE BY HAND!!!
//
-// This file has been generated
+// This file has been generated
// by D:\bluedev\admin\monad\src\cimSupport\cmdletization\xml\generate.ps1
-//
+//
// Generation timestamp: 10/21/2013 18:29:23
#pragma warning disable
@@ -16,9 +16,9 @@
//
//------------------------------------------------------------------------------
-//
+//
// This source code was auto-generated by xsd, Version=4.0.30319.17929.
-//
+//
namespace Microsoft.PowerShell.Cmdletization.Xml
{
diff --git a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs
index 2a0c36e1d3..eb89c9f371 100644
--- a/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs
+++ b/src/System.Management.Automation/cimSupport/cmdletization/xml/cmdlets-over-objects.xmlSerializer.autogen.cs
@@ -1,8 +1,8 @@
// PLEASE DO NOT EDIT THIS FILE BY HAND!!!
//
-// This file has been generated
+// This file has been generated
// by D:\bluedev\admin\monad\src\cimSupport\cmdletization\xml\generate.ps1
-//
+//
// Generation timestamp: 10/21/2013 18:29:23
#pragma warning disable
diff --git a/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs b/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs
index af479aa15a..349e734f3e 100644
--- a/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs
+++ b/src/System.Management.Automation/cimSupport/other/ciminstancetypeadapter.cs
@@ -20,7 +20,7 @@ namespace Microsoft.PowerShell.Cim
/// Implementing the PropertyOnlyAdapter for the time being as CimInstanceTypeAdapter currently
/// supports only properties. If method support is needed in future, this should derive from
/// Adapter class.
- ///
+ ///
/// The Adapter registration is done in monad\src\singleshell\installer\MshManagementMshSnapin.cs
///
public sealed class CimInstanceAdapter : PSPropertyAdapter
@@ -56,7 +56,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
@@ -97,7 +97,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
@@ -155,7 +155,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
@@ -181,7 +181,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
@@ -244,7 +244,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
@@ -297,7 +297,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
@@ -312,7 +312,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
@@ -341,7 +341,7 @@ namespace Microsoft.PowerShell.Cim
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs
index 5907b07891..9acf3a0dd2 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseCommand.cs
@@ -150,7 +150,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
{
#region Command Line Switches
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(ValueFromPipeline = true)]
public PSObject InputObject { set; get; } = AutomationNull.Value;
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommand.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommand.cs
index a8c8399d6a..4e183c2e5e 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommand.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommand.cs
@@ -14,7 +14,7 @@ using System.Management.Automation.Runspaces;
namespace Microsoft.PowerShell.Commands.Internal.Format
{
///
- /// Base class defining the formatting context and the
+ /// Base class defining the formatting context and the
/// formatting context manager (stack based)
///
internal class InnerFormatShapeCommandBase : ImplementationCommandBase
@@ -147,7 +147,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return _parameters.expansion.Value;
}
- // check if we have an expansion entry in format.mshxml
+ // check if we have an expansion entry in format.mshxml
var typeNames = so.InternalTypeNames;
return DisplayDataQuery.GetEnumerableExpansionFromType(
_expressionFactory, _typeInfoDataBase, typeNames);
@@ -518,7 +518,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- ///
+ ///
///
public class OuterFormatShapeCommandBase : FrontEndCommandBase
{
@@ -640,7 +640,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
#endregion
///
- ///
+ ///
///
protected override void BeginProcessing()
{
@@ -682,7 +682,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- ///
+ ///
///
public class OuterFormatTableAndListBase : OuterFormatShapeCommandBase
{
@@ -746,7 +746,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- ///
+ ///
///
public class OuterFormatTableBase : OuterFormatTableAndListBase
{
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs
index d6ee61a24c..1d6d5289ab 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseFormattingCommandParameters.cs
@@ -144,7 +144,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
// it could be a string
// build a hash with "hotrodded" entries if there
-
+
string s = val as string;
object width, align;
string nameVal = UnpackString (s, out width, out align);
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs
index 24f6126685..b9f32c91ef 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/BaseOutputtingCommand.cs
@@ -40,7 +40,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// execution entry point override
/// we assume that a LineOutput interface instance already has been acquired
- ///
+ ///
/// IMPORTANT: it assumes the presence of a pre-processing formatting command
///
internal override void ProcessRecord()
@@ -243,7 +243,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
- /// instance of a command wrapper to execute the
+ /// instance of a command wrapper to execute the
/// default formatter when needed
///
private CommandWrapper _command;
@@ -387,7 +387,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
FormatInfoData formatInfoData)
{
FormatStartData formatStartData = formatInfoData as FormatStartData;
- // initialize the format context
+ // initialize the format context
if (formatStartData != null)
{
FormatOutputContext foc = new FormatOutputContext(parentContext, formatStartData);
@@ -643,7 +643,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
private FormattedObjectsCache _cache = null;
///
- /// handler for processing the caching notification and responsible for
+ /// handler for processing the caching notification and responsible for
/// setting the value of the formatting hint
///
///
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs
index c2df10416d..ab50d79b9f 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ColumnWidthManager.cs
@@ -24,7 +24,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// calculate the widths by applying some heuristics to get them to fit on the
+ /// calculate the widths by applying some heuristics to get them to fit on the
/// allotted table width. It first assigns widths to the columns that do not have a specified
/// width, then it checks if the total width exceeds the screen widths. If so, it proceeds
/// with column elimination, starting from the right most column
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/FileSystem_format_ps1xml.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/FileSystem_format_ps1xml.cs
index ca65a33579..5103a71ae0 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/FileSystem_format_ps1xml.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/FileSystem_format_ps1xml.cs
@@ -16,7 +16,7 @@ namespace System.Management.Automation.Runspaces
.StartFrame(leftIndent: 4)
.AddText(FileSystemProviderStrings.DirectoryDisplayGrouping)
.AddScriptBlockExpressionBinding(@"
- $_.PSParentPath.Replace(""Microsoft.PowerShell.Core\FileSystem::"", """")
+ $_.PSParentPath.Replace(""Microsoft.PowerShell.Core\FileSystem::"", """")
")
.AddNewline()
.EndFrame()
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/HelpV3_format_ps1xml.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/HelpV3_format_ps1xml.cs
index 70aa64910f..4890ff1b8e 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/HelpV3_format_ps1xml.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/HelpV3_format_ps1xml.cs
@@ -141,7 +141,7 @@ if (($_.relatedLinks -ne $()) -and ($_.relatedLinks.navigationLink -ne $()) -and
.AddScriptBlockExpressionBinding(
@"$optional = $_.required -ne 'true'
$positional = (($_.position -ne $()) -and ($_.position -ne '') -and ($_.position -notmatch 'named') -and ([int]$_.position -ne $()))
-$parameterValue = if ($null -ne $_.psobject.Members['ParameterValueGroup']) {
+$parameterValue = if ($null -ne $_.psobject.Members['ParameterValueGroup']) {
"" {$($_.ParameterValueGroup.ParameterValue -join ' | ')}""
} elseif ($null -ne $_.psobject.Members['ParameterValue']) {
"" <$($_.ParameterValue)>""
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/Help_format_ps1xml.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/Help_format_ps1xml.cs
index 530425a2e1..fa5db34be5 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/Help_format_ps1xml.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/Help_format_ps1xml.cs
@@ -65,7 +65,7 @@ namespace System.Management.Automation.Runspaces
.AddScriptBlockExpressionBinding(
@"$optional = $_.required -ne 'true'
$positional = (($_.position -ne $()) -and ($_.position -ne '') -and ($_.position -notmatch 'named') -and ([int]$_.position -ne $()))
-$parameterValue = if ($null -ne $_.psobject.Members['ParameterValueGroup']) {
+$parameterValue = if ($null -ne $_.psobject.Members['ParameterValueGroup']) {
"" {$($_.ParameterValueGroup.ParameterValue -join ' | ')}""
} elseif ($null -ne $_.psobject.Members['ParameterValue']) {
"" <$($_.ParameterValue)>""
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/PowerShellCore_format_ps1xml.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/PowerShellCore_format_ps1xml.cs
index 47dd76fabd..e2e232b3c4 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/PowerShellCore_format_ps1xml.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DefaultFormatters/PowerShellCore_format_ps1xml.cs
@@ -768,7 +768,7 @@ namespace System.Management.Automation.Runspaces
")
.AddScriptBlockExpressionBinding(@"
if ($_.FullyQualifiedErrorId -eq ""NativeCommandErrorMessage"" -or $_.FullyQualifiedErrorId -eq ""NativeCommandError"") {
- $_.Exception.Message
+ $_.Exception.Message
}
else
{
@@ -778,14 +778,14 @@ namespace System.Management.Automation.Runspaces
} else {
$posmsg = """"
}
-
+
if ($posmsg -ne """")
{
$posmsg = ""`n"" + $posmsg
}
-
+
if ( & { Set-StrictMode -Version 1; $_.PSMessageDetails } ) {
- $posmsg = "" : "" + $_.PSMessageDetails + $posmsg
+ $posmsg = "" : "" + $_.PSMessageDetails + $posmsg
}
$indent = 4
@@ -1256,13 +1256,13 @@ namespace System.Management.Automation.Runspaces
$result = $_.Content
$result = $result.Substring(0, [Math]::Min($result.Length, 200) )
if($result.Length -eq 200) { $result += ""..."" }
- $result
+ $result
", label: "Content")
.AddItemScriptBlock(@"
$result = $_.RawContent
$result = $result.Substring(0, [Math]::Min($result.Length, 200) )
if($result.Length -eq 200) { $result += ""..."" }
- $result
+ $result
", label: "RawContent")
.AddItemProperty(@"Forms")
.AddItemProperty(@"Headers")
@@ -1287,7 +1287,7 @@ namespace System.Management.Automation.Runspaces
$result = $_.RawContent
$result = $result.Substring(0, [Math]::Min($result.Length, 200) )
if($result.Length -eq 200) { $result += ""..."" }
- $result
+ $result
", label: "RawContent")
.AddItemProperty(@"Headers")
.AddItemProperty(@"RawContentLength")
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs
index f0786eb1fa..53f974f31d 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/XmlLoaderBase.cs
@@ -17,8 +17,8 @@ using Microsoft.PowerShell.CoreClr.Stubs;
#endif
/*
- SUMMARY: this file contains a general purpose, reusable framework for
- loading XML files, and do data validation.
+ SUMMARY: this file contains a general purpose, reusable framework for
+ loading XML files, and do data validation.
It provides the capability of:
* logging errors, warnings and traces to a file or in memory
* managing the XML dom traversal using an add hoc stack frame management scheme
@@ -87,7 +87,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
internal class XmlLoaderLogger : IDisposable
{
#region tracer
- //PSS/end-user tracer
+ //PSS/end-user tracer
[TraceSource("FormatFileLoading", "Loading format files")]
private static PSTraceSource s_formatFileLoadingtracer = PSTraceSource.GetTracer("FormatFileLoading", "Loading format files", false);
@@ -673,7 +673,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// file system path for the file we are loading from
///
- ///
+ ///
protected string FilePath
{
get
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData.cs
index 67e1aa87b3..c8d0b26aed 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData.cs
@@ -95,7 +95,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return _default;
}
}
-
+
private Nullable _value;
private T _default;
}
@@ -314,7 +314,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
/// 0 : ignore
/// greater than 0 : it represents the indentation for the first line (i.e. "first line indent").
/// The first line will be indented by the indicated number of characters.
- /// less than 0 : it represents the hanging of the first line WRT the following ones
+ /// less than 0 : it represents the hanging of the first line WRT the following ones
/// (i.e. "first line hanging").
///
internal int firstLine = 0;
@@ -462,7 +462,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
internal sealed partial class AppliesTo
{
- //it can contain either a type or type group reference
+ //it can contain either a type or type group reference
internal List referenceList = new List();
}
@@ -509,7 +509,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// definition of a view
+ /// definition of a view
///
internal sealed class ViewDefinition
{
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Table.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Table.cs
index 2cb2e05a44..04a5253fda 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Table.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/displayDescriptionData_Table.cs
@@ -136,7 +136,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
internal AppliesTo appliesTo;
///
- /// if true, the current table row should be allowed
+ /// if true, the current table row should be allowed
/// to wrap to multiple lines, else truncated
///
internal bool multiLine;
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs
index 2090740585..3ef1780641 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataManager.cs
@@ -49,7 +49,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- ///
+ ///
///
///
///
@@ -155,7 +155,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// Update a shared formatting database with formatData of 'ExtendedTypeDefinition' type.
- /// This method should only be called from the FormatTable, where are shared formatting
+ /// This method should only be called from the FormatTable, where are shared formatting
/// database is created.
///
///
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs
index 28ad704731..81bb4148f4 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader.cs
@@ -640,7 +640,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
}
- // rowEntries must not be empty
+ // rowEntries must not be empty
if (tableBody.defaultDefinition == null)
{
this.ReportErrorForLoadingFromObjectModel(
@@ -716,7 +716,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
catch (ParseException e)
{
- // Error at
+ // Error at
this.ReportErrorForLoadingFromObjectModel(
StringUtil.Format(FormatAndOutXmlLoadingStrings.InvalidScriptBlockInFormattingData, typeName, viewIndex, e.Message), typeName);
return null;
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs
index 51bf9ee819..87ca7024d3 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Complex.cs
@@ -570,7 +570,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
frame.frameInfoDefinition.firstLine = LoadPositiveOrZeroIntegerValue(n, out success);
if (!success)
return null;
- // hanging is codified as negative
+ // hanging is codified as negative
frame.frameInfoDefinition.firstLine = -frame.frameInfoDefinition.firstLine;
}
else if (MatchNodeName(n, XmlTags.ComplexItemNode))
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs
index a9871f3687..f4bf1456e1 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Table.cs
@@ -445,7 +445,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
TableRowItemDefinition rid = new TableRowItemDefinition();
- // process the remaining nodes
+ // process the remaining nodes
bool alignmentNodeFound = false; // cardinality 0..1
foreach (XmlNode n in unprocessedNodes)
{
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs
index b1f5cf475c..7cb5b9341f 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/DisplayDatabase/typeDataXmlLoader_Views.cs
@@ -263,7 +263,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
else
{
- // save for further processing
+ // save for further processing
unprocessedNodes.Add(n);
}
} // for
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatGroupManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatGroupManager.cs
index 52529f2597..e5a3010149 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatGroupManager.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatGroupManager.cs
@@ -11,7 +11,7 @@ using System.Globalization;
namespace Microsoft.PowerShell.Commands.Internal.Format
{
///
- /// internal class to manage the grouping algorithm for the
+ /// internal class to manage the grouping algorithm for the
/// format-xxx commands
///
internal sealed class GroupingInfoManager
@@ -75,7 +75,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
// we had no matches or we could not get the value:
- // NOTICE: we need to do this to avoid starting a new group every time
+ // NOTICE: we need to do this to avoid starting a new group every time
// there is a failure to read the grouping property.
// For example, for AD, there are objects that throw when trying
// to read the "distinguishedName" property (used by the brokered property "ParentPath)
@@ -106,7 +106,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// value of the display label passed in.
+ /// value of the display label passed in.
///
private string _label = null;
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatMsgCtxManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatMsgCtxManager.cs
index bdafa773cc..f0d9635825 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatMsgCtxManager.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatMsgCtxManager.cs
@@ -8,12 +8,12 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
{
///
/// INTERNAL IMPLEMENTATION CLASS
- ///
+ ///
/// It manages the finite state machine for the sequence of formatting messages.
/// It achieves this by maintaining a stack of OutputContext-derived objects.
/// A predefined set of events allows the host of this class to process the information
/// as it comes trough the finite state machine (push model)
- ///
+ ///
/// IMPORTANT: The code using this class will have to provide ALL the callbacks.
///
internal class FormatMessagesContextManager
@@ -42,7 +42,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
internal abstract class OutputContext
{
///
- ///
+ ///
///
/// parent context in the stack, it can be null
internal OutputContext(OutputContext parentContextInStack)
@@ -59,7 +59,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// process an object from an input stream. It manages the context stack and
+ /// process an object from an input stream. It manages the context stack and
/// calls back on the specified event delegates
///
/// object to process
@@ -89,7 +89,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
OutputContext oc = this.contextCreation(this.ActiveOutputContext, formatData);
_stack.Push(oc);
- // now we have the context properly set: need to notify the
+ // now we have the context properly set: need to notify the
// underlying algorithm to do the start document or group stuff
if (formatDataIsFormatStartData)
{
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs
index c01c363db1..6dda909650 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Complex.cs
@@ -227,7 +227,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
FormatEntry feFrame = new FormatEntry();
feFrame.frameInfo = new FrameInfo();
- // add the frame info
+ // add the frame info
feFrame.frameInfo.firstLine = ft.frameInfoDefinition.firstLine;
feFrame.frameInfo.leftIndentation = ft.frameInfoDefinition.leftIndentation;
feFrame.frameInfo.rightIndentation = ft.frameInfoDefinition.rightIndentation;
@@ -252,7 +252,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
// get the property from the object
object val = null;
- // if no expression was specified, just use the
+ // if no expression was specified, just use the
// object itself
if (cpt.expression == null || string.IsNullOrEmpty(cpt.expression.expressionValue))
{
@@ -746,7 +746,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
FormatEntry feFrame = new FormatEntry();
feFrame.frameInfo = new FrameInfo();
- // add the frame info
+ // add the frame info
feFrame.frameInfo.firstLine = 0;
feFrame.frameInfo.leftIndentation = _indentationStep;
feFrame.frameInfo.rightIndentation = 0;
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs
index 57639ee8a2..890ad799f1 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_List.cs
@@ -37,7 +37,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// Let the view prepare itself for RemoteObjects. This will add "ComputerName" to the
+ /// Let the view prepare itself for RemoteObjects. This will add "ComputerName" to the
/// table columns.
///
///
@@ -107,7 +107,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
else if (result != null)
{
- // if we got a valid match from the Mshexpression, use it as a label
+ // if we got a valid match from the Mshexpression, use it as a label
lvf.label = result.ResolvedExpression.ToString();
}
else
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs
index df0822fc55..86d9688f39 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewGenerator_Table.cs
@@ -77,7 +77,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// Let the view prepare itself for RemoteObjects. This will add "ComputerName" to the
+ /// Let the view prepare itself for RemoteObjects. This will add "ComputerName" to the
/// table columns.
///
///
@@ -126,7 +126,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// Method to filter resolved expressions as per table view needs.
/// For v1.0, table view supports only 10 properties.
- ///
+ ///
/// This method filters and updates "activeAssociationList" instance property.
///
/// None.
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewManager.cs
index 42bf7cc742..d2475cd3dc 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewManager.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormatViewManager.cs
@@ -28,7 +28,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return false;
// check if the type is derived from a System.Enum
- // e.g. in C#
+ // e.g. in C#
// enum Foo { Red, Black, Green}
if (PSObjectHelper.PSObjectIsEnum(typeNames))
return true;
@@ -199,7 +199,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// Prepares a given view for remote object processing ie., lets the view
- /// display (or not) ComputerName property. This will query the object to
+ /// display (or not) ComputerName property. This will query the object to
/// check if ComputerName property is present. If present, this will prepare
/// the view.
///
@@ -215,7 +215,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// Helper method to process Unknown error message.
- /// It helps is creating appropriate error message to
+ /// It helps is creating appropriate error message to
/// be displayed to the user.
///
/// Error context.
@@ -456,7 +456,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// class to manage the selection of a desired view type
+ /// class to manage the selection of a desired view type
/// for out of band objects
///
internal static class OutOfBandFormatViewManager
@@ -592,7 +592,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// Helper class to manage the logging of errors resulting from
/// evaluations of MshExpression instances
- ///
+ ///
/// Depending on settings, it queues the failing MshExpressionResult
/// instances and generates a list of out-of-band FormatEntryData
/// objects to be sent to the output pipeline
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs
index 8950a44f5b..73d3711efb 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjects.cs
@@ -2,21 +2,21 @@
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
// This file contains the definitions for the objects
-// used in the communication protocol between formatting
+// used in the communication protocol between formatting
// and output commands. the format/xxx commands instantiate
// these objects and write them to the pipeline. The out-xxx
// commands read them from the pipeline.
//
// NOTE:
// Since format/xxx and out-xxx commands can be separated by
-// serialization boundaries, the structure of these objects
+// serialization boundaries, the structure of these objects
// must adhere to the Monad serialization constraints.
//
// Since the out-xxx commands heavily access these objects and
// there is an up front need for protocol validation, the out-xxx
-// commands do deserialize the objects back from the property bag
+// commands do deserialize the objects back from the property bag
// representation that mig have been introduced by serialization.
-//
+//
// There is also the need to preserve type information across serialization
// boundaries, therefore the objects provide a GUID based machanism to
// preserve the information.
@@ -203,7 +203,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// desired number of columns on the screen.
/// Advisory, the outputter can decide otherwise
- ///
+ ///
/// A zero value signifies let the outputter get the
/// best fit on the screen (possibly blocking until the end)
///
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjectsDeserializer.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjectsDeserializer.cs
index 4467f2c2c9..92bc60a97a 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjectsDeserializer.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/FormattingObjectsDeserializer.cs
@@ -50,7 +50,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
- // check the type of the object by
+ // check the type of the object by
// 1) verifying the type name information
// 2) trying to access the property containing CLSID information
if (!Deserializer.IsInstanceOfType(so, typeof(FormatInfoData)))
@@ -107,7 +107,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return null;
}
- // check the type of the object by
+ // check the type of the object by
// 1) verifying the type name information
// 2) trying to access the property containing CLSID information
if (!Deserializer.IsInstanceOfType(so, typeof(FormatInfoData)))
@@ -160,7 +160,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
#if _UNUSED
- NOTE: this code is commented out because the current schema does not have the need for
+ NOTE: this code is commented out because the current schema does not have the need for
it. We retail it because future schema extensions might require it
///
@@ -177,7 +177,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
if (e == null)
return null;
- // copy to string collection, since, a priori, we do not know the length
+ // copy to string collection, since, a priori, we do not know the length
StringCollection temp = new StringCollection ();
foreach (string s in e)
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ILineOutput.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ILineOutput.cs
index 17bacfa06d..d843c716f1 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ILineOutput.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ILineOutput.cs
@@ -14,10 +14,10 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// Base class providing support for string manipulation.
/// This class is a tear off class provided by the LineOutput class
- ///
+ ///
/// Assumptions (in addition to the assumptions made for LineOutput):
/// - characters map to one or more character cells
- ///
+ ///
/// NOTE: we provide a base class that is valid for devices that have a
/// 1:1 mapping between a UNICODE character and a display cell
///
@@ -57,7 +57,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
#region Helpers
///
- /// Given a string and a number of display cells, it computes how many
+ /// Given a string and a number of display cells, it computes how many
/// characters would fit starting from the beginning or end of the string
///
/// string to be displayed
@@ -128,7 +128,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
/// * File: it layers on top of a TextWriter
/// * In Memory text stream: it layers on top of an in memory buffer
/// * Printer: it layers on top of a memory buffer then sent to a printer device
- ///
+ ///
/// Assumptions:
/// - Fixed pitch font: layout done in terms of character cells
/// - character cell layout not affected by bold, reverse screen, color, etc.
@@ -151,12 +151,12 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
- /// if RequiresBuffering = true, this call will be made to
+ /// if RequiresBuffering = true, this call will be made to
/// start the playback
///
internal virtual void ExecuteBufferPlayBack(DoPlayBackCall playback) { }
- ///
+ ///
///
/// The number of columns the current device has
///
@@ -170,7 +170,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// Write a line to the output device.
///
- ///
+ ///
/// string to be written to the device
///
internal abstract void WriteLine(string s);
@@ -221,7 +221,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// helper class to provide line breaking (based on device width)
+ /// helper class to provide line breaking (based on device width)
/// and embedded newline processing
/// It needs to be provided with two callbacks for line processing
///
@@ -352,7 +352,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// Implementation of the ILineOutput interface accepting an instance of a
+ /// Implementation of the ILineOutput interface accepting an instance of a
/// TextWriter abstract class
///
internal class TextWriterLineOutput : LineOutput
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs
index c8e99f4889..2538b88c56 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/ListWriter.cs
@@ -29,7 +29,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
private int _columnWidth = 0;
///
- ///
+ ///
///
/// names of the properties to display
/// column width of the screen
@@ -205,7 +205,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
// compute the width of the field for the value string (in screen cells)
int fieldCellCount = _columnWidth - _propertyLabelsDisplayLength;
- // split the lines
+ // split the lines
StringCollection sc = StringManipulationHelper.GenerateLines(lo.DisplayCells, line, fieldCellCount, fieldCellCount);
// padding to use in the lines after the first
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs
index 52ead6af02..5df77045e1 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputManager.cs
@@ -88,7 +88,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// handler for processing shut down. It forwards the call to the
+ /// handler for processing shut down. It forwards the call to the
/// pipeline manager object
///
internal override void EndProcessing()
@@ -142,7 +142,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
///
/// object managing the sub-pipelines that execute
- /// different output commands (or different instances of the
+ /// different output commands (or different instances of the
/// default one)
///
internal sealed class SubPipelineManager : IDisposable
@@ -158,7 +158,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
internal CommandWrapper command = new CommandWrapper();
///
- ///
+ ///
///
/// ETS type name of the object to process
/// true if there is a match
@@ -211,14 +211,14 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
// set the default handler
RegisterCommandDefault(context, "out-lineoutput", typeof(OutLineOutputCommand));
/*
- NOTE:
- This is the spot where we could add new specialized handlers for
+ NOTE:
+ This is the spot where we could add new specialized handlers for
additional types. Adding a handler here would cause a new sub-pipeline
to be created.
For example, the following line would add a new handler named "out-foobar"
to be invoked when the incoming object type is "MyNamespace.Whatever.FooBar"
-
+
RegisterCommandForTypes (context, "out-foobar", new string[] { "MyNamespace.Whatever.FooBar" });
And the method can be like this:
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs
index a2be8c9a92..47e61bd4f9 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/OutputQueue.cs
@@ -250,7 +250,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// add an object to the cache. the behavior depends on the object added, the
+ /// add an object to the cache. the behavior depends on the object added, the
/// objects already in the cache and the cache settings
///
/// object to add
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs
index 22a1e5840b..885b0a0260 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/TableWriter.cs
@@ -241,7 +241,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
scArray[k] = GenerateMultiLineRowField(values[validColumnArray[k]], validColumnArray[k],
alignment[validColumnArray[k]], ds);
- // NOTE: the following padding operations assume that we
+ // NOTE: the following padding operations assume that we
// pad with a blank (or any character that ALWAYS maps to a single screen cell
if (k > 0)
{
@@ -335,7 +335,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
int newRowIndex = sb.Length;
- // NOTE: the following padding operations assume that we
+ // NOTE: the following padding operations assume that we
// pad with a blank (or any character that ALWAYS maps to a single screen cell
if (k > 0)
{
@@ -407,7 +407,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
{
case TextAlignment.Right:
{
- // get from "abcdef" to "...f"
+ // get from "abcdef" to "...f"
int tailCount = dc.GetTailSplitLength(s, truncationDisplayLength);
s = s.Substring(s.Length - tailCount);
s = ellipsis + s;
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshObjectUtil.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshObjectUtil.cs
index 3ac0c55e92..52d853ed4d 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshObjectUtil.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshObjectUtil.cs
@@ -394,7 +394,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
PSObject so = PSObjectHelper.AsPSObject(val);
if (directive != null && !string.IsNullOrEmpty(directive.formatString))
{
- // we have a formatting directive, apply it
+ // we have a formatting directive, apply it
// NOTE: with a format directive, we do not make any attempt
// to deal with IEnumerable
try
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameter.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameter.cs
index 06f5e6599e..9e24b0a16c 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameter.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameter.cs
@@ -10,8 +10,8 @@ using System.Collections.Generic;
using System.Text;
using System.Diagnostics.CodeAnalysis;
-#if CORECLR
-// Used for 'IsAssignableFrom' which is not available under 'Type' in CoreClR but provided
+#if CORECLR
+// Used for 'IsAssignableFrom' which is not available under 'Type' in CoreClR but provided
// as an extension method in 'System.Reflection.TypeExtensions'
using System.Reflection;
#endif
@@ -120,7 +120,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// metadata abstract base class to contain hash entries definitions
+ /// metadata abstract base class to contain hash entries definitions
///
internal abstract class CommandParameterDefinition
{
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs
index 15a7874a55..1ab20dc5e7 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/common/Utilities/MshParameterAssociation.cs
@@ -174,8 +174,8 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
/// Helper method to handle PSComputerName and PSShowComputerName properties from
/// the formating objects. If PSShowComputerName exists and is false, removes
/// PSComputerName from the display.
- ///
- /// PSShowComputerName is an internal property..so this property is always
+ ///
+ /// PSShowComputerName is an internal property..so this property is always
/// removed from the display.
///
///
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs
index 18f5a1c2a4..ae0cc9f67c 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/ConsoleLineOutput.cs
@@ -37,13 +37,13 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
return len;
}
- internal override int Length(char character)
+ internal override int Length(char character)
{
if (character >= 'A' && character <= 'Z')
return 2;
return 1;
}
-
+
internal override int GetHeadSplitLength(string str, int offset, int displayCells)
{
return GetSplitLengthInternalHelper(str, offset, displayCells, true);
@@ -151,7 +151,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
#region LineOutput implementation
///
- /// the # of columns is just the width of the screen buffer (not the
+ /// the # of columns is just the width of the screen buffer (not the
/// width of the window)
///
///
@@ -288,7 +288,7 @@ namespace Microsoft.PowerShell.Commands.Internal.Format
}
///
- /// callback to be called when ILineOutput.WriteLine() is called by WriteLineHelper
+ /// callback to be called when ILineOutput.WriteLine() is called by WriteLineHelper
///
/// string to write
private void OnWriteLine(string s)
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs
index e7f896c72a..484e996743 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-console/OutConsole.cs
@@ -25,7 +25,7 @@ namespace Microsoft.PowerShell.Commands
[Parameter(ValueFromPipeline = true)]
public PSObject InputObject { set; get; } = AutomationNull.Value;
- ///
+ ///
///
/// Do nothing
///
diff --git a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs
index 841d6b6f67..7c3d7f88fe 100644
--- a/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs
+++ b/src/System.Management.Automation/commands/utility/FormatAndOutput/out-textInterface/OutTextInterface.cs
@@ -41,7 +41,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
protected override void BeginProcessing()
{
diff --git a/src/System.Management.Automation/engine/AliasInfo.cs b/src/System.Management.Automation/engine/AliasInfo.cs
index 71b94ead32..54b5e4872e 100644
--- a/src/System.Management.Automation/engine/AliasInfo.cs
+++ b/src/System.Management.Automation/engine/AliasInfo.cs
@@ -17,27 +17,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the AliasInfo class with the specified name and referenced command
///
- ///
+ ///
///
/// The name of the command.
///
- ///
+ ///
///
/// The token that the alias refers to.
///
- ///
+ ///
///
/// The execution context for this engine, used to lookup the current session state.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal AliasInfo(string name, string definition, ExecutionContext context) : base(name, CommandTypes.Alias)
{
_definition = definition;
@@ -52,31 +52,31 @@ namespace System.Management.Automation
///
/// Creates an instance of the AliasInfo class with the specified name and referenced command
///
- ///
+ ///
///
/// The name of the command.
///
- ///
+ ///
///
/// The token that the alias refers to.
///
- ///
+ ///
///
/// The execution context for this engine instance, used to look up session state.
///
- ///
+ ///
///
/// The options to set on the alias. Note, Constant can only be set at creation time.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal AliasInfo(
string name,
string definition,
@@ -137,12 +137,12 @@ namespace System.Management.Automation
/// Gets the command information for the command that
/// the alias eventually resolves to.
///
- ///
+ ///
///
/// An alias may reference another alias. This property follows the reference
/// chain of aliases to its end.
///
- ///
+ ///
///
@@ -108,7 +108,7 @@ namespace System.Management.Automation.Internal
///
/// Internal helper to get to SessionState
///
- ///
+ ///
internal SessionState InternalState
{
get { return _state; }
@@ -203,7 +203,7 @@ namespace System.Management.Automation.Internal
///
/// When overridden in the derived class, performs clean-up
- /// after the command execution.
+ /// after the command execution.
/// Default implementation in the base class just returns.
///
internal virtual void DoEndProcessing()
@@ -243,7 +243,7 @@ namespace System.Management.Automation.Internal
/// Using InternalDispose instead of Dispose pattern because this
/// interface was shipped in PowerShell V1 and 3rd cmdlets indirectly
/// derive from this interface. If we depend on Dispose() and 3rd
- /// party cmdlets do not call base.Dispose (which is the case), we
+ /// party cmdlets do not call base.Dispose (which is the case), we
/// will still end up having this leak.
///
internal void InternalDispose(bool isDisposing)
@@ -331,10 +331,10 @@ namespace System.Management.Automation
/// deriving from the PSCmdlet base class. The Cmdlet base class is the primary means by
/// which users create their own Cmdlets. Extending this class provides support for the most
/// common functionality, including object output and record processing.
- /// If your Cmdlet requires access to the MSH Runtime (for example, variables in the session state,
- /// access to the host, or information about the current Cmdlet Providers,) then you should instead
- /// derive from the PSCmdlet base class.
- /// The public members defined by the PSCmdlet class are not designed to be overridden; instead, they
+ /// If your Cmdlet requires access to the MSH Runtime (for example, variables in the session state,
+ /// access to the host, or information about the current Cmdlet Providers,) then you should instead
+ /// derive from the PSCmdlet base class.
+ /// The public members defined by the PSCmdlet class are not designed to be overridden; instead, they
/// provided access to different aspects of the MSH runtime.
/// In both cases, users should first develop and implement an object model to accomplish their
/// task, extending the Cmdlet or PSCmdlet classes only as a thin management layer.
@@ -393,7 +393,7 @@ namespace System.Management.Automation
} // Events
///
- /// Repository for jobs
+ /// Repository for jobs
///
public JobRepository JobRepository
{
diff --git a/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs b/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs
index 54e6de6b4e..b92eadda02 100644
--- a/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs
+++ b/src/System.Management.Automation/engine/CommandCompletion/CommandCompletion.cs
@@ -64,7 +64,7 @@ namespace System.Management.Automation
#region public methods
///
- ///
+ ///
///
///
///
@@ -86,7 +86,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
/// The input to complete
/// The index of the cursor in the input
@@ -104,7 +104,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
/// Ast for pre-parsed input
/// Tokens for pre-parsed input
@@ -168,7 +168,7 @@ namespace System.Management.Automation
var remoteRunspace = powershell.Runspace as RemoteRunspace;
if (remoteRunspace != null)
{
- // If the runspace is not available to run commands then exit here because nested commands are not
+ // If the runspace is not available to run commands then exit here because nested commands are not
// supported on remote runspaces.
if (powershell.IsNested || (remoteRunspace.RunspaceAvailability != RunspaceAvailability.Available))
{
@@ -247,7 +247,7 @@ namespace System.Management.Automation
var remoteRunspace = powershell.Runspace as RemoteRunspace;
if (remoteRunspace != null)
{
- // If the runspace is not available to run commands then exit here because nested commands are not
+ // If the runspace is not available to run commands then exit here because nested commands are not
// supported on remote runspaces.
if (powershell.IsNested || (remoteRunspace.RunspaceAvailability != RunspaceAvailability.Available))
{
@@ -688,13 +688,13 @@ namespace System.Management.Automation
///
/// PSv2CompletionCompleter implements the algorithm we use to complete cmdlet/file names in PowerShell v2. This class
- /// exists for legacy purpose only. It is used only in a remote interactive session from Win8 to Win7. V3 and forward
+ /// exists for legacy purpose only. It is used only in a remote interactive session from Win8 to Win7. V3 and forward
/// uses completely different completers.
///
- ///
+ ///
///
/// The implementation of file name completion is completely different on V2 and V3 for remote scenarios. On PSv3, the
- /// CompletionResults are generated always on the target machine, and
+ /// CompletionResults are generated always on the target machine, and
///
private static class PSv2CompletionCompleter
{
@@ -1160,11 +1160,11 @@ namespace System.Management.Automation
/// per LastWordFinder instance.
///
///
- /// Receives the character index (from the front of the string) of the starting point of the located word, or 0 if
+ /// Receives the character index (from the front of the string) of the starting point of the located word, or 0 if
/// the word starts at the beginning of the sentence.
///
///
- /// Receives the quote character that would be needed to end the sentence with a balanced pair of quotes. For
+ /// Receives the quote character that would be needed to end the sentence with a balanced pair of quotes. For
/// instance, if sentence is "foo then " is returned, if sentence if "foo" then nothing is returned, if sentence is
/// 'foo then ' is returned, if sentence is 'foo' then nothing is returned.
///
diff --git a/src/System.Management.Automation/engine/CommandCompletion/CompletionAnalysis.cs b/src/System.Management.Automation/engine/CommandCompletion/CompletionAnalysis.cs
index 6eb4668765..32057fce1c 100644
--- a/src/System.Management.Automation/engine/CommandCompletion/CompletionAnalysis.cs
+++ b/src/System.Management.Automation/engine/CommandCompletion/CompletionAnalysis.cs
@@ -590,7 +590,7 @@ namespace System.Management.Automation
// and an assignment is pending. For cases like:
// new-object System.Drawing.Point -prop @{ X= -> Tab should not complete
// Note: This check works when all statements preceding the last are complete,
- // but if a preceding statement is incomplete this test fails because
+ // but if a preceding statement is incomplete this test fails because
// the Ast mixes the statements due to incomplete parsing.
// e.g.,
// new-object System.Drawing.Point -prop @{ X = 100; Y = <- Incomplete line
@@ -1263,7 +1263,7 @@ namespace System.Management.Automation
/// Generate auto complete results for identifier within configuration.
/// Results are generated based on DynamicKeywords matches given identifier.
/// For example, following "Fi" matches "File", and "Us" matches "User"
- ///
+ ///
/// Configuration
/// {
/// Fi^
@@ -1272,7 +1272,7 @@ namespace System.Management.Automation
/// Us^
/// }
/// }
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs b/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
index 4645a60582..f0b2632870 100644
--- a/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
+++ b/src/System.Management.Automation/engine/CommandCompletion/CompletionCompleters.cs
@@ -29,7 +29,7 @@ using Microsoft.PowerShell.Commands;
namespace System.Management.Automation
{
///
- ///
+ ///
///
public static class CompletionCompleters
{
@@ -57,7 +57,7 @@ namespace System.Management.Automation
#region Command Names
///
- ///
+ ///
///
///
///
@@ -67,7 +67,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -332,7 +332,7 @@ namespace System.Management.Automation
}
// The first command might be an un-prefixed commandInfo that we get by importing a module with the -Prefix parameter,
- // in that case, we should add the module name qualification because if the module is not in the module path, calling
+ // in that case, we should add the module name qualification because if the module is not in the module path, calling
// 'Get-Foo' directly doesn't work
string completionName = keyValuePair.Key;
if (!includeModulePrefix)
@@ -356,7 +356,7 @@ namespace System.Management.Automation
for (int index = 1; index < commandList.Count; index++)
{
var commandInfo = commandList[index] as CommandInfo;
- // If it's a pseudo command that only works in the script workflow, don't bother adding it to the result
+ // If it's a pseudo command that only works in the script workflow, don't bother adding it to the result
// list since it's a duplicate
if (commandInfo == null) { continue; }
@@ -374,7 +374,7 @@ namespace System.Management.Automation
else
{
// The first command might be an un-prefixed commandInfo that we get by importing a module with the -Prefix parameter,
- // in that case, we should add the module name qualification because if the module is not in the module path, calling
+ // in that case, we should add the module name qualification because if the module is not in the module path, calling
// 'Get-Foo' directly doesn't work
string completionName = keyValuePair.Key;
if (!includeModulePrefix)
@@ -965,7 +965,7 @@ namespace System.Management.Automation
}
else if (expressionAst.Parent is ArrayLiteralAst && expressionAst.Parent.Parent is CommandParameterAst)
{
- // Handle scenarios such as
+ // Handle scenarios such as
// dir -Path: a.txt, || dir -Path: a.txt, b.txt
commandAst = (CommandAst)expressionAst.Parent.Parent.Parent;
if (context.WordToComplete == string.Empty)
@@ -1655,7 +1655,7 @@ namespace System.Management.Automation
///
/// Process a parameter to get the argument completion results
///
- ///
+ ///
///
/// If the argument completion falls into these pre-defined cases:
/// 1. The matching parameter is of type Enum
@@ -2810,7 +2810,7 @@ namespace System.Management.Automation
if (commandResults != null)
result.AddRange(commandResults);
- // Consider files only if the -Module parameter is not present
+ // Consider files only if the -Module parameter is not present
if (moduleName == null)
{
// ps1 files and directories. We only complete the files with .ps1 extension for Get-Command, because the -Syntax
@@ -3620,7 +3620,7 @@ namespace System.Management.Automation
/// The item provided by user for completion.
/// Name of the parameter whose value needs completion.
/// List of completion suggestions.
- /// Completion context.
+ /// Completion context.
private static void NativeCompletionNewItemCommand(string itemTypeToComplete, string paramName, List result, CompletionContext context)
{
if (string.IsNullOrEmpty(paramName))
@@ -3955,7 +3955,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
/// the argument that is right before the 'tab' location
/// the number of positional arguments before the 'tab' location
@@ -4051,7 +4051,7 @@ namespace System.Management.Automation
#region Filenames
///
- ///
+ ///
///
///
///
@@ -4499,7 +4499,7 @@ namespace System.Management.Automation
#region Variable
///
- ///
+ ///
///
///
///
@@ -5014,7 +5014,7 @@ namespace System.Management.Automation
// $xml.
// $xml.Save("C:\data.xml")
// In this example, we add $xml. between two existing statements, and the 'lastAst' in this case is
- // a MemberExpressionAst '$xml.$xml', whose parent is still a MemberExpressionAst '$xml.$xml.Save'.
+ // a MemberExpressionAst '$xml.$xml', whose parent is still a MemberExpressionAst '$xml.$xml.Save'.
// But here we DO NOT want to re-assign 'targetExpr' to be '$xml.$xml'. 'targetExpr' in this case
// should be '$xml'.
if (targetExpr == null)
@@ -5455,7 +5455,7 @@ namespace System.Management.Automation
}
}
- // Add stuff from our base class System.Object.
+ // Add stuff from our base class System.Object.
if (@static)
{
// Don't add base class constructors
@@ -5605,7 +5605,7 @@ namespace System.Management.Automation
/// In OneCore PS, there is no way to retrieve all loaded assemblies. But we have the type catalog dictionary
/// which contains the full type names of all available CoreCLR .NET types. We can extract the necessary info
/// from the full type names to make type name auto-completion work.
- /// This type represents a generic type for type name completion. It only contains information that can be
+ /// This type represents a generic type for type name completion. It only contains information that can be
/// inferred from the full type name.
///
private class GenericTypeCompletionInStringFormat : TypeCompletionInStringFormat
@@ -5812,7 +5812,7 @@ namespace System.Management.Automation
// If it's already included, skip it.
// This may happen when an accelerator name is the same as the short name of the type it represents,
- // and aslo that type has more than one accelerator names. For example:
+ // and aslo that type has more than one accelerator names. For example:
// "float" -> System.Single
// "single" -> System.Single
if (typeAlreadyIncluded) { continue; }
@@ -6069,7 +6069,7 @@ namespace System.Management.Automation
}
}
- //this is a temporary fix. Only the type defined in the same script get complete. Need to use using Module when that is available.
+ //this is a temporary fix. Only the type defined in the same script get complete. Need to use using Module when that is available.
var scriptBlockAst = (ScriptBlockAst)context.RelatedAsts[0];
var typeAsts = scriptBlockAst.FindAll(ast => ast is TypeDefinitionAst, false).Cast();
foreach (var typeAst in typeAsts.Where(ast => pattern.IsMatch(ast.Name)))
@@ -6233,7 +6233,7 @@ namespace System.Management.Automation
/// Generate auto complete results for hashtable key within a Dynamickeyword.
/// Results are generated based on properties of a DynamicKeyword matches given identifier.
/// For example, following "D" matches "DestinationPath"
- ///
+ ///
/// Configuration
/// {
/// File
@@ -6241,7 +6241,7 @@ namespace System.Management.Automation
/// D^
/// }
/// }
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs b/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs
index 23d24207d2..90ef923e15 100644
--- a/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs
+++ b/src/System.Management.Automation/engine/CommandCompletion/CompletionExecutionHelper.cs
@@ -75,7 +75,7 @@ namespace System.Management.Automation
return false;
}
- // we got back one or more objects.
+ // we got back one or more objects.
return (streamResults.Count > 1) || (LanguagePrimitives.IsTrue(streamResults[0]));
}
diff --git a/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs b/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs
index a6c098bee9..5db61a8bc1 100644
--- a/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs
+++ b/src/System.Management.Automation/engine/CommandCompletion/CompletionResult.cs
@@ -57,7 +57,7 @@ namespace System.Management.Automation
/// A dynamic keyword
DynamicKeyword = 13,
- // If a new enum is added, there is a range test that uses DynamicKeyword for parameter validation
+ // If a new enum is added, there is a range test that uses DynamicKeyword for parameter validation
// that needs to be updated to use the new enum.
// We can't use a "MaxValue" enum because it's value would preclude ever adding a new enum.
}
@@ -208,8 +208,8 @@ namespace System.Management.Automation
///
/// An null instance of CompletionResult.
///
- ///
- ///
+ ///
+ ///
/// This can be used in argument completion, to indicate that the completion attempt has gone through the
/// native command argument completion methods.
///
diff --git a/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs b/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs
index 9a721c761f..405a635791 100644
--- a/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs
+++ b/src/System.Management.Automation/engine/CommandCompletion/ExtensibleCompletion.cs
@@ -88,13 +88,13 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
[Cmdlet(VerbsLifecycle.Register, "ArgumentCompleter", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=528576")]
public class RegisterArgumentCompleterCommand : PSCmdlet
{
///
- ///
+ ///
///
[Parameter(ParameterSetName = "NativeSet", Mandatory = true)]
[Parameter(ParameterSetName = "PowerShellSet")]
@@ -102,26 +102,26 @@ namespace System.Management.Automation
public string[] CommandName { get; set; }
///
- ///
+ ///
///
[Parameter(ParameterSetName = "PowerShellSet", Mandatory = true)]
public string ParameterName { get; set; }
///
- ///
+ ///
///
[Parameter(Mandatory = true)]
[AllowNull()]
public ScriptBlock ScriptBlock { get; set; }
///
- ///
+ ///
///
[Parameter(ParameterSetName = "NativeSet")]
public SwitchParameter Native { get; set; }
///
- ///
+ ///
///
protected override void EndProcessing()
{
diff --git a/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs b/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs
index 80381c4624..9715c3db2f 100644
--- a/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs
+++ b/src/System.Management.Automation/engine/CommandCompletion/PseudoParameterBinder.cs
@@ -253,7 +253,7 @@ namespace System.Management.Automation.Language
///
/// Runs the PowerShell parameter binding algorithm against a CommandAst,
/// returning information about which parameters were bound.
- ///
+ ///
///
public static class StaticParameterBinder
{
@@ -697,12 +697,12 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
public Dictionary BoundParameters { get; }
///
- ///
+ ///
///
public Dictionary BindingExceptions { get; }
}
@@ -724,12 +724,12 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
public ParameterMetadata Parameter { get; internal set; }
///
- ///
+ ///
///
public Object ConstantValue
{
@@ -745,7 +745,7 @@ namespace System.Management.Automation.Language
private object _constantValue;
///
- ///
+ ///
///
public CommandElementAst Value
{
@@ -1281,7 +1281,7 @@ namespace System.Management.Automation.Language
commandProcessor.SetCurrentScopeToExecutionScope();
// Run method "BindCommandLineParametersNoValidation" to get all available parameters, including the dynamic
// parameters (some of them, not necessarily all. Since we don't do the actual binding, some dynamic parameters
- // might not be retrieved).
+ // might not be retrieved).
if (!retryWithNoArgs)
{
// Win8 345299: First try with all unbounded arguments
@@ -1573,7 +1573,7 @@ namespace System.Management.Automation.Language
/// specified. We always eat the error (such as parameter without value) and continue
/// to do the binding.
///
- ///
+ ///
///
/// For parameter completion, if the cursor is pointing at a CommandParameterAst, we
/// should not try exact matching for that CommandParameterAst. This is to handle the
@@ -1581,7 +1581,7 @@ namespace System.Management.Automation.Language
/// Add-Computer -domain(tab)
/// Add-Computer has an alias "Domain" that can exactly match this partial input, but
/// since the user is typing 'tab', the partial input 'domain' should not be considered
- /// as an exact match. In this case, we don't try exact matching when calling
+ /// as an exact match. In this case, we don't try exact matching when calling
/// GetMatchingParameter(..) so as to preserve other possibilities.
///
private bool ParseParameterArguments(CommandParameterAst paramAstAtCursor)
@@ -1615,7 +1615,7 @@ namespace System.Management.Automation.Language
catch (ParameterBindingException e)
{
// The parameterName is resolved to multiple parameters. The most possible scenario for this
- // would be the user typing tab to complete a parameter. In this case, we can ignore this
+ // would be the user typing tab to complete a parameter. In this case, we can ignore this
// parameter safely.
// If the next item is a pure argument, we skip it so that it doesn't get bound
@@ -1863,7 +1863,7 @@ namespace System.Management.Automation.Language
// The positional pseudo binding is processed in two different approaches for parameter completion and parameter argument completion.
// - For parameter completion, we do NOT honor the default parameter set, so we can preserve potential parameters as many as possible.
- // Example:
+ // Example:
// Where-Object PropertyA -
// If the default parameter is honored, the completion results only contain EQ, because it's locked to the default set
//
@@ -1879,7 +1879,7 @@ namespace System.Management.Automation.Language
//
// So the algorithm for positional binding is:
// - With bindingType == ParameterCompletion
- // Skip the attempt with the default set, as well as the attempt with all sets but no coercion.
+ // Skip the attempt with the default set, as well as the attempt with all sets but no coercion.
// Do the positional binding with the (all valid set + with coercion) directly.
//
// - With bindingType == ArgumentCompletion (parameter argument completion)
diff --git a/src/System.Management.Automation/engine/CommandDiscovery.cs b/src/System.Management.Automation/engine/CommandDiscovery.cs
index d7719e0a2c..5f1df94c2c 100644
--- a/src/System.Management.Automation/engine/CommandDiscovery.cs
+++ b/src/System.Management.Automation/engine/CommandDiscovery.cs
@@ -124,11 +124,11 @@ namespace System.Management.Automation
///
/// Default constructor...
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CommandDiscovery(ExecutionContext context)
{
if (context == null)
@@ -159,15 +159,15 @@ namespace System.Management.Automation
///
/// Determines if the cmdlet is a cmdlet that shouldn't be in the discovery list.
///
- ///
+ ///
///
/// Type implementing the cmdlet
///
- ///
+ ///
///
/// True if the cmdlet is a special cmdlet that shouldn't be part of the discovery list. Or false otherwise.
///
- ///
+ ///
private bool IsSpecialCmdlet(Type implementingType)
{
// These commands should never be put in the discovery list. They are an internal implementation
@@ -211,19 +211,19 @@ namespace System.Management.Automation
///
/// Adds the CmdletInfo to the cmdlet cache in the current scope object.
///
- ///
+ ///
///
/// The name of the cmdlet to add.
///
- ///
+ ///
///
/// The CmdletInfo to add.
///
- ///
+ ///
///
/// If true, the cmdlet is added to the Module Scope of the session state.
///
- ///
+ ///
///
/// If a cmdlet with the same module and cmdlet name already exists
/// but has a different implementing type.
@@ -243,7 +243,7 @@ namespace System.Management.Automation
if (isGlobal)
{
- // When cmdlet cache was not scope-based, we used to import cmdlets to the module scope.
+ // When cmdlet cache was not scope-based, we used to import cmdlets to the module scope.
// We need to do the same as the default action (setting "isGlobal" is done as a default action in the caller)
return Context.EngineSessionState.ModuleScope.AddCmdletToCache(newCmdletInfo.Name, newCmdletInfo, CommandOrigin.Internal, Context);
}
@@ -303,35 +303,35 @@ namespace System.Management.Automation
///
/// Look up a command named by the argument string and return its CommandProcessorBase.
///
- ///
+ ///
///
/// The command name to lookup.
///
- ///
+ ///
/// Location where the command was dispatched from.
- ///
- ///
+ ///
+ ///
/// True if command processor should use local scope to execute the command,
/// False if not. Null if command discovery should default to something reasonable
/// for the command discovered.
///
///
- ///
+ ///
///
- ///
+ ///
///
/// If the command, , could not be found.
///
- ///
+ ///
///
/// If the security manager is preventing the command from running.
///
- ///
+ ///
internal CommandProcessorBase LookupCommandProcessor(string commandName,
CommandOrigin commandOrigin, bool? useLocalScope)
{
CommandInfo commandInfo = null;
-#if false
+#if false
if (tokenCache.ContainsKey (commandName))
{
commandInfo = tokenCache[commandName];
@@ -639,7 +639,7 @@ namespace System.Management.Automation
internal static void VerifyNetFrameworkVersion(ExternalScriptInfo scriptInfo)
{
Version requiresNetFrameworkVersion = scriptInfo.RequiresNetFrameworkVersion;
-
+
if (requiresNetFrameworkVersion != null)
{
if (!Utils.IsNetFrameworkVersionSupported(requiresNetFrameworkVersion))
@@ -687,30 +687,30 @@ namespace System.Management.Automation
///
/// Look up a command using a CommandInfo object and return its CommandProcessorBase.
///
- ///
+ ///
///
/// The commandInfo for the command to lookup.
///
- ///
+ ///
/// Location where the command was dispatched from.
- ///
+ ///
/// True if command processor should use local scope to execute the command,
/// False if not. Null if command discovery should default to something reasonable
/// for the command discovered.
///
/// The session state the commandInfo should be run in.
///
- ///
+ ///
///
- ///
+ ///
///
/// If the command, , could not be found.
///
- ///
+ ///
///
/// If the security manager is preventing the command from running.
///
- ///
+ ///
internal CommandProcessorBase LookupCommandProcessor(CommandInfo commandInfo,
CommandOrigin commandOrigin, bool? useLocalScope, SessionStateInternal sessionState)
{
@@ -909,21 +909,21 @@ namespace System.Management.Automation
///
/// Look up a command and return its CommandInfo.
///
- ///
+ ///
///
/// The command name to lookup.
///
- ///
+ ///
///
/// An instance of a CommandInfo object that represents the
/// command. If the command is resolved as an alias, an AliasInfo
/// is returned with the ReferencedCommand info intact.
///
- ///
+ ///
///
/// If the command, , could not be found.
///
- ///
+ ///
internal CommandInfo LookupCommandInfo(string commandName)
{
return LookupCommandInfo(commandName, CommandOrigin.Internal);
@@ -980,7 +980,7 @@ namespace System.Management.Automation
finally { context.CommandDiscovery.UnregisterLookupCommandInfoAction("ActivePreLookup", commandName); }
}
- // Check the module auto-loading preference
+ // Check the module auto-loading preference
PSModuleAutoLoadingPreference moduleAutoLoadingPreference = GetCommandDiscoveryPreference(context, SpecialVariables.PSModuleAutoLoadingPreferenceVarPath, "PSModuleAutoLoadingPreference");
if (eventArgs == null || eventArgs.StopSearch != true)
@@ -1391,7 +1391,7 @@ namespace System.Management.Automation
discoveryTracer.WriteLine("Executing module-qualified search: {0}", commandName);
context.CommandDiscovery.RegisterLookupCommandInfoAction("ActiveModuleSearch", commandName);
- // Verify that auto-loading is only done on for internal commands if it's not public
+ // Verify that auto-loading is only done on for internal commands if it's not public
CmdletInfo cmdletInfo = context.SessionState.InvokeCommand.GetCmdlet("Microsoft.PowerShell.Core\\Import-Module");
if ((commandOrigin == CommandOrigin.Internal) ||
((cmdletInfo != null) && (cmdletInfo.Visibility == SessionStateEntryVisibility.Public)))
@@ -1484,16 +1484,16 @@ namespace System.Management.Automation
/// Gets a CommandPathSearch constructed with the specified patterns and
/// using the PATH as the lookup directories
///
- ///
+ ///
///
/// The patterns to search for. These patterns must be in the form taken
/// by DirectoryInfo.GetFiles().
///
- ///
+ ///
///
/// An instance of CommandPathSearch that is initialized with the specified
/// patterns and using the PATH as the lookup directories.
- ///
+ ///
internal IEnumerable GetCommandPathSearcher(IEnumerable patterns)
{
// Get the PATH environment variable
@@ -1507,15 +1507,15 @@ namespace System.Management.Automation
/// Gets the resolved paths contained in the PATH environment
/// variable.
///
- ///
+ ///
///
/// The contents of the PATH environment variable split on System.IO.Path.PathSeparator.
///
- ///
+ ///
///
/// The result is an ordered list of paths with paths starting with "." unresolved until lookup time.
///
- ///
+ ///
internal IEnumerable GetLookupDirectoryPaths()
{
LookupPathCollection result = new LookupPathCollection();
@@ -1585,7 +1585,7 @@ namespace System.Management.Automation
///
/// Gets the PATHEXT environment variable extensions and tokenizes them.
///
- ///
+ ///
internal static string[] PathExtensionsWithPs1Prepended
{
get
@@ -1605,7 +1605,7 @@ namespace System.Management.Automation
///
/// Gets the PATHEXT environment variable extensions and tokenizes them.
///
- ///
+ ///
internal static string[] PathExtensions
{
get
@@ -1650,22 +1650,22 @@ namespace System.Management.Automation
///
/// Gets the cmdlet information for the specified name.
///
- ///
+ ///
///
/// The name of the cmdlet to return the information for.
///
///
/// True if we should search all scopes, false if we should stop after finding the first.
///
- ///
+ ///
///
/// The CmdletInfo for the cmdlet for all the cmdlets with the specified name.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal IEnumerator GetCmdletInfo(string cmdletName, bool searchAllScopes)
{
Dbg.Assert(!String.IsNullOrEmpty(cmdletName), "Caller should verify the cmdletName");
@@ -1703,7 +1703,7 @@ namespace System.Management.Automation
yield break;
}
}
- // The engine cmdlets get imported (via Import-Module) once when PowerShell starts and the cmdletInfo is added to PSSnapinHelpers._cmdletcache(static) with ModuleName
+ // The engine cmdlets get imported (via Import-Module) once when PowerShell starts and the cmdletInfo is added to PSSnapinHelpers._cmdletcache(static) with ModuleName
// as "System.Management.Automation.dll" instead of the actual snapin name. The next time we load something in an InitialSessionState, we look at this _cmdletcache and
// if the the assembly is already loaded, we just return the cmdlets back. So, the CmdletInfo has moduleName has "System.Management.Automation.dll". So, when M3P Activity
// tries to access Microsoft.PowerShell.Core\\Get-Command, it cannot. So, adding an additional check to return the correct cmdletInfo for cmdlets from core modules.
@@ -1740,7 +1740,7 @@ namespace System.Management.Automation
/// Called by the RunspaceConfiguration when a PSSnapIn gets added to the
/// console to update the list of available cmdlets.
///
- ///
+ ///
internal void UpdateCmdletCache()
{
if (!_cmdletCacheInitialized)
@@ -1782,11 +1782,11 @@ namespace System.Management.Automation
///
/// Removes a cmdlet from the cmdlet cache.
///
- ///
+ ///
///
/// The configuration entry for the cmdlet which is being removed.
///
- ///
+ ///
private void RemoveCmdletFromCache(CmdletConfigurationEntry entry)
{
IDictionary> cmdletTable = Context.EngineSessionState.GetCmdletTable();
@@ -1828,16 +1828,16 @@ namespace System.Management.Automation
///
/// Gets the cached ScriptInfo for a command using the script name.
///
- ///
+ ///
///
/// The name of the script.
///
- ///
+ ///
///
- /// A reference to the ScriptInfo for the command if its in the cache,
+ /// A reference to the ScriptInfo for the command if its in the cache,
/// or null otherwise.
///
- ///
+ ///
internal ScriptInfo GetScriptInfo(string name)
{
Dbg.Assert(
@@ -1852,7 +1852,7 @@ namespace System.Management.Automation
///
/// Gets the script cache
///
- ///
+ ///
internal Dictionary ScriptCache
{
get { return _cachedScriptInfo; }
@@ -1861,7 +1861,7 @@ namespace System.Management.Automation
///
/// The cache for the ScriptInfo.
///
- ///
+ ///
private Dictionary _cachedScriptInfo;
internal ExecutionContext Context { get; }
@@ -1869,21 +1869,21 @@ namespace System.Management.Automation
///
/// Reads the path for the appropriate shellID from the registry.
///
- ///
+ ///
///
/// The ID of the shell to retrieve the path for.
///
- ///
+ ///
///
/// The path to the shell represented by the shellID.
///
- ///
+ ///
///
/// The shellID must be registered in the Windows Registry in either
- /// the HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE hive under
+ /// the HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE hive under
/// Software/Microsoft/MSH/<ShellID> and are searched in that order.
///
- ///
+ ///
internal static string GetShellPathFromRegistry(string shellID)
{
string result = null;
@@ -1930,7 +1930,7 @@ namespace System.Management.Automation
throw PSTraceSource.NewArgumentNullException("context");
}
- // check the PSVariable
+ // check the PSVariable
object result = context.GetVariableValue(variablePath);
try
@@ -1973,11 +1973,11 @@ namespace System.Management.Automation
/// Constructs a LookupPathCollection object and adds all the items
/// in the supplied collection to it.
///
- ///
+ ///
///
/// A set of items to be added to the collection.
///
- ///
+ ///
internal LookupPathCollection(IEnumerable collection) : base()
{
foreach (string item in collection)
@@ -1990,15 +1990,15 @@ namespace System.Management.Automation
/// Adds the specified string to the collection if its not already
/// a member of the collection.
///
- ///
+ ///
///
/// The string to add to the collection.
///
- ///
+ ///
///
/// The index at which the string was added or -1 if it was not added.
///
- ///
+ ///
public new int Add(string item)
{
int result = -1;
@@ -2013,15 +2013,15 @@ namespace System.Management.Automation
///
/// Adds all the strings in the specified collection to this collection
///
- ///
+ ///
///
/// The collection of strings to add.
///
- ///
+ ///
///
/// Only the strings that are not already in the collection will be added.
///
- ///
+ ///
internal void AddRange(ICollection collection)
{
foreach (string name in collection)
@@ -2034,15 +2034,15 @@ namespace System.Management.Automation
/// Determines if the string already exists in the collection
/// using a invariant culture case insensitive comparison.
///
- ///
+ ///
///
/// The string to check for existence.
///
- ///
+ ///
///
/// True if the string already exists in the collection.
///
- ///
+ ///
public new bool Contains(string item)
{
bool result = false;
@@ -2061,11 +2061,11 @@ namespace System.Management.Automation
///
/// Returns a collection of all the indexes that are relative paths.
///
- ///
+ ///
///
/// A collection of all the indexes that are relative paths.
///
- ///
+ ///
internal Collection IndexOfRelativePath()
{
Collection result = new Collection();
@@ -2086,19 +2086,19 @@ namespace System.Management.Automation
/// Finds the first index of the specified string. The string
/// is compared in the invariant culture using a case-insensitive comparison.
///
- ///
+ ///
///
/// The string to look for.
///
- ///
+ ///
///
/// The index of the string in the collection or -1 if it was not found.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
public new int IndexOf(string item)
{
if (String.IsNullOrEmpty(item))
diff --git a/src/System.Management.Automation/engine/CommandFactory.cs b/src/System.Management.Automation/engine/CommandFactory.cs
index 2a71695953..9615ac9107 100644
--- a/src/System.Management.Automation/engine/CommandFactory.cs
+++ b/src/System.Management.Automation/engine/CommandFactory.cs
@@ -69,7 +69,7 @@ namespace System.Management.Automation
///
/// Creates a command object corresponding to specified name.
/// Location where the command was dispatched from.
- ///
+ ///
/// True if command processor should use local scope to execute the command,
/// False otherwise.
///
diff --git a/src/System.Management.Automation/engine/CommandInfo.cs b/src/System.Management.Automation/engine/CommandInfo.cs
index 457d5e49eb..d07e073fdc 100644
--- a/src/System.Management.Automation/engine/CommandInfo.cs
+++ b/src/System.Management.Automation/engine/CommandInfo.cs
@@ -20,9 +20,9 @@ namespace System.Management.Automation
public enum CommandTypes
{
///
- /// Aliases create a name that refers to other command types
+ /// Aliases create a name that refers to other command types
///
- ///
+ ///
///
/// Aliases are only persisted within the execution of a single engine.
///
@@ -31,7 +31,7 @@ namespace System.Management.Automation
///
/// Script functions that are defined by a script block
///
- ///
+ ///
///
/// Functions are only persisted within the execution of a single engine.
///
@@ -40,14 +40,14 @@ namespace System.Management.Automation
///
/// Script filters that are defined by a script block.
///
- ///
+ ///
///
/// Filters are only persisted within the execution of a single engine.
///
Filter = 0x0004,
///
- /// A cmdlet.
+ /// A cmdlet.
///
Cmdlet = 0x0008,
@@ -59,7 +59,7 @@ namespace System.Management.Automation
///
/// Any existing application (can be console or GUI).
///
- ///
+ ///
///
/// An application can have any extension that can be executed either directly through CreateProcess
/// or indirectly through ShellExecute.
@@ -85,7 +85,7 @@ namespace System.Management.Automation
///
/// All possible command types.
///
- ///
+ ///
///
/// Note, a CommandInfo instance will never specify
/// All as its CommandType but All can be used when filtering the CommandTypes.
@@ -104,19 +104,19 @@ namespace System.Management.Automation
///
/// Creates an instance of the CommandInfo class with the specified name and type
///
- ///
+ ///
///
/// The name of the command.
///
- ///
+ ///
///
/// The type of the command.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CommandInfo(string name, CommandTypes type)
{
// The name can be empty for functions and filters but it
@@ -134,23 +134,23 @@ namespace System.Management.Automation
///
/// Creates an instance of the CommandInfo class with the specified name and type
///
- ///
+ ///
///
/// The name of the command.
///
- ///
+ ///
///
/// The type of the command.
///
- ///
+ ///
///
/// The execution context for the command.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CommandInfo(string name, CommandTypes type, ExecutionContext context)
: this(name, type)
{
@@ -286,7 +286,7 @@ namespace System.Management.Automation
///
/// A string representing the definition of the command.
///
- ///
+ ///
///
/// This is overridden by derived classes to return specific
/// information for the command type.
@@ -297,15 +297,15 @@ namespace System.Management.Automation
///
/// This is required for renaming aliases, functions, and filters
///
- ///
+ ///
///
/// The new name for the command.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal void Rename(string newName)
{
if (String.IsNullOrEmpty(newName))
@@ -523,14 +523,14 @@ namespace System.Management.Automation
private void GetMergedCommandParameterMetadata(out MergedCommandParameterMetadata result)
{
// MSFT:652277 - When invoking cmdlets or advanced functions, MyInvocation.MyCommand.Parameters do not contain the dynamic parameters
- // When trying to get parameter metadata for a CommandInfo that has dynamic parameters, a new CommandProcessor will be
- // created out of this CommandInfo and the parameter binding algorithm will be invoked. However, when this happens via
- // 'MyInvocation.MyCommand.Parameter', it's actually retrieving the parameter metadata of the same cmdlet that is currently
- // running. In this case, information about the specified parameters are not kept around in 'MyInvocation.MyCommand', so
- // going through the binding algorithm again won't give us the metadata about the dynamic parameters that should have been
+ // When trying to get parameter metadata for a CommandInfo that has dynamic parameters, a new CommandProcessor will be
+ // created out of this CommandInfo and the parameter binding algorithm will be invoked. However, when this happens via
+ // 'MyInvocation.MyCommand.Parameter', it's actually retrieving the parameter metadata of the same cmdlet that is currently
+ // running. In this case, information about the specified parameters are not kept around in 'MyInvocation.MyCommand', so
+ // going through the binding algorithm again won't give us the metadata about the dynamic parameters that should have been
// discovered already.
- // The fix is to check if the CommandInfo is actually representing the currently running cmdlet. If so, the retrieval of parameter
- // metadata actually stems from the running of the same cmdlet. In this case, we can just use the current CommandProcessor to
+ // The fix is to check if the CommandInfo is actually representing the currently running cmdlet. If so, the retrieval of parameter
+ // metadata actually stems from the running of the same cmdlet. In this case, we can just use the current CommandProcessor to
// retrieve all bindable parameters, which should include the dynamic parameters that have been discovered already.
CommandProcessor processor;
if (Context.CurrentCommandProcessor != null && Context.CurrentCommandProcessor.CommandInfo == this)
@@ -670,30 +670,30 @@ namespace System.Management.Automation
///
/// Generates the parameter and parameter set info from the cmdlet metadata
///
- ///
+ ///
///
/// A collection of CommandParameterSetInfo representing the cmdlet metadata.
///
- ///
+ ///
///
/// The type name is invalid or the length of the type name
/// exceeds 1024 characters.
///
- ///
+ ///
///
/// The caller does not have the required permission to load the assembly
/// or create the type.
///
- ///
+ ///
///
/// If more than int.MaxValue parameter-sets are defined for the command.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
internal Collection GenerateCommandParameterSetInfo()
{
Collection result;
@@ -711,7 +711,7 @@ namespace System.Management.Automation
///
/// Gets or sets whether this CmdletInfo instance is a copy used for get-command.
- /// If true, and the cmdlet supports dynamic parameters, it means that the dynamic
+ /// If true, and the cmdlet supports dynamic parameters, it means that the dynamic
/// parameter metadata will be merged into the parameter set information.
///
internal bool IsGetCommandCopy { get; set; }
diff --git a/src/System.Management.Automation/engine/CommandMetadata.cs b/src/System.Management.Automation/engine/CommandMetadata.cs
index fc57bf4755..d6b5ffc24f 100644
--- a/src/System.Management.Automation/engine/CommandMetadata.cs
+++ b/src/System.Management.Automation/engine/CommandMetadata.cs
@@ -28,14 +28,14 @@ namespace System.Management.Automation
{
///
/// Session with capabilities can be made available on a server
- /// that wants to provide a full user experience to PowerShell clients.
- /// Clients connecting to the server will be able to use implicit remoting
+ /// that wants to provide a full user experience to PowerShell clients.
+ /// Clients connecting to the server will be able to use implicit remoting
/// (Import-PSSession, Export-PSSession) as well as interactive remoting (Enter-PSSession, Exit-PSSession).
///
RemoteServer = 0x1,
///
- /// Session with capabilities can be made available on
+ /// Session with capabilities can be made available on
/// a server that wants to provide workflow hosting capabilities in the
/// specified end points. All jobs commands as well as commands for
/// implicit remoting and interactive remoting will be made available
@@ -208,7 +208,7 @@ namespace System.Management.Automation
}
}
- // not copying those fields/members as they are untouched (and left set to null)
+ // not copying those fields/members as they are untouched (and left set to null)
// by public constructors, so we can't rely on those fields/members to be set
// when CommandMetadata comes from a user
_staticCommandParameterMetadata = null;
@@ -294,40 +294,40 @@ namespace System.Management.Automation
/// Gets the metadata for the specified cmdlet from the cache or creates
/// a new instance if its not in the cache.
///
- ///
+ ///
///
/// The name of the command that this metadata represents.
///
- ///
+ ///
///
/// The cmdlet to get the metadata for.
///
- ///
+ ///
///
/// The current engine context.
///
- ///
+ ///
///
/// The CommandMetadata for the specified cmdlet.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If more than int.MaxValue parameter-sets are defined for the command.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
internal static CommandMetadata Get(string commandName, Type cmdletType, ExecutionContext context)
{
if (String.IsNullOrEmpty(commandName))
@@ -360,35 +360,35 @@ namespace System.Management.Automation
///
/// Constructs an instance of CommandMetadata using reflection against a bindable object
///
- ///
+ ///
///
/// The name of the command that this metadata represents.
///
- ///
+ ///
///
/// An instance of an object type that can be used to bind MSH parameters. A type is
/// considered bindable if it has at least one field and/or property that is decorated
/// with the ParameterAttribute.
///
- ///
+ ///
///
/// The current engine context. If null, the command and type metadata will be generated
/// and will not be cached.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If more than int.MaxValue parameter-sets are defined for the command.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
internal CommandMetadata(string commandName, Type cmdletType, ExecutionContext context)
{
if (String.IsNullOrEmpty(commandName))
@@ -410,28 +410,28 @@ namespace System.Management.Automation
}
///
- /// Constructor for creating command metadata from a script block.
+ /// Constructor for creating command metadata from a script block.
///
///
///
///
///
/// Unlike cmdlet based on a C# type where cmdlet metadata and parameter
- /// metadata is created through reflecting the implementation type, script
- /// cmdlet has different way for constructing metadata.
- ///
- /// 1. Metadata for cmdlet itself comes from cmdlet statement, which
- /// is parsed into CmdletDeclarationNode and then converted into
- /// a CmdletAttribute object.
- /// 2. Metadata for parameter comes from parameter declaration statement,
- /// which is parsed into parameter nodes with parameter annotations.
- /// Information in ParameterNodes is eventually transformed into a
+ /// metadata is created through reflecting the implementation type, script
+ /// cmdlet has different way for constructing metadata.
+ ///
+ /// 1. Metadata for cmdlet itself comes from cmdlet statement, which
+ /// is parsed into CmdletDeclarationNode and then converted into
+ /// a CmdletAttribute object.
+ /// 2. Metadata for parameter comes from parameter declaration statement,
+ /// which is parsed into parameter nodes with parameter annotations.
+ /// Information in ParameterNodes is eventually transformed into a
/// dictionary of RuntimeDefinedParameters.
- ///
- /// By the time this constructor is called, information about CmdletAttribute
+ ///
+ /// By the time this constructor is called, information about CmdletAttribute
/// and RuntimeDefinedParameters for the script block has been setup with
- /// the scriptblock object.
- ///
+ /// the scriptblock object.
+ ///
///
internal CommandMetadata(ScriptBlock scriptblock, string commandName, ExecutionContext context)
{
@@ -642,7 +642,7 @@ namespace System.Management.Automation
///
/// Gets the bit in the parameter set map for the default parameter set.
///
- ///
+ ///
internal uint DefaultParameterSetFlag
{
get { return _defaultParameterSetFlag; }
@@ -684,11 +684,11 @@ namespace System.Management.Automation
/// Constructs the command metadata by using reflection against the
/// CLR type.
///
- ///
+ ///
///
/// If more than int.MaxValue parameter-sets are defined for the command.
///
- ///
+ ///
private void ConstructCmdletMetadataUsingReflection()
{
Diagnostics.Assert(
@@ -730,19 +730,19 @@ namespace System.Management.Automation
///
/// Extracts the cmdlet data from the CmdletAttribute
///
- ///
+ ///
///
/// The CmdletAttribute to process
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If more than int.MaxValue parameter-sets are defined for the command.
///
- ///
+ ///
private void ProcessCmdletAttribute(CmdletCommonMetadataAttribute attribute)
{
if (attribute == null)
@@ -1144,7 +1144,7 @@ end
// 1b. otoh common parameters are going to be present anyway on all proxy functions
// that the host generates for its cmdlets that need cmdletbinding, so
// we should make sure that common parameters are safe, not hide them
- // 2. otoh without cmdletbinding() unspecified parameters get bound to $null which might
+ // 2. otoh without cmdletbinding() unspecified parameters get bound to $null which might
// unnecessarily trigger validation attribute failures - see bug Windows 7: #477218
CommandMetadata metadata = new CommandMetadata(
@@ -1200,7 +1200,7 @@ end
return GetRestrictedCmdlet(
"Get-Command",
- null, // defaultParameterSet
+ null, // defaultParameterSet
"https://go.microsoft.com/fwlink/?LinkID=113309", // helpUri
nameParameter,
moduleParameter,
@@ -1228,7 +1228,7 @@ end
// remote Get-Help is called when help for implicit remoting proxy tries to fetch help content for a remote command
// This should only be called with 1 "safe" command name (unless ipsn is called with -Force)
- // (it seems ok to disallow getting help for "unsafe" commands [possible when ipsn is called with -Force]
+ // (it seems ok to disallow getting help for "unsafe" commands [possible when ipsn is called with -Force]
// - host can always generate its own proxy for Get-Help if it cares about "unsafe" command names)
ParameterMetadata nameParameter = new ParameterMetadata("Name", typeof(string));
nameParameter.Attributes.Add(new ValidatePatternAttribute(isSafeNameOrIdentifierRegex));
@@ -1244,7 +1244,7 @@ end
private static CommandMetadata GetRestrictedSelectObject()
{
- // remote Select-Object is called by Import/Export-PSSession to
+ // remote Select-Object is called by Import/Export-PSSession to
// 1) restrict what properties are serialized
// 2) artificially increase serialization depth of selected properties (especially "Parameters" property)
@@ -1312,13 +1312,13 @@ end
///
/// Returns a dictionary from a command name to describing
/// how that command can be restricted to limit attack surface while still being usable
- /// by features included in .
- ///
- /// For example the implicit remoting feature
- /// (included in )
- /// doesn't use all parameters of Get-Help
+ /// by features included in .
+ ///
+ /// For example the implicit remoting feature
+ /// (included in )
+ /// doesn't use all parameters of Get-Help
/// and uses only a limited set of argument values for the parameters it does use.
- ///
+ ///
/// can be passed to method to generate
/// a body of a proxy function that forwards calls to the actual cmdlet, while exposing only the parameters
/// listed in . Exposing only the restricted proxy function while making
@@ -1373,7 +1373,7 @@ end
#if !CORECLR // Not referenced on CSS
private static Collection GetRestrictedJobCommands()
{
- // all the job cmdlets take a Name parameter. This needs to be
+ // all the job cmdlets take a Name parameter. This needs to be
// restricted to safenames in order to allow only valid wildcards
// construct the parameterset metadata
@@ -1461,7 +1461,7 @@ end
ParameterMetadata jobParameter2 = new ParameterMetadata(emptyCollection, false, JobCmdletBase.JobParameter,
parameterSets, typeof(Job[]));
- // Start-Job is not really required since the user will be using the name
+ // Start-Job is not really required since the user will be using the name
// of the workflow to launch them
Collection restrictedJobCommands = new Collection();
diff --git a/src/System.Management.Automation/engine/CommandPathSearch.cs b/src/System.Management.Automation/engine/CommandPathSearch.cs
index 7b28c42584..4eb175d2a7 100644
--- a/src/System.Management.Automation/engine/CommandPathSearch.cs
+++ b/src/System.Management.Automation/engine/CommandPathSearch.cs
@@ -24,15 +24,15 @@ namespace System.Management.Automation
/// Constructs a command searching enumerator that resolves the location
/// of a command using the PATH environment variable.
///
- ///
+ ///
///
/// The patterns to search for in the path.
///
- ///
+ ///
///
/// The paths to directories in which to lookup the command.
///
- ///
+ ///
///
/// The execution context for the current engine instance.
///
@@ -97,7 +97,7 @@ namespace System.Management.Automation
/// Ensures that all the paths in the lookupPaths member are absolute
/// file system paths.
///
- ///
+ ///
private void ResolveCurrentDirectoryInLookupPaths()
{
var indexesToRemove = new SortedDictionary();
@@ -234,11 +234,11 @@ namespace System.Management.Automation
///
/// Gets an instance of a command enumerator
///
- ///
+ ///
///
/// An instance of this class as IEnumerator.
///
- ///
+ ///
IEnumerator IEnumerable.GetEnumerator()
{
return this;
@@ -247,11 +247,11 @@ namespace System.Management.Automation
///
/// Gets an instance of a command enumerator
///
- ///
+ ///
///
/// An instance of this class as IEnumerator.
///
- ///
+ ///
IEnumerator IEnumerable.GetEnumerator()
{
return this;
@@ -260,11 +260,11 @@ namespace System.Management.Automation
///
/// Moves the enumerator to the next command match
///
- ///
+ ///
///
/// true if there was another command that matches, false otherwise.
///
- ///
+ ///
public bool MoveNext()
{
bool result = false;
@@ -367,12 +367,12 @@ namespace System.Management.Automation
/// Gets the path to the current command match.
///
///
- ///
+ ///
///
/// The enumerator is positioned before the first element of
/// the collection or after the last element.
///
- ///
+ ///
string IEnumerator.Current
{
get
@@ -409,15 +409,15 @@ namespace System.Management.Automation
/// Gets the matching files in the specified directories and resets
/// the currentDirectoryResultsEnumerator to this new set of results.
///
- ///
+ ///
///
/// The pattern used to find the matching files in the specified directory.
///
- ///
+ ///
///
/// The path to the directory to find the files in.
///
- ///
+ ///
private void GetNewDirectoryResults(string pattern, string directory)
{
IEnumerable result = null;
@@ -473,7 +473,7 @@ namespace System.Management.Automation
var baseNames = fileNames.Select(Path.GetFileName).ToArray();
// Result must be ordered by PATHEXT order of precedence.
- // acceptableCommandNames is in this order, so
+ // acceptableCommandNames is in this order, so
// Porting note: allow files with executable bit on non-Windows platforms
diff --git a/src/System.Management.Automation/engine/CommandProcessor.cs b/src/System.Management.Automation/engine/CommandProcessor.cs
index fcea8117a7..0baaad07b8 100644
--- a/src/System.Management.Automation/engine/CommandProcessor.cs
+++ b/src/System.Management.Automation/engine/CommandProcessor.cs
@@ -49,19 +49,19 @@ namespace System.Management.Automation
///
/// Initializes the new instance of CommandProcessor class.
///
- ///
+ ///
///
/// The information about the cmdlet.
///
- ///
+ ///
///
/// PowerShell engine execution context for this command.
///
- ///
+ ///
///
/// If there was a failure creating an instance of the cmdlet type.
///
- ///
+ ///
internal CommandProcessor(CmdletInfo cmdletInfo, ExecutionContext context) : base(cmdletInfo)
{
this._context = context;
@@ -69,7 +69,7 @@ namespace System.Management.Automation
}
///
- /// This is the constructor for script as cmdlet.
+ /// This is the constructor for script as cmdlet.
///
///
/// The information about the cmdlet.
@@ -98,19 +98,19 @@ namespace System.Management.Automation
///
/// Returns a CmdletParameterBinderController for the specified command
///
- ///
+ ///
///
/// The cmdlet to bind parameters to.
///
- ///
+ ///
///
/// A new instance of a CmdletParameterBinderController.
///
- ///
+ ///
///
/// if is not a Cmdlet.
///
- ///
+ ///
internal ParameterBinderController NewParameterBinderController(InternalCommand command)
{
Cmdlet cmdlet = command as Cmdlet;
@@ -160,17 +160,17 @@ namespace System.Management.Automation
///
/// Binds the specified command-line parameters to the target
///
- ///
+ ///
///
/// true if encode succeeds otherwise false.
///
- ///
+ ///
///
/// If any parameters fail to bind,
/// or
/// If any mandatory parameters are missing.
///
- ///
+ ///
///
/// If there is an error generating the metadata for dynamic parameters.
///
@@ -298,8 +298,8 @@ namespace System.Management.Automation
Exception exceptionToThrow = null;
try
{
- //
- // On V1 the output pipe was redirected to the command's output pipe only when it
+ //
+ // On V1 the output pipe was redirected to the command's output pipe only when it
// was already redirected. This is the original comment explaining this behaviour:
//
// NTRAID#Windows Out of Band Releases-926183-2005-12-15
@@ -381,7 +381,7 @@ namespace System.Management.Automation
#region helper_methods
///
- /// Tells whether it is the first call to Read
+ /// Tells whether it is the first call to Read
///
private bool _firstCallToRead = true;
@@ -394,11 +394,11 @@ namespace System.Management.Automation
///
/// Populates the parameters specified from the pipeline.
///
- ///
+ ///
///
/// A bool indicating whether read succeeded.
///
- ///
+ ///
///
/// If a parameter fails to bind.
/// or
@@ -407,29 +407,29 @@ namespace System.Management.Automation
///
/// The pipeline was already stopped.
///
- ///
+ ///
// 2003/10/07-JonN was public, now internal
internal sealed override bool Read()
{
// (1) If Read() is called for the first time and with pipe closed and
- // no object in the input pipe and
- // (typically for the first cmdlet in the pipe & during programmatic
+ // no object in the input pipe and
+ // (typically for the first cmdlet in the pipe & during programmatic
// execution of a command), Read() will succeed (return true) for
- // only one time (so that the
+ // only one time (so that the
// (2) If Read() is called with some input objects in the pipeline, it
- // processes the input
+ // processes the input
// object one at a time and adds parameters from the input object
- // to the list of parameters. If
+ // to the list of parameters. If
// added to the error pipe and Read() will continue to read the
// next object in the pipe.
- // (3) Read() will return false if there are no objects in the pipe
+ // (3) Read() will return false if there are no objects in the pipe
// for processing.
// (4) Read() will return true if the parameters are encoded in the
// request - signals ready for execution.
// (5) Read() will refresh the properties that are encoded via pipeline
- // parameters in the next
+ // parameters in the next
// call to Read() [To their default values, so that the
- // next execution of the command will
+ // next execution of the command will
// not work on previously specified parameter].
// If the flag 'bail in next call' is true, then bail out returning false.
if (_bailInNextCall)
@@ -474,7 +474,7 @@ namespace System.Management.Automation
return false;
}
- // If we are reading input for the first command in the pipeline increment PipelineIterationInfo[0], which is the number of items read from the input
+ // If we are reading input for the first command in the pipeline increment PipelineIterationInfo[0], which is the number of items read from the input
if (this.Command.MyInvocation.PipelinePosition == 1)
{
this.Command.MyInvocation.PipelineIterationInfo[0]++;
@@ -487,7 +487,7 @@ namespace System.Management.Automation
{
// The input object was not bound to any parameters of the cmdlet.
// Write a non-terminating error and continue with the next input
- // object.
+ // object.
WriteInputObjectError(
inputObject,
ParameterBinderStrings.InputObjectNotBound,
@@ -544,24 +544,24 @@ namespace System.Management.Automation
/// Writes an ErrorRecord to the commands error pipe because the specified
/// input object was not bound to the command.
///
- ///
+ ///
///
/// The pipeline input object that was not bound.
///
- ///
+ ///
///
/// The error message.
///
- ///
+ ///
///
/// The resource ID of the error message is also used as error ID
/// of the ErrorRecord.
///
- ///
+ ///
///
/// Additional arguments to be formatted into the error message that represented in .
///
- ///
+ ///
private void WriteInputObjectError(
object inputObject,
string resourceString,
@@ -596,22 +596,22 @@ namespace System.Management.Automation
///
/// Reads an object from an input pipeline and attempts to bind the parameters
///
- ///
+ ///
///
/// The pipeline input object to be processed.
///
- ///
+ ///
///
/// False the pipeline input object was not bound in any way to the command.
///
- ///
+ ///
///
/// If a ShouldProcess parameter is specified but the cmdlet does not support
/// ShouldProcess.
/// or
/// If an error occurred trying to bind a parameter from the pipeline object.
///
- ///
+ ///
private bool ProcessInputPipelineObject(object inputObject)
{
PSObject inputToOperateOn = null;
@@ -647,24 +647,24 @@ namespace System.Management.Automation
///
/// Initializes the command's request object
///
- ///
+ ///
///
/// The information about the cmdlet.
///
- ///
+ ///
///
/// If the constructor for the cmdlet threw an exception.
///
- ///
+ ///
///
/// The type referenced by refered to an
/// abstract type or them member was invoked via a late-binding mechanism.
///
- ///
+ ///
///
/// If refers to a type that is invalid.
///
- ///
+ ///
private void Init(CmdletInfo cmdletInformation)
{
Diagnostics.Assert(cmdletInformation != null, "Constructor should throw exception if LookupCommand returned null.");
@@ -798,8 +798,8 @@ namespace System.Management.Automation
if (parameter.IsDashQuestion())
{
helpCategory = HelpCategory.All;
- // using InvocationName mainly to avoid bogus this.CommandInfo.Name
- // (when CmdletInfo.Name is initialized from "cmdlet" declaration
+ // using InvocationName mainly to avoid bogus this.CommandInfo.Name
+ // (when CmdletInfo.Name is initialized from "cmdlet" declaration
// of a scriptblock and when "cmdlet" declaration doesn't specify any name)
if ((this.Command != null) && (this.Command.MyInvocation != null) &&
(!string.IsNullOrEmpty(this.Command.MyInvocation.InvocationName)))
diff --git a/src/System.Management.Automation/engine/CommandProcessorBase.cs b/src/System.Management.Automation/engine/CommandProcessorBase.cs
index e4ebddeafc..a9e77b6c9b 100644
--- a/src/System.Management.Automation/engine/CommandProcessorBase.cs
+++ b/src/System.Management.Automation/engine/CommandProcessorBase.cs
@@ -21,7 +21,7 @@ namespace System.Management.Automation
///
/// Default constructor
///
- ///
+ ///
internal CommandProcessorBase()
{
@@ -30,11 +30,11 @@ namespace System.Management.Automation
///
/// Initializes the base command processor class with the command metadata
///
- ///
+ ///
///
/// The metadata about the command to run.
///
- ///
+ ///
internal CommandProcessorBase(
CommandInfo commandInfo)
{
@@ -74,29 +74,29 @@ namespace System.Management.Automation
///
/// This indicates whether this command processor is created from
- /// a script file.
+ /// a script file.
///
- ///
+ ///
/// Script command processor created from a script file is special
- /// in following two perspectives,
- ///
- /// 1. New scope created needs to be a 'script' scope in the
- /// sense that it needs to handle $script: variables.
+ /// in following two perspectives,
+ ///
+ /// 1. New scope created needs to be a 'script' scope in the
+ /// sense that it needs to handle $script: variables.
/// For normal functions or scriptblocks, script scope
- /// variables are not supported.
- ///
- /// 2. ExitException will be handled by setting lastExitCode.
+ /// variables are not supported.
+ ///
+ /// 2. ExitException will be handled by setting lastExitCode.
/// For normal functions or scriptblocks, exit command will
- /// kill current powershell session.
+ /// kill current powershell session.
///
public bool FromScriptFile { get { return _fromScriptFile; } }
protected bool _fromScriptFile = false;
///
- /// If this flag is true, the commands in this Pipeline will redirect
+ /// If this flag is true, the commands in this Pipeline will redirect
/// the global error output pipe to the command's error output pipe.
- ///
- /// (see the comment in Pipeline.RedirectShellErrorOutputPipe for an
+ ///
+ /// (see the comment in Pipeline.RedirectShellErrorOutputPipe for an
/// explanation of why this flag is needed)
///
internal bool RedirectShellErrorOutputPipe { get; set; } = false;
@@ -172,7 +172,7 @@ namespace System.Management.Automation
// We are currently restricting in one direction:
// - Can't dot something from a more permissive mode, since that would probably expose
// functions that were never designed to handle untrusted data.
- // This function won't be called for NoLanguage mode so the only direction checked is trusted
+ // This function won't be called for NoLanguage mode so the only direction checked is trusted
// (FullLanguage mode) script running in a constrained/restricted session.
if ((scriptBlock.LanguageMode.HasValue) &&
(scriptBlock.LanguageMode != languageMode) &&
@@ -336,7 +336,7 @@ namespace System.Management.Automation
/// Restores the current session state scope to the scope which was active when SetCurrentScopeToExecutionScope
/// was called.
///
- ///
+ ///
internal void RestorePreviousScope()
{
OnRestorePreviousScope();
@@ -360,7 +360,7 @@ namespace System.Management.Automation
/// host interfaces. These will be sent to the parameter binder controller
/// for processing.
///
- ///
+ ///
internal Collection arguments = new Collection();
///
@@ -465,8 +465,8 @@ namespace System.Management.Automation
CommandProcessorBase oldCurrentCommandProcessor = _context.CurrentCommandProcessor;
try
{
- //
- // On V1 the output pipe was redirected to the command's output pipe only when it
+ //
+ // On V1 the output pipe was redirected to the command's output pipe only when it
// was already redirected. This is the original comment explaining this behaviour:
//
// NTRAID#Windows Out of Band Releases-926183-2005-12-15
@@ -527,7 +527,7 @@ namespace System.Management.Automation
/// the ProcessRecord abstract method that derived command processors
/// override.
///
- ///
+ ///
internal void DoExecute()
{
ExecutionContext.CheckStackDepth();
@@ -582,15 +582,15 @@ namespace System.Management.Automation
///
/// Calls the virtual Complete method after setting the appropriate session state scope
///
- ///
+ ///
internal void DoComplete()
{
Pipe oldErrorOutputPipe = _context.ShellFunctionErrorOutputPipe;
CommandProcessorBase oldCurrentCommandProcessor = _context.CurrentCommandProcessor;
try
{
- //
- // On V1 the output pipe was redirected to the command's output pipe only when it
+ //
+ // On V1 the output pipe was redirected to the command's output pipe only when it
// was already redirected. This is the original comment explaining this behaviour:
//
// NTRAID#Windows Out of Band Releases-926183-2005-12-15
@@ -662,11 +662,11 @@ namespace System.Management.Automation
///
/// Entry point used by the engine to reads the input pipeline object
/// and binds the parameters.
- ///
+ ///
/// This default implementation reads the next pipeline object and sets
/// it as the CurrentPipelineObject in the InternalCommand.
///
- ///
+ ///
///
/// True if read succeeds.
///
@@ -688,7 +688,7 @@ namespace System.Management.Automation
return false;
}
- // If we are reading input for the first command in the pipeline increment PipelineIterationInfo[0], which is the number of items read from the input
+ // If we are reading input for the first command in the pipeline increment PipelineIterationInfo[0], which is the number of items read from the input
if (this.Command.MyInvocation.PipelinePosition == 1)
{
this.Command.MyInvocation.PipelineIterationInfo[0]++;
@@ -705,33 +705,33 @@ namespace System.Management.Automation
/// PipelineProcessor.SynchronousExecute, and writes it to
/// the error variable.
///
- ///
+ ///
///
/// The exception to wrap in a CmdletInvocationException or
/// CmdletProviderInvocationException.
///
- ///
+ ///
///
/// Always returns PipelineStoppedException. The caller should
/// throw this exception.
///
- ///
+ ///
///
/// Almost all exceptions which occur during pipeline invocation
/// are wrapped in CmdletInvocationException before they are stored
/// in the pipeline. However, there are several exceptions:
- ///
+ ///
/// AccessViolationException, StackOverflowException:
/// These are considered to be such severe errors that we
/// FailFast the process immediately.
- ///
+ ///
/// ProviderInvocationException: In this case, we assume that the
/// cmdlet is get-item or the like, a thin wrapper around the
/// provider API. We discard the original ProviderInvocationException
/// and re-wrap its InnerException (the real error) in
/// CmdletProviderInvocationException. This makes it easier to reach
/// the real error.
- ///
+ ///
/// CmdletInvocationException, ActionPreferenceStopException:
/// This indicates that the cmdlet itself ran a command which failed.
/// We could go ahead and wrap the original exception in multiple
@@ -739,7 +739,7 @@ namespace System.Management.Automation
/// for the caller to access the root problem, plus the serialization
/// layer might not communicate properties beyond some fixed depth.
/// Instead, we choose to not re-wrap the exception.
- ///
+ ///
/// PipelineStoppedException: This could mean one of two things.
/// It usually means that this pipeline has already stopped,
/// in which case the pipeline already stores the original error.
@@ -760,7 +760,7 @@ namespace System.Management.Automation
{
// If a ProviderInvocationException occurred,
// discard the ProviderInvocationException and
- // re-wrap in CmdletProviderInvocationException
+ // re-wrap in CmdletProviderInvocationException
e = new CmdletProviderInvocationException(
pie,
Command.MyInvocation);
@@ -862,11 +862,11 @@ namespace System.Management.Automation
/// PipelineProcessor.SynchronousExecute, and writes it to
/// the error variable.
///
- ///
+ ///
///
/// The exception which occurred during script execution
///
- ///
+ ///
///
/// ManageScriptException throws PipelineStoppedException if-and-only-if
/// the exception is a RuntimeException, otherwise it returns.
diff --git a/src/System.Management.Automation/engine/CommandSearcher.cs b/src/System.Management.Automation/engine/CommandSearcher.cs
index 4d9179f6e6..65ac77eb57 100644
--- a/src/System.Management.Automation/engine/CommandSearcher.cs
+++ b/src/System.Management.Automation/engine/CommandSearcher.cs
@@ -17,34 +17,34 @@ namespace System.Management.Automation
internal class CommandSearcher : IEnumerable, IEnumerator
{
///
- /// Constructs a command searching enumerator that resolves the location
+ /// Constructs a command searching enumerator that resolves the location
/// to a command using a standard algorithm.
///
- ///
+ ///
///
/// The name of the command to look for.
///
- ///
+ ///
///
/// Determines which types of commands glob resolution of the name will take place on.
///
- ///
+ ///
///
/// The types of commands to look for.
///
- ///
+ ///
///
/// The execution context for this engine instance...
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal CommandSearcher(
string commandName,
SearchResolutionOptions options,
@@ -66,11 +66,11 @@ namespace System.Management.Automation
///
/// Gets an instance of a command enumerator
///
- ///
+ ///
///
/// An instance of this class as IEnumerator.
///
- ///
+ ///
IEnumerator IEnumerable.GetEnumerator()
{
return this;
@@ -84,11 +84,11 @@ namespace System.Management.Automation
///
/// Moves the enumerator to the next command match. Public for IEnumerable
///
- ///
+ ///
///
/// true if there was another command that matches, false otherwise.
///
- ///
+ ///
public bool MoveNext()
{
_currentMatch = null;
@@ -425,12 +425,12 @@ namespace System.Management.Automation
/// Gets the CommandInfo representing the current command match.
///
///
- ///
+ ///
///
/// The enumerator is positioned before the first element of
/// the collection or after the last element.
///
- ///
+ ///
CommandInfo IEnumerator.Current
{
get
@@ -476,11 +476,11 @@ namespace System.Management.Automation
///
/// Gets the next command info using the command name as a path
///
- ///
+ ///
///
/// A CommandInfo for the next command if it exists as a path, or null otherwise.
///
- ///
+ ///
private CommandInfo GetNextFromPath()
{
CommandInfo result = null;
@@ -575,30 +575,30 @@ namespace System.Management.Automation
///
/// Gets the appropriate CommandInfo instance given the specified path.
///
- ///
+ ///
///
/// The path to create the CommandInfo for.
///
- ///
+ ///
///
/// An instance of the appropriate CommandInfo derivative given the specified path.
///
- ///
+ ///
///
/// The refers to a cmdlet, or cmdletprovider
/// and it could not be loaded as an XML document.
///
- ///
+ ///
///
/// The refers to a cmdlet, or cmdletprovider
/// that does not adhere to the appropriate file format for its extension.
///
- ///
+ ///
///
- /// If refers to a cmdlet file that
+ /// If refers to a cmdlet file that
/// contains invalid metadata.
///
- ///
+ ///
private CommandInfo GetInfoFromPath(string path)
{
CommandInfo result = null;
@@ -683,11 +683,11 @@ namespace System.Management.Automation
///
/// Gets the next matching alias
///
- ///
+ ///
///
/// A CommandInfo representing the next matching alias if found, otherwise null.
///
- ///
+ ///
private CommandInfo GetNextAlias()
{
CommandInfo result = null;
@@ -763,11 +763,11 @@ namespace System.Management.Automation
///
/// Gets the next matching function
///
- ///
+ ///
///
/// A CommandInfo representing the next matching function if found, otherwise null.
///
- ///
+ ///
private CommandInfo GetNextFunction()
{
CommandInfo result = null;
@@ -936,16 +936,16 @@ namespace System.Management.Automation
///
/// Gets the FunctionInfo or FilterInfo for the specified function name.
///
- ///
+ ///
///
/// The name of the function/filter to retrieve.
///
- ///
+ ///
///
/// A FunctionInfo if the function name exists and is a function, a FilterInfo if
/// the filter name exists and is a filter, or null otherwise.
///
- ///
+ ///
private CommandInfo GetFunction(string function)
{
CommandInfo result = _context.EngineSessionState.GetFunction(function);
@@ -983,12 +983,12 @@ namespace System.Management.Automation
/// If the collection doesn't exist yet it is created and the
/// enumerator is moved to the first item in the collection.
///
- ///
+ ///
///
/// A CmdletInfo for the next matching Cmdlet or null if there are
/// no more matches.
///
- ///
+ ///
private CmdletInfo GetNextCmdlet()
{
CmdletInfo result = null;
@@ -1073,12 +1073,12 @@ namespace System.Management.Automation
/// If the collection doesn't exist yet it is created and the
/// enumerator is moved to the first item in the collection.
///
- ///
+ ///
///
/// A ScriptInfo for the next matching script or null if there are
/// no more matches.
///
- ///
+ ///
private ScriptInfo GetNextBuiltinScript()
{
ScriptInfo result = null;
@@ -1182,16 +1182,16 @@ namespace System.Management.Automation
/// Resolves the given path as an PSPath and ensures that it was resolved
/// by the FileSystemProvider
///
- ///
+ ///
///
/// The path to resolve.
///
- ///
+ ///
///
/// The path that was resolved. Null if the path couldn't be resolved or was
/// not resolved by the FileSystemProvider.
///
- ///
+ ///
private string ResolvePSPath(string path)
{
string result = null;
@@ -1287,7 +1287,7 @@ namespace System.Management.Automation
///
/// Creates a collection of patterns used to find the command
///
- ///
+ ///
///
/// The name of the command to search for.
///
@@ -1297,14 +1297,14 @@ namespace System.Management.Automation
/// The patterns are as follows:
/// 1. [commandName].cmdlet
/// 2. [commandName].ps1
- /// 3..x
+ /// 3..x
/// foreach (extension in PATHEXT)
/// [commandName].[extension]
/// x+1. [commandName]
///
- ///
+ ///
///
- /// If contains one or more of the
+ /// If contains one or more of the
/// invalid characters defined in InvalidPathChars.
///
internal Collection ConstructSearchPatternsFromName(string name, bool commandDiscovery = false)
@@ -1361,16 +1361,16 @@ namespace System.Management.Automation
///
/// Determines if the given command name is a qualified PowerShell path.
///
- ///
+ ///
///
/// The name of the command.
///
- ///
+ ///
///
/// True if the command name is either a provider-qualified or PowerShell drive-qualified
/// path. False otherwise.
///
- ///
+ ///
private static bool IsQualifiedPSPath(string commandName)
{
Dbg.Assert(
@@ -1400,16 +1400,16 @@ namespace System.Management.Automation
/// characters which would require resolution. If so,
/// path lookup will not succeed.
///
- ///
+ ///
///
/// The command name (or possible path) to look for the special characters.
///
- ///
+ ///
///
/// True if the command name does not contain any special
/// characters. False otherwise.
///
- ///
+ ///
private static CanDoPathLookupResult CanDoPathLookup(string possiblePath)
{
CanDoPathLookupResult result = CanDoPathLookupResult.Yes;
@@ -1490,13 +1490,13 @@ namespace System.Management.Automation
///
/// A routine to initialize the path searcher...
///
- ///
+ ///
///
/// If the commandName used to construct this object
/// contains one or more of the invalid characters defined
/// in InvalidPathChars.
///
- ///
+ ///
private void setupPathSearcher()
{
// If it's already set up, just return...
@@ -1505,10 +1505,10 @@ namespace System.Management.Automation
return;
}
- // We are never going to look for non-executable commands in CommandSearcher.
- // Even though file types like .DOC, .LOG,.TXT, etc. can be opened / invoked, users think of these as files, not applications.
- // So I don't think we should show applications with the additional extensions at all.
- // Applications should only include files whose extensions are in the PATHEXT list and these would only be returned with the All parameter.
+ // We are never going to look for non-executable commands in CommandSearcher.
+ // Even though file types like .DOC, .LOG,.TXT, etc. can be opened / invoked, users think of these as files, not applications.
+ // So I don't think we should show applications with the additional extensions at all.
+ // Applications should only include files whose extensions are in the PATHEXT list and these would only be returned with the All parameter.
if ((_commandResolutionOptions & SearchResolutionOptions.CommandNameIsPattern) != 0)
{
@@ -1682,7 +1682,7 @@ namespace System.Management.Automation
// the search has finished builtin script resolution and is now searching for external commands
StartSearchingForExternalCommands,
- // the searcher has moved to
+ // the searcher has moved to
PowerShellPathResolution,
// the searcher has moved to a qualified file system path
diff --git a/src/System.Management.Automation/engine/CommonCommandParameters.cs b/src/System.Management.Automation/engine/CommonCommandParameters.cs
index 15f3a2fe21..b084a1a923 100644
--- a/src/System.Management.Automation/engine/CommonCommandParameters.cs
+++ b/src/System.Management.Automation/engine/CommonCommandParameters.cs
@@ -18,16 +18,16 @@ namespace System.Management.Automation.Internal
///
/// Constructs an instance with the specified command instance
///
- ///
+ ///
///
/// The instance of the command that the parameters should set the
/// user feedback properties on when the parameters get bound.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CommonParameters(MshCommandRuntime commandRuntime)
{
if (commandRuntime == null)
@@ -74,9 +74,9 @@ namespace System.Management.Automation.Internal
#region parameters
///
- /// Gets or sets the value of the Verbose parameter for the cmdlet.
+ /// Gets or sets the value of the Verbose parameter for the cmdlet.
///
- ///
+ ///
///
/// This parameter
/// tells the command to articulate the actions it performs while executing.
@@ -90,12 +90,12 @@ namespace System.Management.Automation.Internal
} //Verbose
///
- /// Gets or sets the value of the Debug parameter for the cmdlet.
+ /// Gets or sets the value of the Debug parameter for the cmdlet.
///
- ///
+ ///
///
- /// This parameter tells the command to provide Programmer/Support type
- /// messages to understand what is really occuring and give the user the
+ /// This parameter tells the command to provide Programmer/Support type
+ /// messages to understand what is really occuring and give the user the
/// opportunity to stop or debug the situation.
///
[Parameter]
@@ -109,7 +109,7 @@ namespace System.Management.Automation.Internal
///
/// Gets or sets the value of the ErrorAction parameter for the cmdlet.
///
- ///
+ ///
///
/// This parameter tells the command what to do when an error occurs.
///
@@ -124,7 +124,7 @@ namespace System.Management.Automation.Internal
///
/// Gets or sets the value of the WarningAction parameter for the cmdlet.
///
- ///
+ ///
///
/// This parameter tells the command what to do when a warning
/// occurs.
@@ -140,7 +140,7 @@ namespace System.Management.Automation.Internal
///
/// Gets or sets the value of the InformationAction parameter for the cmdlet.
///
- ///
+ ///
///
/// This parameter tells the command what to do when an informational record occurs.
///
@@ -155,12 +155,12 @@ namespace System.Management.Automation.Internal
///
/// Gets or sets the value of the ErrorVariable parameter for the cmdlet.
///
- ///
+ ///
///
/// This parameter tells the command which variable to populate with the errors.
/// Use +varname to append to the variable rather than clearing it.
///
- ///
+ ///
///
diff --git a/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs b/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs
index cc6f85ea0c..85a358fdbb 100644
--- a/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs
+++ b/src/System.Management.Automation/engine/DataStoreAdapterProvider.cs
@@ -39,14 +39,14 @@ namespace System.Management.Automation
///
- /// Gets the name of the provider.
+ /// Gets the name of the provider.
///
public string Name { get; }
///
/// Gets the full name of the provider including the pssnapin name if available
///
- ///
+ ///
internal string FullName
{
get
@@ -84,7 +84,7 @@ namespace System.Management.Automation
///
/// Gets the pssnapin name that the provider is implemented in.
///
- ///
+ ///
internal string PSSnapInName
{
get
@@ -181,11 +181,11 @@ namespace System.Management.Automation
private bool _capabilitiesRead;
///
- /// Gets or sets the home for the provider.
+ /// Gets or sets the home for the provider.
///
- ///
+ ///
///
- /// The location can be either a fully qualified provider path
+ /// The location can be either a fully qualified provider path
/// or an Msh path. This is the location that is substituted for the ~.
///
public string Home { get; set; } // Home
@@ -212,7 +212,7 @@ namespace System.Management.Automation
/// Gets the hidden drive for the provider that is used
/// for setting a location to a provider-qualified path.
///
- ///
+ ///
internal PSDriveInfo HiddenDrive
{
get
@@ -224,7 +224,7 @@ namespace System.Management.Automation
///
/// Gets the string representation of the instance which is the name of the provider.
///
- ///
+ ///
///
/// The name of the provider. If single-shell, the name is pssnapin-qualified. If custom-shell,
/// the name is just the provider name.
@@ -241,7 +241,7 @@ namespace System.Management.Automation
/// provider because that could lead to problems in a multi-threaded
/// environment.
///
- private LocalDataStoreSlot instance =
+ private LocalDataStoreSlot instance =
Thread.AllocateDataSlot();
#endif
@@ -258,18 +258,18 @@ namespace System.Management.Automation
/// Constructs an instance of the class using an existing reference
/// as a template.
///
- ///
+ ///
///
/// The provider information to copy to this instance.
///
- ///
+ ///
///
/// This constructor should be used by derived types to easily copying
/// the base class members from an existing ProviderInfo.
/// This is designed for use by a
/// during calls to their method.
///
- ///
+ ///
///
/// If is null.
///
@@ -295,27 +295,27 @@ namespace System.Management.Automation
///
/// Constructor for the ProviderInfo class.
///
- ///
+ ///
///
/// The instance of session state that the provider is being added to.
///
- ///
+ ///
///
/// The type that implements the provider
///
- ///
+ ///
///
/// The name of the provider.
///
- ///
+ ///
///
/// The help file for the provider.
///
- ///
+ ///
///
/// The Snap-In name for the provider.
///
- ///
+ ///
///
/// If is null or empty.
///
@@ -323,11 +323,11 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal ProviderInfo(
SessionState sessionState,
Type implementingType,
@@ -342,44 +342,44 @@ namespace System.Management.Automation
///
/// Constructor for the ProviderInfo class.
///
- ///
+ ///
///
/// The instance of session state that the provider is being added to.
///
- ///
+ ///
///
/// The type that implements the provider
///
- ///
+ ///
///
/// The alternate name to use for the provider instead of the one specified
/// in the .cmdletprovider file.
///
- ///
+ ///
///
/// The description of the provider.
///
- ///
+ ///
///
/// The home path for the provider. This must be an MSH path.
///
- ///
+ ///
///
/// The help file for the provider.
///
- ///
+ ///
///
/// The Snap-In for the provider.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal ProviderInfo(
SessionState sessionState,
Type implementingType,
@@ -448,25 +448,25 @@ namespace System.Management.Automation
///
/// Loads the provider from the specified path.
///
- ///
+ ///
///
/// The path to a .cmdletprovider file to load the provider from.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// The file specified by could
/// not be loaded as an XML document.
///
- ///
+ ///
///
/// If refers to a file that does
/// not adhere to the appropriate CmdletProvider file format.
///
- ///
+ ///
private void LoadProviderFromPath(string path)
{
if (String.IsNullOrEmpty(path))
@@ -500,15 +500,15 @@ namespace System.Management.Automation
/// Determines if the passed in name is either the fully-qualified pssnapin name or
/// short name of the provider.
///
- ///
+ ///
///
/// The name to compare with the provider name.
///
- ///
+ ///
///
/// True if the name is the fully-qualified pssnapin name or the short name of the provider.
///
- ///
+ ///
internal bool NameEquals(string providerName)
{
PSSnapinQualifiedName qualifiedProviderName = PSSnapinQualifiedName.GetInstance(providerName);
@@ -596,16 +596,16 @@ namespace System.Management.Automation
///
/// Creates an instance of the provider
///
- ///
+ ///
///
/// An instance of the provider or null if one could not be created.
///
- ///
+ ///
///
/// If an instance of the provider could not be created because the
/// type could not be found in the assembly.
///
- ///
+ ///
internal Provider.CmdletProvider CreateInstance()
{
// It doesn't really seem that using thread local storage to store an
@@ -614,7 +614,7 @@ namespace System.Management.Automation
// commands together that use the same provider.
// get-child -filter a*.txt | get-content
// This pipeline causes problems when using a cached provider instance because
- // the CmdletProviderContext gets changed when get-content gets called.
+ // the CmdletProviderContext gets changed when get-content gets called.
// When get-content finishes writing content from the first output of get-child
// get-child gets control back and writes out a FileInfo but the WriteObject
// from get-content gets used because the CmdletProviderContext is still from
diff --git a/src/System.Management.Automation/engine/DriveInterfaces.cs b/src/System.Management.Automation/engine/DriveInterfaces.cs
index d3c8c43561..41203021cb 100644
--- a/src/System.Management.Automation/engine/DriveInterfaces.cs
+++ b/src/System.Management.Automation/engine/DriveInterfaces.cs
@@ -29,15 +29,15 @@ namespace System.Management.Automation
///
/// Constructs a Drive management facade
///
- ///
+ ///
///
/// The instance of session state that facade wraps.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal DriveManagementIntrinsics(SessionStateInternal sessionState)
{
if (sessionState == null)
@@ -55,7 +55,7 @@ namespace System.Management.Automation
///
/// Gets the drive information for the current working drive.
///
- ///
+ ///
///
/// This property is readonly. To set the current drive use the
/// SetLocation method.
@@ -96,21 +96,21 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the drive already exists,
/// or
/// If .Name contains one or more invalid characters; ~ / \\ . :
///
- ///
+ ///
///
/// If the provider is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// The provider for the could not be found.
///
- ///
+ ///
///
/// If the provider threw an exception or returned null.
///
@@ -151,21 +151,21 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the drive already exists
/// or
/// If .Name contains one or more invalid characters; ~ / \\ . :
///
- ///
+ ///
///
/// If the provider is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// The provider for the could not be found.
///
- ///
+ ///
///
/// If the provider threw an exception or returned null.
///
@@ -187,28 +187,28 @@ namespace System.Management.Automation
/// Gets an object that defines the additional parameters for the NewDrive implementation
/// for a provider.
///
- ///
+ ///
///
/// The provider ID for the drive that is being created.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// If does not exist.
///
- ///
+ ///
internal object NewDriveDynamicParameters(
string providerId,
CmdletProviderContext context)
@@ -312,7 +312,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If there is no drive with .
///
@@ -341,7 +341,7 @@ namespace System.Management.Automation
/// generation relative to the current scope.
/// If the scopeID is null or empty the local scope is used.
///
- ///
+ ///
///
/// The drive information that represents the drive of the specified name.
///
@@ -349,12 +349,12 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
@@ -385,7 +385,7 @@ namespace System.Management.Automation
///
/// Retrieves all the drives in the specified scope
///
- ///
+ ///
///
/// The scope to retrieve the drives from. If null, the
/// drives in all the scopes will be returned.
@@ -395,7 +395,7 @@ namespace System.Management.Automation
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
diff --git a/src/System.Management.Automation/engine/DscResourceInfo.cs b/src/System.Management.Automation/engine/DscResourceInfo.cs
index 335ce4bb45..d9be4e32ac 100644
--- a/src/System.Management.Automation/engine/DscResourceInfo.cs
+++ b/src/System.Management.Automation/engine/DscResourceInfo.cs
@@ -72,7 +72,7 @@ namespace System.Management.Automation
public string FriendlyName { get; set; }
///
- /// Gets or sets of the file which implements the resource. For the resources which are defined using
+ /// Gets or sets of the file which implements the resource. For the resources which are defined using
/// MOF file, this will be path to a module which resides in the same folder where schema.mof file is present.
/// For composite resources, this will be the module which implements the resource
///
@@ -80,7 +80,7 @@ namespace System.Management.Automation
///
/// Gets or sets parent folder, where the resource is defined
- /// It is the folder containing either the implementing module(=Path) or folder containing ".schema.mof".
+ /// It is the folder containing either the implementing module(=Path) or folder containing ".schema.mof".
/// For native providers, Path will be null and only ParentPath will be present.
///
public string ParentPath { get; set; }
diff --git a/src/System.Management.Automation/engine/DscResourceSearcher.cs b/src/System.Management.Automation/engine/DscResourceSearcher.cs
index cdef87ced7..9318424fbb 100644
--- a/src/System.Management.Automation/engine/DscResourceSearcher.cs
+++ b/src/System.Management.Automation/engine/DscResourceSearcher.cs
@@ -74,7 +74,7 @@ namespace System.Management.Automation
}
///
- /// Move to the Next value in the enumerator.
+ /// Move to the Next value in the enumerator.
///
///
public bool MoveNext()
@@ -186,7 +186,7 @@ namespace System.Management.Automation
_matchingResourceList.Add(resourceInfo);
matchFound = true;
- } //if
+ } //if
}//if
}// foreach
diff --git a/src/System.Management.Automation/engine/EngineIntrinsics.cs b/src/System.Management.Automation/engine/EngineIntrinsics.cs
index cad23c6445..24bd886d50 100644
--- a/src/System.Management.Automation/engine/EngineIntrinsics.cs
+++ b/src/System.Management.Automation/engine/EngineIntrinsics.cs
@@ -35,7 +35,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
internal EngineIntrinsics(ExecutionContext context)
{
if (context == null)
diff --git a/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs b/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs
index 99f8b35388..ae32a5128a 100644
--- a/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs
+++ b/src/System.Management.Automation/engine/EnumExpressionEvaluator.cs
@@ -148,11 +148,11 @@ namespace System.Management.Automation
#region tree nodes
///
- /// Abstract base type for other types of nodes in the tree.
+ /// Abstract base type for other types of nodes in the tree.
///
internal abstract class Node
{
- // Only used in internal nodes holding operators.
+ // Only used in internal nodes holding operators.
public Node Operand1 { get; set; }
@@ -252,8 +252,8 @@ namespace System.Management.Automation
///
/// Takes a string value and converts to corresponding enum value.
- /// The string value should be checked at parsing stage prior to
- /// tree construction to ensure it is valid.
+ /// The string value should be checked at parsing stage prior to
+ /// tree construction to ensure it is valid.
///
internal OperandNode(string enumString)
{
@@ -357,7 +357,7 @@ namespace System.Management.Automation
/// Whether the enum element is present in the expression.
///
///
- /// The enum value passed in should be a single enum element value,
+ /// The enum value passed in should be a single enum element value,
/// not a flag enum value with multiple bits set.
///
internal bool ExistsInExpression(T flagName)
@@ -377,10 +377,10 @@ namespace System.Management.Automation
///
///
/// The input argument string,
- /// could be partial input (one element from the argument collection).
+ /// could be partial input (one element from the argument collection).
///
///
- /// A generic list of tokenized input.
+ /// A generic list of tokenized input.
///
private List TokenizeInput(string input)
{
@@ -399,13 +399,13 @@ namespace System.Management.Automation
}
///
- /// Find the start of the next token, skipping white spaces.
+ /// Find the start of the next token, skipping white spaces.
///
///
/// Input string
///
///
- /// Current offset position for the string parser.
+ /// Current offset position for the string parser.
///
private void FindNextToken(string input, ref int _offset)
{
@@ -509,7 +509,7 @@ namespace System.Management.Automation
}
///
- /// Checks syntax errors on input expression,
+ /// Checks syntax errors on input expression,
/// as well as performing disambiguation for identifiers.
///
///
@@ -605,7 +605,7 @@ namespace System.Management.Automation
else if (kind == TokenKind.Or)
{
// Dequeue all nodes from AND queue,
- // create the AND tree, then add to the OR queue.
+ // create the AND tree, then add to the OR queue.
Node andCurrent = andQueue.Dequeue();
while (andQueue.Count > 0)
{
diff --git a/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs b/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs
index 5510bae641..d0ecd33f9b 100644
--- a/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs
+++ b/src/System.Management.Automation/engine/EnumMinimumDisambiguation.cs
@@ -21,7 +21,7 @@ namespace System.Management.Automation
static EnumMinimumDisambiguation()
{
// Add special minimum disambiguation cases here for certain enum types.
- // The current implementation assumes that special names in each type can be
+ // The current implementation assumes that special names in each type can be
// differentiated by their first letter.
s_specialDisambiguateCases.Add(
typeof(System.IO.FileAttributes),
@@ -49,7 +49,7 @@ namespace System.Management.Automation
}
}
- // Throw error when no match is found.
+ // Throw error when no match is found.
if (namesWithMatchingPrefix.Count == 0)
{
throw InterpreterError.NewInterpreterException(null, typeof(RuntimeException),
@@ -83,7 +83,7 @@ namespace System.Management.Automation
}
}//foreach
}//if
- // No special cases match, throw error for multiple matches.
+ // No special cases match, throw error for multiple matches.
StringBuilder matchListSB = new StringBuilder(namesWithMatchingPrefix[0]);
string separator = ", ";
for (int i = 1; i < namesWithMatchingPrefix.Count; i++)
@@ -98,7 +98,7 @@ namespace System.Management.Automation
}
///
- /// Produces a string that contains all the enumerator names in an enum type.
+ /// Produces a string that contains all the enumerator names in an enum type.
///
///
///
diff --git a/src/System.Management.Automation/engine/ErrorPackage.cs b/src/System.Management.Automation/engine/ErrorPackage.cs
index 67e9eafa9f..9fc3f1a147 100644
--- a/src/System.Management.Automation/engine/ErrorPackage.cs
+++ b/src/System.Management.Automation/engine/ErrorPackage.cs
@@ -46,62 +46,62 @@ namespace System.Management.Automation
NotSpecified = 0,
///
- ///
+ ///
///
OpenError = 1,
///
- ///
+ ///
///
CloseError = 2,
///
- ///
+ ///
///
DeviceError = 3,
///
- ///
+ ///
///
DeadlockDetected = 4,
///
- ///
+ ///
///
InvalidArgument = 5,
///
- ///
+ ///
///
InvalidData = 6,
///
- ///
+ ///
///
InvalidOperation = 7,
///
- ///
+ ///
///
InvalidResult = 8,
///
- ///
+ ///
///
InvalidType = 9,
///
- ///
+ ///
///
MetadataError = 10,
///
- ///
+ ///
///
NotImplemented = 11,
///
- ///
+ ///
///
NotInstalled = 12,
@@ -111,22 +111,22 @@ namespace System.Management.Automation
ObjectNotFound = 13,
///
- ///
+ ///
///
OperationStopped = 14,
///
- ///
+ ///
///
OperationTimeout = 15,
///
- ///
+ ///
///
SyntaxError = 16,
///
- ///
+ ///
///
ParserError = 17,
@@ -136,27 +136,27 @@ namespace System.Management.Automation
PermissionDenied = 18,
///
- ///
+ ///
///
ResourceBusy = 19,
///
- ///
+ ///
///
ResourceExists = 20,
///
- ///
+ ///
///
ResourceUnavailable = 21,
///
- ///
+ ///
///
ReadError = 22,
///
- ///
+ ///
///
WriteError = 23,
@@ -524,7 +524,7 @@ namespace System.Management.Automation
/// when they want to display a more specific Message than the one
/// contained in a particular Exception, without having to create
/// a new Exception or define a new Exception class.
- ///
+ ///
/// It is permitted to subclass
/// but there is no established scenario for doing this, nor has it been tested.
///
@@ -575,7 +575,7 @@ namespace System.Management.Automation
/// ,
/// since the improved
/// information about the error may help enable future scenarios.
- ///
+ ///
/// This constructor first loads the error message template string using
/// .
/// The default implementation of
@@ -623,7 +623,7 @@ namespace System.Management.Automation
/// ,
/// since the improved
/// information about the error may help enable future scenarios.
- ///
+ ///
/// This constructor first loads a template string using
/// .
/// The default implementation of
@@ -634,9 +634,9 @@ namespace System.Management.Automation
/// by overriding virtual method
/// ,
/// and it is also possible that PSSnapin custom classes
- /// which are not instances of
+ /// which are not instances of
///
- /// will implement
+ /// will implement
/// .
/// The constructor then inserts the specified args using
/// .
@@ -676,7 +676,7 @@ namespace System.Management.Automation
/// ,
/// since the improved
/// information about the error may help enable future scenarios.
- ///
+ ///
/// This constructor first loads a template string from the assembly using
/// .
/// The constructor then inserts the specified args using
@@ -744,14 +744,14 @@ namespace System.Management.Automation
///
/// When an instance of
///
- /// contains a non-null
+ /// contains a non-null
///
/// and
///
/// is non-empty, the default host will display it instead of
/// the in
/// .
- ///
+ ///
/// This should be a grammatically correct localized text string, as with
///
///
@@ -951,7 +951,7 @@ namespace System.Management.Automation
///
/// instances in shell variable
/// $error.
- ///
+ ///
/// Some terminating errors implement
///
/// which gives them an ErrorRecord property containing this additional
@@ -1017,9 +1017,9 @@ namespace System.Management.Automation
// (1) the exception type does not exist on the target machine, or
// (2) the exception serializer/deserializer fails or is not
// implemented/supported.
- //
+ //
// We do not attempt to serialize TargetObject.
- //
+ //
// We do not attempt to serialize InvocationInfo. There is
// potentially some useful information there, but serializing
// InvocationInfo, Token, InternalCommand and its subclasses, and
@@ -1223,18 +1223,18 @@ namespace System.Management.Automation
///
/// Gets the value for note from mshObject
///
- ///
+ ///
///
/// PSObject from which value is fetched.
///
- ///
+ ///
///
/// name of note whose value is fetched
///
///
/// value of note
///
- ///
+ ///
private static object GetNoteValue
(
PSObject mshObject,
@@ -1253,25 +1253,25 @@ namespace System.Management.Automation
}
///
- /// Create an ErrorRecord object from serialized ErrorRecord.
- /// serializedErrorRecord PSObject is in the format returned
+ /// Create an ErrorRecord object from serialized ErrorRecord.
+ /// serializedErrorRecord PSObject is in the format returned
/// by ToPSObjectForRemoting method.
///
- ///
+ ///
///
/// PSObject to convert to ErrorRecord
///
- ///
- ///
+ ///
+ ///
///
/// ErrorRecord convert from mshObject.
- ///
- ///
- ///
+ ///
+ ///
+ ///
///
/// Thrown if mshObject parameter is null.
///
- ///
+ ///
internal static ErrorRecord FromPSObjectForRemoting
(
PSObject serializedErrorRecord
@@ -1723,20 +1723,20 @@ namespace System.Management.Automation
/// and also MSH engine errors such as
/// .
/// Cmdlets and providers should not define this interface;
- /// instead, they should use the
+ /// instead, they should use the
/// WriteError(ErrorRecord) or
/// ThrowTerminatingError(ErrorRecord) methods.
/// The ErrorRecord property will contain an ErrorRecord
/// which contains an instance of
///
/// rather than the actual exception.
- ///
+ ///
/// Do not call WriteError(e.ErrorRecord).
/// The ErrorRecord contained in the ErrorRecord property of
/// an exception which implements IContainsErrorRecord
/// should not be passed directly to WriteError, since it contains
/// a ParentContainsErrorRecordException rather than the real exception.
- ///
+ ///
/// It is permitted for PSSnapins to implement custom Exception classes which implement
/// ,
/// but it is generally preferable for Cmdlets and CmdletProviders to communicate
@@ -1797,7 +1797,7 @@ namespace System.Management.Automation
/// the custom class to be used in the
/// .
/// constructor.
- ///
+ ///
/// contains special constructor
///
/// reducing the steps which localizable code generally has to duplicate when it
@@ -1820,7 +1820,7 @@ namespace System.Management.Automation
/// .
/// Consider implementing
/// if you want more complex behavior.
- ///
+ ///
/// Insertions will be inserted into the string with
///
/// to generate the final error message in
diff --git a/src/System.Management.Automation/engine/EventManager.cs b/src/System.Management.Automation/engine/EventManager.cs
index 8e647abe9f..17c7164371 100644
--- a/src/System.Management.Automation/engine/EventManager.cs
+++ b/src/System.Management.Automation/engine/EventManager.cs
@@ -50,7 +50,7 @@ namespace System.Management.Automation
///
/// Creates a PowerShell event.
- ///
+ ///
///
/// An optional identifier that identifies the source event
///
@@ -68,7 +68,7 @@ namespace System.Management.Automation
///
/// Generate a PowerShell event.
- ///
+ ///
///
/// An optional identifier that identifies the source event
///
@@ -89,7 +89,7 @@ namespace System.Management.Automation
///
/// Generate a PowerShell event.
- ///
+ ///
///
/// An optional identifier that identifies the source event
///
@@ -142,7 +142,7 @@ namespace System.Management.Automation
///
/// Get the event subscription that corresponds to an identifier
- ///
+ ///
///
/// The identifier that identifies the source of the events
///
@@ -151,7 +151,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -179,7 +179,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -211,7 +211,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -240,7 +240,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -272,7 +272,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -320,7 +320,7 @@ namespace System.Management.Automation
///
/// Unsubscribes from an event on an object.
- ///
+ ///
///
/// The subscriber associated with the event subscription
///
@@ -388,7 +388,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -419,7 +419,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -459,7 +459,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -508,7 +508,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -540,7 +540,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -585,7 +585,7 @@ namespace System.Management.Automation
private bool _timerInitialized = false;
private bool _isTimerActive = false;
///
- ///
+ ///
/// We sample every 100ms to check if the engine is idle (currentlyRunningPipeline == null). If it's "idle"
/// in four consecutive samples, then we believe it's actually idle. In this way we can avoid capturing possible
/// pipeline transitions.
@@ -593,7 +593,7 @@ namespace System.Management.Automation
private int _consecutiveIdleSamples = 0;
///
- ///
+ ///
/// Send on-idle event if the engine is idle. The property "AutoReset" of the timer is always false,
/// so only one handler will be running at anytime. The timer will be enabled again if we can meet
/// the following two conditions.
@@ -846,7 +846,7 @@ namespace System.Management.Automation
///
/// Unsubscribes from an event on an object.
- ///
+ ///
///
/// The subscriber associated with the event subscription
///
@@ -859,12 +859,12 @@ namespace System.Management.Automation
///
/// Unsubscribes from an event on an object.
- ///
+ ///
///
/// The subscriber associated with the event subscription
///
///
- /// Indicate if we should skip draining
+ /// Indicate if we should skip draining
///
///
private void UnsubscribeEvent(PSEventSubscriber subscriber, bool skipDraining)
@@ -933,7 +933,7 @@ namespace System.Management.Automation
///
/// Creates a PowerShell event.
- ///
+ ///
///
/// An optional identifier that identifies the source event
///
@@ -983,11 +983,11 @@ namespace System.Management.Automation
ManualResetEventSlim waitHandle = newEvent.EventProcessed;
if (waitHandle != null)
{
- // Win8: 738767 In Win7, the processInCurrentThread parameter was used to be
+ // Win8: 738767 In Win7, the processInCurrentThread parameter was used to be
// called processSynchronously. Even though the parameter was called "processSynchronously",
// the event and associated action were not processed synchronously..the event manager
// just added the associated action into event queue. The action can get executed at a later
- // time depending on the throttle checks etc. In Win8, to support routing of ScriptBlock
+ // time depending on the throttle checks etc. In Win8, to support routing of ScriptBlock
// invocation to the current runspace, we took dependency on eventing infrastructure and
// this required ensuring the event and associated action be processed in the current thread
// synchronously. The below while loop was added for that (win8: 530495). However, fix for
@@ -1095,7 +1095,7 @@ namespace System.Management.Automation
PulseEngine();
}
- // PowerShell support for async notifications happen through the
+ // PowerShell support for async notifications happen through the
// CheckForInterrupts() method on ParseTreeNode. These are only called when
// the engine is active (and processing,) so the Pulse() method
// executes the equivalent of a NOP so that async events
@@ -1115,12 +1115,12 @@ namespace System.Management.Automation
/// parse tree node. If we are processing pending actions, we must block the parser.
/// To prevent starvation of the foreground script, we throttle the number of events
/// that we process while the parser is waiting. If the parser is not waiting, we
- /// do not throttle the event processing.
- ///
+ /// do not throttle the event processing.
+ ///
///
internal void ProcessPendingActions()
{
- // We do this check quickly outside of the lock so that the
+ // We do this check quickly outside of the lock so that the
// main-line scenario is as fast as possible. Also, do the real work
// in a different method so that this method could be inlined.
if (_actionQueue.Count == 0)
@@ -1229,7 +1229,7 @@ namespace System.Management.Automation
///
internal void DrainPendingActions(PSEventSubscriber subscriber)
{
- // We do this check quickly outside of the lock so that the
+ // We do this check quickly outside of the lock so that the
// main-line scenario is as fast as possible.
if (_actionQueue.Count == 0)
return;
@@ -1346,7 +1346,7 @@ namespace System.Management.Automation
///
/// Get the event subscription that corresponds to an identifier
- ///
+ ///
///
/// The identifier that identifies the source of the events
///
@@ -1442,7 +1442,7 @@ namespace System.Management.Automation
#endif
// Define the type that will respond to the event. It
// derives from PSEventHandler so that complex
- // functionality can go into its base class.
+ // functionality can go into its base class.
TypeBuilder eventType =
_eventModule.DefineType("PSEventHandler_" + _typeId, TypeAttributes.Public, typeof(PSEventHandler));
_typeId++;
@@ -1506,7 +1506,7 @@ namespace System.Management.Automation
ILGenerator methodContents = eventMethod.GetILGenerator();
- // Object[] args =
+ // Object[] args =
LocalBuilder argsBuilder = methodContents.DeclareLocal(typeof(object[]));
#if !CORECLR
@@ -1699,7 +1699,7 @@ namespace System.Management.Automation
///
/// Creates a PowerShell event.
- ///
+ ///
///
/// An optional identifier that identifies the source event
///
@@ -1727,7 +1727,7 @@ namespace System.Management.Automation
forwardedEvent.EventIdentifier = GetNextEventId();
forwardedEvent.ForwardEvent = false;
- // The computer name will be null the first time the event is forwarded; in this case we need to override with the
+ // The computer name will be null the first time the event is forwarded; in this case we need to override with the
// remote computer this event manager is associated to. If the event has travelled multiple hops then we do not
// want to override this value since we want to preserve the original computer.
if (forwardedEvent.ComputerName == null || forwardedEvent.ComputerName.Length == 0)
@@ -1768,7 +1768,7 @@ namespace System.Management.Automation
///
/// Get the event subscription that corresponds to an identifier
- ///
+ ///
///
/// The identifier that identifies the source of the events
///
@@ -1780,7 +1780,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -1811,7 +1811,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -1846,7 +1846,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -1877,7 +1877,7 @@ namespace System.Management.Automation
///
/// Subscribes to an event on an object.
- ///
+ ///
///
/// The source object that defines the event
///
@@ -1912,7 +1912,7 @@ namespace System.Management.Automation
///
/// Unsubscribes from an event on an object.
- ///
+ ///
///
/// The subscriber associated with the event subscription
///
@@ -1967,12 +1967,12 @@ namespace System.Management.Automation
public const string WorkflowJobStartEvent = "PowerShell.WorkflowJobStartEvent";
///
- /// Called during scriptblock invocation
+ /// Called during scriptblock invocation
///
internal const string OnScriptBlockInvoke = "PowerShell.OnScriptBlockInvoke";
///
- /// Called during scriptblock invocation
+ /// Called during scriptblock invocation
///
internal const string GetCommandInfoParameterMetadata = "PowerShell.GetCommandInfoParameterMetadata";
@@ -2208,7 +2208,7 @@ namespace System.Management.Automation
///
/// Creates a new instance of the PsEventHandler class for a given
/// event manager, source identifier, and extra data
- ///
+ ///
///
/// The event manager to which we forward events.
///
@@ -2474,7 +2474,7 @@ namespace System.Management.Automation
///
/// Add add an event to the collection
///
- ///
+ ///
///
/// The PSEventArgs instance that represents this event
///
@@ -2624,7 +2624,7 @@ namespace System.Management.Automation
}
///
- /// Stop Job
+ /// Stop Job
///
public override void StopJob()
{
diff --git a/src/System.Management.Automation/engine/ExecutionContext.cs b/src/System.Management.Automation/engine/ExecutionContext.cs
index 02dbbb2995..184407858c 100644
--- a/src/System.Management.Automation/engine/ExecutionContext.cs
+++ b/src/System.Management.Automation/engine/ExecutionContext.cs
@@ -179,7 +179,7 @@ namespace System.Management.Automation
///
/// True if the RunspaceConfiguration/InitialSessionState is for a single shell or false otherwise.
///
- ///
+ ///
internal bool IsSingleShell
{
get
@@ -252,7 +252,7 @@ namespace System.Management.Automation
/// providers based on the type of the shell
/// (single shell or custom shell).
///
- ///
+ ///
internal ProviderNames ProviderNames
{
get
@@ -324,7 +324,7 @@ namespace System.Management.Automation
///
/// Get the SessionState facade for the internal session state APIs
///
- ///
+ ///
internal SessionState SessionState
{
get
@@ -398,7 +398,7 @@ namespace System.Management.Automation
};
///
- /// Is true the PSScheduledJob and PSWorkflow modules are loaded for this runspace
+ /// Is true the PSScheduledJob and PSWorkflow modules are loaded for this runspace
///
internal bool IsModuleWithJobSourceAdapterLoaded
{
@@ -409,7 +409,7 @@ namespace System.Management.Automation
/// Gets the location globber for the session state for
/// this instance of the runspace.
///
- ///
+ ///
internal LocationGlobber LocationGlobber
{
get
@@ -423,7 +423,7 @@ namespace System.Management.Automation
///
/// The assemblies that have been loaded for this runspace
///
- ///
+ ///
internal Dictionary AssemblyCache { get; private set; }
#endregion Properties
@@ -558,7 +558,7 @@ namespace System.Management.Automation
#region HelpSystem
///
- /// Help system for this engine context.
+ /// Help system for this engine context.
///
///
internal HelpSystem HelpSystem
@@ -1187,7 +1187,7 @@ namespace System.Management.Automation
_formatDBManager.Update(this.AuthorizationManager, this.EngineHostInterface);
if (this.InitialSessionState != null)
{
- // Win8:418011: Set DisableFormatTableUpdates only after performing the initial update. Otherwise, formatDBManager will be
+ // Win8:418011: Set DisableFormatTableUpdates only after performing the initial update. Otherwise, formatDBManager will be
// in bad state.
_formatDBManager.DisableFormatTableUpdates = this.InitialSessionState.DisableFormatUpdates;
}
@@ -1223,7 +1223,7 @@ namespace System.Management.Automation
private bool _assemblyCacheInitialized = false;
///
- /// This function is called by RunspaceConfiguration.Assemblies.Update call back.
+ /// This function is called by RunspaceConfiguration.Assemblies.Update call back.
/// It's not used when constructing a runspace from an InitialSessionState object.
///
internal void UpdateAssemblyCache()
@@ -1291,7 +1291,7 @@ namespace System.Management.Automation
if (AssemblyCache.ContainsKey(loadedAssembly.FullName))
{
- // we should ignore this assembly.
+ // we should ignore this assembly.
return loadedAssembly;
}
// We will cache the assembly by both full name and
@@ -1300,7 +1300,7 @@ namespace System.Management.Automation
if (AssemblyCache.ContainsKey(loadedAssembly.GetName().Name))
{
- // we should ignore this assembly.
+ // we should ignore this assembly.
return loadedAssembly;
}
AssemblyCache.Add(loadedAssembly.GetName().Name, loadedAssembly);
@@ -1579,7 +1579,7 @@ namespace System.Management.Automation
///
/// Constructs an Execution context object for Automation Engine
///
- ///
+ ///
///
/// Engine that hosts this execution context
///
@@ -1600,7 +1600,7 @@ namespace System.Management.Automation
///
/// Constructs an Execution context object for Automation Engine
///
- ///
+ ///
///
/// Engine that hosts this execution context
///
@@ -1653,7 +1653,7 @@ namespace System.Management.Automation
if (AuthorizationManager == null)
{
// if authorizationmanager==null, this means the configuration
- // explicitly asked for dummy authorization manager.
+ // explicitly asked for dummy authorization manager.
AuthorizationManager = new AuthorizationManager(null);
}
@@ -1692,9 +1692,9 @@ namespace System.Management.Automation
}
///
- /// Enum that defines state of monad engine.
+ /// Enum that defines state of monad engine.
///
- ///
+ ///
internal enum EngineState
{
///
diff --git a/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs b/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs
index d9068e198d..69f113f744 100644
--- a/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs
+++ b/src/System.Management.Automation/engine/ExtendedTypeSystemException.cs
@@ -22,7 +22,7 @@ namespace System.Management.Automation
{
#region ctor
///
- /// Initializes a new instance of ExtendedTypeSystemException with the message set
+ /// Initializes a new instance of ExtendedTypeSystemException with the message set
/// to typeof(ExtendedTypeSystemException).FullName
///
public ExtendedTypeSystemException() : base(typeof(ExtendedTypeSystemException).FullName)
@@ -92,7 +92,7 @@ namespace System.Management.Automation
#region ctor
///
- /// Initializes a new instance of MethodException with the message set
+ /// Initializes a new instance of MethodException with the message set
/// to typeof(MethodException).FullName
///
public MethodException() : base(typeof(MethodException).FullName)
@@ -158,7 +158,7 @@ namespace System.Management.Automation
#region ctor
///
- /// Initializes a new instance of MethodInvocationException with the message set
+ /// Initializes a new instance of MethodInvocationException with the message set
/// to typeof(MethodInvocationException).FullName
///
public MethodInvocationException() : base(typeof(MethodInvocationException).FullName)
@@ -222,7 +222,7 @@ namespace System.Management.Automation
internal const string WriteOnlyProperty = "WriteOnlyProperty";
#region ctor
///
- /// Initializes a new instance of GetValueException with the message set
+ /// Initializes a new instance of GetValueException with the message set
/// to typeof(GetValueException).FullName
///
public GetValueException() : base(typeof(GetValueException).FullName)
@@ -285,7 +285,7 @@ namespace System.Management.Automation
{
#region ctor
///
- /// Initializes a new instance of GetValueException with the message set
+ /// Initializes a new instance of GetValueException with the message set
/// to typeof(GetValueException).FullName
///
public PropertyNotFoundException()
@@ -352,7 +352,7 @@ namespace System.Management.Automation
#region ctor
///
- /// Initializes a new instance of GetValueInvocationException with the message set
+ /// Initializes a new instance of GetValueInvocationException with the message set
/// to typeof(GetValueInvocationException).FullName
///
public GetValueInvocationException() : base(typeof(GetValueInvocationException).FullName)
@@ -414,7 +414,7 @@ namespace System.Management.Automation
{
#region ctor
///
- /// Initializes a new instance of SetValueException with the message set
+ /// Initializes a new instance of SetValueException with the message set
/// to typeof(SetValueException).FullName
///
public SetValueException() : base(typeof(SetValueException).FullName)
@@ -476,7 +476,7 @@ namespace System.Management.Automation
{
#region ctor
///
- /// Initializes a new instance of SetValueInvocationException with the message set
+ /// Initializes a new instance of SetValueInvocationException with the message set
/// to typeof(SetValueInvocationException).FullName
///
public SetValueInvocationException() : base(typeof(SetValueInvocationException).FullName)
@@ -568,7 +568,7 @@ namespace System.Management.Automation
#endregion Serialization
///
- /// Initializes a new instance of PSInvalidCastException with the message set
+ /// Initializes a new instance of PSInvalidCastException with the message set
/// to typeof(PSInvalidCastException).FullName
///
public PSInvalidCastException() : base(typeof(PSInvalidCastException).FullName)
diff --git a/src/System.Management.Automation/engine/ExternalScriptInfo.cs b/src/System.Management.Automation/engine/ExternalScriptInfo.cs
index 321a19dcaf..39ce6dd4c5 100644
--- a/src/System.Management.Automation/engine/ExternalScriptInfo.cs
+++ b/src/System.Management.Automation/engine/ExternalScriptInfo.cs
@@ -29,27 +29,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the ExternalScriptInfo class with the specified name, and path.
///
- ///
+ ///
///
/// The name of the script.
///
- ///
+ ///
///
/// The path to the script
///
- ///
+ ///
///
/// The context of the currently running engine.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal ExternalScriptInfo(string name, string path, ExecutionContext context)
: base(name, CommandTypes.ExternalScript, context)
{
@@ -72,15 +72,15 @@ namespace System.Management.Automation
///
/// The name of the script.
///
- ///
+ ///
///
/// The path to the script
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal ExternalScriptInfo(string name, string path) : base(name, CommandTypes.ExternalScript)
{
if (String.IsNullOrEmpty(path))
@@ -211,7 +211,7 @@ namespace System.Management.Automation
///
/// The script block that represents the external script
///
- ///
+ ///
public ScriptBlock ScriptBlock
{
get
@@ -273,9 +273,9 @@ namespace System.Management.Automation
///
/// Validates the external script info
///
- ///
+ ///
///
- ///
+ ///
public void ValidateScriptInfo(Host.PSHost host)
{
if (!_signatureChecked)
@@ -352,7 +352,7 @@ namespace System.Management.Automation
}
}
- #endregion Internal
+ #endregion Internal
private ScriptRequirements GetRequiresData()
{
@@ -519,7 +519,7 @@ namespace System.Management.Automation
catch (UnauthorizedAccessException e)
{
// this is unadvertised exception thrown by the StreamReader ctor when
- // no permission to read the script file
+ // no permission to read the script file
ThrowCommandNotFoundException(e);
}
}
diff --git a/src/System.Management.Automation/engine/ExtraAdapter.cs b/src/System.Management.Automation/engine/ExtraAdapter.cs
index bc45e2b97d..7ef258808d 100644
--- a/src/System.Management.Automation/engine/ExtraAdapter.cs
+++ b/src/System.Management.Automation/engine/ExtraAdapter.cs
@@ -237,7 +237,7 @@ namespace System.Management.Automation
#region private data
// DirectoryEntry(DE) adapter needs dotnet adapter as DE adapter
// don't know the underlying native adsi object's method metadata.
- // In the MethodInvoke() call, this adapter first calls
+ // In the MethodInvoke() call, this adapter first calls
// native adsi object's method, if there is a failure it calls
// dotnet method (if one available).
// This ensures dotnet methods are available on the adapted object.
@@ -271,7 +271,7 @@ namespace System.Management.Automation
// and catch an eventual exception.
// Specifically for "LDAP://RootDse" there are some cases where calling
// InvokeGet will throw COMException for existing properties like defaultNamingContext.
- // Having a call to entry.Properties[propertyName] fixes the RootDse problem.
+ // Having a call to entry.Properties[propertyName] fixes the RootDse problem.
// Calling entry.RefreshCache() also fixes the RootDse problem.
try
{
@@ -320,7 +320,7 @@ namespace System.Management.Automation
// In case of collisions between Dotnet Property and adsi native object methods,
// Dotnet wins. Looking through IADs com interfaces there doesn't appear
// to be a collision like this.
- // Powershell Parser will call only GetMember, so here
+ // Powershell Parser will call only GetMember, so here
// we cannot distinguish if the caller is looking for a property or a
// method.
#endregion
@@ -340,7 +340,7 @@ namespace System.Management.Automation
/// in the first call to GetMember and GetMembers so that subsequent
/// calls can use the cache.
/// In the case of the .NET adapter that would be a cache from the .NET type to
- /// the public properties and fields available in that type.
+ /// the public properties and fields available in that type.
/// In the case of the DirectoryEntry adapter, this could be a cache of the objectClass
/// to the properties available in it.
///
@@ -414,9 +414,9 @@ namespace System.Management.Automation
{
if (e.ErrorCode != unchecked((int)0x80004005) || (setValue == null))
// When clear is called, DirectoryEntry calls PutEx on AD object with Clear option and Null Value
- // WinNT provider throws E_FAIL when null value is specified though actually ADS_PROPERTY_CLEAR option is used,
- // we need to catch this exception here.
- // But at the same time we don't want to catch the exception if user explicitly sets the value to null.
+ // WinNT provider throws E_FAIL when null value is specified though actually ADS_PROPERTY_CLEAR option is used,
+ // we need to catch this exception here.
+ // But at the same time we don't want to catch the exception if user explicitly sets the value to null.
throw;
}
diff --git a/src/System.Management.Automation/engine/FilterInfo.cs b/src/System.Management.Automation/engine/FilterInfo.cs
index e7c160c9b2..6eeedf8117 100644
--- a/src/System.Management.Automation/engine/FilterInfo.cs
+++ b/src/System.Management.Automation/engine/FilterInfo.cs
@@ -14,23 +14,23 @@ namespace System.Management.Automation
///
/// Creates an instance of the FilterInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the filter.
///
- ///
+ ///
///
/// The ScriptBlock for the filter
///
- ///
+ ///
///
/// The ExecutionContext for the filter.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FilterInfo(string name, ScriptBlock filter, ExecutionContext context) : this(name, filter, context, null)
{
} // FilterInfo ctor
@@ -38,27 +38,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the FilterInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the filter.
///
- ///
+ ///
///
/// The ScriptBlock for the filter
///
- ///
+ ///
///
/// The ExecutionContext for the filter.
///
- ///
+ ///
///
/// The help file for the filter.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FilterInfo(string name, ScriptBlock filter, ExecutionContext context, string helpFile)
: base(name, filter, context, helpFile)
{
@@ -68,27 +68,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the FilterInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the filter.
///
- ///
+ ///
///
/// The ScriptBlock for the filter
///
- ///
+ ///
///
/// The options to set on the function. Note, Constant can only be set at creation time.
///
- ///
+ ///
///
/// The execution context for the filter.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FilterInfo(string name, ScriptBlock filter, ScopedItemOptions options, ExecutionContext context) : this(name, filter, options, context, null)
{
} // FilterInfo ctor
@@ -96,31 +96,31 @@ namespace System.Management.Automation
///
/// Creates an instance of the FilterInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the filter.
///
- ///
+ ///
///
/// The ScriptBlock for the filter
///
- ///
+ ///
///
/// The options to set on the function. Note, Constant can only be set at creation time.
///
- ///
+ ///
///
/// The execution context for the filter.
///
- ///
+ ///
///
/// The help file for the filter.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FilterInfo(string name, ScriptBlock filter, ScopedItemOptions options, ExecutionContext context, string helpFile)
: base(name, filter, options, context, helpFile)
{
diff --git a/src/System.Management.Automation/engine/FunctionInfo.cs b/src/System.Management.Automation/engine/FunctionInfo.cs
index 0636e50b49..06542a0c07 100644
--- a/src/System.Management.Automation/engine/FunctionInfo.cs
+++ b/src/System.Management.Automation/engine/FunctionInfo.cs
@@ -18,23 +18,23 @@ namespace System.Management.Automation
///
/// Creates an instance of the FunctionInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the function.
///
- ///
+ ///
///
/// The ScriptBlock for the function
///
- ///
+ ///
///
/// The execution context for the function.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FunctionInfo(string name, ScriptBlock function, ExecutionContext context) : this(name, function, context, null)
{
} // FunctionInfo ctor
@@ -42,27 +42,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the FunctionInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the function.
///
- ///
+ ///
///
/// The ScriptBlock for the function
///
- ///
+ ///
///
/// The execution context for the function.
///
- ///
+ ///
///
/// The name of the help file associated with the function.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FunctionInfo(string name, ScriptBlock function, ExecutionContext context, string helpFile) : base(name, CommandTypes.Function, context)
{
if (function == null)
@@ -81,27 +81,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the FunctionInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the function.
///
- ///
+ ///
///
/// The ScriptBlock for the function
///
- ///
+ ///
///
/// The options to set on the function. Note, Constant can only be set at creation time.
///
- ///
+ ///
///
/// The execution context for the function.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FunctionInfo(string name, ScriptBlock function, ScopedItemOptions options, ExecutionContext context) : this(name, function, options, context, null)
{
} // FunctionInfo ctor
@@ -109,31 +109,31 @@ namespace System.Management.Automation
///
/// Creates an instance of the FunctionInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the function.
///
- ///
+ ///
///
/// The ScriptBlock for the function
///
- ///
+ ///
///
/// The options to set on the function. Note, Constant can only be set at creation time.
///
- ///
+ ///
///
/// The execution context for the function.
///
- ///
+ ///
///
/// The name of the help file associated with the function.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal FunctionInfo(string name, ScriptBlock function, ScopedItemOptions options, ExecutionContext context, string helpFile)
: this(name, function, context, helpFile)
{
@@ -200,22 +200,22 @@ namespace System.Management.Automation
///
/// Updates a function.
///
- ///
+ ///
///
/// The script block that the function should represent.
///
- ///
+ ///
///
/// If true, the script block will be applied even if the filter is ReadOnly.
///
- ///
+ ///
///
/// Any options to set on the new function, null if none.
///
///
/// If is null.
///
- ///
+ ///
internal void Update(ScriptBlock newFunction, bool force, ScopedItemOptions options)
{
Update(newFunction, force, options, null);
@@ -230,27 +230,27 @@ namespace System.Management.Automation
///
/// Updates a function.
///
- ///
+ ///
///
/// The script block that the function should represent.
///
- ///
+ ///
///
/// If true, the script block will be applied even if the filter is ReadOnly.
///
- ///
+ ///
///
/// Any options to set on the new function, null if none.
///
- ///
+ ///
///
/// The helpfile for this function.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal void Update(ScriptBlock newFunction, bool force, ScopedItemOptions options, string helpFile)
{
if (newFunction == null)
@@ -309,7 +309,7 @@ namespace System.Management.Automation
}
///
- /// Gets the name of the default parameter set.
+ /// Gets the name of the default parameter set.
/// Returns null if this function doesn't use cmdlet parameter binding or if the default parameter set wasn't specified.
///
public string DefaultParameterSet
@@ -329,7 +329,7 @@ namespace System.Management.Automation
///
/// Gets or sets the scope options for the function.
///
- ///
+ ///
///
/// If the trying to set a function that is constant or
/// if the value trying to be set is ScopedItemOptions.Constant
diff --git a/src/System.Management.Automation/engine/GetCommandCommand.cs b/src/System.Management.Automation/engine/GetCommandCommand.cs
index cd387933d9..11d1cb1de1 100644
--- a/src/System.Management.Automation/engine/GetCommandCommand.cs
+++ b/src/System.Management.Automation/engine/GetCommandCommand.cs
@@ -73,7 +73,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the verb parameter to the cmdlet
///
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = "CmdletSet")]
public string[] Verb
{
@@ -97,7 +97,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the noun parameter to the cmdlet
///
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = "CmdletSet")]
[ArgumentCompleter(typeof(NounArgumentCompleter))]
public string[] Noun
@@ -122,7 +122,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the PSSnapin/Module parameter to the cmdlet
///
- ///
+ ///
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
[Parameter(ValueFromPipelineByPropertyName = true)]
[Alias("PSSnapin")]
@@ -151,7 +151,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the FullyQualifiedModule parameter to the cmdlet
///
- ///
+ ///
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
[Parameter(ValueFromPipelineByPropertyName = true)]
public ModuleSpecification[] FullyQualifiedModule
@@ -176,7 +176,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the type of the command to get
///
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true, ParameterSetName = "AllCommandSet")]
[Alias("Type")]
public CommandTypes CommandType
@@ -200,7 +200,7 @@ namespace Microsoft.PowerShell.Commands
/// be returned. If negative, all matching commands that are found will
/// be returned.
///
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true)]
public int TotalCount { get; set; } = -1;
@@ -208,7 +208,7 @@ namespace Microsoft.PowerShell.Commands
/// The parameter that determines if the CommandInfo or the string
/// definition of the command is output.
///
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter Syntax
{
@@ -235,7 +235,7 @@ namespace Microsoft.PowerShell.Commands
/// The parameter that all additional arguments get bound to. These arguments are used
/// when retrieving dynamic parameters from cmdlets that support them.
///
- ///
+ ///
[Parameter(Position = 1, ValueFromRemainingArguments = true)]
[AllowNull]
[AllowEmptyCollection]
@@ -243,10 +243,10 @@ namespace Microsoft.PowerShell.Commands
public object[] ArgumentList { get; set; }
///
- /// The parameter that determines if additional matching commands should be returned.
+ /// The parameter that determines if additional matching commands should be returned.
/// (Additional matching functions and aliases are returned from module tables)
///
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter All
{
@@ -256,10 +256,10 @@ namespace Microsoft.PowerShell.Commands
private bool _all;
///
- /// The parameter that determines if additional matching commands from available modules should be returned.
- /// If set to true, only those commands currently in the session are returned.
+ /// The parameter that determines if additional matching commands from available modules should be returned.
+ /// If set to true, only those commands currently in the session are returned.
///
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true)]
public SwitchParameter ListImported
{
@@ -368,7 +368,7 @@ namespace Microsoft.PowerShell.Commands
///
/// method that implements get-command
///
- ///
+ ///
protected override void ProcessRecord()
{
// Module and FullyQualifiedModule should not be specified at the same time.
@@ -407,10 +407,10 @@ namespace Microsoft.PowerShell.Commands
///
/// Writes out the accumulated matching commands
///
- ///
+ ///
protected override void EndProcessing()
{
- // We do not show the pithy aliases (not of the format Verb-Noun) and applications by default.
+ // We do not show the pithy aliases (not of the format Verb-Noun) and applications by default.
// We will show them only if the Name, All and totalCount are not specified.
if ((this.Name == null) && (!_all) && TotalCount == -1)
{
@@ -471,7 +471,7 @@ namespace Microsoft.PowerShell.Commands
object pssenderInfo = Context.GetVariableValue(SpecialVariables.PSSenderInfoVarPath);
if ((null != pssenderInfo) && (pssenderInfo is System.Management.Automation.Remoting.PSSenderInfo))
{
- // Win8: 593295. Exchange has around 1000 cmdlets. During Import-PSSession,
+ // Win8: 593295. Exchange has around 1000 cmdlets. During Import-PSSession,
// Get-Command | select-object ..,HelpURI,... is run. HelpURI is a script property
// which in turn runs Get-Help. Get-Help loads the help content and caches it in the process.
// This caching is using around 190 MB. During V3, we have implemented HelpURI attribute
@@ -862,7 +862,7 @@ namespace Microsoft.PowerShell.Commands
CommandInfo current = ((IEnumerator)searcher).Current;
- // skip private commands as early as possible
+ // skip private commands as early as possible
// (i.e. before setting "result found" flag and before trying to use ArgumentList parameter)
// see bugs Windows 7: #520498 and #520470
CommandOrigin origin = this.MyInvocation.CommandOrigin;
@@ -939,18 +939,18 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Determines if the specific command information has already been
+ /// Determines if the specific command information has already been
/// written out based on the path or definition.
///
- ///
+ ///
///
/// The command information to check for duplication.
///
- ///
+ ///
///
/// true if the command has already been written out.
///
- ///
+ ///
private bool IsDuplicate(CommandInfo info)
{
bool result = false;
@@ -1249,24 +1249,24 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets matching commands from the module tables
+ /// Gets matching commands from the module tables
///
- ///
+ ///
///
/// The commandname to look for
///
- ///
+ ///
///
/// IEnumerable of CommandInfo objects
///
- ///
+ ///
private IEnumerable GetMatchingCommandsFromModules(string commandName)
{
WildcardPattern matcher = WildcardPattern.Get(
commandName,
WildcardOptions.IgnoreCase);
- // Use ModuleTableKeys list in reverse order
+ // Use ModuleTableKeys list in reverse order
for (int i = Context.EngineSessionState.ModuleTableKeys.Count - 1; i >= 0; i--)
{
PSModuleInfo module = null;
@@ -1327,18 +1327,18 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Determines if the specific command information has already been
+ /// Determines if the specific command information has already been
/// added to the result from CommandSearcher
///
- ///
+ ///
///
/// The command information to check for duplication.
///
- ///
+ ///
///
/// true if the command is present in the result.
///
- ///
+ ///
private bool IsCommandInResult(CommandInfo command)
{
bool isPresent = false;
@@ -1347,7 +1347,7 @@ namespace Microsoft.PowerShell.Commands
{
if ((command.CommandType == commandInfo.CommandType &&
(String.Compare(command.Name, commandInfo.Name, StringComparison.CurrentCultureIgnoreCase) == 0 ||
- // If the command has been imported with a prefix, then just checking the names for duplication will not be enough.
+ // If the command has been imported with a prefix, then just checking the names for duplication will not be enough.
// Hence, an additional check is done with the prefix information
String.Compare(ModuleCmdletBase.RemovePrefixFromCommandName(commandInfo.Name, commandInfo.Prefix), command.Name, StringComparison.CurrentCultureIgnoreCase) == 0)
) && commandInfo.Module != null && commandHasModule &&
@@ -1501,12 +1501,12 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
public class NounArgumentCompleter : IArgumentCompleter
{
///
- ///
+ ///
///
public IEnumerable CompleteArgument(string commandName, string parameterName, string wordToComplete, CommandAst commandAst, IDictionary fakeBoundParameters)
{
diff --git a/src/System.Management.Automation/engine/GetEvent_Types_Ps1Xml.generated.cs b/src/System.Management.Automation/engine/GetEvent_Types_Ps1Xml.generated.cs
index c9eb02012a..783dfd098c 100644
--- a/src/System.Management.Automation/engine/GetEvent_Types_Ps1Xml.generated.cs
+++ b/src/System.Management.Automation/engine/GetEvent_Types_Ps1Xml.generated.cs
@@ -75,9 +75,9 @@ namespace System.Management.Automation.Runspaces
new ScriptPropertyData(@"Readings", GetScriptBlock(@"$strPaths = """"
foreach ($ctr in $this.CounterSamples)
{
- $strPaths += ($ctr.Path + "" :"" + ""`n"")
- $strPaths += ($ctr.CookedValue.ToString() + ""`n`n"")
- }
+ $strPaths += ($ctr.Path + "" :"" + ""`n"")
+ $strPaths += ($ctr.CookedValue.ToString() + ""`n`n"")
+ }
return $strPaths"), null));
yield return td7;
#endif
diff --git a/src/System.Management.Automation/engine/ICommandRuntime.cs b/src/System.Management.Automation/engine/ICommandRuntime.cs
index 1a11d97654..b899a9a522 100644
--- a/src/System.Management.Automation/engine/ICommandRuntime.cs
+++ b/src/System.Management.Automation/engine/ICommandRuntime.cs
@@ -16,7 +16,7 @@ namespace System.Management.Automation
/// WriteObject implementation on the instance of the class implementing this interface will be
/// called. The Monad implementation provides a default implementation of this class for use with
/// standalone cmdlets as well as the implementation provided for running in the monad engine itself.
- ///
+ ///
/// If you do want to run Cmdlet instances standalone and capture their output with more
/// fidelity than is provided for with the default implementation, then you should create your own
/// implementation of this class and pass it to cmdlets before calling the Cmdlet Invoke() or
@@ -94,11 +94,11 @@ namespace System.Management.Automation
/// Use WriteProgress to display progress information about
/// the activity of your Task, when the operation of your Task
/// could potentially take a long time.
- ///
+ ///
/// By default, progress output will
/// be displayed, although this can be configured with the
/// ProgressPreference shell variable.
- ///
+ ///
/// The implementation of the API should display these progress records
/// in a fashion appropriate for the application. For example, a GUI application
/// would implement this as a progress bar of some sort.
@@ -134,7 +134,7 @@ namespace System.Management.Automation
/// not be displayed, although this can be configured with the
/// VerbosePreference shell variable
/// or the -Verbose and -Debug command-line options.
- ///
+ ///
/// The implementation of this API should display this addition information
/// in an appropriate manner e.g. in a different color in a console application
/// or in a separate window in a GUI application.
@@ -154,7 +154,7 @@ namespace System.Management.Automation
/// be displayed, although this can be configured with the
/// WarningPreference shell variable
/// or the -Verbose and -Debug command-line options.
- ///
+ ///
/// The implementation of this API should display this addition information
/// in an appropriate manner e.g. in a different color in a console application
/// or in a separate window in a GUI application.
@@ -169,9 +169,9 @@ namespace System.Management.Automation
///
/// text to be written to log
///
- /// Use WriteCommandDetail to write important information about cmdlet execution to
- /// pipeline execution log.
- ///
+ /// Use WriteCommandDetail to write important information about cmdlet execution to
+ /// pipeline execution log.
+ ///
/// If LogPipelineExecutionDetail is turned on, this information will be written
/// to monad log under log category "Pipeline execution detail"
///
@@ -197,7 +197,7 @@ namespace System.Management.Automation
/// If ShouldProcess returns true, the operation should be performed.
/// If ShouldProcess returns false, the operation should not be
/// performed, and the Cmdlet should move on to the next target resource.
- ///
+ ///
/// An implementation should prompt the user in an appropriate manner
/// and return true or false. An alternative trivial implementation
/// would be to just return true all the time.
@@ -206,11 +206,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -227,7 +227,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify text for both the
/// target resource and the action.
///
@@ -243,7 +243,7 @@ namespace System.Management.Automation
/// If ShouldProcess returns true, the operation should be performed.
/// If ShouldProcess returns false, the operation should not be
/// performed, and the Cmdlet should move on to the next target resource.
- ///
+ ///
/// An implementation should prompt the user in an appropriate manner
/// and return true or false. An alternative trivial implementation
/// would be to just return true all the time.
@@ -252,11 +252,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -273,7 +273,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify the complete text
/// describing the operation, rather than just the name and action.
///
@@ -302,15 +302,15 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
- ///
+ ///
/// An implementation should prompt the user in an appropriate manner
/// and return true or false. An alternative trivial implementation
/// would be to just return true all the time.
@@ -327,7 +327,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify the complete text
/// describing the operation, rather than just the name and action.
///
@@ -362,15 +362,15 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
- ///
+ ///
/// An implementation should prompt the user in an appropriate manner
/// and return true or false. An alternative trivial implementation
/// would be to just return true all the time.
@@ -409,16 +409,16 @@ namespace System.Management.Automation
/// and ShouldProcess.
/// If this is not done, it will be difficult to use the Cmdlet
/// from scripts and non-interactive hosts.
- ///
+ ///
/// Cmdlets using ShouldContinue must still verify operations
/// which will make changes using ShouldProcess.
/// This will assure that settings such as -WhatIf work properly.
/// You may call ShouldContinue either before or after ShouldProcess.
- ///
+ ///
/// ShouldContinue may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// Cmdlets may have different "classes" of confirmations. For example,
/// "del" confirms whether files in a particular directory should be
/// deleted, whether read-only files should be deleted, etc.
@@ -428,7 +428,7 @@ namespace System.Management.Automation
/// ShouldProcess offers YesToAll/NoToAll automatically,
/// but answering YesToAll or NoToAll applies to all subsequent calls
/// to ShouldProcess for the Cmdlet instance.
- ///
+ ///
/// An implementation should prompt the user in an appropriate manner
/// and return true or false. An alternative trivial implementation
/// would be to just return true all the time.
@@ -474,16 +474,16 @@ namespace System.Management.Automation
/// and ShouldProcess.
/// If this is not done, it will be difficult to use the Cmdlet
/// from scripts and non-interactive hosts.
- ///
+ ///
/// Cmdlets using ShouldContinue must still verify operations
/// which will make changes using ShouldProcess.
/// This will assure that settings such as -WhatIf work properly.
/// You may call ShouldContinue either before or after ShouldProcess.
- ///
+ ///
/// ShouldContinue may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// Cmdlets may have different "classes" of confirmations. For example,
/// "del" confirms whether files in a particular directory should be
/// deleted, whether read-only files should be deleted, etc.
@@ -493,7 +493,7 @@ namespace System.Management.Automation
/// ShouldProcess offers YesToAll/NoToAll automatically,
/// but answering YesToAll or NoToAll applies to all subsequent calls
/// to ShouldProcess for the Cmdlet instance.
- ///
+ ///
/// An implementation should prompt the user in an appropriate manner
/// and return true or false. An alternative trivial implementation
/// would be to just return true all the time.
@@ -533,7 +533,7 @@ namespace System.Management.Automation
/// terminates the command, where
///
/// allows the command to continue.
- ///
+ ///
/// The cmdlet can also terminate the command by simply throwing
/// any exception. When the cmdlet's implementation of
/// ,
@@ -546,7 +546,7 @@ namespace System.Management.Automation
/// so that the additional information in
///
/// is available.
- ///
+ ///
/// It is up to the implementation of this routine to determine what
/// if any information is to be added. It should encapsulate the
/// error record into an exception and then throw that exception.
diff --git a/src/System.Management.Automation/engine/InformationRecord.cs b/src/System.Management.Automation/engine/InformationRecord.cs
index 93221585e1..2b2ca1dc45 100644
--- a/src/System.Management.Automation/engine/InformationRecord.cs
+++ b/src/System.Management.Automation/engine/InformationRecord.cs
@@ -14,15 +14,15 @@ using Environment = System.Management.Automation.Environment;
namespace System.Management.Automation
{
///
- ///
- /// Defines a data structure used to represent informational context destined for the host or user.
- ///
+ ///
+ /// Defines a data structure used to represent informational context destined for the host or user.
+ ///
///
///
- ///
+ ///
/// InformationRecords are passed to ,
/// which, according to host or user preference, forwards that information on to the host for rendering to the user.
- ///
+ ///
///
///
@@ -30,9 +30,9 @@ namespace System.Management.Automation
public class InformationRecord
{
///
- ///
+ ///
/// Initializes a new instance of the InformationRecord class.
- ///
+ ///
///
/// The object to be transmitted to the host.
/// The source of the message (i.e.: script path, function name, etc.)
diff --git a/src/System.Management.Automation/engine/InitialSessionState.cs b/src/System.Management.Automation/engine/InitialSessionState.cs
index c1ee4d59ba..0736b631de 100644
--- a/src/System.Management.Automation/engine/InitialSessionState.cs
+++ b/src/System.Management.Automation/engine/InitialSessionState.cs
@@ -835,7 +835,7 @@ namespace System.Management.Automation.Runspaces
#if !CORECLR // Workflow Not Supported On CSS
///
- ///
+ ///
///
public sealed class SessionStateWorkflowEntry : SessionStateCommandEntry
{
@@ -1631,7 +1631,7 @@ namespace System.Management.Automation.Runspaces
iss.ThrowOnRunspaceOpenError = true;
iss.UseFullLanguageModeInDebugger = false;
- // WIN8:551312 M3P endpoint should have NO application exposed
+ // WIN8:551312 M3P endpoint should have NO application exposed
//
foreach (SessionStateCommandEntry entry in iss.Commands)
{
@@ -1701,7 +1701,7 @@ namespace System.Management.Automation.Runspaces
iss.ThrowOnRunspaceOpenError = true;
iss.UseFullLanguageModeInDebugger = false;
- // WIN8:551312 M3P endpoint should have NO application exposed
+ // WIN8:551312 M3P endpoint should have NO application exposed
//
foreach (SessionStateCommandEntry entry in iss.Commands)
{
@@ -1778,7 +1778,7 @@ namespace System.Management.Automation.Runspaces
iss.ThrowOnRunspaceOpenError = true;
iss.UseFullLanguageModeInDebugger = false;
- // WIN8:551312 M3P endpoint should have NO application exposed
+ // WIN8:551312 M3P endpoint should have NO application exposed
//
foreach (SessionStateCommandEntry entry in iss.Commands)
{
@@ -2827,7 +2827,7 @@ namespace System.Management.Automation.Runspaces
// Win8:328748 - functions defined in global scope end up in a module
// Since we import the core modules, EngineSessionState's module is set to the last imported module. So, if a function is defined in global scope, it ends up in that module.
- // Setting the module to null fixes that.
+ // Setting the module to null fixes that.
initializedRunspace.ExecutionContext.EngineSessionState.Module = null;
// Set the SessionStateDrive here since we have all the provider information at this point
@@ -3369,7 +3369,7 @@ namespace System.Management.Automation.Runspaces
///
/// Helper method to search for commands matching the provided commandPattern.
- /// Supports wild cards and if the commandPattern contains wildcard characters then multiple
+ /// Supports wild cards and if the commandPattern contains wildcard characters then multiple
/// results can be returned. Otherwise a single (and first) match will be returned.
/// If a moduleName is provided then only commands associated with that module will be returned.
/// Only public commands are searched to start with. If no results are found then a search on
@@ -3439,9 +3439,9 @@ namespace System.Management.Automation.Runspaces
else
{
// If FullyQualifiedPath is supplied then use it.
- // In this scenario, the FullyQualifiedPath would
- // refer to $pshome\Modules location where core
- // modules are deployed.
+ // In this scenario, the FullyQualifiedPath would
+ // refer to $pshome\Modules location where core
+ // modules are deployed.
if (!string.IsNullOrEmpty(path))
{
name = Path.Combine(path, name);
@@ -4149,7 +4149,7 @@ namespace System.Management.Automation.Runspaces
throw e;
}
-#if !CORECLR // CustomPSSnapIn Not Supported On CSS.
+#if !CORECLR // CustomPSSnapIn Not Supported On CSS.
if (!String.IsNullOrEmpty(psSnapInInfo.CustomPSSnapInType))
{
LoadCustomPSSnapIn(psSnapInInfo);
@@ -4517,14 +4517,14 @@ namespace System.Management.Automation.Runspaces
To customize your own custom options, pass a hashtable to CompleteInput, e.g.
return [System.Management.Automation.CommandCompletion]::CompleteInput($inputScript, $cursorColumn,
- @{ RelativeFilePaths=$false }
+ @{ RelativeFilePaths=$false }
#>
[CmdletBinding(DefaultParameterSetName = 'ScriptInputSet')]
Param(
[Parameter(ParameterSetName = 'ScriptInputSet', Mandatory = $true, Position = 0)]
[string] $inputScript,
-
+
[Parameter(ParameterSetName = 'ScriptInputSet', Mandatory = $true, Position = 1)]
[int] $cursorColumn,
@@ -4536,7 +4536,7 @@ Param(
[Parameter(ParameterSetName = 'AstInputSet', Mandatory = $true, Position = 2)]
[System.Management.Automation.Language.IScriptPosition] $positionOfCursor,
-
+
[Parameter(ParameterSetName = 'ScriptInputSet', Position = 2)]
[Parameter(ParameterSetName = 'AstInputSet', Position = 3)]
[Hashtable] $options = $null
@@ -4613,7 +4613,7 @@ $RawUI.SetBufferContents(
return @"
<#
.FORWARDHELPTARGETNAME Get-Help
-.FORWARDHELPCATEGORY Cmdlet
+.FORWARDHELPCATEGORY Cmdlet
#>
[CmdletBinding(DefaultParameterSetName='AllUsersView', HelpUri='https://go.microsoft.com/fwlink/?LinkID=113316')]
param(
@@ -4671,9 +4671,9 @@ param(
internal static string GetMkdirFunctionText()
{
return @"
-<#
+<#
.FORWARDHELPTARGETNAME New-Item
-.FORWARDHELPCATEGORY Cmdlet
+.FORWARDHELPCATEGORY Cmdlet
#>
[CmdletBinding(DefaultParameterSetName='pathSet',
@@ -4786,7 +4786,7 @@ end
}
<#
.ForwardHelpTargetName Out-String
-.ForwardHelpCategory Cmdlet
+.ForwardHelpCategory Cmdlet
#>
";
}
diff --git a/src/System.Management.Automation/engine/InvocationInfo.cs b/src/System.Management.Automation/engine/InvocationInfo.cs
index ae4489fd7d..69c3da2faa 100644
--- a/src/System.Management.Automation/engine/InvocationInfo.cs
+++ b/src/System.Management.Automation/engine/InvocationInfo.cs
@@ -21,7 +21,7 @@ namespace System.Management.Automation
#region Constructors
///
- /// Constructor for InvocationInfo object when the associated command object is present.
+ /// Constructor for InvocationInfo object when the associated command object is present.
///
///
internal InvocationInfo(InternalCommand command)
@@ -34,15 +34,15 @@ namespace System.Management.Automation
///
/// Constructor for InvocationInfo object
///
- ///
+ ///
///
/// The command information the invocation info represents.
///
- ///
+ ///
///
/// The position representing the invocation, or the position representing the error.
///
- ///
+ ///
internal InvocationInfo(CommandInfo commandInfo, IScriptExtent scriptPosition)
: this(commandInfo, scriptPosition, null)
{
@@ -52,19 +52,19 @@ namespace System.Management.Automation
///
/// Constructor for InvocationInfo object
///
- ///
+ ///
///
/// The command information the invocation info represents.
///
- ///
+ ///
///
/// The position representing the invocation, or the position representing the error.
///
- ///
+ ///
///
/// The context in which the InvocationInfo is being created.
///
- ///
+ ///
internal InvocationInfo(CommandInfo commandInfo, IScriptExtent scriptPosition, ExecutionContext context)
{
MyCommand = commandInfo;
@@ -125,7 +125,7 @@ namespace System.Management.Automation
MyCommand = RemoteCommandInfo.FromPSObjectForRemoting(psObject);
//
- // Arrays are de-serialized as ArrayList so we need to convert the deserialized
+ // Arrays are de-serialized as ArrayList so we need to convert the deserialized
// object into an int[] before assigning to pipelineIterationInfo.
//
var list = (ArrayList)SerializationUtilities.GetPsObjectPropertyBaseObject(psObject, "InvocationInfo_PipelineIterationInfo");
@@ -397,10 +397,10 @@ namespace System.Management.Automation
}
///
- /// Index of the ProcessRecord iteration for each of the commands in the pipeline.
+ /// Index of the ProcessRecord iteration for each of the commands in the pipeline.
///
///
- /// All the commands in a given pipeline share the same PipelinePositionInfo.
+ /// All the commands in a given pipeline share the same PipelinePositionInfo.
///
internal int[] PipelineIterationInfo { get; set; } = Utils.EmptyArray();
@@ -456,9 +456,9 @@ namespace System.Management.Automation
public class RemoteCommandInfo : CommandInfo
{
///
- ///
+ ///
///
- ///
+ ///
private RemoteCommandInfo(string name, CommandTypes type)
: base(name, type)
{
diff --git a/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs
index 16639e190e..282990f0aa 100644
--- a/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs
+++ b/src/System.Management.Automation/engine/ItemCmdletProviderInterfaces.cs
@@ -37,7 +37,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
internal ItemCmdletProviderIntrinsics(Cmdlet cmdlet)
{
if (cmdlet == null)
@@ -60,7 +60,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
internal ItemCmdletProviderIntrinsics(SessionStateInternal sessionState)
{
if (sessionState == null)
@@ -93,25 +93,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -138,11 +138,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The object(s) at the specified path.
///
@@ -150,25 +150,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -203,25 +203,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -239,38 +239,38 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -309,25 +309,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -370,25 +370,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -427,25 +427,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -463,42 +463,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the set-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The new value of the item at the specified path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -536,25 +536,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -581,11 +581,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The object(s) cleared at the specified path.
///
@@ -593,25 +593,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -646,25 +646,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -682,38 +682,38 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -744,25 +744,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -790,29 +790,29 @@ namespace System.Management.Automation
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -844,25 +844,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -880,38 +880,38 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the invoke-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -950,25 +950,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1007,25 +1007,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1054,7 +1054,7 @@ namespace System.Management.Automation
///
///
///
- /// The context under which the command is running.
+ /// The context under which the command is running.
///
///
///
@@ -1064,25 +1064,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1103,11 +1103,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the rename-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The new name of the item.
///
@@ -1115,30 +1115,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1188,25 +1188,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1250,7 +1250,7 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// The item(s) that was created.
///
@@ -1258,25 +1258,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1319,7 +1319,7 @@ namespace System.Management.Automation
///
///
///
- /// The context under which the command is running.
+ /// The context under which the command is running.
///
///
///
@@ -1329,25 +1329,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1370,11 +1370,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the new-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The type of the new item to create.
///
@@ -1386,30 +1386,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1450,25 +1450,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1501,33 +1501,33 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1558,27 +1558,27 @@ namespace System.Management.Automation
///
///
///
- /// The context under which the command is running.
+ /// The context under which the command is running.
///
///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1599,11 +1599,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the remove-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// If true, removes all the children in all the sub-containers of the specified
/// container. If false, only removes the immediate children of the specified
@@ -1613,30 +1613,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1687,25 +1687,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1749,11 +1749,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The item(s) that were copied.
///
@@ -1761,25 +1761,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1833,25 +1833,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1874,11 +1874,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the copy-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to copy the item to.
///
@@ -1891,30 +1891,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1956,7 +1956,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If resolves to multiple paths.
/// or
@@ -1966,25 +1966,25 @@ namespace System.Management.Automation
/// If resolves to multiple paths and
/// is not a container.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2015,11 +2015,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The item(s) that were moved.
///
@@ -2027,7 +2027,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If resolves to multiple paths.
/// or
@@ -2037,25 +2037,25 @@ namespace System.Management.Automation
/// If resolves to multiple paths and
/// is not a container.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2094,25 +2094,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2133,11 +2133,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the move-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to move the item to.
///
@@ -2145,30 +2145,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2206,20 +2206,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2246,11 +2246,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// True if the item at the specified path exists. False otherwise.
///
@@ -2258,20 +2258,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2296,7 +2296,7 @@ namespace System.Management.Automation
///
///
///
- /// The context under which the command is running.
+ /// The context under which the command is running.
///
///
///
@@ -2306,20 +2306,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2339,37 +2339,37 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the test-path cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2404,20 +2404,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2451,20 +2451,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
diff --git a/src/System.Management.Automation/engine/LanguagePrimitives.cs b/src/System.Management.Automation/engine/LanguagePrimitives.cs
index d577bb7936..30b7dd2666 100644
--- a/src/System.Management.Automation/engine/LanguagePrimitives.cs
+++ b/src/System.Management.Automation/engine/LanguagePrimitives.cs
@@ -37,12 +37,12 @@ namespace System.Management.Automation
///
/// Defines a base class implemented when you need to customize the type conversion for a target class.
///
- ///
+ ///
/// There are two ways of associating the PSTypeConverter with its target class:
/// - Through the type configuration file.
/// - By applying a TypeConverterAttribute to the target class.
- ///
- /// Unlike System.ComponentModel.TypeConverter, PSTypeConverter can be applied to a family of types (like all types derived from System.Enum).
+ ///
+ /// Unlike System.ComponentModel.TypeConverter, PSTypeConverter can be applied to a family of types (like all types derived from System.Enum).
/// PSTypeConverter has two main differences from TypeConverter:
/// - It can be applied to a family of types and not only the one type as in TypeConverter. In order to do that
/// ConvertFrom and CanConvertFrom receive destinationType to know to which type specifically we are converting sourceValue.
@@ -233,7 +233,7 @@ namespace System.Management.Automation
///
/// The ranking of versions for comparison purposes (used in overload resolution.)
/// A larger value means the conversion is better.
- ///
+ ///
/// Note that the lower nibble is all ones for named conversion ranks. This allows for
/// conversions with rankings in between the named values. For example, int=>string[]
/// is value dependent, if the conversion from int=>string succeeds, then an array is
@@ -604,7 +604,7 @@ namespace System.Management.Automation
///
/// first object
/// object to compare first to
- /// used only if first and second are strings
+ /// used only if first and second are strings
/// to specify the type of string comparison
/// true if first is equal to the second
public static bool Equals(object first, object second, bool ignoreCase)
@@ -617,10 +617,10 @@ namespace System.Management.Automation
///
/// first object
/// object to compare first to
- /// used only if first and second are strings
+ /// used only if first and second are strings
/// to specify the type of string comparison
- /// the format/culture to be used. If this parameter is null,
- /// CultureInfo.InvariantCulture will be used.
+ /// the format/culture to be used. If this parameter is null,
+ /// CultureInfo.InvariantCulture will be used.
///
/// true if first is equal to the second
public static bool Equals(object first, object second, bool ignoreCase, IFormatProvider formatProvider)
@@ -712,7 +712,7 @@ namespace System.Management.Automation
///
/// first comparison value
/// second comparison value
- /// less than zero if first is smaller than second, more than
+ /// less than zero if first is smaller than second, more than
/// zero if it is greater or zero if they are the same
///
/// does not implement IComparable or cannot be converted
@@ -730,7 +730,7 @@ namespace System.Management.Automation
/// first comparison value
/// second comparison value
/// Used if both values are strings
- /// less than zero if first is smaller than second, more than
+ /// less than zero if first is smaller than second, more than
/// zero if it is greater or zero if they are the same
///
/// does not implement IComparable or cannot be converted
@@ -749,7 +749,7 @@ namespace System.Management.Automation
/// second comparison value
/// Used if both values are strings
/// Used in type conversions and if both values are strings
- /// less than zero if first is smaller than second, more than
+ /// less than zero if first is smaller than second, more than
/// zero if it is greater or zero if they are the same
///
/// does not implement IComparable or cannot be converted
@@ -930,7 +930,7 @@ namespace System.Management.Automation
// if the result is an array of length 1, treat it as a scalar...
case 1:
- // A possible implementation would be just
+ // A possible implementation would be just
// return IsTrue(objectArray[0]);
// but since we don't want this to recurse indefinitely
// we explicitly check the case where it would recurse
@@ -993,16 +993,16 @@ namespace System.Management.Automation
}
///
- /// Table of the largest safe type to which both types can be converted without exceptions.
+ /// Table of the largest safe type to which both types can be converted without exceptions.
/// This table is used for numeric comparisons.
/// The 4 entries marked as not used, are explicitly dealt with in NumericCompareDecimal.
- /// NumericCompareDecimal exists because doubles and singles can throw
+ /// NumericCompareDecimal exists because doubles and singles can throw
/// an exception when converted to decimal.
/// The order of lines and columns cannot be changed since NumericCompare depends on it.
///
internal static Type[][] LargestTypeTable = new Type[][]
{
- // System.Int16 System.Int32 System.Int64 System.UInt16 System.UInt32 System.UInt64 System.SByte System.Byte System.Single System.Double System.Decimal
+ // System.Int16 System.Int32 System.Int64 System.UInt16 System.UInt32 System.UInt64 System.SByte System.Byte System.Single System.Double System.Decimal
/* System.Int16 */new Type[] { typeof(System.Int16), typeof(System.Int32), typeof(System.Int64), typeof(System.Int32), typeof(System.Int64), typeof(System.Double), typeof(System.Int16), typeof(System.Int16), typeof(System.Single), typeof(System.Double), typeof(System.Decimal) },
/* System.Int32 */new Type[] { typeof(System.Int32), typeof(System.Int32), typeof(System.Int64), typeof(System.Int32), typeof(System.Int64), typeof(System.Double), typeof(System.Int32), typeof(System.Int32), typeof(System.Double), typeof(System.Double), typeof(System.Decimal) },
/* System.Int64 */new Type[] { typeof(System.Int64), typeof(System.Int64), typeof(System.Int64), typeof(System.Int64), typeof(System.Int64), typeof(System.Decimal), typeof(System.Int64), typeof(System.Int64), typeof(System.Double), typeof(System.Double), typeof(System.Decimal) },
@@ -1047,7 +1047,7 @@ namespace System.Management.Automation
private static int NumericCompare(object number1, object number2, int index1, int index2)
{
// Conversion from single or double to decimal might throw
- // if the double is greater than the decimal's maximum so
+ // if the double is greater than the decimal's maximum so
// we special case it in NumericCompareDecimal
if ((index1 == 10) && ((index2 == 8) || (index2 == 9)))
{
@@ -1266,7 +1266,7 @@ namespace System.Management.Automation
/// Verifies if type is one of boolean or switch parameter types
///
/// type to check
- /// true if type if one of boolean or switch parameter types,
+ /// true if type if one of boolean or switch parameter types,
/// false otherwise
internal static bool IsBoolOrSwitchParameterType(Type type)
{
@@ -1278,10 +1278,10 @@ namespace System.Management.Automation
///
/// Do the necessary conversions when using property or array assignment to a generic dictionary:
- ///
+ ///
/// $dict.Prop = value
/// $dict[$Prop] = value
- ///
+ ///
/// The property typically won't need conversion, but it could. The value is more likely in
/// need of conversion.
///
@@ -1353,7 +1353,7 @@ namespace System.Management.Automation
}
/// backupTypeTable:
- /// Used by Remoting Rehydration Logic. While Deserializing a remote object,
+ /// Used by Remoting Rehydration Logic. While Deserializing a remote object,
/// LocalPipeline.ExecutionContextFromTLS() might return null..In which case this
/// TypeTable will be used to do the conversion.
internal static object GetConverter(Type type, TypeTable backupTypeTable)
@@ -1436,7 +1436,7 @@ namespace System.Management.Automation
///
/// BUGBUG - brucepay Mar. 2013 - I don't think this is general enough for dynamic keywords to support arbitrary target
/// languages with arbitrary type representations so we may need an extension point here...
- ///
+ ///
/// Maps a .NET or CIM type name string (e.g. SInt32) to the form expected by PowerShell users, namely "[typename]"
/// If there is no mapping, then it returns null.
/// If the string to convert is null or empty then the function returns "[object]" as the default typeless type.
@@ -1515,14 +1515,14 @@ namespace System.Management.Automation
///
///
/// A null valueToConvert can be converted to :
- /// string - returns ""
+ /// string - returns ""
/// char - returns '\0'
/// numeric types - returns 0 converted to the appropriate type
/// boolean - returns LanguagePrimitives.IsTrue(null)
- /// PSObject - returns new PSObject())
+ /// PSObject - returns new PSObject())
/// array - returns an array with null in array[0]
/// non value types - returns null
- ///
+ ///
/// The following conversions are considered language standard and cannot be customized:
/// - from derived to base class - returns valueToConvert intact
/// - to PSObject - returns PSObject.AsPSObject(valueToConvert)
@@ -1530,11 +1530,11 @@ namespace System.Management.Automation
/// - from array/IEnumerable to array - tries to convert array/IEnumerable elements
/// - from object of type X to array of X - returns an array with object as its only element
/// - to bool - returns LanguagePrimitives.IsTrue(valueToConvert)
- /// - to string - returns a string representation of the object.
- /// In the particular case of a number to string,
+ /// - to string - returns a string representation of the object.
+ /// In the particular case of a number to string,
/// the conversion is culture invariant.
/// - from IDictionary to Hashtable - uses the Hashtable constructor
- /// - to XmlDocument - creates a new XmlDocument with the
+ /// - to XmlDocument - creates a new XmlDocument with the
/// string representation of valueToConvert
/// - from string to char[] - returns ((string)valueToConvert).ToCharArray()
/// - from string to RegEx - creates a new RegEx with the string
@@ -1543,7 +1543,7 @@ namespace System.Management.Automation
/// - from string to numeric - returns a culture invariant conversion
/// - from ScriptBlock to Delegate - returns a delegate wrapping that scriptblock.
/// - from Integer to Enumeration - Uses Enum.ToObject
- /// - to WMI - Instantiate a WMI instance using
+ /// - to WMI - Instantiate a WMI instance using
/// System.Management.ManagementObject
/// - to WMISearcher - returns objects from running WQL query with the
/// string representation of valueToConvert. The
@@ -1554,16 +1554,16 @@ namespace System.Management.Automation
/// string representation of valueToConvert.
/// - to ADSISearcher - return DirectorySearcher represented by the
/// string representation of valueToConvert.
- ///
+ ///
/// If none of the cases above is true, the following is considered in order:
- ///
+ ///
/// 1) TypeConverter and PSTypeConverter
/// 2) the Parse methods if the valueToConvert is a string
/// 3) Constructors in resultType that take one parameter with type valueToConvert.GetType()
/// 4) Implicit and explicit cast operators
/// 5) IConvertible
- ///
- /// If any operation above throws an exception, this exception will be wrapped into a
+ ///
+ /// If any operation above throws an exception, this exception will be wrapped into a
/// PSInvalidCastException and thrown resulting in no further conversion attempt.
///
/// value to be converted and returned
@@ -1581,14 +1581,14 @@ namespace System.Management.Automation
///
///
/// A null valueToConvert can be converted to :
- /// string - returns ""
+ /// string - returns ""
/// char - returns '\0'
/// numeric types - returns 0 converted to the appropriate type
/// boolean - returns LanguagePrimitives.IsTrue(null)
- /// PSObject - returns new PSObject())
+ /// PSObject - returns new PSObject())
/// array - returns an array with null in array[0]
/// non value types - returns null
- ///
+ ///
/// The following conversions are considered language standard and cannot be customized:
/// - from derived to base class - returns valueToConvert intact
/// - to PSObject - returns PSObject.AsPSObject(valueToConvert)
@@ -1596,11 +1596,11 @@ namespace System.Management.Automation
/// - from array/IEnumerable to array - tries to convert array/IEnumerable elements
/// - from object of type X to array of X - returns an array with object as its only element
/// - to bool - returns LanguagePrimitives.IsTrue(valueToConvert)
- /// - to string - returns a string representation of the object.
- /// In the particular case of a number to string,
+ /// - to string - returns a string representation of the object.
+ /// In the particular case of a number to string,
/// the conversion is culture invariant.
/// - from IDictionary to Hashtable - uses the Hashtable constructor
- /// - to XmlDocument - creates a new XmlDocument with the
+ /// - to XmlDocument - creates a new XmlDocument with the
/// string representation of valueToConvert
/// - from string to char[] - returns ((string)valueToConvert).ToCharArray()
/// - from string to RegEx - creates a new RegEx with the string
@@ -1609,16 +1609,16 @@ namespace System.Management.Automation
/// - from string to numeric - returns a culture invariant conversion
/// - from ScriptBlock to Delegate - returns a delegate wrapping that scriptblock.
/// - from Integer to Enumeration - Uses Enum.ToObject
- ///
+ ///
/// If none of the cases above is true, the following is considered in order:
- ///
+ ///
/// 1) TypeConverter and PSTypeConverter
/// 2) the Parse methods if the valueToConvert is a string
/// 3) Constructors in resultType that take one parameter with type valueToConvert.GetType()
/// 4) Implicit and explicit cast operators
/// 5) IConvertible
- ///
- /// If any operation above throws an exception, this exception will be wrapped into a
+ ///
+ /// If any operation above throws an exception, this exception will be wrapped into a
/// PSInvalidCastException and thrown resulting in no further conversion attempt.
///
/// value to be converted and returned
@@ -1671,7 +1671,7 @@ namespace System.Management.Automation
/// Sets result to valueToConvert converted to resultType.
///
///
- /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
+ /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
///
/// value to be converted and returned
/// result of the conversion. This is valid only if the return is true.
@@ -1686,11 +1686,11 @@ namespace System.Management.Automation
return TryConvertTo(valueToConvert, CultureInfo.InvariantCulture, out result);
}
///
- /// Sets result to valueToConvert converted to resultType considering formatProvider
- /// for custom conversions, calling the Parse method and calling Convert.ChangeType.
+ /// Sets result to valueToConvert converted to resultType considering formatProvider
+ /// for custom conversions, calling the Parse method and calling Convert.ChangeType.
///
///
- /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
+ /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
///
/// value to be converted and returned
/// governing conversion of types
@@ -1718,7 +1718,7 @@ namespace System.Management.Automation
/// Sets result to valueToConvert converted to resultType.
///
///
- /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
+ /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
///
/// value to be converted and returned
/// type to convert valueToConvert
@@ -1730,11 +1730,11 @@ namespace System.Management.Automation
}
///
- /// Sets result to valueToConvert converted to resultType considering formatProvider
- /// for custom conversions, calling the Parse method and calling Convert.ChangeType.
+ /// Sets result to valueToConvert converted to resultType considering formatProvider
+ /// for custom conversions, calling the Parse method and calling Convert.ChangeType.
///
///
- /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
+ /// This method is a variant of ConvertTo that does not throw exceptions if the conversion fails.
///
/// value to be converted and returned
/// type to convert valueToConvert
@@ -1902,7 +1902,7 @@ namespace System.Management.Automation
if (enumHashEntry.hasFlagsAttribute)
{
// This expression will result in a "1 bit" for bits that are
- // set in enumValueInt64 but not set in enumHashEntry.allValues,
+ // set in enumValueInt64 but not set in enumHashEntry.allValues,
// and a "0 bit" otherwise. Any "bit 1" in the result, indicates this is not defined.
isDefined = ((enumValueUInt64 | enumHashEntry.allValues) ^ enumHashEntry.allValues) == 0;
}
@@ -1921,7 +1921,7 @@ namespace System.Management.Automation
}
///
- /// Throws if the enumType enumeration has no negative values, but the enumValue is not
+ /// Throws if the enumType enumeration has no negative values, but the enumValue is not
/// defined in enumType.
///
/// some enumeration
@@ -1933,8 +1933,8 @@ namespace System.Management.Automation
}
///
- /// Throws if the enumType enumeration has no negative values, but the enumValue is not
- /// defined in enumType.
+ /// Throws if the enumType enumeration has no negative values, but the enumValue is not
+ /// defined in enumType.
///
/// The error id to be used when throwing an exception
/// value to validate
@@ -1943,7 +1943,7 @@ namespace System.Management.Automation
///
/// is used by those callers who want the exception
/// to contain a different value than the one that is validated.
- /// This will enable callers to take different forms of input -> convert to enum using
+ /// This will enable callers to take different forms of input -> convert to enum using
/// Enum.Object -> then validate using this method.
///
internal static void ThrowForUndefinedEnum(string errorId, object enumValue, object valueToUseToThrow, Type enumType)
@@ -2113,8 +2113,8 @@ namespace System.Management.Automation
}
///
- /// There might be many cast operators in a Type A that take Type A. Each operator will have a
- /// different return type. Because of that we cannot call GetMethod since it would cause a
+ /// There might be many cast operators in a Type A that take Type A. Each operator will have a
+ /// different return type. Because of that we cannot call GetMethod since it would cause a
/// AmbiguousMatchException. This auxiliary method calls GetMember to find the right method
///
/// Either op_Explicit or op_Implicit, at the moment
@@ -2273,7 +2273,7 @@ namespace System.Management.Automation
{
ManagementClass wmiClass = new System.Management.ManagementClass(valueToConvertString);
- // ManagementClass will not throw if the path specified is not
+ // ManagementClass will not throw if the path specified is not
// a valid class.
if (wmiClass.SystemProperties["__CLASS"] == null)
{
@@ -2458,7 +2458,7 @@ namespace System.Management.Automation
}
/// backupTypeTable:
- /// Used by Remoting Rehydration Logic. While Deserializing a remote object,
+ /// Used by Remoting Rehydration Logic. While Deserializing a remote object,
/// LocalPipeline.ExecutionContextFromTLS() might return null..In which case this
/// TypeTable will be used to do the conversion.
private static bool IsCustomTypeConversion(object valueToConvert,
@@ -2725,7 +2725,7 @@ namespace System.Management.Automation
/// declared: [TypeConverter(typeof(UriTypeConverter))], so the conversion from 'string' to 'Uri' is
/// actually taken care of by 'UriTypeConverter'. However, the type 'UriTypeConverter' is not available
/// in CoreCLR, and thus the conversion from 'string' to 'Uri' would show a different behavior.
- ///
+ ///
/// Therefore, we just add this built-in string-to-uri converter using the same logic 'UriTypeConverter'
/// is using in FullCLR, so the conversion behavior will be the same on desktop powershell and powershell core.
///
@@ -2776,7 +2776,7 @@ namespace System.Management.Automation
}
catch (Exception e)
{
- // This catch has one extra reason to be generic (Exception e).
+ // This catch has one extra reason to be generic (Exception e).
// integerConverter.ConvertFrom warps its exceptions in a System.Exception.
if (e.InnerException != null)
{
@@ -3364,9 +3364,9 @@ namespace System.Management.Automation
catch (ArgumentException e)
{
typeConversion.WriteLine("Enum.Parse Exception: \"{0}\".", e.Message);
- // Enum.Parse will always throw this kind of exception.
+ // Enum.Parse will always throw this kind of exception.
// Even when no map exists. We want to try without case sensitivity
- // If it works, we will return it, otherwise a new exception will
+ // If it works, we will return it, otherwise a new exception will
// be thrown and we will use it to set exceptionToWrap
try
{
@@ -3435,7 +3435,7 @@ namespace System.Management.Automation
if (current == null)
{
// If the object wasn't a string, then we'll try and convert it into an enum value,
- // then convert the enum back to a string and finally append it to the string builder to
+ // then convert the enum back to a string and finally append it to the string builder to
// preserve consistent semantics between quoted and unquoted lists...
object tempResult = ConvertTo(e.Current, resultType, recursion, formatProvider, backupTable);
if (tempResult != null)
@@ -4497,14 +4497,14 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
/// the same as in the public version
/// the same as in the public version
/// true if we should perform any recursive calls to ConvertTo
/// governing conversion of types
///
- /// Used by Remoting Rehydration Logic. While Deserializing a remote object,
+ /// Used by Remoting Rehydration Logic. While Deserializing a remote object,
/// LocalPipeline.ExecutionContextFromTLS() might return null..In which case this
/// TypeTable will be used to do the conversion.
///
@@ -5117,7 +5117,7 @@ namespace System.Management.Automation
// PS C:\> $ps = [pscustomobject]@{a=10;b=5}
// PS C:\> $ps = [pscustomobject][ordered]@{a=10;b=5}
// Whenever we see a conversion to PSCustomObject, we represent it as a conversion to InternalPSCustomObject
- // This is introduced to avoid breaking PSObject behavior.
+ // This is introduced to avoid breaking PSObject behavior.
// (Because PSCustomObject is a typeaccelerator for PSObject, we needed a separate type to represent type conversions to PSCustomObject)
internal class InternalPSCustomObject
{
@@ -5177,13 +5177,13 @@ namespace System.Management.Automation
}
}
}
-#if CORECLR
+#if CORECLR
// Assemblies in CoreCLR might not allow reflection execution on their internal types.
TypeInfo typeInfo = toType.GetTypeInfo();
if (!TypeResolver.IsPublic(typeInfo) && DotNetAdapter.DisallowPrivateReflection(typeInfo))
{
// If the type is non-public and reflection execution is not allowed on it, then we return
- // 'ConvertNoConversion', because we won't be able to invoke constructor, methods or set
+ // 'ConvertNoConversion', because we won't be able to invoke constructor, methods or set
// properties on an instance of this type through reflection.
return CacheConversion(fromType, toType, ConvertNoConversion, ConversionRank.None);
}
@@ -5234,7 +5234,7 @@ namespace System.Management.Automation
// We need to call the null argument constructor only if the following 2 conditions satisfy
// 1) if the fromType is either a hashtable or OrderedDictionary
// 2) if the ToType does not already have a constructor that takes a hashtable or OrderedDictionary. (This is to avoid breaking existing apps.)
- // If the ToType has a constructor that takes a hashtable or OrderedDictionary,
+ // If the ToType has a constructor that takes a hashtable or OrderedDictionary,
// then it would have been returned as the constructor during FigureConstructorConversion
// So, we need to check only for the first condition
ConstructorInfo resultConstructor = toType.GetConstructor(PSTypeExtensions.EmptyTypes);
diff --git a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs
index 8ea9c9e1e4..78b48a2832 100644
--- a/src/System.Management.Automation/engine/ManagementObjectAdapter.cs
+++ b/src/System.Management.Automation/engine/ManagementObjectAdapter.cs
@@ -92,10 +92,10 @@ namespace System.Management.Automation
yield return type.ToString();
// Win8: 186792: PSTypeNames does not include full WMI class derivation
- // From MSDN: __Derivation; Data type: CIM_STRING array
- // Access type: Read-only for both instances and classes
+ // From MSDN: __Derivation; Data type: CIM_STRING array
+ // Access type: Read-only for both instances and classes
// Class hierarchy of the current class or instance. The first element is
- // the immediate parent class, the next is its parent, and so on; the last element
+ // the immediate parent class, the next is its parent, and so on; the last element
// is the base class.
PropertyData derivationData = managementObj.SystemProperties["__Derivation"];
if (null != derivationData)
@@ -202,7 +202,7 @@ namespace System.Management.Automation
/// in the first call to GetMember and GetMembers so that subsequent
/// calls can use the cache.
/// In the case of the .NET adapter that would be a cache from the .NET type to
- /// the public properties and fields available in that type.
+ /// the public properties and fields available in that type.
/// In the case of the DirectoryEntry adapter, this could be a cache of the objectClass
/// to the properties available in it.
///
@@ -268,22 +268,22 @@ namespace System.Management.Automation
}
catch (ManagementException)
{
- // A property that lacks the Write qualifier may still be writeable.
- // The provider implementation may allow any properties in the provider
+ // A property that lacks the Write qualifier may still be writeable.
+ // The provider implementation may allow any properties in the provider
// classes to be changed, whether the Write qualifier is present or not.
return true;
}
catch (UnauthorizedAccessException)
{
- // A property that lacks the Write qualifier may still be writeable.
- // The provider implementation may allow any properties in the provider
+ // A property that lacks the Write qualifier may still be writeable.
+ // The provider implementation may allow any properties in the provider
// classes to be changed, whether the Write qualifier is present or not.
return true;
}
catch (System.Runtime.InteropServices.COMException)
{
- // A property that lacks the Write qualifier may still be writeable.
- // The provider implementation may allow any properties in the provider
+ // A property that lacks the Write qualifier may still be writeable.
+ // The provider implementation may allow any properties in the provider
// classes to be changed, whether the Write qualifier is present or not.
return true;
}
@@ -498,7 +498,7 @@ namespace System.Management.Automation
bool isStatic = IsStaticMethod(mdata);
if (isStatic == staticBinding)
{
- // a method is added depending on
+ // a method is added depending on
// whether staticBinding is requested or not.
string methodName = mdata.Name;
WMIMethodCacheEntry mCache = new WMIMethodCacheEntry(methodName, classPath.Path, mdata);
@@ -575,7 +575,7 @@ namespace System.Management.Automation
}
///
- /// Gets the dotnet type of a given PropertyData
+ /// Gets the dotnet type of a given PropertyData
///
/// PropertyData input.
/// A string representing dotnet type.
@@ -764,12 +764,12 @@ namespace System.Management.Automation
catch (ManagementException)
{
// If there is an exception accessing location
- // add the parameter to the end.
+ // add the parameter to the end.
}
catch (System.Runtime.InteropServices.COMException)
{
// If there is an exception accessing location
- // add the parameter to the end.
+ // add the parameter to the end.
}
if (location < 0)
@@ -871,13 +871,13 @@ namespace System.Management.Automation
/// Retrieves all the properties available in the object.
///
/// object to get all the property information from
- /// collection where the members will be added
+ /// collection where the members will be added
protected abstract void AddAllProperties(ManagementBaseObject wmiObject,
PSMemberInfoInternalCollection members) where T : PSMemberInfo;
///
/// Adds method information of the ManagementObject. This is done by accessing
- /// the ManagementClass corresponding to this ManagementObject. All the method
+ /// the ManagementClass corresponding to this ManagementObject. All the method
/// information is cached for a particular ManagementObject.
///
/// PSMemberInfo
@@ -927,7 +927,7 @@ namespace System.Management.Automation
///
/// Deals with ManagementClass objects.
- /// Adapts only static methods and SystemProperties of a
+ /// Adapts only static methods and SystemProperties of a
/// ManagementClass object.
///
internal class ManagementClassApdapter : BaseWMIAdapter
diff --git a/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs b/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs
index 55dc8fe456..967d018b61 100644
--- a/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs
+++ b/src/System.Management.Automation/engine/MergedCommandParameterMetadata.cs
@@ -13,17 +13,17 @@ namespace System.Management.Automation
{
///
/// Replaces any existing metadata in this object with the metadata specified.
- ///
- /// Note that this method should NOT be called after a MergedCommandParameterMetadata
+ ///
+ /// Note that this method should NOT be called after a MergedCommandParameterMetadata
/// instance is made read only by calling MakeReadOnly(). This is because MakeReadOnly()
/// will turn 'bindableParameters', 'aliasedParameters' and 'parameterSetMap' into
/// ReadOnlyDictionary and ReadOnlyCollection.
///
- ///
+ ///
///
/// The metadata to replace in this object.
///
- ///
+ ///
///
/// A list of the merged parameter metadata that was added.
///
@@ -63,25 +63,25 @@ namespace System.Management.Automation
/// Merges the specified metadata with the other metadata already defined
/// in this object.
///
- ///
+ ///
///
/// The compiled metadata for the type to be merged.
///
- ///
+ ///
///
/// The type of binder that the CommandProcessor will use to bind
/// the parameters for
///
- ///
+ ///
///
/// A collection of the merged parameter metadata that was added.
///
- ///
+ ///
///
/// If a parameter name or alias described in the already
/// exists.
///
- ///
+ ///
internal Collection AddMetadataForBinder(
InternalParameterMetadata parameterMetadata,
ParameterBinderAssociation binderAssociation)
@@ -173,7 +173,7 @@ namespace System.Management.Automation
///
/// Gets the number of parameter sets that were declared for the command.
///
- ///
+ ///
internal int ParameterSetCount
{
get
@@ -199,7 +199,7 @@ namespace System.Management.Automation
/// The value is the parameter set name.
/// New parameter sets are added at the nextAvailableParameterSetIndex.
///
- ///
+ ///
private IList _parameterSetMap = new List();
///
@@ -209,25 +209,25 @@ namespace System.Management.Automation
///
/// Adds the parameter set name to the parameter set map and returns the
- /// index. If the parameter set name was already in the map, the index to
+ /// index. If the parameter set name was already in the map, the index to
/// the existing parameter set name is returned.
///
- ///
+ ///
///
/// The name of the parameter set to add.
///
- ///
+ ///
///
/// The index of the parameter set name. If the name didn't already exist the
/// name gets added and the new index is returned. If the name already exists
/// the index of the existing name is returned.
///
- ///
+ ///
///
/// The nextAvailableParameterSetIndex is incremented if the parameter set name
/// is added.
///
- ///
+ ///
///
/// If more than uint.MaxValue parameter-sets are defined for the command.
///
@@ -271,19 +271,19 @@ namespace System.Management.Automation
/// it generates a mapping of parameter set names to the bits in the bit-field and sets
/// the parameter set flags for the parameter.
///
- ///
+ ///
///
/// The default parameter set name.
///
- ///
+ ///
///
/// The bit flag for the default parameter set.
///
- ///
+ ///
///
/// If more than uint.MaxValue parameter-sets are defined for the command.
///
- ///
+ ///
internal uint GenerateParameterSetMappingFromMetadata(string defaultParameterSetName)
{
// First clear the parameter set map
@@ -351,15 +351,15 @@ namespace System.Management.Automation
///
/// Gets the parameter set name for the specified parameter set.
///
- ///
+ ///
///
/// The parameter set to get the name for.
///
- ///
+ ///
///
/// The name of the specified parameter set.
///
- ///
+ ///
internal string GetParameterSetName(uint parameterSet)
{
string result = _defaultParameterSetName;
@@ -431,34 +431,34 @@ namespace System.Management.Automation
///
/// Gets the parameters by matching its name.
///
- ///
+ ///
///
/// The name of the parameter.
///
- ///
+ ///
///
- /// If true and a matching parameter is not found, an exception will be
+ /// If true and a matching parameter is not found, an exception will be
/// throw. If false and a matching parameter is not found, null is returned.
///
- ///
+ ///
///
/// If true we do exact matching, otherwise we do not.
///
- ///
+ ///
///
/// The invocation information about the code being run.
///
- ///
+ ///
///
/// The a collection of the metadata associated with the parameters that
/// match the specified name. If no matches were found, an empty collection
/// is returned.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal MergedCompiledCommandParameter GetMatchingParameter(
string name,
bool throwOnParameterNotFound,
@@ -597,15 +597,15 @@ namespace System.Management.Automation
///
/// Gets a collection of all the parameters that are allowed in the parameter set
///
- ///
+ ///
///
/// The bit representing the parameter set from which the parameters should be retrieved.
///
- ///
+ ///
///
/// A collection of all the parameters in the specified parameter set.
///
- ///
+ ///
internal Collection GetParametersInParameterSet(uint parameterSetFlag)
{
Collection result =
@@ -623,7 +623,7 @@ namespace System.Management.Automation
} // GetParametersInParameterSet
///
- /// Gets a dictionary of the compiled parameter metadata for this Type.
+ /// Gets a dictionary of the compiled parameter metadata for this Type.
/// The dictionary keys are the names of the parameters and
/// the values are the compiled parameter metadata.
///
@@ -657,18 +657,18 @@ namespace System.Management.Automation
/// Makes an association between a CompiledCommandParameter and the type
/// of the parameter binder used to bind the parameter.
///
- ///
+ ///
internal class MergedCompiledCommandParameter
{
///
/// Constructs an association between the CompiledCommandParameter and the
/// binder that should be used to bind it.
///
- ///
+ ///
///
/// The metadata for a parameter.
///
- ///
+ ///
///
/// The type of binder that should be used to bind the parameter.
///
@@ -700,10 +700,10 @@ namespace System.Management.Automation
///
/// This enum is used in the MergedCompiledCommandParameter class
- /// to associate a particular CompiledCommandParameter with the
+ /// to associate a particular CompiledCommandParameter with the
/// appropriate ParameterBinder.
///
- ///
+ ///
internal enum ParameterBinderAssociation
{
///
diff --git a/src/System.Management.Automation/engine/MinishellParameterBinderController.cs b/src/System.Management.Automation/engine/MinishellParameterBinderController.cs
index 44e097b1fa..6e0bd28c11 100644
--- a/src/System.Management.Automation/engine/MinishellParameterBinderController.cs
+++ b/src/System.Management.Automation/engine/MinishellParameterBinderController.cs
@@ -16,7 +16,7 @@ namespace System.Management.Automation
/// This is the interface between the NativeCommandProcessor and the
/// parameter binders required to bind parameters to a minishell.
///
- ///
+ ///
internal class MinishellParameterBinderController : NativeCommandParameterBinderController
{
#region ctor
@@ -25,11 +25,11 @@ namespace System.Management.Automation
/// Initializes the parameter binder controller for
/// the specified native command and engine context
///
- ///
+ ///
///
/// The command that the parameters will be bound to.
///
- ///
+ ///
internal MinishellParameterBinderController(
NativeCommand command)
: base(command)
@@ -43,11 +43,11 @@ namespace System.Management.Automation
///
/// Override of parent class which should not be used.
///
- ///
+ ///
///
/// The parameters to bind.
///
- ///
+ ///
///
/// For any parameters that do not have a name, they are added to the command
/// line arguments for the command
@@ -78,24 +78,24 @@ namespace System.Management.Automation
///
/// Binds the specified parameters to the native command
///
- ///
+ ///
///
/// The parameters to bind.
///
- ///
+ ///
///
/// true if minishell output is redirected.
///
- ///
+ ///
///
- /// name of the calling host.
+ /// name of the calling host.
///
- ///
+ ///
///
/// For any parameters that do not have a name, they are added to the command
/// line arguments for the command
///
- ///
+ ///
internal Collection BindParameters(Collection parameters, bool outputRedirected, string hostName)
{
MinishellParameters seen = 0;
@@ -113,7 +113,7 @@ namespace System.Management.Automation
{
HandleSeenParameter(ref seen, MinishellParameters.Command, CommandParameter);
- // Value must be specified for -Command parameter.
+ // Value must be specified for -Command parameter.
if (i + 1 >= parameters.Count)
{
throw NewParameterBindingException(null, ErrorCategory.InvalidArgument, CommandParameter,
@@ -244,8 +244,8 @@ namespace System.Management.Automation
? NativeCommandIOFormat.Xml
: NativeCommandIOFormat.Text;
- // Note if a minishell is invoked from a non-console host, we need to
- // pass -nonInteractive flag. Our console host's name is "ConsoleHost".
+ // Note if a minishell is invoked from a non-console host, we need to
+ // pass -nonInteractive flag. Our console host's name is "ConsoleHost".
// Correct check would be see if current host has access to console and
// pass noninteractive flag if doesn't.
if (string.IsNullOrEmpty(hostName) || !hostName.Equals("ConsoleHost", StringComparison.OrdinalIgnoreCase))
diff --git a/src/System.Management.Automation/engine/Modules/AnalysisCache.cs b/src/System.Management.Automation/engine/Modules/AnalysisCache.cs
index 238cb83216..3e626f5402 100644
--- a/src/System.Management.Automation/engine/Modules/AnalysisCache.cs
+++ b/src/System.Management.Automation/engine/Modules/AnalysisCache.cs
@@ -19,15 +19,15 @@ namespace System.Management.Automation
{
///
/// Class to manage the caching of analysis data.
- ///
+ ///
/// For performance, module command caching is flattened after discovery. Many modules have nested
/// modules that can only be resolved at runtime - for example,
/// script modules that declare: $env:PATH += "; $psScriptRoot". When
/// doing initial analysis, we include these in 'ExportedCommands'.
- ///
+ ///
/// Changes to these type of modules will not be re-analyzed, unless the user re-imports the module,
/// or runs Get-Module -List.
- ///
+ ///
///
internal class AnalysisCache
{
@@ -472,7 +472,7 @@ namespace System.Management.Automation
{
bool needToUpdate = false;
- // We need to iterate and check as exportedCommands will have more item as it can have aliases as well.
+ // We need to iterate and check as exportedCommands will have more item as it can have aliases as well.
exportedCommands = moduleCacheEntry.Commands;
foreach (var pair in realExportedCommands)
{
diff --git a/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs b/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs
index ec45d45ac0..5f41d8d2bd 100644
--- a/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs
+++ b/src/System.Management.Automation/engine/Modules/GetModuleCommand.cs
@@ -39,7 +39,7 @@ namespace Microsoft.PowerShell.Commands
private const string ParameterSet_AvailableInCimSession = "CimSession";
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(ParameterSetName = ParameterSet_Loaded, ValueFromPipeline = true, Position = 0)]
[Parameter(ParameterSetName = ParameterSet_AvailableLocally, ValueFromPipeline = true, Position = 0)]
@@ -51,7 +51,7 @@ namespace Microsoft.PowerShell.Commands
public string[] Name { get; set; }
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(ParameterSetName = ParameterSet_Loaded, ValueFromPipelineByPropertyName = true)]
[Parameter(ParameterSetName = ParameterSet_AvailableLocally, ValueFromPipelineByPropertyName = true)]
diff --git a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs
index e7f65a97ba..865a3bb08c 100644
--- a/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs
+++ b/src/System.Management.Automation/engine/Modules/ImportModuleCommand.cs
@@ -85,7 +85,7 @@ namespace Microsoft.PowerShell.Commands
public string[] Name { set; get; } = Utils.EmptyArray();
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(ParameterSetName = ParameterSet_FQName, Mandatory = true, ValueFromPipeline = true, Position = 0)]
[Parameter(ParameterSetName = ParameterSet_FQName_ViaPsrpSession, Mandatory = true, ValueFromPipeline = true, Position = 0)]
@@ -285,7 +285,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(ParameterSetName = ParameterSet_ModuleInfo, Mandatory = true, ValueFromPipeline = true, Position = 0)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
@@ -575,7 +575,7 @@ namespace Microsoft.PowerShell.Commands
bool alreadyLoaded = false;
if (!String.IsNullOrEmpty(rootedPath))
{
- // TODO/FIXME: use IsModuleAlreadyLoaded to get consistent behavior
+ // TODO/FIXME: use IsModuleAlreadyLoaded to get consistent behavior
// TODO/FIXME: (for example checking ModuleType != Manifest below seems incorrect - cdxml modules also declare their own version)
// PSModuleInfo alreadyLoadedModule = null;
// Context.Modules.ModuleTable.TryGetValue(rootedPath, out alreadyLoadedModule);
@@ -668,7 +668,7 @@ namespace Microsoft.PowerShell.Commands
// Return the command if we found a module
if (snapin != null)
{
- // warn that this module already exists as a snapin
+ // warn that this module already exists as a snapin
string warningMessage = string.Format(
CultureInfo.InvariantCulture,
Modules.ModuleLoadedAsASnapin,
@@ -1377,7 +1377,7 @@ namespace Microsoft.PowerShell.Commands
localizedData = data;
}
- //
+ //
// flatten module contents and rewrite the manifest to point to the flattened file hierarchy
//
@@ -1429,8 +1429,8 @@ namespace Microsoft.PowerShell.Commands
localizedData = RemoteDiscoveryHelper.RewriteManifest(localizedData);
//
- // import the module
- // (from memory - this avoids the authenticode signature problems
+ // import the module
+ // (from memory - this avoids the authenticode signature problems
// that would be introduced by rewriting the contents of the manifest)
//
moduleInfo = LoadModuleManifest(
@@ -1483,7 +1483,7 @@ namespace Microsoft.PowerShell.Commands
}
//
- // store the default session
+ // store the default session
//
Dbg.Assert(moduleInfo.ModuleType == ModuleType.Manifest, "Remote discovery should always produce a 'manifest' module");
Dbg.Assert(moduleInfo.NestedModules != null, "Remote discovery should always produce a 'manifest' module with nested modules entry");
@@ -1761,7 +1761,7 @@ namespace Microsoft.PowerShell.Commands
private void SetModuleBaseForEngineModules(string moduleName, System.Management.Automation.ExecutionContext context)
{
// Set modulebase of engine modules to point to $pshome
- // This is so that Get-Help can load the correct help.
+ // This is so that Get-Help can load the correct help.
if (InitialSessionState.IsEngineModule(moduleName))
{
foreach (var m in context.EngineSessionState.ModuleTable.Values)
diff --git a/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs b/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
index 0183146f00..92d73aeb8f 100644
--- a/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
+++ b/src/System.Management.Automation/engine/Modules/ModuleCmdletBase.cs
@@ -62,7 +62,7 @@ namespace Microsoft.PowerShell.Commands
LoadElements = 0x4,
///
- /// Write warnings
+ /// Write warnings
///
WriteWarnings = 0x8,
@@ -92,14 +92,14 @@ namespace Microsoft.PowerShell.Commands
internal bool NoClobber;
///
- /// If Scope parameter is Local, this is true.
+ /// If Scope parameter is Local, this is true.
///
internal bool Local;
///
/// Win8:90779
/// ServiceCore assembly is automatically imported as a nested module to process the NestedModules/RootModules/RequiredAssemblies fields in module manifests.
- /// This property is set to ensure that Import-Module of a manifest module does not expose "Import-psworkflow" cmdlet.
+ /// This property is set to ensure that Import-Module of a manifest module does not expose "Import-psworkflow" cmdlet.
///
internal bool ServiceCoreAutoAdded;
}
@@ -664,7 +664,7 @@ namespace Microsoft.PowerShell.Commands
if (extension == null)
{
// No extension so we'll have to search using the extensions
- //
+ //
if (VerifyIfNestedModuleIsAvailable(moduleSpecification, rootedPath, /*extension*/null, out tempModuleInfoFromVerification))
{
module = LoadUsingExtensions(
@@ -825,7 +825,7 @@ namespace Microsoft.PowerShell.Commands
// At this point, we are already exhaust all possible ways to load the nested module. The last option is to load it as a binary module/snapin.
module = LoadBinaryModule(
parentModule,
- true, // trySnapInName
+ true, // trySnapInName
moduleSpecification.Name,
null, // fileName
null, // assemblyToLoad
@@ -841,8 +841,8 @@ namespace Microsoft.PowerShell.Commands
}
catch (FileNotFoundException)
{
- // Loading the nested module as a pssnapin or assembly is our last attempt to resolve the nested module.
- // If we catch 'FileNotFoundException', it simply means that our last attempt failed because we couldn't find such a pssnapin or assembly.
+ // Loading the nested module as a pssnapin or assembly is our last attempt to resolve the nested module.
+ // If we catch 'FileNotFoundException', it simply means that our last attempt failed because we couldn't find such a pssnapin or assembly.
// In this case, we can safely ignore this exception and throw a 'Modules_ModuleFileNotFound' error.
}
@@ -1065,7 +1065,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Get a list of all modules
+ /// Get a list of all modules
/// which can be imported just by specifying a non rooted file name of the module
/// (Import-Module foo\bar.psm1; but not Import-Module .\foo\bar.psm1)
///
@@ -1084,7 +1084,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Get a list of the available modules
+ /// Get a list of the available modules
/// which can be imported just by specifying a non rooted directory name of the module
/// (Import-Module foo\bar; but not Import-Module .\foo\bar or Import-Module .\foo\bar.psm1)
///
@@ -1203,9 +1203,9 @@ namespace Microsoft.PowerShell.Commands
string throwAwayScriptName;
ExternalScriptInfo scriptInfo = GetScriptInfoForFile(file, out throwAwayScriptName, true);
- // At this place, we used to check if the module is already loaded. If so, return that.
+ // At this place, we used to check if the module is already loaded. If so, return that.
// This was done to fix the issue where we were not getting the ExportedCommands since they are populated only after an import.
- // But, after the auto-loading feature, we get ExportedCommands even before an import.
+ // But, after the auto-loading feature, we get ExportedCommands even before an import.
// Plus, the issue of returning the loaded module was introducing a formatting bug (Win8: 284599).
// So, removing that logic.
moduleInfo = LoadModuleManifest(
@@ -1332,7 +1332,7 @@ namespace Microsoft.PowerShell.Commands
/// The version to check the manifest against
/// The module guid to check the manifest against
///
- ///
+ ///
internal PSModuleInfo LoadModuleManifest(
ExternalScriptInfo scriptInfo,
ManifestProcessingFlags manifestProcessingFlags,
@@ -1356,7 +1356,7 @@ namespace Microsoft.PowerShell.Commands
/// The module guid to check the manifest against
/// The set of options that are used while importing a module
///
- ///
+ ///
internal PSModuleInfo LoadModuleManifest(
ExternalScriptInfo scriptInfo,
ManifestProcessingFlags manifestProcessingFlags,
@@ -1450,7 +1450,7 @@ namespace Microsoft.PowerShell.Commands
/// The set of options that are used while importing a module
/// Tracks if there were errors in the file
///
- ///
+ ///
internal PSModuleInfo LoadModuleManifest(
string moduleManifestPath,
ExternalScriptInfo scriptInfo,
@@ -1480,7 +1480,7 @@ namespace Microsoft.PowerShell.Commands
Context.ModuleBeingProcessed = moduleManifestPath;
}
- // START: Check if the ModuleToProcess is already loaded..if it is, ignore the this load manifest
+ // START: Check if the ModuleToProcess is already loaded..if it is, ignore the this load manifest
// call and return
// Workflows specified in NestedModules from the manifest
@@ -1550,7 +1550,7 @@ namespace Microsoft.PowerShell.Commands
string actualRootModule = moduleToProcess ?? rootModule;
bool actualRootModuleIsXaml = false;
- // For workflow modules, the actualRootModule is added to workflowsToProcess and is nulled out.
+ // For workflow modules, the actualRootModule is added to workflowsToProcess and is nulled out.
// We need to save this name so that we can assign this to the RootModule property of ModuleInfo
string savedActualRootModule = actualRootModule;
@@ -2001,9 +2001,9 @@ namespace Microsoft.PowerShell.Commands
if (importingModule)
{
// We need to pass in the moduleInfo of current module so that we can check for cyclic dependency in RequiredModules specification.
- // When a module A that has a required module B is imported (either explicitly or via auto-loading),
- // the current scope's module gets set to module A incorrectly. This leads to issues where the exported commands
- // of a module that imports module A) get added to module A instead of the actual module that is getting imported.
+ // When a module A that has a required module B is imported (either explicitly or via auto-loading),
+ // the current scope's module gets set to module A incorrectly. This leads to issues where the exported commands
+ // of a module that imports module A) get added to module A instead of the actual module that is getting imported.
// (Direct cause of Win8:336812)
PSModuleInfo fakeManifestInfo = new PSModuleInfo(moduleManifestPath, Context, null);
if (manifestGuid.HasValue)
@@ -2152,7 +2152,7 @@ namespace Microsoft.PowerShell.Commands
{
iss.DisableFormatUpdates = Context.InitialSessionState.DisableFormatUpdates;
}
- // We want the processing errors to terminate module import.
+ // We want the processing errors to terminate module import.
iss.ThrowOnRunspaceOpenError = true;
}
@@ -3640,7 +3640,7 @@ namespace Microsoft.PowerShell.Commands
PSModuleInfo nestedModule = LoadBinaryModule(
parentModule, // parentModule
- false, // trySnapInName
+ false, // trySnapInName
_serviceCoreAssemblyFullName, // moduleName
null, // fileName
null, // assemblyToLoad
@@ -3653,7 +3653,7 @@ namespace Microsoft.PowerShell.Commands
true, // loadFormats
out found, // found
_serviceCoreAssemblyShortName,// shortModuleName
- true // disableFormatUpdates
+ true // disableFormatUpdates
);
this.BaseGlobal = oldGLobal;
@@ -4105,7 +4105,7 @@ namespace Microsoft.PowerShell.Commands
{
requiredModuleInfo = moduleInfo[0];
- // Check for cyclic references of RequiredModule
+ // Check for cyclic references of RequiredModule
bool hasRequiredModulesCyclicReference = false;
Dictionary> requiredModules = new Dictionary>(new ModuleSpecificationComparer());
if (currentModule != null)
@@ -4196,7 +4196,7 @@ namespace Microsoft.PowerShell.Commands
else if (!loaded)
{
// This should never happen because one of the two should be true
- // 1) loadedModule should either be PSModuleInfo
+ // 1) loadedModule should either be PSModuleInfo
// 2) loaded = true
Dbg.Assert(false, "loadedModule should either be PSModuleInfo or loaded should be true");
}
@@ -4289,7 +4289,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Verifies if a nested module is available using GetModuleIfAvailable.
/// and
- /// will be used to create module name for searching.
+ /// will be used to create module name for searching.
/// If is null, the name specified in
/// nestedModuleSpec will be used.
///
@@ -4548,7 +4548,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Checks to see if the module manifest contains the specified key.
+ /// Checks to see if the module manifest contains the specified key.
/// If it does and it's valid, it returns true otherwise it returns false.
/// If the key wasn't there or wasn't valid, then is set to null
///
@@ -4586,7 +4586,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Checks to see if the module manifest contains the specified key.
+ /// Checks to see if the module manifest contains the specified key.
/// If it does and it's valid, it returns true otherwise it returns false.
/// If the key wasn't there or wasn't valid, then is set to null.
///
@@ -4639,7 +4639,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Checks to see if the module manifest contains the specified key.
+ /// Checks to see if the module manifest contains the specified key.
/// If it does and it's valid, it returns true otherwise it returns false.
/// If the key wasn't there or wasn't valid, then is set to null
///
@@ -4770,7 +4770,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Get Module Logging information from the group policy.
+ /// Get Module Logging information from the group policy.
///
internal static ModuleLoggingGroupPolicyStatus GetModuleLoggingInformation(out IEnumerable moduleNames)
{
@@ -4805,7 +4805,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Checks to see if the module manifest contains the specified key.
+ /// Checks to see if the module manifest contains the specified key.
/// If it does and it can be converted to the expected type, then it returns true and sets to the value.
/// If the key is missing it returns true and sets to default()
/// If the key is invalid then it returns false
@@ -4856,7 +4856,7 @@ namespace Microsoft.PowerShell.Commands
/// The base path to use if the file is not rooted
/// The file name to resolve.
/// The extension to use.
- ///
+ ///
///
internal string FixupFileName(string moduleBase, string name, string extension)
{
@@ -4877,8 +4877,8 @@ namespace Microsoft.PowerShell.Commands
resolvedName = Path.Combine(moduleBase, name);
}
// Again resolve the file path
- // This is so that any relative path references are expanded to give the absolute path
- // C:\Windows\System32\WindowsPowerShell\V1.0\Modules\Microsoft.PowerShell.WSMAN\..\..\WSMan.format.ps1xml is expanded to
+ // This is so that any relative path references are expanded to give the absolute path
+ // C:\Windows\System32\WindowsPowerShell\V1.0\Modules\Microsoft.PowerShell.WSMAN\..\..\WSMan.format.ps1xml is expanded to
// C:\Windows\System32\WindowsPowerShell\V1.0\WSMan.format.ps1xml
string resolvedName2 = ResolveRootedFilePath(resolvedName, this.Context);
string ext = Path.GetExtension(name);
@@ -4889,7 +4889,7 @@ namespace Microsoft.PowerShell.Commands
}
//For dlls, we cannot get the path from the provider.
- //We need to load the assembly and then get the path.
+ //We need to load the assembly and then get the path.
//If the module is already loaded, this is not expensive since the assembly is already loaded in the AppDomain
if (!string.IsNullOrEmpty(ext) && ext.Equals(".dll", StringComparison.OrdinalIgnoreCase))
{
@@ -4909,7 +4909,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The base path to use if the file is not rooted
/// The file name to resolve.
- ///
+ ///
///
internal string GetAbsolutePath(string moduleBase, string path)
{
@@ -5171,7 +5171,7 @@ namespace Microsoft.PowerShell.Commands
{
bool isTopLevelModule = false;
- // if the module path is empty string, means it is a dynamically generated assembly.
+ // if the module path is empty string, means it is a dynamically generated assembly.
// We have set the module path to be module name as key to make it unique, we need update here as well in case the module can be removed.
if (module.Path == "")
{
@@ -5349,7 +5349,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- // Remove the imported aliases from SessionState...
+ // Remove the imported aliases from SessionState...
// (can't just go through module.SessionState.Internal.ExportedAliases,
// because the names of the aliases might have been changed by the -Prefix parameter of Import-Module)
foreach (KeyValuePair entry in ss.GetAliasTable())
@@ -5456,7 +5456,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
///
@@ -5609,7 +5609,7 @@ namespace Microsoft.PowerShell.Commands
// If the module has already been loaded, just emit it and continue...
Context.Modules.ModuleTable.TryGetValue(fileName, out module);
// TODO/FIXME: use IsModuleAlreadyLoaded to get consistent behavior
- //if (!BaseForce &&
+ //if (!BaseForce &&
// IsModuleAlreadyLoaded(module) &&
// ((manifestProcessingFlags & ManifestProcessingFlags.LoadElements) == ManifestProcessingFlags.LoadElements))
if (!BaseForce && module != null &&
@@ -5662,7 +5662,7 @@ namespace Microsoft.PowerShell.Commands
else if (Utils.NativeFileExists(fileName))
{
moduleFileFound = true;
- // Win8: 325243 - Added the version check so that we do not unload modules with the same name but different version
+ // Win8: 325243 - Added the version check so that we do not unload modules with the same name but different version
if (BaseForce && module != null &&
(this.BaseRequiredVersion == null || module.Version.Equals(this.BaseRequiredVersion)) &&
(BaseGuid == null || module.Guid.Equals(BaseGuid)))
@@ -5968,7 +5968,7 @@ namespace Microsoft.PowerShell.Commands
else
{
// Create a dummy module info
- // The module info created for a .ps1 file will not have ExportedCommands populated.
+ // The module info created for a .ps1 file will not have ExportedCommands populated.
// Removing the module will not remove the commands dot-sourced from the .ps1 file.
// This module info is created so that we can keep the behavior consistent between scripts imported as modules and other kind of modules(all of them should have a PSModuleInfo).
// Auto-loading expects we always have a PSModuleInfo object for any module. This is how this issue was found.
@@ -6004,7 +6004,7 @@ namespace Microsoft.PowerShell.Commands
}
finally
{
- // since useLocalScope is set false while calling InvokeWithPipe, we need to
+ // since useLocalScope is set false while calling InvokeWithPipe, we need to
// revert the changes made to LocalsTuple
if (Context.EngineSessionState.CurrentScope.LocalsTuple != null)
{
@@ -6269,7 +6269,7 @@ namespace Microsoft.PowerShell.Commands
Context.ModuleBeingProcessed = _origModuleBeingProcessed;
}
- // If using AppDomain-level module path caching, add this module to the cache. This is only done for
+ // If using AppDomain-level module path caching, add this module to the cache. This is only done for
// the modules loaded with without version info or other qualifiers.
if (PSModuleInfo.UseAppDomainLevelModuleCache && module != null && moduleBase == null && this.AddToAppDomainLevelCache)
{
diff --git a/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs b/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs
index 6b44640616..abbede5925 100644
--- a/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs
+++ b/src/System.Management.Automation/engine/Modules/ModuleIntrinsics.cs
@@ -99,7 +99,7 @@ namespace System.Management.Automation
/// The name of the module
/// The path to use for the module root
///
- /// The code to use to create the module. This can be one of ScriptBlock, string
+ /// The code to use to create the module. This can be one of ScriptBlock, string
/// or ExternalScriptInfo
///
///
@@ -177,7 +177,7 @@ namespace System.Management.Automation
InvocationInfo invocationInfo = new InvocationInfo(scriptInfo, scriptPosition);
- // Save the module string
+ // Save the module string
module._definitionExtent = sb.Ast.Extent;
var ast = sb.Ast;
while (ast.Parent != null)
@@ -549,18 +549,18 @@ namespace System.Management.Automation
{
if (s_psHomeModulePath != null)
return s_psHomeModulePath;
-
+
try
{
string psHome = Utils.GetApplicationBase(Utils.DefaultPowerShellShellID);
if (!string.IsNullOrEmpty(psHome))
{
// Win8: 584267 Powershell Modules are listed twice in x86, and cannot be removed
- // This happens because ModuleTable uses Path as the key and CBS installer
- // expands the path to include "SysWOW64" (for
+ // This happens because ModuleTable uses Path as the key and CBS installer
+ // expands the path to include "SysWOW64" (for
// HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\PowerShell\3\PowerShellEngine ApplicationBase).
// Because of this, the module that is getting loaded during startup (through LocalRunspace)
- // is using "SysWow64" in the key. Later, when Import-Module is called, it loads the
+ // is using "SysWow64" in the key. Later, when Import-Module is called, it loads the
// module using ""System32" in the key.
#if !UNIX
psHome = psHome.ToLowerInvariant().Replace("\\syswow64\\", "\\system32\\");
@@ -679,7 +679,7 @@ namespace System.Management.Automation
Diagnostics.Assert(pathToAdd != null, "pathToAdd should not be null according to contract of the function");
StringBuilder result = new StringBuilder(basePath);
-
+
if (!string.IsNullOrEmpty(pathToAdd)) // we don't want to append empty paths
{
foreach (string subPathToAdd in pathToAdd.Split(Utils.Separators.PathSeparator, StringSplitOptions.RemoveEmptyEntries)) // in case pathToAdd is a 'combined path' (semicolon-separated)
@@ -707,7 +707,7 @@ namespace System.Management.Automation
return result.ToString();
}
-
+
///
/// Check if the current powershell is likely running in following scenarios:
/// - sxs ps started on windows [machine-wide env:psmodulepath will influence]
@@ -779,7 +779,7 @@ namespace System.Management.Automation
continue;
}
- if (!trimedPath.Equals(personalModulePath, StringComparison.OrdinalIgnoreCase) &&
+ if (!trimedPath.Equals(personalModulePath, StringComparison.OrdinalIgnoreCase) &&
!trimedPath.Equals(sharedModulePath, StringComparison.OrdinalIgnoreCase) &&
!trimedPath.Equals(psHomeModulePath, StringComparison.OrdinalIgnoreCase) &&
trimedPath.EndsWith("Modules", StringComparison.OrdinalIgnoreCase))
@@ -820,7 +820,7 @@ namespace System.Management.Automation
#else
bool runningSxS = false;
#endif
- if (!string.IsNullOrEmpty(currentProcessModulePath) &&
+ if (!string.IsNullOrEmpty(currentProcessModulePath) &&
NeedToClearProcessModulePath(currentProcessModulePath, personalModulePath, sharedModulePath, runningSxS))
{
// Clear the current process module path in the following cases
@@ -883,7 +883,7 @@ namespace System.Management.Automation
if (psHomePosition >= 0) // if $PSHome\Modules IS found - insert location before $PSHome\Modules
{
#if !CORECLR
- // for bug 6678623, if we are running wow64 process (x86 32-bit process on 64-bit (amd64) OS), then ensure that exists in currentProcessModulePath / return value
+ // for bug 6678623, if we are running wow64 process (x86 32-bit process on 64-bit (amd64) OS), then ensure that exists in currentProcessModulePath / return value
if (Environment.Is64BitOperatingSystem && !Environment.Is64BitProcess)
{
currentProcessModulePath = AddToPath(currentProcessModulePath, personalModulePath, psHomePosition);
@@ -1146,7 +1146,7 @@ namespace System.Management.Automation
/// Patterns describing the cmdlets to export
/// Patterns describing the aliases to export
/// Patterns describing the variables to export
- /// List of Cmdlets that will not be exported,
+ /// List of Cmdlets that will not be exported,
/// even if they match in cmdletPatterns.
internal static void ExportModuleMembers(PSCmdlet cmdlet, SessionStateInternal sessionState,
List functionPatterns, List cmdletPatterns,
diff --git a/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs b/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs
index b64764612f..cdd5ac2100 100644
--- a/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs
+++ b/src/System.Management.Automation/engine/Modules/ModuleSpecification.cs
@@ -21,11 +21,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Represents module specification written in a module manifest (i.e. in RequiredModules member/field).
- ///
+ ///
/// Module manifest allows 2 forms of module specification:
/// 1. string - module name
/// 2. hashtable - [string]ModuleName (required) + [Version]ModuleVersion/RequiredVersion (required) + [Guid]GUID (optional)
- ///
+ ///
/// so we have a constructor that takes a string and a constructor that takes a hashtable
/// (so that LanguagePrimitives.ConvertTo can cast a string or a hashtable to this type)
///
diff --git a/src/System.Management.Automation/engine/Modules/ModuleUtils.cs b/src/System.Management.Automation/engine/Modules/ModuleUtils.cs
index 892913a6e4..d16c6ee347 100644
--- a/src/System.Management.Automation/engine/Modules/ModuleUtils.cs
+++ b/src/System.Management.Automation/engine/Modules/ModuleUtils.cs
@@ -185,7 +185,7 @@ namespace System.Management.Automation.Internal
// when finding the default modules we stop when the first
// match is hit - searching in order .psd1, .psm1, .dll
- // if a file is found but is not readable then it is an
+ // if a file is found but is not readable then it is an
// error
break;
}
@@ -197,7 +197,7 @@ namespace System.Management.Automation.Internal
/// Get a list of the available module files
/// which can be imported just by specifying a non rooted directory name of the module
/// (Import-Module foo\bar; but not Import-Module .\foo\bar or Import-Module .\foo\bar.psm1)
- ///
+ ///
internal static IEnumerable GetDefaultAvailableModuleFiles(string topDirectoryToCheck)
{
List versionDirectories = new List();
@@ -244,7 +244,7 @@ namespace System.Management.Automation.Internal
// when finding the default modules we stop when the first
// match is hit - searching in order .psd1, .psm1, .dll
- // if a file is found but is not readable then it is an
+ // if a file is found but is not readable then it is an
// error
break;
}
@@ -350,7 +350,7 @@ namespace System.Management.Automation.Internal
if (modules.Count != 0)
{
// 1. We continue to the next module path if we don't want to re-discover those imported modules
- // 2. If we want to re-discover the imported modules, but one or more commands from the module were made private,
+ // 2. If we want to re-discover the imported modules, but one or more commands from the module were made private,
// then we don't do re-discovery
if (!rediscoverImportedModules || modules.Exists(module => module.ModuleHasPrivateMembers))
{
diff --git a/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs b/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs
index 3a0e9f4af1..0afb390cf6 100644
--- a/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs
+++ b/src/System.Management.Automation/engine/Modules/PSModuleInfo.cs
@@ -181,8 +181,8 @@ namespace System.Management.Automation
return this.Name;
}
- ///
- /// Get/set whether to log Pipeline Execution Detail events.
+ ///
+ /// Get/set whether to log Pipeline Execution Detail events.
///
public bool LogPipelineExecutionDetails { get; set; } = false;
@@ -511,7 +511,7 @@ namespace System.Management.Automation
}
else if (SessionState != null)
{
- // If there is no session state object associated with this list,
+ // If there is no session state object associated with this list,
// just return a null list of exports...
if (SessionState.Internal.ExportedFunctions != null)
{
@@ -552,7 +552,7 @@ namespace System.Management.Automation
///
public ReadOnlyDictionary GetExportedTypeDefinitions()
{
- // We cache exported types from this modules, but not from nestedModules,
+ // We cache exported types from this modules, but not from nestedModules,
// because we may not have NestedModules list populated on the first call.
// TODO(sevoroby): it may harm perf a little bit. Can we sort it out?
@@ -583,7 +583,7 @@ namespace System.Management.Automation
{
if (nestedModule == this)
{
- // this is totally bizzare, but it happens for some reasons for
+ // this is totally bizzare, but it happens for some reasons for
// Microsoft.Powershell.Workflow.ServiceCore.dll, when there is a workflow defined in a nested module.
// TODO(sevoroby): we should handle possible circular dependencies
continue;
@@ -1078,7 +1078,7 @@ namespace System.Management.Automation
}
else
{
- // If there is no session state object associated with this list,
+ // If there is no session state object associated with this list,
// just return a null list of exports. This will be true if the
// module is a compiled module.
if (SessionState == null || SessionState.Internal.ExportedVariables == null)
@@ -1197,7 +1197,7 @@ namespace System.Management.Automation
}
else
{
- // If there is no session state object associated with this list,
+ // If there is no session state object associated with this list,
// just return a null list of exports. This will be true if the
// module is a compiled module.
if (SessionState == null)
@@ -1225,7 +1225,7 @@ namespace System.Management.Automation
internal Collection DeclaredWorkflowExports = null;
///
- ///
+ ///
///
public ReadOnlyCollection ExportedDscResources
{
@@ -1489,7 +1489,7 @@ namespace System.Management.Automation
}
///
- /// Enables or disables the appdomain module path cache
+ /// Enables or disables the appdomain module path cache
///
public static bool UseAppDomainLevelModuleCache { get; set; }
@@ -1635,7 +1635,7 @@ namespace System.Management.Automation
public int GetHashCode(PSModuleInfo obj)
{
- unchecked // Overflow is fine, just wrap
+ unchecked // Overflow is fine, just wrap
{
int result = 0;
diff --git a/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs b/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs
index 3cc6dd3f96..3d9a725e08 100644
--- a/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs
+++ b/src/System.Management.Automation/engine/Modules/RemoveModuleCommand.cs
@@ -26,7 +26,7 @@ namespace Microsoft.PowerShell.Commands
public sealed class RemoveModuleCommand : ModuleCmdletBase
{
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(Mandatory = true, ParameterSetName = "name", ValueFromPipeline = true, Position = 0)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
@@ -38,14 +38,14 @@ namespace Microsoft.PowerShell.Commands
private string[] _name = Utils.EmptyArray();
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(Mandatory = true, ParameterSetName = "FullyQualifiedName", ValueFromPipeline = true, Position = 0)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
public ModuleSpecification[] FullyQualifiedName { get; set; }
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(Mandatory = true, ParameterSetName = "ModuleInfo", ValueFromPipeline = true, Position = 0)]
[SuppressMessage("Microsoft.Performance", "CA1819:PropertiesShouldNotReturnArrays", Justification = "Cmdlets use arrays for parameters.")]
@@ -73,7 +73,7 @@ namespace Microsoft.PowerShell.Commands
///
protected override void ProcessRecord()
{
- // This dictionary has the list of modules to be removed.
+ // This dictionary has the list of modules to be removed.
// Key - Module specified as a parameter to Remove-Module
// Values - List of all modules that need to be removed for this key (includes all nested modules of this module)
Dictionary> modulesToRemove = new Dictionary>();
@@ -136,7 +136,7 @@ namespace Microsoft.PowerShell.Commands
// Check the list of modules to remove and exclude those that cannot or should not be removed
Dictionary> actualModulesToRemove = new Dictionary>();
- // We want to remove the modules starting from the nested modules
+ // We want to remove the modules starting from the nested modules
// If we start from the parent module, the nested modules do not get removed and are left hanging in the parent modules's sessionstate.
foreach (var entry in modulesToRemove)
{
diff --git a/src/System.Management.Automation/engine/MshCmdlet.cs b/src/System.Management.Automation/engine/MshCmdlet.cs
index be37fb8dcf..628ee8b461 100644
--- a/src/System.Management.Automation/engine/MshCmdlet.cs
+++ b/src/System.Management.Automation/engine/MshCmdlet.cs
@@ -45,16 +45,16 @@ namespace System.Management.Automation
/// These attributes include ,
/// , argument transformation and
/// validation attributes, etc.
- ///
+ ///
/// Alternately, it can return a
///
/// instead.
- ///
+ ///
/// The or
/// should hold on to a reference to the object which it returns from
/// this method, since the argument values for the dynamic parameters
/// specified by that object will be set in that object.
- ///
+ ///
/// This method will be called after all formal (command-line)
/// parameters are set, but before
/// is called and before any incoming pipeline objects are read.
@@ -80,7 +80,7 @@ namespace System.Management.Automation
get { return _isPresent; }
}
///
- /// Implicit cast operator for casting SwitchParameter to bool.
+ /// Implicit cast operator for casting SwitchParameter to bool.
///
/// The SwitchParameter object to convert to bool
/// The corresponding boolean value.
@@ -90,7 +90,7 @@ namespace System.Management.Automation
}
///
- /// Implicit cast operator for casting bool to SwitchParameter.
+ /// Implicit cast operator for casting bool to SwitchParameter.
///
/// The bool to convert to SwitchParameter
/// The corresponding boolean value.
@@ -284,7 +284,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -528,7 +528,7 @@ namespace System.Management.Automation
return cmdlets;
}
- ///
+ ///
/// Searches for PowerShell commands, optionally using wildcard patterns
/// and optionally return the full path to applications and scripts rather than
/// the simple command name.
@@ -663,7 +663,7 @@ namespace System.Management.Automation
}
///
- /// Executes a piece of text as a script synchronously.
+ /// Executes a piece of text as a script synchronously.
///
/// The script text to evaluate
/// A collection of MshCobjects generated by the script.
@@ -676,7 +676,7 @@ namespace System.Management.Automation
}
///
- /// Executes a piece of text as a script synchronously.
+ /// Executes a piece of text as a script synchronously.
///
/// The script text to evaluate
/// The arguments to the script
@@ -690,7 +690,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/MshCommandRuntime.cs b/src/System.Management.Automation/engine/MshCommandRuntime.cs
index 4f162228ea..ac64375f20 100644
--- a/src/System.Management.Automation/engine/MshCommandRuntime.cs
+++ b/src/System.Management.Automation/engine/MshCommandRuntime.cs
@@ -22,7 +22,7 @@ namespace System.Management.Automation
///
/// Monad internal implementation of the ICommandRuntime2 interface
/// used for execution in the monad engine environment.
- ///
+ ///
/// There will be one instance of this class for each cmdlet added to
/// a pipeline. When the cmdlet calls its WriteObject API, that API will call
/// the WriteObject implementation in this class which, in turn, calls
@@ -75,11 +75,11 @@ namespace System.Management.Automation
}
///
- /// This allows all success output to be set to a variable. Similar to the way -errorvariable sets
+ /// This allows all success output to be set to a variable. Similar to the way -errorvariable sets
/// all errors to a variable name. Semantically this is equivalent to : cmd |set-var varname -passthru
/// but it should be MUCH faster as there is no binding that takes place
///
- ///
+ ///
///
/// may not be set to null
///
@@ -313,7 +313,7 @@ namespace System.Management.Automation
/// Use WriteProgress to display progress information about
/// the activity of your Cmdlet, when the operation of your Cmdlet
/// could potentially take a long time.
- ///
+ ///
/// By default, progress output will
/// be displayed, although this can be configured with the
/// ProgressPreference shell variable.
@@ -332,12 +332,12 @@ namespace System.Management.Automation
ThrowIfStopping();
//
- // WriteError/WriteObject have a check that prevents them to be called from outside
- // Begin/Process/End. This is done because the Pipeline needs to be ready before these
+ // WriteError/WriteObject have a check that prevents them to be called from outside
+ // Begin/Process/End. This is done because the Pipeline needs to be ready before these
// functions can be called.
//
- // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
- // strictly needed. If we ever implement pipelines for these objects we may need to
+ // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
+ // strictly needed. If we ever implement pipelines for these objects we may need to
// enforce the check again.
//
// See bug 583774 in the Windows 7 database for more details.
@@ -784,7 +784,7 @@ namespace System.Management.Automation
if (foregroundColor.HasValue || backgroundColor.HasValue)
{
- // It is possible for either one or the other to be empty if run from a
+ // It is possible for either one or the other to be empty if run from a
// non-interactive host, but only one was specified in Write-Host.
// So fill them with defaults if they are empty.
if (!foregroundColor.HasValue)
@@ -847,9 +847,9 @@ namespace System.Management.Automation
///
/// text to be written to log
///
- /// Use WriteCommandDetail to write important information about cmdlet execution to
- /// pipeline execution log.
- ///
+ /// Use WriteCommandDetail to write important information about cmdlet execution to
+ /// pipeline execution log.
+ ///
/// If LogPipelineExecutionDetail is turned on, this information will be written
/// to monad log under log category "Pipeline execution detail"
///
@@ -898,7 +898,7 @@ namespace System.Management.Automation
}
///
- /// This allows all success output to be set to a variable, where the variable is reset for each item returned by
+ /// This allows all success output to be set to a variable, where the variable is reset for each item returned by
/// the cmdlet. Semantically this is equivalent to : cmd | % { $pipelineVariable = $_; (...) }
///
internal string PipelineVariable { get; set; }
@@ -1017,11 +1017,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -1049,7 +1049,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(filename))
@@ -1080,7 +1080,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify text for both the
/// target resource and the action.
///
@@ -1113,11 +1113,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -1143,7 +1143,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(filename, "delete"))
@@ -1175,7 +1175,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify the complete text
/// describing the operation, rather than just the name and action.
///
@@ -1216,11 +1216,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -1246,7 +1246,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(
@@ -1284,7 +1284,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify the complete text
/// describing the operation, rather than just the name and action.
///
@@ -1331,11 +1331,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -1361,7 +1361,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// ShouldProcessReason shouldProcessReason;
@@ -1474,12 +1474,12 @@ namespace System.Management.Automation
// 2005/05/24 908827
// WriteDebug/WriteVerbose/WriteProgress/WriteWarning should only be callable from the main thread
//
- // WriteError/WriteObject have a check that prevents them to be called from outside
- // Begin/Process/End. This is done because the Pipeline needs to be ready before these
+ // WriteError/WriteObject have a check that prevents them to be called from outside
+ // Begin/Process/End. This is done because the Pipeline needs to be ready before these
// functions can be called.
//
- // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
- // strictly needed. If we ever implement pipelines for these objects we may need to
+ // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
+ // strictly needed. If we ever implement pipelines for these objects we may need to
// enforce the check again.
//
// See bug 583774 in the Windows 7 database for more details.
@@ -1503,12 +1503,12 @@ namespace System.Management.Automation
// 2005/05/24 908827
// WriteDebug/WriteVerbose/WriteProgress/WriteWarning should only be callable from the main thread
//
- // WriteError/WriteObject have a check that prevents them to be called from outside
- // Begin/Process/End. This is done because the Pipeline needs to be ready before these
+ // WriteError/WriteObject have a check that prevents them to be called from outside
+ // Begin/Process/End. This is done because the Pipeline needs to be ready before these
// functions can be called.
//
- // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
- // strictly needed. If we ever implement pipelines for these objects we may need to
+ // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
+ // strictly needed. If we ever implement pipelines for these objects we may need to
// enforce the check again.
//
// See bug 583774 in the Windows 7 database for more details.
@@ -1528,12 +1528,12 @@ namespace System.Management.Automation
// 2005/05/24 908827
// WriteDebug/WriteVerbose/WriteProgress/WriteWarning should only be callable from the main thread
//
- // WriteError/WriteObject have a check that prevents them to be called from outside
- // Begin/Process/End. This is done because the Pipeline needs to be ready before these
+ // WriteError/WriteObject have a check that prevents them to be called from outside
+ // Begin/Process/End. This is done because the Pipeline needs to be ready before these
// functions can be called.
//
- // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
- // strictly needed. If we ever implement pipelines for these objects we may need to
+ // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
+ // strictly needed. If we ever implement pipelines for these objects we may need to
// enforce the check again.
//
// See bug 583774 in the Windows 7 database for more details.
@@ -1632,16 +1632,16 @@ namespace System.Management.Automation
/// and ShouldProcess.
/// If this is not done, it will be difficult to use the Cmdlet
/// from scripts and non-interactive hosts.
- ///
+ ///
/// Cmdlets using ShouldContinue must still verify operations
/// which will make changes using ShouldProcess.
/// This will assure that settings such as -WhatIf work properly.
/// You may call ShouldContinue either before or after ShouldProcess.
- ///
+ ///
/// ShouldContinue may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// Cmdlets may have different "classes" of confirmations. For example,
/// "del" confirms whether files in a particular directory should be
/// deleted, whether read-only files should be deleted, etc.
@@ -1666,7 +1666,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// [Parameter]
/// public SwitchParameter Force
/// {
@@ -1674,7 +1674,7 @@ namespace System.Management.Automation
/// set { force = value; }
/// }
/// private bool force;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(
@@ -1809,16 +1809,16 @@ namespace System.Management.Automation
/// and ShouldProcess.
/// If this is not done, it will be difficult to use the Cmdlet
/// from scripts and non-interactive hosts.
- ///
+ ///
/// Cmdlets using ShouldContinue must still verify operations
/// which will make changes using ShouldProcess.
/// This will assure that settings such as -WhatIf work properly.
/// You may call ShouldContinue either before or after ShouldProcess.
- ///
+ ///
/// ShouldContinue may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// Cmdlets may have different "classes" of confirmations. For example,
/// "del" confirms whether files in a particular directory should be
/// deleted, whether read-only files should be deleted, etc.
@@ -1843,7 +1843,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// [Parameter]
/// public SwitchParameter Force
/// {
@@ -1851,10 +1851,10 @@ namespace System.Management.Automation
/// set { force = value; }
/// }
/// private bool force;
- ///
+ ///
/// private bool yesToAll;
/// private bool noToAll;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(
@@ -1903,12 +1903,12 @@ namespace System.Management.Automation
ThrowIfStopping();
//
- // WriteError/WriteObject have a check that prevents them to be called from outside
- // Begin/Process/End. This is done because the Pipeline needs to be ready before these
+ // WriteError/WriteObject have a check that prevents them to be called from outside
+ // Begin/Process/End. This is done because the Pipeline needs to be ready before these
// functions can be called.
//
- // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
- // strictly needed. If we ever implement pipelines for these objects we may need to
+ // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
+ // strictly needed. If we ever implement pipelines for these objects we may need to
// enforce the check again.
//
// See bug 583774 in the Windows 7 database for more details.
@@ -2000,7 +2000,7 @@ namespace System.Management.Automation
/// terminates the command, where
///
/// allows the command to continue.
- ///
+ ///
/// The cmdlet can also terminate the command by simply throwing
/// any exception. When the cmdlet's implementation of
/// ,
@@ -2013,7 +2013,7 @@ namespace System.Management.Automation
/// so that the additional information in
///
/// is available.
- ///
+ ///
///
/// always throws
/// ,
@@ -2643,7 +2643,7 @@ namespace System.Management.Automation
/// terminates the command, where
///
/// allows the command to continue.
- ///
+ ///
/// If the pipeline is terminated due to ActionPreference.Stop
/// or ActionPreference.Inquire, this method will throw
/// ,
@@ -2886,7 +2886,7 @@ namespace System.Management.Automation
/// This is not an independent parameter, it just emerges from the
/// Verbose, Debug, Confirm, and WhatIf parameters and the
/// $ConfirmPreference shell variable.
- ///
+ ///
/// We only read $ConfirmPreference once, then cache the value.
///
internal ConfirmImpact ConfirmPreference
@@ -3242,9 +3242,9 @@ namespace System.Management.Automation
internal bool IsErrorActionSet { get; private set; } = false;
///
- ///
+ ///
/// Preference setting for displaying ProgressRecords when WriteProgress is called.
- ///
+ ///
///
///
internal ActionPreference ProgressPreference
@@ -3273,9 +3273,9 @@ namespace System.Management.Automation
private bool _isProgressPreferenceCached = false;
///
- ///
+ ///
/// Preference setting for displaying InformationRecords when WriteInformation is called.
- ///
+ ///
///
///
internal ActionPreference InformationPreference
@@ -3356,12 +3356,12 @@ namespace System.Management.Automation
// 2005/05/24 908827
// WriteDebug/WriteVerbose/WriteProgress/WriteWarning should only be callable from the main thread
//
- // WriteError/WriteObject have a check that prevents them to be called from outside
- // Begin/Process/End. This is done because the Pipeline needs to be ready before these
+ // WriteError/WriteObject have a check that prevents them to be called from outside
+ // Begin/Process/End. This is done because the Pipeline needs to be ready before these
// functions can be called.
//
- // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
- // strictly needed. If we ever implement pipelines for these objects we may need to
+ // WriteDebug/Warning/Verbose/Process used to do the same check, even though it is not
+ // strictly needed. If we ever implement pipelines for these objects we may need to
// enforce the check again.
//
// See bug 583774 in the Windows 7 database for more details.
diff --git a/src/System.Management.Automation/engine/MshMemberInfo.cs b/src/System.Management.Automation/engine/MshMemberInfo.cs
index 3dc4155604..39c2f128e8 100644
--- a/src/System.Management.Automation/engine/MshMemberInfo.cs
+++ b/src/System.Management.Automation/engine/MshMemberInfo.cs
@@ -122,7 +122,7 @@ namespace System.Management.Automation
}
///
- /// Match options
+ /// Match options
///
[FlagsAttribute]
internal enum MshMemberMatchOptions
@@ -225,7 +225,7 @@ namespace System.Management.Automation
/// or enumerating a collection.
/// This should not be settable as it would make the count of hidden properties in
/// PSMemberInfoInternalCollection invalid.
- /// For now, we are carefully setting this.isHidden before adding
+ /// For now, we are carefully setting this.isHidden before adding
/// the members toPSObjectMembersetCollection. In the future, we might need overload for all
/// PSMemberInfo constructors to take isHidden.
///
@@ -240,11 +240,11 @@ namespace System.Management.Automation
///
/// Gets and Sets the value of this member
///
- /// When getting the value of a property throws an exception.
- /// This exception is also thrown if the property is an and there
+ /// When getting the value of a property throws an exception.
+ /// This exception is also thrown if the property is an and there
/// is no Runspace to run the script.
/// When setting the value of a property throws an exception.
- /// This exception is also thrown if the property is an and there
+ /// This exception is also thrown if the property is an and there
/// is no Runspace to run the script.
/// When some problem other then getting/setting the value happened
public abstract object Value { get; set; }
@@ -363,7 +363,7 @@ namespace System.Management.Automation
}
///
- /// Initializes a new instance of PSAliasProperty setting the name of the alias,
+ /// Initializes a new instance of PSAliasProperty setting the name of the alias,
/// the name of the member this alias refers to and the type to convert the referenced
/// member's value.
///
@@ -404,7 +404,7 @@ namespace System.Management.Automation
}
///
- /// Gets the the type to convert the referenced member's value. It might be
+ /// Gets the the type to convert the referenced member's value. It might be
/// null when no conversion is done.
///
public Type ConversionType { get; private set; }
@@ -438,7 +438,7 @@ namespace System.Management.Automation
/// Gets the type of the value for this member
///
///
- /// When
+ /// When
/// the alias has not been added to an PSObject or
/// the alias has a cycle or
/// an aliased member is not present
@@ -459,7 +459,7 @@ namespace System.Management.Automation
/// Gets true if this property can be set
///
///
- /// When
+ /// When
/// the alias has not been added to an PSObject or
/// the alias has a cycle or
/// an aliased member is not present
@@ -481,7 +481,7 @@ namespace System.Management.Automation
/// Gets true if this property can be read
///
///
- /// When
+ /// When
/// the alias has not been added to an PSObject or
/// the alias has a cycle or
/// an aliased member is not present
@@ -557,7 +557,7 @@ namespace System.Management.Automation
/// Gets and Sets the value of this member
///
///
- /// When
+ /// When
/// the alias has not been added to an PSObject or
/// the alias has a cycle or
/// an aliased member is not present
@@ -633,7 +633,7 @@ namespace System.Management.Automation
}
catch (AmbiguousMatchException)
{
- // Ignore the AmbiguousMatchException.
+ // Ignore the AmbiguousMatchException.
// We will generate error below if we cannot find exactly one match method.
}
@@ -660,7 +660,7 @@ namespace System.Management.Automation
}
catch (AmbiguousMatchException)
{
- // Ignore the AmbiguousMatchException.
+ // Ignore the AmbiguousMatchException.
// We will generate error below if we cannot find exactly one match method.
}
@@ -786,7 +786,7 @@ namespace System.Management.Automation
/// when methodForGet and methodForSet are null
///
/// if:
- /// - getterCodeReference doesn't have the right format,
+ /// - getterCodeReference doesn't have the right format,
/// - setterCodeReference doesn't have the right format,
/// - both getterCodeReference and setterCodeReference are null.
///
@@ -1174,7 +1174,7 @@ namespace System.Management.Automation
: base(name, null, null, tag)
{
//
- // Note that the constructor sets the adapter and base object to null; the ThirdPartyAdapter managing this property must set these values
+ // Note that the constructor sets the adapter and base object to null; the ThirdPartyAdapter managing this property must set these values
//
}
@@ -1679,7 +1679,7 @@ namespace System.Management.Automation
}
///
- /// Initializes an instance of the PSScriptProperty class as a read only
+ /// Initializes an instance of the PSScriptProperty class as a read only
/// property. getterScript or setterScript can be null, but not both.
///
/// Name of this property
@@ -1713,7 +1713,7 @@ namespace System.Management.Automation
}
///
- /// Initializes an instance of the PSScriptProperty class as a read only
+ /// Initializes an instance of the PSScriptProperty class as a read only
/// property, using the text of the properties to support lazy initialization.
///
/// Name of this property
@@ -1800,7 +1800,7 @@ namespace System.Management.Automation
///
/// Gets and Sets the value of this property
///
- /// When getting and there is no getter,
+ /// When getting and there is no getter,
/// when the getter throws an exception or when there is no Runspace to run the script.
///
/// When setting and there is no setter,
@@ -2147,7 +2147,7 @@ namespace System.Management.Automation
}
catch (AmbiguousMatchException)
{
- // Ignore the AmbiguousMatchException.
+ // Ignore the AmbiguousMatchException.
// We will generate error below if we cannot find exactly one match method.
}
@@ -2238,7 +2238,7 @@ namespace System.Management.Automation
/// return value from the method
/// if arguments is null
///
- /// When
+ /// When
/// could CodeReference cannot match the given argument count or
/// could not convert an argument to the type required
///
@@ -2367,15 +2367,15 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
///
/// Used by TypeTable.
- /// TypeTable might be shared between multiple runspaces and
- /// ScriptBlock is not shareable. We decided to Clone as needed
- /// instead of Cloning whenever a shared TypeTable is attached
+ /// TypeTable might be shared between multiple runspaces and
+ /// ScriptBlock is not shareable. We decided to Clone as needed
+ /// instead of Cloning whenever a shared TypeTable is attached
/// to a Runspace to save on Memory.
///
internal PSScriptMethod(string name, ScriptBlock script, bool shouldCloneOnAccess)
@@ -2956,7 +2956,7 @@ namespace System.Management.Automation
internal bool inheritMembers = true;
///
- /// Gets a flag indicating whether the memberset will inherit members of the memberset
+ /// Gets a flag indicating whether the memberset will inherit members of the memberset
/// of the same name in the "parent" class.
///
public bool InheritMembers
@@ -3077,7 +3077,7 @@ namespace System.Management.Automation
///
/// This MemberSet is used internally to represent the memberset for properties
/// PSObject, PSBase, PSAdapted members of a PSObject. Having a specialized
- /// memberset enables delay loading the members for these members. This saves
+ /// memberset enables delay loading the members for these members. This saves
/// time loading the members of a PSObject.
///
///
@@ -3576,7 +3576,7 @@ namespace System.Management.Automation
///
/// member to be added
/// flag to indicate that validation has already been done
- /// on this new member. Use only when you can guarantee that the input will not
+ /// on this new member. Use only when you can guarantee that the input will not
/// cause any of the errors normally caught by this method.
///
/// When:
@@ -3666,7 +3666,7 @@ namespace System.Management.Automation
}
///
- /// Gets the specific enumerator for this collection.
+ /// Gets the specific enumerator for this collection.
///
/// the enumerator for this collection
public abstract IEnumerator GetEnumerator();
@@ -3757,7 +3757,7 @@ namespace System.Management.Automation
}
///
- /// Gets the specific enumerator for this collection.
+ /// Gets the specific enumerator for this collection.
///
/// the enumerator for this collection
public virtual IEnumerator GetEnumerator()
@@ -3839,7 +3839,7 @@ namespace System.Management.Automation
///
/// member to be added
/// flag to indicate that validation has already been done
- /// on this new member. Use only when you can guarantee that the input will not
+ /// on this new member. Use only when you can guarantee that the input will not
/// cause any of the errors normally caught by this method.
/// when a member by this name is already present
/// for invalid arguments
@@ -4221,7 +4221,7 @@ namespace System.Management.Automation
///
/// member to be added
///
- /// When
+ /// When
/// member is an PSProperty or PSMethod
/// adding a member to a MemberSet with a reserved name
/// adding a member with a reserved member name or
@@ -4240,10 +4240,10 @@ namespace System.Management.Automation
///
/// member to be added
/// flag to indicate that validation has already been done
- /// on this new member. Use only when you can guarantee that the input will not
+ /// on this new member. Use only when you can guarantee that the input will not
/// cause any of the errors normally caught by this method.
///
- /// When
+ /// When
/// member is an PSProperty or PSMethod
/// adding a member to a MemberSet with a reserved name
/// adding a member with a reserved member name or
@@ -4308,10 +4308,10 @@ namespace System.Management.Automation
///
/// member to be added
/// flag to indicate that validation has already been done
- /// on this new member. Use only when you can guarantee that the input will not
+ /// on this new member. Use only when you can guarantee that the input will not
/// cause any of the errors normally caught by this method.
///
- /// When
+ /// When
/// adding a member with a reserved member name or
/// adding a member with a type not compatible with this collection
/// a member with this name already exists
@@ -4418,7 +4418,7 @@ namespace System.Management.Automation
/// Method which checks if the is reserved and if so
/// it will ensure that the particular reserved member is loaded into the
/// objects member collection.
- ///
+ ///
/// Caller should ensure that name is not null or empty.
///
///
diff --git a/src/System.Management.Automation/engine/MshObject.cs b/src/System.Management.Automation/engine/MshObject.cs
index dbc4f49ff9..25d0f304a5 100644
--- a/src/System.Management.Automation/engine/MshObject.cs
+++ b/src/System.Management.Automation/engine/MshObject.cs
@@ -39,8 +39,8 @@ using Microsoft.PowerShell.CoreClr.Stubs;
namespace System.Management.Automation
{
///
- /// Wraps an object providing alternate views of the available members
- /// and ways to extend them. Members can be methods, properties,
+ /// Wraps an object providing alternate views of the available members
+ /// and ways to extend them. Members can be methods, properties,
/// parameterized properties, etc.
///
///
@@ -206,7 +206,7 @@ namespace System.Management.Automation
private static Collection> s_propertyCollection = GetPropertyCollection(PSMemberViewTypes.All);
///
- /// A collection of delegates to get Extended/Adapted/Dotnet members based on the
+ /// A collection of delegates to get Extended/Adapted/Dotnet members based on the
///
///
///
@@ -219,7 +219,7 @@ namespace System.Management.Automation
}
///
- /// A collection of delegates to get Extended/Adapted/Dotnet members based on the
+ /// A collection of delegates to get Extended/Adapted/Dotnet members based on the
///
///
///
@@ -293,7 +293,7 @@ namespace System.Management.Automation
}
///
- /// A collection of delegates to get Extended/Adapted/Dotnet properties based on the
+ /// A collection of delegates to get Extended/Adapted/Dotnet properties based on the
///
///
///
@@ -307,7 +307,7 @@ namespace System.Management.Automation
}
///
- /// A collection of delegates to get Extended/Adapted/Dotnet properties based on the
+ /// A collection of delegates to get Extended/Adapted/Dotnet properties based on the
///
///
///
@@ -618,7 +618,7 @@ namespace System.Management.Automation
///
/// If an object is not adapted, InternalAdapter will use the dotnet adapter.
/// So there is no point falling back to the same dotnet adapter.
- ///
+ ///
/// If an object is adapted, this adapter will be used to resolve the dotnet
/// members.
///
@@ -631,7 +631,7 @@ namespace System.Management.Automation
}
///
- /// This is the adapter set that will contain the adapter of the baseObject
+ /// This is the adapter set that will contain the adapter of the baseObject
/// and the ultimate .net member lookup adapter.
/// See for explanation.
///
@@ -819,7 +819,7 @@ namespace System.Management.Automation
///
/// Gets the object we are directly wrapping.
///
- /// If the ImmediateBaseObject is another PSObject,
+ /// If the ImmediateBaseObject is another PSObject,
/// that PSObject will be returned.
public object ImmediateBaseObject
{
@@ -942,7 +942,7 @@ namespace System.Management.Automation
#region static methods
///
- ///
+ ///
///
///
///
@@ -951,7 +951,7 @@ namespace System.Management.Automation
return PSObject.AsPSObject(valueToConvert);
}
///
- ///
+ ///
///
///
///
@@ -960,7 +960,7 @@ namespace System.Management.Automation
return PSObject.AsPSObject(valueToConvert);
}
///
- ///
+ ///
///
///
///
@@ -969,7 +969,7 @@ namespace System.Management.Automation
return PSObject.AsPSObject(valueToConvert);
}
///
- ///
+ ///
///
///
///
@@ -978,7 +978,7 @@ namespace System.Management.Automation
return PSObject.AsPSObject(valueToConvert);
}
///
- ///
+ ///
///
///
///
@@ -988,7 +988,7 @@ namespace System.Management.Automation
}
///
- /// If obj is not an PSObject, it is returned. Otherwise, retrieves
+ /// If obj is not an PSObject, it is returned. Otherwise, retrieves
/// the first non PSObject or PSObject with CustomBaseObject
/// in the PSObject - BaseObject chain.
///
@@ -1205,7 +1205,7 @@ namespace System.Management.Automation
///
/// object we are trying to call ToString on. If this is not an PSObject we try
/// enumerating and if that fails we call obj.ToString.
- /// If this is an PSObject, we look for a brokered ToString.
+ /// If this is an PSObject, we look for a brokered ToString.
/// If it is not present, and the BaseObject is null we try listing the properties.
/// If the BaseObject is not null we try enumerating. If that fails we try the BaseObject's ToString.
///
@@ -1230,14 +1230,14 @@ namespace System.Management.Automation
/// Called from an PSObject instance ToString to provide a string representation for an object
///
///
- /// ExecutionContext used to fetch the separator.
+ /// ExecutionContext used to fetch the separator.
/// Typically either this or separator will be null.
/// If both are null, " " is used.
///
///
/// object we are trying to call ToString on. If this is not an PSObject we try
/// enumerating and if that fails we call obj.ToString.
- /// If this is an PSObject, we look for a brokered ToString.
+ /// If this is an PSObject, we look for a brokered ToString.
/// If it is not present, and the BaseObject is null we try listing the properties.
/// If the BaseObject is not null we try enumerating. If that fails we try the BaseObject's ToString.
///
@@ -1548,7 +1548,7 @@ namespace System.Management.Automation
///
/// Returns a copy of this PSObject. This will copy the BaseObject if
- /// it is a value type, and use BaseObject.Clone() for the new PSObject,
+ /// it is a value type, and use BaseObject.Clone() for the new PSObject,
/// if the BaseObject is ICloneable.
///
/// a copy of this object
@@ -1645,8 +1645,8 @@ namespace System.Management.Automation
///
public int CompareTo(object obj)
{
- // This ReferenceEquals is not just an optimization.
- // It is necessary so that mshObject.Equals(mshObject) returns 0.
+ // This ReferenceEquals is not just an optimization.
+ // It is necessary so that mshObject.Equals(mshObject) returns 0.
// Please see the comments inside the Equals implementation.
if (Object.ReferenceEquals(this, obj))
{
@@ -1673,7 +1673,7 @@ namespace System.Management.Automation
/// true if the specified Object is equal to the current Object; otherwise, false.
public override bool Equals(object obj)
{
- // There is a slight difference between BaseObject and PSObject.Base.
+ // There is a slight difference between BaseObject and PSObject.Base.
// PSObject.Base returns the containing PSObject that wraps an MshCustomBaseObject.
// BaseObject returns the MshCustomBaseObject.
// Because we have to call BaseObject here, and LP.Compare uses PSObject.Base
@@ -1819,7 +1819,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -2133,15 +2133,15 @@ namespace System.Management.Automation
/// adapters except for dotNetInstanceAdapter, mshMemberSetAdapter and mshObjectAdapter.
/// If the original adapter is not one of those, then .net members are also exposed
/// on the PSObject. This will have the following effect:
- ///
+ ///
/// 1. Every adapted object like xml, wmi, adsi will show adapted members as well as
/// .net members.
/// 2. Users will not need to access PSBase to access original .net members.
/// 3. This will fix v1.0 ADSI adapter where most of the complaints were about
/// discovering original .net members.
- ///
+ ///
/// Use of this class will allow us to customize the ultimate .net member lookup.
- /// For example, XML adapter already exposes .net methods.
+ /// For example, XML adapter already exposes .net methods.
/// Using this class you can choose exact .net adapter to support .net
/// member lookup and avoid lookup duplication.
///
@@ -2360,7 +2360,7 @@ namespace System.Management.Automation
}
///
- /// Serves as a placeholder BaseObject when PSObject's
+ /// Serves as a placeholder BaseObject when PSObject's
/// constructor with no parameters is used.
///
public class PSCustomObject
@@ -2381,7 +2381,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
/// Please keep in sync with SerializationMethod from
@@ -2426,7 +2426,7 @@ namespace Microsoft.PowerShell
{
string genericDefinition = Type(type.GetGenericTypeDefinition(), dropNamespaces);
// For regular generic types, we find the backtick character, for example:
- // System.Collections.Generic.List`1[T] ->
+ // System.Collections.Generic.List`1[T] ->
// System.Collections.Generic.List[string]
// For nested generic types, we find the left bracket character, for example:
// System.Collections.Generic.Dictionary`2+Enumerator[TKey, TValue] ->
diff --git a/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs b/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
index ebd6ee4b84..9b1519af72 100644
--- a/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
+++ b/src/System.Management.Automation/engine/MshObjectTypeDescriptor.cs
@@ -9,7 +9,7 @@ using System.Management.Automation.Runspaces;
namespace System.Management.Automation
{
///
- /// Serves as the arguments for events triggered by exceptions in the SetValue method of
+ /// Serves as the arguments for events triggered by exceptions in the SetValue method of
///
///
/// The sender of this event is an object of type .
@@ -44,8 +44,8 @@ namespace System.Management.Automation
}
///
- /// Serves as the arguments for events triggered by exceptions in the GetValue
- /// method of
+ /// Serves as the arguments for events triggered by exceptions in the GetValue
+ /// method of
///
///
/// The sender of this event is an object of type .
@@ -77,7 +77,7 @@ namespace System.Management.Automation
}
///
- /// Gets and sets the value that will serve as a replacement to the return of the GetValue
+ /// Gets and sets the value that will serve as a replacement to the return of the GetValue
/// method of . If this property is not set
/// to a value other than null then the exception associated with this event is thrown.
///
@@ -116,7 +116,7 @@ namespace System.Management.Automation
public override bool IsReadOnly { get; }
///
- /// This method has no effect for .
+ /// This method has no effect for .
/// CanResetValue returns false.
///
/// This parameter is ignored for
@@ -159,16 +159,16 @@ namespace System.Management.Automation
/// The component with the property for which to retrieve the value.
/// The value of a property for a given component.
///
- /// If the property has not been found in the component or an exception has
- /// been thrown when getting the value of the property.
+ /// If the property has not been found in the component or an exception has
+ /// been thrown when getting the value of the property.
/// This Exception will only be thrown if there is no event handler for the GettingValueException
/// event of the that created this .
/// If there is an event handler, it can prevent this exception from being thrown, by changing
- /// the ShouldThrow property of from its default
+ /// the ShouldThrow property of from its default
/// value of true to false.
///
/// If is null.
- /// if is not
+ /// if is not
/// an or an .
public override object GetValue(object component)
{
@@ -214,7 +214,7 @@ namespace System.Management.Automation
private static PSObject GetComponentPSObject(object component)
{
// If you use the PSObjectTypeDescriptor directly as your object, it will be the component
- // if you use a provider, the PSObject will be the component.
+ // if you use a provider, the PSObject will be the component.
PSObject mshObj = component as PSObject;
if (mshObj == null)
{
@@ -251,8 +251,8 @@ namespace System.Management.Automation
/// The component with the property value that is to be set.
/// The new value.
///
- /// If the property has not been found in the component or an exception has
- /// been thrown when setting the value of the property.
+ /// If the property has not been found in the component or an exception has
+ /// been thrown when setting the value of the property.
/// This Exception will only be thrown if there is no event handler for the SettingValueException
/// event of the that created this .
/// If there is an event handler, it can prevent this exception from being thrown, by changing
@@ -260,7 +260,7 @@ namespace System.Management.Automation
/// from its default value of true to false.
///
/// If is null.
- /// if is not an
+ /// if is not an
/// or an .
///
public override void SetValue(object component, object value)
@@ -344,7 +344,7 @@ namespace System.Management.Automation
public event EventHandler GettingValueException;
///
- /// Initializes a new instance of the that provides
+ /// Initializes a new instance of the that provides
/// property information about .
///
/// The this class retrieves property information from.
@@ -420,7 +420,7 @@ namespace System.Management.Automation
}
///
- /// Returns a collection of property descriptors for the represented by this type descriptor.
+ /// Returns a collection of property descriptors for the represented by this type descriptor.
///
/// A PropertyDescriptorCollection containing the property descriptions for the represented by this type descriptor.
public override PropertyDescriptorCollection GetProperties()
@@ -452,7 +452,7 @@ namespace System.Management.Automation
}
///
- /// Determines whether the Instance property of is equal to the current Instance.
+ /// Determines whether the Instance property of is equal to the current Instance.
///
/// The Object to compare with the current Object.
/// true if the Instance property of is equal to the current Instance; otherwise, false.
@@ -572,7 +572,7 @@ namespace System.Management.Automation
// attributes.
// The calls are not recursive because the BaseObject was implemented so it is never
// another PSObject. ImmediateBaseObject or PSObject.Base could cause the call to be
- // recursive in the case of an object like "new PSObject(new PSObject())".
+ // recursive in the case of an object like "new PSObject(new PSObject())".
// Even if we used ImmediateBaseObject, the recursion would be finite since we would
// keep getting an ImmediatebaseObject until it ceased to be an PSObject.
#endregion ReadMe
@@ -708,7 +708,7 @@ namespace System.Management.Automation
///
/// The type of object for which to retrieve the type descriptor. If this parameter is not noll and is not the , the return of this method will be null.
/// An instance of the type. If instance is null or has a type other than , this method returns null.
- /// An that can provide property information for the
+ /// An that can provide property information for the
/// type , or null if is not null,
/// but has a type other than .
public override ICustomTypeDescriptor GetTypeDescriptor(Type objectType, object instance)
@@ -721,11 +721,11 @@ namespace System.Management.Automation
// property of a PropertyGrid.
// 2) If, by mistake, an object[] or Collection is used instead of an ArrayList
// to set the DataSource property of a DataGrid or DatagridView.
- //
- // It would be nice to throw an exception for the case 2) instructing the user to use
+ //
+ // It would be nice to throw an exception for the case 2) instructing the user to use
// an ArrayList, but since we have case 1) and maybe others we haven't found we return
- // an PSObjectTypeDescriptor(null). PSObjectTypeDescriptor's GetProperties
- // checks for null instance and returns an empty property collection.
+ // an PSObjectTypeDescriptor(null). PSObjectTypeDescriptor's GetProperties
+ // checks for null instance and returns an empty property collection.
// All other overrides also check for null and return some default result.
// Case 1), which is using a PropertyGrid seems to be unaffected by these results returned
// by PSObjectTypeDescriptor overrides when the Instance is null, so we must conclude
diff --git a/src/System.Management.Automation/engine/MshReference.cs b/src/System.Management.Automation/engine/MshReference.cs
index b73622ee4d..7ab4f1df0d 100644
--- a/src/System.Management.Automation/engine/MshReference.cs
+++ b/src/System.Management.Automation/engine/MshReference.cs
@@ -9,28 +9,28 @@ using System.Runtime.CompilerServices;
namespace System.Management.Automation
{
///
- /// Define type for a reference object in Monad scripting language.
+ /// Define type for a reference object in Monad scripting language.
///
///
- /// This class is used to describe both kinds of references:
- /// a. reference to a value: _value will be holding the value being referenced.
- /// b. reference to a variable: _value will be holding a PSVariable instance for the variable to be referenced.
- ///
- /// A reference is created in following ways,
+ /// This class is used to describe both kinds of references:
+ /// a. reference to a value: _value will be holding the value being referenced.
+ /// b. reference to a variable: _value will be holding a PSVariable instance for the variable to be referenced.
+ ///
+ /// A reference is created in following ways,
/// a. value reference
/// $a = [ref] 3
/// [ref] $a = 3
/// [ref] $a = $b
/// b. variable reference
/// $a = [ref] $b
- ///
+ ///
///
public class PSReference
{
private object _value;
///
- /// Create an instance of PSReference.
+ /// Create an instance of PSReference.
///
///
public PSReference(object value)
@@ -39,11 +39,11 @@ namespace System.Management.Automation
}
///
- /// Get and set value of PSReference.
+ /// Get and set value of PSReference.
///
///
- /// If underlining object is a value, the object itself will be operated on.
- /// If underlining object is a variable, the variable will be operated on.
+ /// If underlining object is a value, the object itself will be operated on.
+ /// If underlining object is a variable, the variable will be operated on.
///
public object Value
{
diff --git a/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs b/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs
index 752502a5a2..cc0d7d96e5 100644
--- a/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs
+++ b/src/System.Management.Automation/engine/MshSnapinQualifiedName.cs
@@ -31,7 +31,7 @@ namespace System.Management.Automation
}
else
{
- // Since the provider name contained multiple slashes it is
+ // Since the provider name contained multiple slashes it is
// a bad format.
throw PSTraceSource.NewArgumentException("name");
@@ -57,15 +57,15 @@ namespace System.Management.Automation
///
/// Gets an instance of the Name class.
///
- ///
+ ///
///
/// The name of the command.
///
- ///
+ ///
///
/// An instance of the Name class.
///
- ///
+ ///
internal static PSSnapinQualifiedName GetInstance(string name)
{
if (name == null)
@@ -87,7 +87,7 @@ namespace System.Management.Automation
///
/// Gets the command's full name.
///
- ///
+ ///
internal string FullName
{
get
@@ -100,7 +100,7 @@ namespace System.Management.Automation
///
/// Gets the command's PSSnapin name.
///
- ///
+ ///
internal string PSSnapInName
{
get
@@ -113,7 +113,7 @@ namespace System.Management.Automation
///
/// Gets the command's short name.
///
- ///
+ ///
internal string ShortName
{
get
@@ -126,11 +126,11 @@ namespace System.Management.Automation
///
/// The full name
///
- ///
+ ///
///
/// A string representing the full name.
///
- ///
+ ///
public override string ToString()
{
return _fullName;
diff --git a/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs b/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs
index 62e282ca37..d6cfdb7065 100644
--- a/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs
+++ b/src/System.Management.Automation/engine/NativeCommandParameterBinder.cs
@@ -12,7 +12,7 @@ namespace System.Management.Automation
///
/// The parameter binder for native commands.
///
- ///
+ ///
internal class NativeCommandParameterBinder : ParameterBinderBase
{
#region ctor
@@ -20,11 +20,11 @@ namespace System.Management.Automation
///
/// Constructs a NativeCommandParameterBinder
///
- ///
+ ///
///
/// The NativeCommand to bind to.
///
- ///
+ ///
///
/// .Context is null
///
@@ -190,7 +190,7 @@ namespace System.Management.Automation
// actually have quotes in different places, but the Win32 command line=>argv parser
// erases those differences.
//
- // We need to check quotes that the win32 argument parser checks which is currently
+ // We need to check quotes that the win32 argument parser checks which is currently
// just the normal double quotes, no other special quotes. Also note that mismatched
// quotes are supported.
diff --git a/src/System.Management.Automation/engine/NativeCommandParameterBinderController.cs b/src/System.Management.Automation/engine/NativeCommandParameterBinderController.cs
index 5f29422dd5..b02857c05c 100644
--- a/src/System.Management.Automation/engine/NativeCommandParameterBinderController.cs
+++ b/src/System.Management.Automation/engine/NativeCommandParameterBinderController.cs
@@ -10,7 +10,7 @@ namespace System.Management.Automation
/// This is the interface between the NativeCommandProcessor and the
/// parameter binders required to bind parameters to a native command.
///
- ///
+ ///
internal class NativeCommandParameterBinderController : ParameterBinderController
{
#region ctor
@@ -19,11 +19,11 @@ namespace System.Management.Automation
/// Initializes the cmdlet parameter binder controller for
/// the specified native command and engine context
///
- ///
+ ///
///
/// The command that the parameters will be bound to.
///
- ///
+ ///
internal NativeCommandParameterBinderController(NativeCommand command)
: base(command.MyInvocation, command.Context, new NativeCommandParameterBinder(command))
{
@@ -47,20 +47,20 @@ namespace System.Management.Automation
/// Passes the binding directly through to the parameter binder.
/// It does no verification against metadata.
///
- ///
+ ///
///
/// The name and value of the variable to bind.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// True if the parameter was successfully bound. Any error condition
/// produces an exception.
///
- ///
+ ///
internal override bool BindParameter(
CommandParameterInternal argument,
ParameterBindingFlags flags)
@@ -73,16 +73,16 @@ namespace System.Management.Automation
///
/// Binds the specified parameters to the native command
///
- ///
+ ///
///
/// The parameters to bind.
///
- ///
+ ///
///
/// For any parameters that do not have a name, they are added to the command
/// line arguments for the command
///
- ///
+ ///
internal override Collection BindParameters(Collection parameters)
{
((NativeCommandParameterBinder)DefaultParameterBinder).BindParameters(parameters);
diff --git a/src/System.Management.Automation/engine/NativeCommandProcessor.cs b/src/System.Management.Automation/engine/NativeCommandProcessor.cs
index 4ab79ddd12..7ae2d7f812 100644
--- a/src/System.Management.Automation/engine/NativeCommandProcessor.cs
+++ b/src/System.Management.Automation/engine/NativeCommandProcessor.cs
@@ -145,23 +145,23 @@ namespace System.Management.Automation
#region ctor/native command properties
///
- /// Information about application which is invoked by this instance of
- /// NativeCommandProcessor
+ /// Information about application which is invoked by this instance of
+ /// NativeCommandProcessor
///
private ApplicationInfo _applicationInfo;
///
/// Initializes the new instance of NativeCommandProcessor class.
///
- ///
+ ///
///
/// The information about the application to run.
///
- ///
+ ///
///
/// The execution context for this command.
///
- ///
+ ///
///
/// or is null
///
@@ -247,15 +247,15 @@ namespace System.Management.Automation
///
/// Gets a new instance of a ParameterBinderController using a NativeCommandParameterBinder
///
- ///
+ ///
///
/// The native command to be run.
///
- ///
+ ///
///
/// A new parameter binder controller for the specified command.
///
- ///
+ ///
internal ParameterBinderController NewParameterBinderController(InternalCommand command)
{
Dbg.Assert(_isPreparedCalled, "parameter binder should not be created before prepared is called");
@@ -302,8 +302,8 @@ namespace System.Management.Automation
//Check if the application is minishell
_isMiniShell = IsMiniShell();
- //For minishell parameter binding is done in Complete method because we need
- //to know if output is redirected before we can bind parameters.
+ //For minishell parameter binding is done in Complete method because we need
+ //to know if output is redirected before we can bind parameters.
if (!_isMiniShell)
{
this.NativeParameterBinderController.BindParameters(arguments);
@@ -338,18 +338,18 @@ namespace System.Management.Automation
///
/// Is true if this command is to be run "standalone" - that is, with
/// no redirection.
- ///
+ ///
private bool _runStandAlone;
///
/// Indicate whether we need to consider redirecting the output/error of the current native command.
/// Usually a windows program which is the last command in a pipeline can be executed as 'background' -- we don't need to capture its output/error streams.
- ///
+ ///
private bool _isRunningInBackground;
///
/// This output queue helps us keep the output and error (if redirected) order correct.
- /// We could do a blocking read in the Complete block instead,
+ /// We could do a blocking read in the Complete block instead,
/// but then we would not be able to restore the order reasonable.
///
private BlockingCollection _nativeProcessOutputQueue;
@@ -359,7 +359,7 @@ namespace System.Management.Automation
private Host.Coordinates _startPosition;
///
- /// object used for synchronization between StopProcessing thread and
+ /// object used for synchronization between StopProcessing thread and
/// Pipeline thread.
///
private object _sync = new object();
@@ -389,7 +389,7 @@ namespace System.Management.Automation
// Find out if it's the only command in the pipeline.
bool soloCommand = this.Command.MyInvocation.PipelineLength == 1;
- // Get the start info for the process.
+ // Get the start info for the process.
ProcessStartInfo startInfo = GetProcessStartInfo(redirectOutput, redirectError, redirectInput, soloCommand);
if (this.Command.Context.CurrentPipelineStopping)
@@ -404,7 +404,7 @@ namespace System.Management.Automation
try
{
// If this process is being run standalone, tell the host, which might want
- // to save off the window title or other such state as might be tweaked by
+ // to save off the window title or other such state as might be tweaked by
// the native process
if (!redirectOutput)
{
@@ -482,7 +482,7 @@ namespace System.Management.Automation
startInfo.FileName = oldFileName;
}
}
- // We got here because there was either no executable found for this
+ // We got here because there was either no executable found for this
// file or we tried to launch the exe and it failed. In either case
// we will try launching one last time using ShellExecute...
if (notDone)
@@ -610,7 +610,7 @@ namespace System.Management.Automation
{
try
{
- // If adding is not complete we need a try {} catch {}
+ // If adding is not complete we need a try {} catch {}
// to mitigate a concurrent call to CompleteAdding().
return _nativeProcessOutputQueue.Take();
}
@@ -662,7 +662,7 @@ namespace System.Management.Automation
Exception exceptionToRethrow = null;
try
{
- if (_isRunningInBackground == false)
+ if (_isRunningInBackground == false)
{
//Wait for input writer to finish.
_inputWriter.Done();
@@ -783,7 +783,7 @@ namespace System.Management.Automation
try
{
// For processes running in an NTVDM, trying to kill with
- // the original handle fails with a Win32 error, so we'll
+ // the original handle fails with a Win32 error, so we'll
// use the ID and try to get a new handle...
Process newHandle = Process.GetProcessById(processToKill.Id);
// If the process was not found, we won't get here...
@@ -887,7 +887,7 @@ namespace System.Management.Automation
try
{
// For processes running in an NTVDM, trying to kill with
- // the original handle fails with a Win32 error, so we'll
+ // the original handle fails with a Win32 error, so we'll
// use the ID and try to get a new handle...
Process newHandle = Process.GetProcessById(processToKill.Id);
@@ -992,7 +992,7 @@ namespace System.Management.Automation
}
}
- #endregion internal overrides
+ #endregion internal overrides
///
/// Aggressively clean everything up...
@@ -1014,7 +1014,7 @@ namespace System.Management.Automation
private void ProcessOutputRecord(ProcessOutputObject outputValue)
{
Dbg.Assert(outputValue != null, "only object of type ProcessOutputObject expected");
-
+
if (outputValue.Stream == MinishellStream.Error)
{
ErrorRecord record = outputValue.Data as ErrorRecord;
@@ -1154,7 +1154,7 @@ namespace System.Management.Automation
if (outputProcessor != null)
{
// We have the test 'utscript\Engine\TestOutDefaultRedirection.ps1' to check that a user defined
- // Out-Default function should not cause a native command to be redirected. So here we should only
+ // Out-Default function should not cause a native command to be redirected. So here we should only
// compare the command name to avoid breaking change.
if (String.Equals(outputProcessor.CommandInfo.Name, "Out-Default", StringComparison.OrdinalIgnoreCase))
{
@@ -1196,9 +1196,9 @@ namespace System.Management.Automation
// If the output pipe is the default outputter, for example, calling the native command from command-line host,
// then we're possibly running standalone.
//
- // If the downstream cmdlet is explicitly Out-Default, for example:
- // $powershell.AddScript('ipconfig.exe')
- // $powershell.AddCommand('Out-Default')
+ // If the downstream cmdlet is explicitly Out-Default, for example:
+ // $powershell.AddScript('ipconfig.exe')
+ // $powershell.AddCommand('Out-Default')
// $powershell.Invoke())
// we should not count it as a redirection.
if (IsDownstreamOutDefault(this.commandRuntime.OutputPipe))
@@ -1215,9 +1215,9 @@ namespace System.Management.Automation
// If the error output pipe is the default outputter, for example, calling the native command from command-line host,
// then we're possibly running standalone.
//
- // If the downstream cmdlet is explicitly Out-Default, for example:
- // $powershell.AddScript('ipconfig.exe')
- // $powershell.AddCommand('Out-Default')
+ // If the downstream cmdlet is explicitly Out-Default, for example:
+ // $powershell.AddScript('ipconfig.exe')
+ // $powershell.AddCommand('Out-Default')
// $powershell.Invoke())
// we should not count that as a redirection.
if (IsDownstreamOutDefault(this.commandRuntime.ErrorOutputPipe))
@@ -1226,7 +1226,7 @@ namespace System.Management.Automation
}
}
- //In minishell scenario, if output is redirected
+ //In minishell scenario, if output is redirected
//then error should also be redirected.
if (redirectError == false && redirectOutput == true && _isMiniShell)
{
@@ -1237,7 +1237,7 @@ namespace System.Management.Automation
// Currently, the WinRM is using std io pipes to communicate with PowerShell server.
// To protect these std io pipes from access from user command, we have replaced the original std io pipes with null pipes.
// The original std io pipes are taken private, to be used by remoting infrastructure only.
- // Doing so prevents user data to corrupt PowerShell remoting communication data which are encoded in a
+ // Doing so prevents user data to corrupt PowerShell remoting communication data which are encoded in a
// special format.
// In the following, we check for this server condition.
// If it is the server, then we redirect all std io handles for the native command.
@@ -1383,7 +1383,7 @@ namespace System.Management.Automation
///
///
///
- /// If any of the argument supplied to native command is script block,
+ /// If any of the argument supplied to native command is script block,
/// we assume it is minishell.
///
private bool IsMiniShell()
@@ -1652,11 +1652,11 @@ namespace System.Management.Automation
///
internal class ProcessInputWriter
{
- #region constructor
+ #region constructor
private InternalCommand _command;
///
- /// Creates an instance of ProcessInputWriter
+ /// Creates an instance of ProcessInputWriter
///
internal ProcessInputWriter(InternalCommand command)
{
@@ -1755,7 +1755,7 @@ namespace System.Management.Automation
{
Dbg.Assert(process != null, "caller should validate the paramter");
- //Get the encoding for writing to native command. Note we get the Encoding
+ //Get the encoding for writing to native command. Note we get the Encoding
//from the current scope so a script or function can use a different encoding
//than global value.
Encoding pipeEncoding = _command.Context.GetVariableValue(SpecialVariables.OutputEncodingVarPath) as System.Text.Encoding ??
@@ -1847,7 +1847,7 @@ namespace System.Management.Automation
Dispose();
}
}
-
+
#if !CORECLR // There is no GUI application on OneCore, so powershell on OneCore should always have a console attached.
///
@@ -1997,11 +1997,11 @@ namespace System.Management.Automation
#endif
///
- /// Exception used to wrap the error coming from
+ /// Exception used to wrap the error coming from
/// remote instance of Msh.
- ///
+ ///
///
- /// This remote instance of Msh can be in a separate process,
+ /// This remote instance of Msh can be in a separate process,
/// appdomain or machine.
///
[Serializable]
@@ -2017,10 +2017,10 @@ namespace System.Management.Automation
}
///
- /// Initializes a new instance of RemoteException with a specified error message.
+ /// Initializes a new instance of RemoteException with a specified error message.
///
///
- /// The message that describes the error.
+ /// The message that describes the error.
///
public RemoteException(string message)
: base(message)
@@ -2028,12 +2028,12 @@ namespace System.Management.Automation
}
///
- /// Initializes a new instance of the RemoteException class
- /// with a specified error message and a reference to the inner exception
- /// that is the cause of this exception.
+ /// Initializes a new instance of the RemoteException class
+ /// with a specified error message and a reference to the inner exception
+ /// that is the cause of this exception.
///
///
- /// The message that describes the error.
+ /// The message that describes the error.
///
///
/// The exception that is the cause of the current exception.
@@ -2044,8 +2044,8 @@ namespace System.Management.Automation
}
///
- /// Initializes a new instance of the RemoteException
- /// with a specified error message, serialized Exception and
+ /// Initializes a new instance of the RemoteException
+ /// with a specified error message, serialized Exception and
/// serialized InvocationInfo
///
/// The message that describes the error.
@@ -2075,11 +2075,11 @@ namespace System.Management.Automation
/// class with serialized data.
///
///
- /// The that holds the serialized object
+ /// The that holds the serialized object
/// data about the exception being thrown.
///
///
- /// The that contains contextual information
+ /// The that contains contextual information
/// about the source or destination.
///
protected RemoteException(SerializationInfo info, StreamingContext context)
diff --git a/src/System.Management.Automation/engine/NullString.cs b/src/System.Management.Automation/engine/NullString.cs
index 7e7803a616..400288ccee 100644
--- a/src/System.Management.Automation/engine/NullString.cs
+++ b/src/System.Management.Automation/engine/NullString.cs
@@ -18,7 +18,7 @@ namespace System.Management.Automation.Language
#region public_property
///
- /// This overrides ToString() method and returns null.
+ /// This overrides ToString() method and returns null.
///
public override string ToString()
{
diff --git a/src/System.Management.Automation/engine/PSClassInfo.cs b/src/System.Management.Automation/engine/PSClassInfo.cs
index 39f601ea70..e70ab6984f 100644
--- a/src/System.Management.Automation/engine/PSClassInfo.cs
+++ b/src/System.Management.Automation/engine/PSClassInfo.cs
@@ -17,7 +17,7 @@ namespace System.Management.Automation
///
/// Initializes a new instance of the PSClassInfo class
///
- /// Name of the PS Class.
+ /// Name of the PS Class.
internal PSClassInfo(string name)
{
this.Name = name;
diff --git a/src/System.Management.Automation/engine/PSClassSearcher.cs b/src/System.Management.Automation/engine/PSClassSearcher.cs
index 829775ed9b..d06af7be48 100644
--- a/src/System.Management.Automation/engine/PSClassSearcher.cs
+++ b/src/System.Management.Automation/engine/PSClassSearcher.cs
@@ -83,7 +83,7 @@ namespace System.Management.Automation
}
///
- /// Move to the Next value in the enumerator.
+ /// Move to the Next value in the enumerator.
///
///
public bool MoveNext()
diff --git a/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs b/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs
index e6c17ef385..0642ec2ecd 100644
--- a/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs
+++ b/src/System.Management.Automation/engine/PSMI/PSPowerShellPipeline.cs
@@ -4,9 +4,9 @@ using System.Runtime.InteropServices;
namespace System.Management.Automation
{
///
- ///
- /// Represents a System.Management.Automation.PowerShell object
- ///
+ ///
+ /// Represents a System.Management.Automation.PowerShell object
+ ///
///
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal struct PSPowerShellPipeline
@@ -25,9 +25,9 @@ namespace System.Management.Automation
}
///
- ///
- /// Represents a System.Management.Automation.Command object
- ///
+ ///
+ /// Represents a System.Management.Automation.Command object
+ ///
///
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal struct PS_Command
@@ -43,9 +43,9 @@ namespace System.Management.Automation
}
///
- ///
- /// Represents a System.Management.Automation.Runspaces.CommandParameter object
- ///
+ ///
+ /// Represents a System.Management.Automation.Runspaces.CommandParameter object
+ ///
///
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Unicode)]
internal struct PS_Parameter
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs
index d66ce8a8af..41d788142a 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/InternalMISerializer.cs
@@ -337,7 +337,7 @@ namespace System.Management.Automation
}
}
- // This will create a CimInstance for PS_Object and populate the typenames.
+ // This will create a CimInstance for PS_Object and populate the typenames.
result = CreateCimInstanceForPSObject(cimClassName: "PS_Object",
psObj: mshSource,
writeToString: writeToString);
@@ -371,7 +371,7 @@ namespace System.Management.Automation
CreateCimInstanceForPSObjectProperties(mshSource, depth, specificPropertiesToSerialize, out listOfCimInstancesProperties);
}
- //TODO, insivara : Implement serialization of CimInstance
+ //TODO, insivara : Implement serialization of CimInstance
//if (isCimInstance)
//{
// CimInstance cimInstance = mshSource.ImmediateBaseObject as CimInstance;
@@ -402,7 +402,7 @@ namespace System.Management.Automation
/// is same source.ImmediateBaseObject. When PSObject is serialized as string,
///
///
- /// TypeSerializationInfo for the primitive.
+ /// TypeSerializationInfo for the primitive.
///
///
///
@@ -536,7 +536,7 @@ namespace System.Management.Automation
}
catch (System.NotSupportedException)
{
- //ignore exceptions thrown when the enumerator doesn't support Reset() method as in win8:948569
+ //ignore exceptions thrown when the enumerator doesn't support Reset() method as in win8:948569
}
}
catch (Exception exception)
@@ -663,7 +663,7 @@ namespace System.Management.Automation
# region Serialization Delegates
///
- /// Creates CimInstance for a primitive type
+ /// Creates CimInstance for a primitive type
///
/// name of property. pass null for item
/// value
@@ -685,7 +685,7 @@ namespace System.Management.Automation
}
///
- /// Creates CimInstance for a string
+ /// Creates CimInstance for a string
///
/// name of property. pass null for item
/// string value to write
@@ -831,11 +831,11 @@ namespace System.Management.Automation
/// Collection of properties to serialize
///
///
- /// depth to which each property should be
+ /// depth to which each property should be
/// serialized
- ///
+ ///
///
- /// list of CimInstances for the properties
+ /// list of CimInstances for the properties
/// serialized
///
private void SerializeProperties
@@ -872,6 +872,6 @@ namespace System.Management.Automation
return new CimInstance("Null");
}
- #endregion
+ #endregion
}
}
\ No newline at end of file
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs b/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs
index 3309a34233..f0ca57031d 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/KnownMITypes.cs
@@ -9,13 +9,13 @@ namespace System.Management.Automation
{
///
/// A class for identifying types which are treated as Known Cim Type by Monad.
- /// A KnownMIType is guranteed to be available on machine on which monad is
+ /// A KnownMIType is guranteed to be available on machine on which monad is
/// running.
///
internal static class KnownMITypes
{
///
- /// Static constructor
+ /// Static constructor
///
static KnownMITypes()
{
@@ -116,7 +116,7 @@ namespace System.Management.Automation
//new MITypeSerializationInfo(typeof(Uri),
// InternalSerializer.WriteUri),
-
+
//new MITypeSerializationInfo(typeof(byte[]),
// InternalSerializer.WriteByteArray),
@@ -132,7 +132,7 @@ namespace System.Management.Automation
};
///
- /// Dictionary of knowntypes.
+ /// Dictionary of knowntypes.
/// Key is Type.FullName and value is Type object.
///
private static readonly Dictionary s_knownTableKeyType = new Dictionary();
diff --git a/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs b/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs
index e17f542060..2c37e7465f 100644
--- a/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs
+++ b/src/System.Management.Automation/engine/PSMI/Serialization/MITypeSerializationInfo.cs
@@ -60,7 +60,7 @@ namespace System.Management.Automation
internal MITypeSerializerDelegate Serializer { get; }
///
- /// The CimType corresponding to the .NET type
+ /// The CimType corresponding to the .NET type
///
internal Microsoft.Management.Infrastructure.CimType CimType { get; }
diff --git a/src/System.Management.Automation/engine/PSVersionInfo.cs b/src/System.Management.Automation/engine/PSVersionInfo.cs
index 936a1a6c3c..098b52f937 100644
--- a/src/System.Management.Automation/engine/PSVersionInfo.cs
+++ b/src/System.Management.Automation/engine/PSVersionInfo.cs
@@ -28,11 +28,11 @@ namespace System.Management.Automation
///
///
/// We can't depend on assembly version for PowerShell version.
- ///
- /// This is why we hard code the PowerShell version here.
- ///
- /// For each later release of PowerShell, this constant needs to
- /// be updated to reflect the right version.
+ ///
+ /// This is why we hard code the PowerShell version here.
+ ///
+ /// For each later release of PowerShell, this constant needs to
+ /// be updated to reflect the right version.
///
private static Version s_psV1Version = new Version(1, 0);
private static Version s_psV2Version = new Version(2, 0);
@@ -194,11 +194,11 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
/// For 2.0 PowerShell, we still use "1" as the registry version key.
- /// For >=3.0 PowerShell, we still use "1" as the registry version key for
+ /// For >=3.0 PowerShell, we still use "1" as the registry version key for
/// Snapin and Custom shell lookup/discovery.
///
internal static string RegistryVersion1Key
@@ -210,13 +210,13 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
/// For 3.0 PowerShell, we use "3" as the registry version key only for Engine
/// related data like ApplicationBase.
- /// For 3.0 PowerShell, we still use "1" as the registry version key for
- /// Snapin and Custom shell lookup/discovery.
+ /// For 3.0 PowerShell, we still use "1" as the registry version key for
+ /// Snapin and Custom shell lookup/discovery.
///
internal static string RegistryVersionKey
{
@@ -310,7 +310,7 @@ namespace System.Management.Automation
///
/// An implementation of semantic versioning (http://semver.org)
/// that can be converted to/from .
- ///
+ ///
/// When converting to , a PSNoteProperty is
/// added to the instance to store the semantic version label so
/// that it can be recovered when creating a new SemanticVersion.
diff --git a/src/System.Management.Automation/engine/ParameterBinderBase.cs b/src/System.Management.Automation/engine/ParameterBinderBase.cs
index 06dbafce99..f427281e6a 100644
--- a/src/System.Management.Automation/engine/ParameterBinderBase.cs
+++ b/src/System.Management.Automation/engine/ParameterBinderBase.cs
@@ -75,23 +75,23 @@ namespace System.Management.Automation
/// Constructs the parameter binder with the specified type metadata. The binder is only valid
/// for a single instance of a bindable object and only for the duration of a command.
///
- ///
+ ///
///
/// The target object that the parameter values will be bound to.
///
- ///
+ ///
///
/// The invocation information for the code that is being bound.
///
- ///
+ ///
///
/// The context of the currently running engine.
///
- ///
+ ///
///
/// The command that the parameter binder is binding to. The command can be null.
///
- ///
+ ///
internal ParameterBinderBase(
object target,
InvocationInfo invocationInfo,
@@ -117,19 +117,19 @@ namespace System.Management.Automation
/// Constructs the parameter binder with the specified type metadata. The binder is only valid
/// for a single instance of a bindable object and only for the duration of a command.
///
- ///
+ ///
///
/// The invocation information for the code that is being bound.
///
- ///
+ ///
///
/// The context of the currently running engine.
///
- ///
+ ///
///
/// The command that the parameter binder is binding to. The command can be null.
///
- ///
+ ///
internal ParameterBinderBase(
InvocationInfo invocationInfo,
ExecutionContext context,
@@ -204,15 +204,15 @@ namespace System.Management.Automation
/// Derived classes must override this method to get the default parameter
/// value so that it can be restored between pipeline input
///
- ///
+ ///
///
/// The name of the parameter to get the default value of.
///
- ///
+ ///
///
/// The value of the parameter specified by name.
///
- ///
+ ///
internal abstract object GetDefaultParameterValue(string name);
#endregion Parameter default values
@@ -304,37 +304,37 @@ namespace System.Management.Automation
/// parameter, then calls the protected BindParameter method to have
/// the derived class do the actual binding.
///
- ///
+ ///
///
/// The parameter to be bound.
///
- ///
+ ///
///
/// The metadata for the parameter to use in guiding the binding.
///
- ///
+ ///
///
/// Flags for type coercion and validation.
///
- ///
+ ///
///
- /// True if the parameter was successfully bound. False if
+ /// True if the parameter was successfully bound. False if
/// is false and the type does not match the parameter type.
///
- ///
+ ///
///
/// The binding algorithm goes as follows:
/// 1. The data generation attributes are run
/// 2. The data is coerced into the correct type
/// 3. The data if validated using the validation attributes
- /// 4. The data is encoded into the bindable object using the
+ /// 4. The data is encoded into the bindable object using the
/// protected BindParameter method.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If argument transformation fails.
/// or
@@ -344,7 +344,7 @@ namespace System.Management.Automation
/// or
/// If the binding to the parameter fails.
///
- ///
+ ///
internal virtual bool BindParameter(
CommandParameterInternal parameter,
CompiledCommandParameter parameterMetadata,
@@ -386,7 +386,7 @@ namespace System.Management.Automation
}
// Now do the argument transformation. No transformation is done for the default values in script that meet the following 2 conditions:
- // 1. the default value is not specified by the user, but is the powershell default value.
+ // 1. the default value is not specified by the user, but is the powershell default value.
// e.g. the powershell default value for a class type is null, for the string type is string.empty.
// 2. the powershell default value is null.
// This is to prevent ArgumentTransformationAttributes from making a non-mandatory parameter behave like a mandatory one.
@@ -421,11 +421,11 @@ namespace System.Management.Automation
else
{
// Only apply argument transformation when the argument is not null, is mandatory, or disallows null as a value.
- //
+ //
// If we are binding default value for an unbound script parameter, this parameter is guaranteed not mandatory
// in the chosen parameter set. This is because:
// 1. If we use cmdlet binding for this script (CmdletParameterBinderController is used), then binding
- // default value to unbound parameters won't happen until after all mandatory parameters from the
+ // default value to unbound parameters won't happen until after all mandatory parameters from the
// chosen parameter set are handled. Therefore, the unbound parameter we are dealing with here won't
// be mandatory in the chosen parameter set.
// 2. If we use script binding (ScriptParameterBinderController is used), then parameters won't have the
@@ -488,7 +488,7 @@ namespace System.Management.Automation
if (!ShouldContinueUncoercedBind(parameter, parameterMetadata, flags, ref parameterValue))
{
// Don't attempt the bind because the value
- // is not of the correct
+ // is not of the correct
// type for the parameter.
break;
}
@@ -551,7 +551,7 @@ namespace System.Management.Automation
}
}
- // If the is null, an empty string, or an empty collection,
+ // If the is null, an empty string, or an empty collection,
// check the parameter metadata to ensure that binding can continue
// This method throws an appropriate ParameterBindingException
// if binding cannot continue. If it returns then binding can
@@ -562,7 +562,7 @@ namespace System.Management.Automation
}
}
- // Write out obsolete parameter warning only if
+ // Write out obsolete parameter warning only if
// 1. We are binding parameters for a simple function/script
// 2. We are not binding a default parameter value
@@ -580,9 +580,9 @@ namespace System.Management.Automation
if (mshCommandRuntime != null)
{
// Write out warning only if we are in the context of MshCommandRuntime.
- // This is because
+ // This is because
// 1. The overload method WriteWarning(WarningRecord) is only available in MshCommandRuntime;
- // 2. We write out warnings for obsolete commands and obsolete cmdlet parameters only when in
+ // 2. We write out warnings for obsolete commands and obsolete cmdlet parameters only when in
// the context of MshCommandRuntime. So we do it here to keep consistency.
mshCommandRuntime.WriteWarning(new WarningRecord(FQIDParameterObsolete, obsoleteWarning));
}
@@ -685,30 +685,30 @@ namespace System.Management.Automation
} // BindParameter
///
- /// This method ensures that if the parameter is mandatory, and AllowNull, AllowEmptyString,
+ /// This method ensures that if the parameter is mandatory, and AllowNull, AllowEmptyString,
/// and/or AllowEmptyCollection is not specified, then argument is not null or empty.
///
- ///
+ ///
///
/// The argument token.
///
- ///
+ ///
///
/// The metadata for the parameter.
///
- ///
+ ///
///
/// The type of the argument to validate against.
///
- ///
+ ///
///
/// The value that will be bound to the parameter.
///
- ///
+ ///
///
/// If true, then elements of collections will be validated against the metadata.
///
- ///
+ ///
private void ValidateNullOrEmptyArgument(
CommandParameterInternal parameter,
CompiledCommandParameter parameterMetadata,
@@ -739,7 +739,7 @@ namespace System.Management.Automation
if (argumentType == typeof(string))
{
- // Since the parameter is of type string, verify that either the argument
+ // Since the parameter is of type string, verify that either the argument
// is not null and not empty or that the parameter can accept null or empty.
string stringParamValue = parameterValue as string;
Diagnostics.Assert(
@@ -897,7 +897,7 @@ namespace System.Management.Automation
if (encodedValue == null || coercionRequired)
{
// Don't attempt the bind because the
- // PSObject BaseObject is not of the correct
+ // PSObject BaseObject is not of the correct
// type for the parameter.
return false;
}
@@ -960,42 +960,42 @@ namespace System.Management.Automation
///
/// Coerces the argument type to the parameter value type as needed.
///
- ///
+ ///
///
/// The argument as was specified by the command line.
///
- ///
+ ///
///
/// The name of the parameter that the coercion is taking place to bind to. It is
/// used only for error reporting.
///
- ///
+ ///
///
/// The type to coerce the value to.
///
- ///
+ ///
///
/// The information about the collection type, like element type, etc.
///
- ///
+ ///
///
/// The current value of the argument.
///
- ///
+ ///
///
/// The value of the argument in the type of the parameter.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the argument value is missing and the parameter is not a bool or SwitchParameter.
/// or
/// If the argument value could not be converted to the parameter type.
///
- ///
+ ///
private object CoerceTypeAsNeeded(
CommandParameterInternal argument,
string parameterName,
@@ -1052,7 +1052,7 @@ namespace System.Management.Automation
bindingTracer.WriteLine("Trying to convert argument value from {0} to {1}", argumentType, toType);
- // Likewise shortcircuit the case were the user has asked for a shell object.
+ // Likewise shortcircuit the case were the user has asked for a shell object.
// He always gets a shell object regardless of the actual type of the object.
if (toType == typeof(PSObject))
{
@@ -1094,7 +1094,7 @@ namespace System.Management.Automation
}
// NTRAID#Windows OS Bugs - - Nana
- // If we have a boolean, we have to ensure that it can
+ // If we have a boolean, we have to ensure that it can
// only take parameters of type boolean or numbers with
// 0 indicating false and everything else indicating true
// Anything else passed should be reported as an error
@@ -1170,7 +1170,7 @@ namespace System.Management.Automation
else
{
// Invalid types which cannot be associated with a bool
- // Since there is a catch block which appropriately
+ // Since there is a catch block which appropriately
// handles this situation we just throw an exception here
//throw new PSInvalidCastException();
ParameterBindingException pbe =
@@ -1425,56 +1425,56 @@ namespace System.Management.Automation
}
///
- /// Takes the current value specified and converts or adds it to
+ /// Takes the current value specified and converts or adds it to
/// a collection of the appropriate type.
///
- ///
+ ///
///
/// The argument the current value comes from. Used for error reporting.
///
- ///
+ ///
///
/// The name of the parameter.
///
- ///
+ ///
///
/// The collection type information to which the current value will be
/// encoded.
///
- ///
+ ///
///
/// The type the current value will be converted to.
///
- ///
+ ///
///
/// The value to be encoded.
///
- ///
+ ///
///
/// If true, the element will be coerced into the appropriate type
/// for the collection. If false, and the element isn't of the appropriate
/// type then the out parameter will
/// be true.
///
- ///
+ ///
///
/// This out parameter will be true if
/// is true and the value could not be encoded into the collection because it
/// requires coercion to the element type.
///
- ///
+ ///
///
/// A collection of the appropriate type containing the specified value.
///
- ///
+ ///
///
/// If is a collection and one of its values
/// cannot be coerced into the appropriate type.
/// or
- /// A collection of the appropriate
+ /// A collection of the appropriate
/// could not be created.
///
- ///
+ ///
[SuppressMessage("Microsoft.Maintainability", "CA1505:AvoidUnmaintainableCode")]
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling", Justification = "Consider Simplyfing it")]
private object EncodeCollection(
@@ -1527,7 +1527,7 @@ namespace System.Management.Automation
IList resultAsIList = null;
MethodInfo addMethod = null;
- // We must special case System.Array to be like an object array since it is an
+ // We must special case System.Array to be like an object array since it is an
// abstract base class and cannot be created in the IList path below.
bool isSystemDotArray = (toType == typeof(System.Array));
@@ -1702,7 +1702,7 @@ namespace System.Management.Automation
}
// NTRAID#Windows OS Bugs-966440-2004/05/05-JeffJon
- // This coercion can only go to a collection type. It cannot take a
+ // This coercion can only go to a collection type. It cannot take a
// collection type and coerce it into a scalar type.
// Now that the new collection instance has been created, coerce each element type
diff --git a/src/System.Management.Automation/engine/ParameterBinderController.cs b/src/System.Management.Automation/engine/ParameterBinderController.cs
index 9975e4c378..188b2abbe4 100644
--- a/src/System.Management.Automation/engine/ParameterBinderController.cs
+++ b/src/System.Management.Automation/engine/ParameterBinderController.cs
@@ -12,7 +12,7 @@ using System.Text;
namespace System.Management.Automation
{
///
- /// The base class for the parameter binder controllers. This class and
+ /// The base class for the parameter binder controllers. This class and
/// its derived classes control the interaction between the command processor
/// and the parameter binder(s). It holds the state of the arguments and parameters.
///
@@ -25,7 +25,7 @@ namespace System.Management.Automation
/// Constructs a parameter binder controller for the specified command
/// in the specified engine context.
///
- ///
+ ///
///
/// The invocation information about the code being run.
///
@@ -53,13 +53,13 @@ namespace System.Management.Automation
///
/// The engine context the command is running in.
///
- ///
+ ///
internal ExecutionContext Context { get; }
///
/// Gets the parameter binder for the command.
///
- ///
+ ///
internal ParameterBinderBase DefaultParameterBinder { get; private set; }
///
@@ -71,7 +71,7 @@ namespace System.Management.Automation
/// All the metadata associated with any of the parameters that
/// are available from the command.
///
- ///
+ ///
internal MergedCommandParameterMetadata BindableParameters
{
get { return _bindableParameters; }
@@ -81,14 +81,14 @@ namespace System.Management.Automation
///
/// A list of the unbound parameters for the command.
///
- ///
+ ///
protected List UnboundParameters { get; set; }
///
/// A collection of the bound parameters for the command. The collection is
/// indexed based on the name of the parameter.
///
- ///
+ ///
protected Dictionary BoundParameters { get; } = new Dictionary(StringComparer.OrdinalIgnoreCase);
internal CommandLineParameters CommandLineParameters
@@ -124,21 +124,21 @@ namespace System.Management.Automation
///
/// A collection of the arguments that have been bound
///
- ///
+ ///
protected Dictionary BoundArguments { get; } = new Dictionary(StringComparer.OrdinalIgnoreCase);
///
/// Reparses the unbound arguments using the parameter metadata of the
- /// specified parameter binder as the parsing guide.
+ /// specified parameter binder as the parsing guide.
///
- ///
+ ///
///
/// If a parameter token is not matched with an argument and its not a bool or
/// SwitchParameter.
/// Or
/// The name of the argument matches more than one parameter.
///
- ///
+ ///
internal void ReparseUnboundArguments()
{
Collection result = new Collection();
@@ -199,7 +199,7 @@ namespace System.Management.Automation
if (nextArgument.ParameterNameSpecified)
{
- // Since we have a valid parameter we need to see if the next argument is
+ // Since we have a valid parameter we need to see if the next argument is
// an argument value for that parameter or a parameter itself.
MergedCompiledCommandParameter nextMatchingParameter =
@@ -289,16 +289,16 @@ namespace System.Management.Automation
/// The argument looks like a parameter if it is a string
/// and starts with a dash.
///
- ///
+ ///
///
/// The argument to check.
///
- ///
+ ///
///
- /// True if the argument is a string and starts with a dash,
+ /// True if the argument is a string and starts with a dash,
/// or false otherwise.
///
- ///
+ ///
internal static bool ArgumentLooksLikeParameter(string arg)
{
bool result = false;
@@ -316,15 +316,15 @@ namespace System.Management.Automation
/// based on whether the arguments look like parameters. The CommandParameterInternal instances then
/// get added to the specified command processor.
///
- ///
+ ///
///
/// The command processor instance to add the reparsed parameters to.
///
- ///
+ ///
///
/// The arguments that require reparsing.
///
- ///
+ ///
internal static void AddArgumentsToCommandProcessor(CommandProcessorBase commandProcessor, object[] arguments)
{
if ((arguments != null) && (arguments.Length > 0))
@@ -390,20 +390,20 @@ namespace System.Management.Automation
///
/// Bind the argument to the specified parameter
///
- ///
+ ///
///
/// The argument to be bound.
///
- ///
+ ///
///
/// The flags for type coercion, validation, and script block binding.
///
- ///
+ ///
///
/// True if the parameter was successfully bound. False if does not have the
/// flag ParameterBindingFlags.ShouldCoerceType and the type does not match the parameter type.
///
- ///
+ ///
///
/// If argument transformation fails.
/// or
@@ -415,7 +415,7 @@ namespace System.Management.Automation
/// or
/// The parameter has already been bound.
///
- ///
+ ///
internal virtual bool BindParameter(
CommandParameterInternal argument,
ParameterBindingFlags flags)
@@ -461,46 +461,46 @@ namespace System.Management.Automation
///
/// Derived classes need to define the binding of multiple arguments.
///
- ///
+ ///
///
/// The arguments to be bound.
///
- ///
+ ///
///
/// The arguments which are still not bound.
///
- ///
+ ///
internal abstract Collection BindParameters(Collection parameters);
///
/// Bind the argument to the specified parameter
///
- ///
+ ///
///
/// The parameter set used to bind the arguments.
///
- ///
+ ///
///
/// The argument to be bound.
///
- ///
+ ///
///
/// The metadata for the parameter to bind the argument to.
///
- ///
+ ///
///
/// Flags for type coercion and validation of the arguments.
///
- ///
+ ///
///
- /// True if the parameter was successfully bound. False if
+ /// True if the parameter was successfully bound. False if
/// specifies no type coercion and the type does not match the parameter type.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If argument transformation fails.
/// or
@@ -510,7 +510,7 @@ namespace System.Management.Automation
/// or
/// If the binding to the parameter fails.
///
- ///
+ ///
internal virtual bool BindParameter(
uint parameterSets,
CommandParameterInternal argument,
@@ -547,34 +547,34 @@ namespace System.Management.Automation
///
/// Binds the unbound arguments to positional parameters
///
- ///
+ ///
///
/// The unbound arguments to attempt to bind as positional arguments.
///
- ///
+ ///
///
/// The current parameter set flags that are valid.
///
- ///
+ ///
///
/// The parameter set to use to disambiguate parameters that have the same position
///
- ///
+ ///
///
/// Returns the underlying parameter binding exception if any was generated.
///
- ///
+ ///
///
/// The remaining arguments that have not been bound.
///
- ///
+ ///
///
/// It is assumed that the unboundArguments parameter has already been processed
/// for this parameter binder. All named parameters have been paired with their
/// values. Any arguments that don't have a name are considered positional and
/// will be processed in this method.
///
- ///
+ ///
///
/// If multiple parameters were found for the same position in the specified
/// parameter set.
@@ -682,7 +682,7 @@ namespace System.Management.Automation
if (!aParameterWasBound)
{
- // Try the non-default parameter sets
+ // Try the non-default parameter sets
// without type coercion.
aParameterWasBound =
@@ -714,7 +714,7 @@ namespace System.Management.Automation
if (!aParameterWasBound)
{
- // Try the non-default parameter sets
+ // Try the non-default parameter sets
// with type coercion.
aParameterWasBound =
@@ -742,7 +742,7 @@ namespace System.Management.Automation
}
}
- // Now for any arguments that were not processed, add them to
+ // Now for any arguments that were not processed, add them to
// the result
for (int index = unboundArgumentsIndex; index < unboundArgumentsCollection.Count; ++index)
@@ -765,15 +765,15 @@ namespace System.Management.Automation
/// This method only updates the collections contained in the dictionary, not the dictionary
/// itself to contain only the parameters that are in the specified parameter set.
///
- ///
+ ///
///
/// The sorted dictionary of positional parameters.
///
- ///
+ ///
///
/// Valid parameter sets
///
- ///
+ ///
internal static void UpdatePositionalDictionary(
SortedDictionary> positionalParameterDictionary,
uint validParameterSets)
@@ -989,12 +989,12 @@ namespace System.Management.Automation
/// Gets the unbound positional parameters in a sorted dictionary in the order of their
/// positions.
///
- ///
+ ///
///
/// The sorted dictionary of MergedCompiledCommandParameter metadata with the position
- /// as the key.
+ /// as the key.
///
- ///
+ ///
internal static SortedDictionary> EvaluateUnboundPositionalParameters(
ICollection unboundParameters, uint validParameterSetFlag)
{
diff --git a/src/System.Management.Automation/engine/ParameterInfo.cs b/src/System.Management.Automation/engine/ParameterInfo.cs
index fc2be33dbe..ecee699ccf 100644
--- a/src/System.Management.Automation/engine/ParameterInfo.cs
+++ b/src/System.Management.Automation/engine/ParameterInfo.cs
@@ -18,19 +18,19 @@ namespace System.Management.Automation
/// Constructs the parameter info using the specified aliases, attributes, and
/// parameter set metadata
///
- ///
+ ///
///
/// The parameter metadata to retrieve the parameter information from.
///
- ///
+ ///
///
/// The parameter set flag to get the parameter information from.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CommandParameterInfo(
CompiledCommandParameter parameter,
uint parameterSetFlag)
@@ -66,7 +66,7 @@ namespace System.Management.Automation
///
/// Gets whether or not the parameter is a dynamic parameter.
///
- ///
+ ///
///
/// True if the parameter is dynamic, or false otherwise.
///
@@ -75,7 +75,7 @@ namespace System.Management.Automation
///
/// Gets whether or not the parameter is mandatory.
///
- ///
+ ///
///
/// True if the parameter is mandatory, or false otherwise.
///
diff --git a/src/System.Management.Automation/engine/ParameterSetInfo.cs b/src/System.Management.Automation/engine/ParameterSetInfo.cs
index 7b66ce7ce5..0b17703a39 100644
--- a/src/System.Management.Automation/engine/ParameterSetInfo.cs
+++ b/src/System.Management.Automation/engine/ParameterSetInfo.cs
@@ -24,31 +24,31 @@ namespace System.Management.Automation
/// Constructs the parameter set information using the specified parameter name,
/// and type metadata.
///
- ///
+ ///
///
/// The formal name of the parameter.
///
- ///
+ ///
///
/// True if the parameter set is the default parameter set, or false otherwise.
///
- ///
+ ///
///
/// The bit that specifies the parameter set in the type metadata.
///
- ///
+ ///
///
/// The type metadata about the cmdlet.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CommandParameterSetInfo(
string name,
bool isDefaultParameterSet,
@@ -100,7 +100,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
/// This boolean is used to suppress common workflow parameters (or) display
@@ -128,13 +128,13 @@ namespace System.Management.Automation
}
///
- /// GenerateParameters parameters in display order
+ /// GenerateParameters parameters in display order
/// ie., Positional followed by
/// Named Mandatory (in alpha numeric) followed by
/// Named (in alpha numeric).
- ///
+ ///
/// Callers use and
- /// to handle
+ /// to handle
/// syntax generation etc.
///
///
diff --git a/src/System.Management.Automation/engine/ParameterSetPromptingData.cs b/src/System.Management.Automation/engine/ParameterSetPromptingData.cs
index 73b4e12a9e..a04ba12930 100644
--- a/src/System.Management.Automation/engine/ParameterSetPromptingData.cs
+++ b/src/System.Management.Automation/engine/ParameterSetPromptingData.cs
@@ -10,7 +10,7 @@ namespace System.Management.Automation
/// This class holds the data for missing mandatory parameters for each parameter set as we
/// are trying to process which parameter set to use based on the missing mandatory parameters
///
- ///
+ ///
internal class ParameterSetPromptingData
{
internal ParameterSetPromptingData(uint parameterSet, bool isDefaultSet)
@@ -22,13 +22,13 @@ namespace System.Management.Automation
///
/// True if this parameter set represents the default parameter set
///
- ///
+ ///
internal bool IsDefaultSet { get; }
///
/// The parameter set this data represents
///
- ///
+ ///
internal uint ParameterSet { get; } = 0;
///
diff --git a/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs b/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs
index a75bd7e106..0a10758ecc 100644
--- a/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs
+++ b/src/System.Management.Automation/engine/ParameterSetSpecificMetadata.cs
@@ -12,15 +12,15 @@ namespace System.Management.Automation
/// Constructs an instance of the ParameterSetSpecificMetadata using the instance of the attribute
/// that is specified.
///
- ///
+ ///
///
/// The attribute to be compiled.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal ParameterSetSpecificMetadata(ParameterAttribute attribute)
{
if (attribute == null)
@@ -77,7 +77,7 @@ namespace System.Management.Automation
///
/// Returns true if the parameter is positional for this parameter set, or false otherwise.
///
- ///
+ ///
internal bool IsPositional
{
get
@@ -138,14 +138,14 @@ namespace System.Management.Automation
/// Gets or sets the value that tells whether this parameter set
/// data is for the "all" parameter set
///
- ///
+ ///
internal bool IsInAllSets { get; set; }
///
/// Gets the parameter set flag that represents the parameter set
/// that this data is valid for.
///
- ///
+ ///
internal uint ParameterSetFlag { get; set; }
///
@@ -156,22 +156,22 @@ namespace System.Management.Automation
/// If both HelpMessageBaseName and HelpMessageResourceId are not set, the help info is
/// set to HelpMessage
///
- ///
+ ///
///
/// Help info about the parameter
///
- ///
+ ///
///
/// If the value of the specified resource is not a string and
/// HelpMessage is not set.
///
- ///
+ ///
///
/// If only one of HelpMessageBaseName and HelpMessageResourceId is set
/// OR if no usable resources have been found, and
/// there are no neutral culture resources and HelpMessage is not set.
///
- ///
+ ///
internal string GetHelpMessage(Cmdlet cmdlet)
{
string helpInfo = null;
diff --git a/src/System.Management.Automation/engine/PathInterfaces.cs b/src/System.Management.Automation/engine/PathInterfaces.cs
index 86136db54c..023c08b5d9 100644
--- a/src/System.Management.Automation/engine/PathInterfaces.cs
+++ b/src/System.Management.Automation/engine/PathInterfaces.cs
@@ -27,19 +27,19 @@ namespace System.Management.Automation
///
/// Internal constructor for the PathIntrinsics facade.
///
- ///
+ ///
///
/// The session for which this is a facade.
///
- ///
+ ///
///
/// This is only public for testing purposes.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PathIntrinsics(SessionStateInternal sessionState)
{
if (sessionState == null)
@@ -57,7 +57,7 @@ namespace System.Management.Automation
///
/// Gets the current location.
///
- ///
+ ///
///
/// If a location has not been set yet.
///
@@ -76,7 +76,7 @@ namespace System.Management.Automation
///
/// Gets the current location for a specific provider
///
- ///
+ ///
///
/// The name of the provider to get the current location for.
///
@@ -84,11 +84,11 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If refers to a provider that does not exist.
///
- ///
+ ///
///
/// If a current drive cannot be found for the provider
///
@@ -106,7 +106,7 @@ namespace System.Management.Automation
///
/// Gets the current location for the file system provider
///
- ///
+ ///
///
/// If a current drive cannot be found for the FileSystem provider
///
@@ -138,20 +138,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If does not exist, is not a container, or
/// resolved to multiple containers.
///
- ///
+ ///
///
/// If refers to a provider that does not exist.
///
- ///
+ ///
///
/// If refers to a drive that does not exist.
///
- ///
+ ///
///
/// If the provider associated with threw an
/// exception.
@@ -187,20 +187,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If does not exist, is not a container, or
/// resolved to multiple containers.
///
- ///
+ ///
///
/// If refers to a provider that does not exist.
///
- ///
+ ///
///
/// If refers to a drive that does not exist.
///
- ///
+ ///
///
/// If the provider associated with threw an
/// exception.
@@ -235,30 +235,30 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
@@ -313,15 +313,15 @@ namespace System.Management.Automation
/// or
/// A stack was not found with the specified name.
///
- ///
+ ///
///
/// If the path on the stack refers to a provider that does not exist.
///
- ///
+ ///
///
/// If the path on the stack refers to a drive that does not exist.
///
- ///
+ ///
///
/// If the provider associated with the path on the stack threw an
/// exception.
@@ -338,7 +338,7 @@ namespace System.Management.Automation
///
/// Gets the location stack and all the locations on it.
///
- ///
+ ///
///
/// The stack ID of the stack to get the stack info for.
///
@@ -388,31 +388,31 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
- /// If is a provider-qualified path
+ /// If is a provider-qualified path
/// and the specified provider does not exist.
///
- ///
+ ///
///
/// If is a drive-qualified path and
/// the specified drive does not exist.
///
- ///
+ ///
///
/// If the provider throws an exception when its MakePath gets
/// called.
///
- ///
+ ///
///
/// If the provider does not support multiple items.
///
- ///
+ ///
///
/// If the home location for the provider is not set and
/// starts with a "~".
///
- ///
+ ///
///
/// If does not contain wildcard characters and
/// could not be found.
@@ -445,26 +445,26 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
- /// If is a provider-qualified path
+ /// If is a provider-qualified path
/// and the specified provider does not exist.
///
- ///
+ ///
///
/// If the provider throws an exception when its MakePath gets
/// called.
///
- ///
+ ///
///
/// If the provider does not support multiple items.
///
- ///
+ ///
///
/// If the home location for the provider is not set and
/// starts with a "~".
///
- ///
+ ///
///
/// If does not contain wildcard characters and
/// could not be found.
@@ -499,35 +499,35 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider associated with the threw an
/// exception when building its path.
///
- ///
+ ///
///
/// If does not contain wildcard characters and
/// could not be found.
@@ -576,36 +576,36 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider associated with the threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If does not contain wildcard characters and
/// could not be found.
@@ -619,7 +619,7 @@ namespace System.Management.Automation
Provider.CmdletProvider providerInstance = null;
return PathResolver.GetGlobbedProviderPathsFromMonadPath(path, false, context, out provider, out providerInstance);
- } // GetResolvedProviderPathFromPSPath
+ } // GetResolvedProviderPathFromPSPath
///
/// Resolves a drive or provider qualified absolute or relative path that may contain
@@ -642,25 +642,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If references a provider that does not exist.
///
- ///
+ ///
///
/// If the references a provider that is not
/// a ContainerCmdletProvider.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If does not contain wildcard characters and
/// could not be found.
@@ -700,25 +700,25 @@ namespace System.Management.Automation
/// If , , or
/// is null.
///
- ///
+ ///
///
/// If references a provider that does not exist.
///
- ///
+ ///
///
/// If the references a provider that is not
/// a ContainerCmdletProvider.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If does not contain wildcard characters and
/// could not be found.
@@ -732,7 +732,7 @@ namespace System.Management.Automation
Provider.CmdletProvider providerInstance = null;
return PathResolver.GetGlobbedProviderPathsFromProviderPath(path, false, providerId, context, out providerInstance);
- } // GetResolvedProviderPathFromProviderPath
+ } // GetResolvedProviderPathFromProviderPath
///
/// Converts a drive or provider qualified absolute or relative path that may contain
@@ -751,30 +751,30 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception.
@@ -784,7 +784,7 @@ namespace System.Management.Automation
// The parameters will be verified by the path resolver
return PathResolver.GetProviderPath(path);
- } // GetUnresolvedProviderPathFromPSPath
+ } // GetUnresolvedProviderPathFromPSPath
///
/// Converts a drive or provider qualified absolute or relative path that may contain
@@ -812,30 +812,30 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
@@ -855,7 +855,7 @@ namespace System.Management.Automation
context.ThrowFirstErrorOrDoNothing();
return result;
- } // GetUnresolvedProviderPathFromPSPath
+ } // GetUnresolvedProviderPathFromPSPath
///
/// Converts a drive or provider qualified absolute or relative path that may contain
@@ -886,30 +886,30 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
@@ -1009,19 +1009,19 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If both and is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1060,19 +1060,19 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If both and is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1110,15 +1110,15 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1156,15 +1156,15 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1200,7 +1200,7 @@ namespace System.Management.Automation
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// to use default provider when needed.
///
@@ -1212,15 +1212,15 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1258,20 +1258,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1305,20 +1305,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1349,7 +1349,7 @@ namespace System.Management.Automation
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// to use default provider when needed.
///
@@ -1361,20 +1361,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1400,32 +1400,32 @@ namespace System.Management.Automation
/// Normalizes the path that was passed in and returns the normalized path
/// as a relative path to the basePath that was passed.
///
- ///
+ ///
///
/// An MSH path to an item. The item should exist
/// or the provider should write out an error.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
- /// A normalized path that is relative to the basePath that was passed.
+ /// A normalized path that is relative to the basePath that was passed.
///
///
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1444,36 +1444,36 @@ namespace System.Management.Automation
/// Normalizes the path that was passed in and returns the normalized path
/// as a relative path to the basePath that was passed.
///
- ///
+ ///
///
/// An MSH path to an item. The item should exist
/// or the provider should write out an error.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
- /// A normalized path that is relative to the basePath that was passed.
+ /// A normalized path that is relative to the basePath that was passed.
///
///
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1498,32 +1498,32 @@ namespace System.Management.Automation
///
/// Determines if the MSH path is a syntactically and semantically valid path for the provider.
///
- ///
+ ///
///
/// The path to validate.
///
- ///
+ ///
///
/// true if the object specified by path is syntactically and semantically valid, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1541,36 +1541,36 @@ namespace System.Management.Automation
///
/// Determines if the MSH path is a syntactically and semantically valid path for the provider.
///
- ///
+ ///
///
/// The path to validate.
///
- ///
+ ///
///
/// The context under which the call is being made.
///
- ///
+ ///
///
/// true if the object specified by path is syntactically and semantically valid, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
diff --git a/src/System.Management.Automation/engine/Pipe.cs b/src/System.Management.Automation/engine/Pipe.cs
index 431aea9894..4fcb21ca44 100644
--- a/src/System.Management.Automation/engine/Pipe.cs
+++ b/src/System.Management.Automation/engine/Pipe.cs
@@ -278,7 +278,7 @@ namespace System.Management.Automation.Internal
/// When a temporary pipe is used in the middle of execution, then we need to pass along
/// the error and warning variable list to hold the errors and warnings get written out
/// while the temporary pipe is being used.
- ///
+ ///
/// We don't need to pass along the out variable list because we don't care about the output
/// generated in the middle of execution.
///
@@ -571,7 +571,7 @@ namespace System.Management.Automation.Internal
}
///
- /// Removes all the objects from the Pipe.
+ /// Removes all the objects from the Pipe.
///
internal void Clear()
{
diff --git a/src/System.Management.Automation/engine/PositionalCommandParameter.cs b/src/System.Management.Automation/engine/PositionalCommandParameter.cs
index f2d4483dfe..d594af1a66 100644
--- a/src/System.Management.Automation/engine/PositionalCommandParameter.cs
+++ b/src/System.Management.Automation/engine/PositionalCommandParameter.cs
@@ -14,7 +14,7 @@ namespace System.Management.Automation
/// Constructs a container for the merged parameter metadata and
/// parameter set specific metadata for a positional parameter
///
- ///
+ ///
internal PositionalCommandParameter(MergedCompiledCommandParameter parameter)
{
Parameter = parameter;
diff --git a/src/System.Management.Automation/engine/ProgressRecord.cs b/src/System.Management.Automation/engine/ProgressRecord.cs
index fd9dfe00ae..b927bf9330 100644
--- a/src/System.Management.Automation/engine/ProgressRecord.cs
+++ b/src/System.Management.Automation/engine/ProgressRecord.cs
@@ -8,15 +8,15 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation
{
///
- ///
- /// Defines a data structure used to represent the status of an ongoing operation at a point in time.
- ///
+ ///
+ /// Defines a data structure used to represent the status of an ongoing operation at a point in time.
+ ///
///
///
- ///
+ ///
/// ProgressRecords are passed to ,
/// which, according to user preference, forwards that information on to the host for rendering to the user.
- ///
+ ///
///
///
@@ -27,25 +27,25 @@ namespace System.Management.Automation
#region Public API
///
- ///
+ ///
/// Initializes a new instance of the ProgressRecord class and defines the activity Id,
/// activity description, and status description.
- ///
+ ///
///
///
- ///
+ ///
/// A unique numeric key that identifies the activity to which this record applies.
- ///
+ ///
///
///
- ///
+ ///
/// A description of the activity for which progress is being reported.
- ///
+ ///
///
///
///
/// A description of the status of the activity.
- ///
+ ///
///
public
@@ -72,7 +72,7 @@ namespace System.Management.Automation
}
///
- /// Cloning constructor (all fields are value types - can treat our implementation of cloning as "deep" copy)
+ /// Cloning constructor (all fields are value types - can treat our implementation of cloning as "deep" copy)
///
///
internal ProgressRecord(ProgressRecord other)
@@ -94,7 +94,7 @@ namespace System.Management.Automation
{ }
///
- ///
+ ///
/// Gets the Id of the activity to which this record corresponds. Used as a 'key' for the
/// linking of subordinate activities.
///
@@ -113,24 +113,24 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Gets and sets the Id of the activity for which this record is a subordinate.
- ///
+ ///
///
///
- ///
+ ///
/// Used to allow chaining of progress records (such as when one installation invokes a child installation). UI:
/// normally not directly visible except as already displayed as its own activity. Usually a sub-activity will be
/// positioned below and to the right of its parent.
- ///
+ ///
/// A negative value (the default) indicates that the activity is not a subordinate.
- ///
+ ///
/// May not be the same as ActivityId.
- ///
- ///
- ///
+ ///
///
public
@@ -154,15 +154,15 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Gets and sets the description of the activity for which progress is being reported.
- ///
+ ///
///
///
- ///
+ ///
/// States the overall intent of whats being accomplished, such as "Recursively removing item c:\temp." Typically
/// displayed in conjunction with a progress bar.
- ///
+ ///
///
public
@@ -186,9 +186,9 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Gets and sets the current status of the operation, e.g., "35 of 50 items Copied." or "95% completed." or "100 files purged."
- ///
+ ///
///
public
@@ -212,9 +212,9 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Gets and sets the current operation of the many required to accomplish the activity (such as "copying foo.txt"). Normally displayed
- /// below its associated progress bar, e.g., "deleting file foo.bar"
+ /// below its associated progress bar, e.g., "deleting file foo.bar"
/// Set to null or empty in the case a sub-activity will be used to show the current operation.
///
///
@@ -238,10 +238,10 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Gets and sets the estimate of the percentage of total work for the activity that is completed. Typically displayed as a progress bar.
/// Set to a negative value to indicate that the percentage completed should not be displayed.
- ///
+ ///
///
public
@@ -270,17 +270,17 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Gets and sets the estimate of time remaining until this activity is completed. This can be based upon a measurement of time since
/// started and the percent complete or another approach deemed appropriate by the caller.
///
/// Normally displayed beside the progress bar, as "N seconds remaining."
- ///
+ ///
///
///
///
/// A value less than 0 means "don't display a time remaining."
- ///
+ ///
///
public
@@ -302,9 +302,9 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Gets and sets the type of record represented by this instance.
- ///
+ ///
///
public
@@ -329,16 +329,16 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// "parent = a id = b act = c stat = d cur = e pct = f sec = g type = h" where
/// a, b, c, d, e, f, and g are the values of ParentActivityId, ActivityId, Activity, StatusDescription,
/// CurrentOperation, PercentComplete, SecondsRemaining and RecordType properties.
- ///
+ ///
///
public override
@@ -429,28 +429,28 @@ namespace System.Management.Automation
}
/*
- * According to the spec of Checkpoint-Computer
+ * According to the spec of Checkpoint-Computer
* (http://cmdletdesigner/SpecViewer/Default.aspx?Project=PowerShell&Cmdlet=Checkpoint-Computer)
* we have percentage remaining = f(t) where
* f(inf) = 0%
* f(0) = 100%
* f(90) = = 10%
- *
+ *
* The spec talks about exponential decay, but function based on 1/x seems better:
- * f(t) = a / (T + b)
- *
+ * f(t) = a / (T + b)
+ *
* This by definition has f(inf) = 0, so we have to find a and b for the last 2 cases:
- * E1: f(0) = a / (0 + b) = 100
+ * E1: f(0) = a / (0 + b) = 100
* E2: f(T = 90) = a / (T + b) = 10
- *
+ *
* From E1 we have a = 100 * b, which we can use in E2:
* (100 * b) / (T + b) = 10
* 100 * b = 10 * T + 10 * b
* 90 * b = 10 * T
* b = T / 9
- *
+ *
* Some sample values (for T=90):
- * t | %rem
+ * t | %rem
* -----------
* 0 | 100.0%
* 5 | 66.6%
@@ -501,13 +501,13 @@ namespace System.Management.Automation
///
- /// Creates a ProgressRecord object from a PSObject property bag.
+ /// Creates a ProgressRecord object from a PSObject property bag.
/// PSObject has to be in the format returned by ToPSObjectForRemoting method.
///
/// PSObject to rehydrate
///
/// ProgressRecord rehydrated from a PSObject property bag
- ///
+ ///
///
/// Thrown if the PSObject is null.
///
@@ -564,9 +564,9 @@ namespace System.Management.Automation
///
- ///
+ ///
/// Defines two types of progress record that refer to the beginning (or middle) and end of an operation.
- ///
+ ///
///
public
@@ -579,7 +579,7 @@ namespace System.Management.Automation
/// A cmdlet can call WriteProgress with ProgressRecordType.Processing
/// as many times as it wishes. However, at the end of the operation,
/// it should call once more with ProgressRecordType.Completed.
- ///
+ ///
/// The first time that a host receives a progress record
/// for a given activity, it will typically display a progress
/// indicator for that activity. For each subsequent record
diff --git a/src/System.Management.Automation/engine/PropertyAccessor.cs b/src/System.Management.Automation/engine/PropertyAccessor.cs
index 279647f8c3..f6a166c069 100644
--- a/src/System.Management.Automation/engine/PropertyAccessor.cs
+++ b/src/System.Management.Automation/engine/PropertyAccessor.cs
@@ -37,7 +37,7 @@ namespace System.Management.Automation
{
#if CORECLR
Instance = Platform.IsInbox
- ? (ConfigPropertyAccessor) new RegistryAccessor()
+ ? (ConfigPropertyAccessor) new RegistryAccessor()
: new JsonConfigFileAccessor();
#else
Instance = new RegistryAccessor();
@@ -71,7 +71,7 @@ namespace System.Management.Automation
///
/// Existing Key = HKLM:\System\CurrentControlSet\Control\Session Manager\Environment
/// Proposed value = %ProgramFiles%\PowerShell\Modules by default
- ///
+ ///
/// Note: There is no setter because this value is immutable.
///
/// Module path values from the config file.
@@ -119,7 +119,7 @@ namespace System.Management.Automation
///
/// JSON configuration file accessor
///
- /// Reads from and writes to configuration files. The values stored were
+ /// Reads from and writes to configuration files. The values stored were
/// originally stored in the Windows registry.
///
internal class JsonConfigFileAccessor : ConfigPropertyAccessor
@@ -145,7 +145,7 @@ namespace System.Management.Automation
//
// Sets the per-user configuration directory
- // Note: This directory may or may not exist depending upon the
+ // Note: This directory may or may not exist depending upon the
// execution scenario. Writes will attempt to create the directory
// if it does not already exist.
//
@@ -160,7 +160,7 @@ namespace System.Management.Automation
internal override string GetModulePath(PropertyScope scope)
{
string scopeDirectory = psHomeConfigDirectory;
-
+
// Defaults to system wide.
if (PropertyScope.CurrentUser == scope)
{
@@ -180,12 +180,12 @@ namespace System.Management.Automation
///
/// Existing Key = HKCU and HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
/// Proposed value = Existing default execution policy if not already specified
- ///
+ ///
/// Schema:
/// {
/// "shell ID string","ExecutionPolicy" : "execution policy string"
/// }
- ///
+ ///
/// TODO: In a single config file, it might be better to nest this. It is unnecessary complexity until a need arises for more nested values.
///
/// Whether this is a system-wide or per-user setting.
@@ -251,7 +251,7 @@ namespace System.Management.Automation
///
/// Existing Key = HKLM\SOFTWARE\Microsoft\PowerShell\1\ShellIds
/// Proposed value = existing default. Probably "1"
- ///
+ ///
/// Schema:
/// {
/// "ConsolePrompting" : bool
@@ -273,7 +273,7 @@ namespace System.Management.Automation
///
/// Existing Key = HKLM\SOFTWARE\Microsoft\PowerShell
/// Proposed value = Existing default. Probably "0"
- ///
+ ///
/// Schema:
/// {
/// "DisablePromptToUpdateHelp" : bool
@@ -295,7 +295,7 @@ namespace System.Management.Automation
///
/// Existing Key = HKCU and HKLM\Software\Policies\Microsoft\Windows\PowerShell\UpdatableHelp
/// Proposed value = blank.This should be supported though
- ///
+ ///
/// Schema:
/// {
/// "DefaultSourcePath" : "path to local updatable help location"
@@ -347,7 +347,7 @@ namespace System.Management.Automation
}
catch (FileNotFoundException)
{
- // The file doesn't exist. Treat this the same way as if the
+ // The file doesn't exist. Treat this the same way as if the
// key was not present in the file.
}
catch (DirectoryNotFoundException)
@@ -387,7 +387,7 @@ namespace System.Management.Automation
JObject jsonObject = null;
// UTF8, BOM detection, and bufferSize are the same as the basic stream constructor.
- // The most important parameter here is the last one, which keeps the StreamReader
+ // The most important parameter here is the last one, which keeps the StreamReader
// (and FileStream) open during Dispose so that it can be reused for the write
// operation.
using (StreamReader streamRdr = new StreamReader(fs, Encoding.UTF8, true, 1024, true))
@@ -425,7 +425,7 @@ namespace System.Management.Automation
}
else
{
- // The file doesn't already exist and we want to write to it
+ // The file doesn't already exist and we want to write to it
// or it exists with no content.
// A new file will be created that contains only this value.
// If the file doesn't exist and a we don't want to write to it, no
@@ -441,7 +441,7 @@ namespace System.Management.Automation
}
}
- // Reset the stream position to the beginning so that the
+ // Reset the stream position to the beginning so that the
// changes to the file can be written to disk
fs.Seek(0, SeekOrigin.Begin);
@@ -454,7 +454,7 @@ namespace System.Management.Automation
jsonObject.WriteTo(jsonWriter);
// This trims the file if the file shrank. If the file grew,
- // it is a no-op. The purpose is to trim extraneous characters
+ // it is a no-op. The purpose is to trim extraneous characters
// from the file stream when the resultant JObject is smaller
// than the input JObject.
fs.SetLength(fs.Position);
@@ -527,7 +527,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -599,7 +599,7 @@ namespace System.Management.Automation
if (null != tempPrompt)
{
- return Convert.ToBoolean(tempPrompt, CultureInfo.InvariantCulture);
+ return Convert.ToBoolean(tempPrompt, CultureInfo.InvariantCulture);
}
else
{
@@ -685,8 +685,8 @@ namespace System.Management.Automation
}
///
- /// Reads a DWORD from the Registry. Exceptions are intentionally allowed to pass through to
- /// the caller because different classes and methods within the code base handle Registry
+ /// Reads a DWORD from the Registry. Exceptions are intentionally allowed to pass through to
+ /// the caller because different classes and methods within the code base handle Registry
/// exceptions differently. Some suppress exceptions and others pass them to the user.
///
///
@@ -719,8 +719,8 @@ namespace System.Management.Automation
}
///
- /// Exceptions are intentionally allowed to pass through to
- /// the caller because different classes and methods within the code base handle Registry
+ /// Exceptions are intentionally allowed to pass through to
+ /// the caller because different classes and methods within the code base handle Registry
/// exceptions differently. Some suppress exceptions and others pass them to the user.
///
///
@@ -739,8 +739,8 @@ namespace System.Management.Automation
}
///
- /// Exceptions are intentionally allowed to pass through to
- /// the caller because different classes and methods within the code base handle Registry
+ /// Exceptions are intentionally allowed to pass through to
+ /// the caller because different classes and methods within the code base handle Registry
/// exceptions differently. Some suppress exceptions and others pass them to the user.
///
///
@@ -776,8 +776,8 @@ namespace System.Management.Automation
}
///
- /// Exceptions are intentionally allowed to pass through to
- /// the caller because different classes and methods within the code base handle Registry
+ /// Exceptions are intentionally allowed to pass through to
+ /// the caller because different classes and methods within the code base handle Registry
/// exceptions differently. Some suppress exceptions and others pass them to the user.
///
///
diff --git a/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs
index fb16765678..d079a5c25d 100644
--- a/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs
+++ b/src/System.Management.Automation/engine/PropertyCmdletProviderInterfaces.cs
@@ -37,7 +37,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
internal PropertyCmdletProviderIntrinsics(Cmdlet cmdlet)
{
if (cmdlet == null)
@@ -60,7 +60,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
internal PropertyCmdletProviderIntrinsics(SessionStateInternal sessionState)
{
if (sessionState == null)
@@ -98,25 +98,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -144,7 +144,7 @@ namespace System.Management.Automation
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The properties to get from the item(s). If this is empty, null, or "*" all
/// properties should be returned.
@@ -158,25 +158,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -220,25 +220,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -259,11 +259,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The properties to get from the item(s). If this is empty, null, or "*" all
/// properties should be returned.
@@ -272,30 +272,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -336,25 +336,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -387,11 +387,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// A PSObject for each item that had the property set on it.
///
@@ -399,25 +399,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -460,25 +460,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -499,11 +499,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the set-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The properties that are to be set on the item
///
@@ -511,30 +511,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -571,25 +571,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -621,33 +621,33 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -685,25 +685,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -724,11 +724,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The properties to clear from the item(s).
///
@@ -736,30 +736,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -795,7 +795,7 @@ namespace System.Management.Automation
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -809,25 +809,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -860,7 +860,7 @@ namespace System.Management.Automation
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -869,11 +869,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// A PSObject for each item that the property was created on. The PSObject
/// contains the properties that were created.
@@ -882,25 +882,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -935,7 +935,7 @@ namespace System.Management.Automation
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -954,25 +954,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -995,18 +995,18 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the new-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property that should be created.
///
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -1015,30 +1015,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1073,29 +1073,29 @@ namespace System.Management.Automation
///
/// The property name that should be removed.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1121,37 +1121,37 @@ namespace System.Management.Automation
///
/// The property name that should be removed.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1177,7 +1177,7 @@ namespace System.Management.Automation
///
/// The property name that should be removed.
///
- ///
+ ///
///
/// The context under which the command is running.
///
@@ -1185,25 +1185,25 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1224,11 +1224,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the remove-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property that should be removed.
///
@@ -1236,30 +1236,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1292,7 +1292,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be renamed.
///
- ///
+ ///
///
/// The new name of the property.
///
@@ -1305,25 +1305,25 @@ namespace System.Management.Automation
/// If , ,
/// or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1352,7 +1352,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be renamed.
///
- ///
+ ///
///
/// The new name of the property.
///
@@ -1360,11 +1360,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// A PSObject for each item that is the new property after the rename.
///
@@ -1373,25 +1373,25 @@ namespace System.Management.Automation
/// If , ,
/// or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1422,7 +1422,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be renamed.
///
- ///
+ ///
///
/// The new name of the property.
///
@@ -1432,7 +1432,7 @@ namespace System.Management.Automation
///
///
///
- /// Nothing. A PSObject for each item that the property is renamed on is
+ /// Nothing. A PSObject for each item that the property is renamed on is
/// written to the context. The Shellobject contains the new property after the rename.
///
///
@@ -1440,25 +1440,25 @@ namespace System.Management.Automation
/// If , ,
/// or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1480,15 +1480,15 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the rename-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The source name of the property to be renamed.
///
- ///
+ ///
///
/// The new name of the property.
///
@@ -1496,30 +1496,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1553,7 +1553,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be copied.
///
- ///
+ ///
///
/// The path to the item(s) to copy the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -1572,25 +1572,25 @@ namespace System.Management.Automation
/// , or
/// is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1627,7 +1627,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be copied.
///
- ///
+ ///
///
/// The path to the item(s) to copy the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -1640,11 +1640,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// A PSObject for each item that is the new property after the copy.
///
@@ -1654,25 +1654,25 @@ namespace System.Management.Automation
/// , or
/// is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1712,7 +1712,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be copied.
///
- ///
+ ///
///
/// The path to the item(s) to copy the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -1727,7 +1727,7 @@ namespace System.Management.Automation
///
///
///
- /// Nothing. A PSObject for each item that the new property was copied to is
+ /// Nothing. A PSObject for each item that the new property was copied to is
/// written to the context.
///
///
@@ -1736,25 +1736,25 @@ namespace System.Management.Automation
/// , or
/// is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1782,15 +1782,15 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the copy-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The source name of the property to be copied.
///
- ///
+ ///
///
/// The path to the item(s) to copy the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -1803,30 +1803,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1861,7 +1861,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be moved.
///
- ///
+ ///
///
/// The path to the item(s) to move the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -1880,29 +1880,29 @@ namespace System.Management.Automation
/// , or
/// is null.
///
- ///
+ ///
///
/// If resolves to more than one item.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -1940,7 +1940,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be moved.
///
- ///
+ ///
///
/// The path to the item(s) to move the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -1953,11 +1953,11 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// A PSObject for each item that is the new property after the move.
///
@@ -1967,29 +1967,29 @@ namespace System.Management.Automation
/// , or
/// is null.
///
- ///
+ ///
///
/// If resolves to more than one item.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2029,7 +2029,7 @@ namespace System.Management.Automation
///
/// The source name of the property to be moved.
///
- ///
+ ///
///
/// The path to the item(s) to move the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -2053,29 +2053,29 @@ namespace System.Management.Automation
/// , or
/// is null.
///
- ///
+ ///
///
/// If resolves to more than one item.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -2103,15 +2103,15 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the copy-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The source name of the property to be moved.
///
- ///
+ ///
///
/// The path to the item(s) to move the property to. It can be the same
/// as the sourcePath as long as the destinationProperty is different.
@@ -2124,30 +2124,30 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
diff --git a/src/System.Management.Automation/engine/ProviderInterfaces.cs b/src/System.Management.Automation/engine/ProviderInterfaces.cs
index e0422e9b9f..e336ec4747 100644
--- a/src/System.Management.Automation/engine/ProviderInterfaces.cs
+++ b/src/System.Management.Automation/engine/ProviderInterfaces.cs
@@ -30,15 +30,15 @@ namespace System.Management.Automation
///
/// The facade for managing providers
///
- ///
+ ///
///
/// The session to which this is a facade.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CmdletProviderManagementIntrinsics(SessionStateInternal sessionState)
{
if (sessionState == null)
@@ -65,11 +65,11 @@ namespace System.Management.Automation
///
/// The provider information for the specified provider.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If the provider specified by is not currently
/// loaded.
@@ -96,16 +96,16 @@ namespace System.Management.Automation
///
/// The provider information for the specified provider.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is not PSSnapin-qualified and more than one provider
/// exists with the specified name.
///
- ///
+ ///
///
/// If the provider specified by is not currently
/// loaded.
@@ -152,7 +152,7 @@ namespace System.Management.Automation
///
/// True, if the provider has the capability, false otherwise.
///
- ///
+ ///
internal static bool CheckProviderCapabilities(
ProviderCapabilities capability,
ProviderInfo provider)
@@ -165,7 +165,7 @@ namespace System.Management.Automation
///
/// Gets the count of the number of providers that are loaded
///
- ///
+ ///
internal int Count
{
get
diff --git a/src/System.Management.Automation/engine/ProviderNames.cs b/src/System.Management.Automation/engine/ProviderNames.cs
index 159e68db65..c78aaf5648 100644
--- a/src/System.Management.Automation/engine/ProviderNames.cs
+++ b/src/System.Management.Automation/engine/ProviderNames.cs
@@ -6,7 +6,7 @@ namespace System.Management.Automation
{
///
/// Defines the names of the internal providers.
- /// Derived classes exist for custom and single shells. In the single
+ /// Derived classes exist for custom and single shells. In the single
/// shell the provider name includes the PSSnapin name. In custom
/// shells it does not.
///
diff --git a/src/System.Management.Automation/engine/ProxyCommand.cs b/src/System.Management.Automation/engine/ProxyCommand.cs
index 843e1d4b0b..5970026628 100644
--- a/src/System.Management.Automation/engine/ProxyCommand.cs
+++ b/src/System.Management.Automation/engine/ProxyCommand.cs
@@ -27,7 +27,7 @@ namespace System.Management.Automation
///
/// This method constructs a string representing the command specified by .
- /// The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.
+ /// The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.
///
///
/// An instance of CommandMetadata representing a command.
@@ -50,7 +50,7 @@ namespace System.Management.Automation
///
/// This method constructs a string representing the command specified by .
- /// The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.
+ /// The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.
///
///
/// An instance of CommandMetadata representing a command.
@@ -76,7 +76,7 @@ namespace System.Management.Automation
///
/// This method constructs a string representing the command specified by .
- /// The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.
+ /// The returned string is a ScriptBlock which can be used to configure a Cmdlet/Function in a Runspace.
///
///
/// An instance of CommandMetadata representing a command.
diff --git a/src/System.Management.Automation/engine/PseudoParameterBinder.cs b/src/System.Management.Automation/engine/PseudoParameterBinder.cs
index 8c5c41077c..d7275a68e7 100644
--- a/src/System.Management.Automation/engine/PseudoParameterBinder.cs
+++ b/src/System.Management.Automation/engine/PseudoParameterBinder.cs
@@ -9,7 +9,7 @@ namespace System.Management.Automation
///
/// The parameter binder for runtime-defined parameters which are declared through the RuntimeDefinedParameterDictionary.
///
- ///
+ ///
internal class RuntimeDefinedParameterBinder : ParameterBinderBase
{
#region ctor
@@ -18,19 +18,19 @@ namespace System.Management.Automation
/// Constructs the parameter binder with the specified type metadata. The binder is only valid
/// for a single instance of a bindable runtime-defined parameter collection and only for the duration of a command.
///
- ///
+ ///
///
/// The target runtime-defined parameter collection that the parameter values will be bound to.
///
- ///
+ ///
///
/// An instance of the command so that attributes can access the context.
///
- ///
+ ///
///
/// The Command line parameter collection to update...
///
- ///
+ ///
internal RuntimeDefinedParameterBinder(
RuntimeDefinedParameterDictionary target,
InternalCommand command,
@@ -71,7 +71,7 @@ namespace System.Management.Automation
/// Hides the base class Target property to ensure the target
/// is always a RuntimeDefinedParameterDictionary
///
- ///
+ ///
internal new RuntimeDefinedParameterDictionary Target
{
get
@@ -90,15 +90,15 @@ namespace System.Management.Automation
///
/// Gets the default value for the specified parameter
///
- ///
+ ///
///
/// The name of the parameter to get the value for.
///
- ///
+ ///
///
/// The value of the specified parameter
///
- ///
+ ///
internal override object GetDefaultParameterValue(string name)
{
object result = null;
diff --git a/src/System.Management.Automation/engine/PseudoParameters.cs b/src/System.Management.Automation/engine/PseudoParameters.cs
index 80a895165e..eb24051cbe 100644
--- a/src/System.Management.Automation/engine/PseudoParameters.cs
+++ b/src/System.Management.Automation/engine/PseudoParameters.cs
@@ -19,7 +19,7 @@ namespace System.Management.Automation
/// Instances of
/// should be returned to cmdlet implementations of
/// .
- ///
+ ///
/// It is permitted to subclass
/// but there is no established scenario for doing this, nor has it been tested.
///
@@ -38,25 +38,25 @@ namespace System.Management.Automation
///
/// Constructs a new instance of a runtime-defined parameter using the specified parameters.
///
- ///
+ ///
///
/// The name of the parameter. This cannot be null or empty.
///
- ///
+ ///
///
/// The type of the parameter value. Arguments will be coerced to this type before binding.
/// This parameter cannot be null.
///
- ///
+ ///
///
- /// Any parameter attributes that should be on the parameter. This can be any of the
+ /// Any parameter attributes that should be on the parameter. This can be any of the
/// parameter attributes including but not limited to Validate*Attribute, ExpandWildcardAttribute, etc.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
@@ -84,7 +84,7 @@ namespace System.Management.Automation
///
/// Gets or sets the name of the parameter
///
- ///
+ ///
///
/// If is null or empty on set.
///
@@ -106,13 +106,13 @@ namespace System.Management.Automation
private string _name = String.Empty;
///
- /// Gets or sets the type of the parameter.
+ /// Gets or sets the type of the parameter.
///
- ///
+ ///
///
/// Arguments will be coerced to this type before being bound.
///
- ///
+ ///
///
/// If is null.
///
@@ -135,11 +135,11 @@ namespace System.Management.Automation
private Type _parameterType;
///
- /// Gets or sets the value of the parameter.
+ /// Gets or sets the value of the parameter.
///
- ///
+ ///
///
- /// If the value is set prior to parameter binding, the value will be
+ /// If the value is set prior to parameter binding, the value will be
/// reset before each pipeline object is processed.
///
public object Value
@@ -165,7 +165,7 @@ namespace System.Management.Automation
///
/// Gets or sets the attribute collection that describes the parameter.
///
- ///
+ ///
///
/// This can be any attribute that can be applied to a normal parameter.
///
@@ -180,7 +180,7 @@ namespace System.Management.Automation
/// Instances of
/// should be returned to cmdlet implementations of
/// .
- ///
+ ///
/// It is permitted to subclass
/// but there is no established scenario for doing this, nor has it been tested.
///
diff --git a/src/System.Management.Automation/engine/QuestionMarkVariable.cs b/src/System.Management.Automation/engine/QuestionMarkVariable.cs
index 9741c08517..500dc846f2 100644
--- a/src/System.Management.Automation/engine/QuestionMarkVariable.cs
+++ b/src/System.Management.Automation/engine/QuestionMarkVariable.cs
@@ -13,7 +13,7 @@ namespace System.Management.Automation
///
/// Constructs an instance of the variable with execution context.
///
- ///
+ ///
///
/// Execution context
///
@@ -26,9 +26,9 @@ namespace System.Management.Automation
private readonly ExecutionContext _context;
///
- /// Gets or sets the value of the variable.
+ /// Gets or sets the value of the variable.
///
- ///
+ ///
public override object Value
{
get
diff --git a/src/System.Management.Automation/engine/ReflectionParameterBinder.cs b/src/System.Management.Automation/engine/ReflectionParameterBinder.cs
index 08a25b845b..aff84cdcbe 100644
--- a/src/System.Management.Automation/engine/ReflectionParameterBinder.cs
+++ b/src/System.Management.Automation/engine/ReflectionParameterBinder.cs
@@ -13,7 +13,7 @@ namespace System.Management.Automation
///
/// The parameter binder for real CLR objects that have properties and fields decorated with the parameter attributes.
///
- ///
+ ///
internal class ReflectionParameterBinder : ParameterBinderBase
{
#region ctor
@@ -22,15 +22,15 @@ namespace System.Management.Automation
/// Constructs the parameter binder with the specified type metadata. The binder is only valid
/// for a single instance of a bindable object and only for the duration of a command.
///
- ///
+ ///
///
/// The target object that the parameter values will be bound to.
///
- ///
+ ///
///
/// An instance of the command so that attributes can access the context.
///
- ///
+ ///
internal ReflectionParameterBinder(
object target,
Cmdlet command)
@@ -42,19 +42,19 @@ namespace System.Management.Automation
/// Constructs the parameter binder with the specified type metadata. The binder is only valid
/// for a single instance of a bindable object and only for the duration of a command.
///
- ///
+ ///
///
/// The target object that the parameter values will be bound to.
///
- ///
+ ///
///
/// An instance of the command so that attributes can access the context.
///
- ///
+ ///
///
/// The dictionary to use to record the parameters set by this object...
///
- ///
+ ///
internal ReflectionParameterBinder(
object target,
Cmdlet command,
@@ -73,19 +73,19 @@ namespace System.Management.Automation
///
/// Gets the default value for the specified parameter
///
- ///
+ ///
///
/// The name of the parameter to get the default value of.
///
- ///
+ ///
///
/// The default value of the specified parameter.
///
- ///
+ ///
///
/// If the ETS call to get the property value throws an exception.
///
- ///
+ ///
internal override object GetDefaultParameterValue(string name)
{
try
diff --git a/src/System.Management.Automation/engine/ScopedItemSearcher.cs b/src/System.Management.Automation/engine/ScopedItemSearcher.cs
index 166d74e3cc..8e9e9e0708 100644
--- a/src/System.Management.Automation/engine/ScopedItemSearcher.cs
+++ b/src/System.Management.Automation/engine/ScopedItemSearcher.cs
@@ -10,11 +10,11 @@ namespace System.Management.Automation
/// Enumerates the items matching a particular name in the scopes specified using
/// the appropriate scoping lookup rules.
///
- ///
+ ///
///
/// The type of items that the derived class returns.
///
- ///
+ ///
internal abstract class ScopedItemSearcher : IEnumerator, IEnumerable
{
#region ctor
@@ -22,20 +22,20 @@ namespace System.Management.Automation
///
/// Constructs a scoped item searcher.
///
- ///
+ ///
///
/// The state of the engine instance to enumerate through the scopes.
///
- ///
+ ///
///
/// The parsed name of the item to lookup.
///
- ///
+ ///
///
/// If or
/// is null.
///
- ///
+ ///
internal ScopedItemSearcher(
SessionStateInternal sessionState,
VariablePath lookupPath)
@@ -62,11 +62,11 @@ namespace System.Management.Automation
///
/// Gets the current object as an IEnumerator
///
- ///
+ ///
///
/// The current object as an IEnumerator.
///
- ///
+ ///
System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator()
{
return this;
@@ -81,11 +81,11 @@ namespace System.Management.Automation
///
/// Moves the enumerator to the next matching scoped item.
///
- ///
+ ///
///
/// True if another matching scoped item was found, or false otherwise.
///
- ///
+ ///
public bool MoveNext()
{
bool result = true;
@@ -122,7 +122,7 @@ namespace System.Management.Automation
///
/// Gets the current scoped item
///
- ///
+ ///
T IEnumerator.Current
{
@@ -160,25 +160,25 @@ namespace System.Management.Automation
///
/// Derived classes override this method to return their
- /// particular type of scoped item.
+ /// particular type of scoped item.
///
- ///
+ ///
///
/// The scope to look the item up in.
///
- ///
+ ///
///
/// The name of the item to retrieve.
///
- ///
+ ///
///
/// The scope item that the derived class should return.
///
- ///
+ ///
///
/// True if the scope item was found or false otherwise.
///
- ///
+ ///
protected abstract bool GetScopeItem(
SessionStateScope scope,
VariablePath name,
@@ -189,7 +189,7 @@ namespace System.Management.Automation
///
/// Gets the lookup scope that the Current item was found in.
///
- ///
+ ///
internal SessionStateScope CurrentLookupScope
{
get { return _currentScope; }
@@ -200,7 +200,7 @@ namespace System.Management.Automation
///
/// Gets the scope in which the search begins.
///
- ///
+ ///
internal SessionStateScope InitialScope
{
get { return _initialScope; }
@@ -279,25 +279,25 @@ namespace System.Management.Automation
///
/// Derived classes override this method to return their
- /// particular type of scoped item.
+ /// particular type of scoped item.
///
- ///
+ ///
///
/// The scope to look the item up in.
///
- ///
+ ///
///
/// The name of the item to retrieve.
///
- ///
+ ///
///
/// The scope item that the derived class should return.
///
- ///
+ ///
///
/// True if the scope item was found or false otherwise.
///
- ///
+ ///
protected override bool GetScopeItem(
SessionStateScope scope,
VariablePath name,
@@ -338,25 +338,25 @@ namespace System.Management.Automation
///
/// Derived classes override this method to return their
- /// particular type of scoped item.
+ /// particular type of scoped item.
///
- ///
+ ///
///
/// The scope to look the item up in.
///
- ///
+ ///
///
/// The name of the item to retrieve.
///
- ///
+ ///
///
/// The scope item that the derived class should return.
///
- ///
+ ///
///
/// True if the scope item was found or false otherwise.
///
- ///
+ ///
protected override bool GetScopeItem(
SessionStateScope scope,
VariablePath name,
@@ -401,25 +401,25 @@ namespace System.Management.Automation
///
/// Derived classes override this method to return their
- /// particular type of scoped item.
+ /// particular type of scoped item.
///
- ///
+ ///
///
/// The scope to look the item up in.
///
- ///
+ ///
///
/// The name of the item to retrieve.
///
- ///
+ ///
///
/// The scope item that the derived class should return.
///
- ///
+ ///
///
/// True if the scope item was found or false otherwise.
///
- ///
+ ///
protected override bool GetScopeItem(
SessionStateScope scope,
VariablePath path,
@@ -490,25 +490,25 @@ namespace System.Management.Automation
///
/// Derived classes override this method to return their
- /// particular type of scoped item.
+ /// particular type of scoped item.
///
- ///
+ ///
///
/// The scope to look the item up in.
///
- ///
+ ///
///
/// The name of the item to retrieve.
///
- ///
+ ///
///
/// The scope item that the derived class should return.
///
- ///
+ ///
///
/// True if the scope item was found or false otherwise.
///
- ///
+ ///
protected override bool GetScopeItem(
SessionStateScope scope,
VariablePath name,
diff --git a/src/System.Management.Automation/engine/ScriptCommandProcessor.cs b/src/System.Management.Automation/engine/ScriptCommandProcessor.cs
index f023fd1b53..dcd9d7af4a 100644
--- a/src/System.Management.Automation/engine/ScriptCommandProcessor.cs
+++ b/src/System.Management.Automation/engine/ScriptCommandProcessor.cs
@@ -53,14 +53,14 @@ namespace System.Management.Automation
protected bool _rethrowExitException;
///
- /// This indicates whether exit is called during the execution of
- /// script block.
+ /// This indicates whether exit is called during the execution of
+ /// script block.
///
///
- /// Exit command can be executed in any of begin/process/end blocks.
- ///
+ /// Exit command can be executed in any of begin/process/end blocks.
+ ///
/// If exit is called in one block (for example, begin), any subsequent
- /// blocks (for example, process and end) should not be executed.
+ /// blocks (for example, process and end) should not be executed.
///
protected bool _exitWasCalled;
@@ -85,8 +85,8 @@ namespace System.Management.Automation
}
///
- /// Helper function for setting up command object and commandRuntime object
- /// for script command processor.
+ /// Helper function for setting up command object and commandRuntime object
+ /// for script command processor.
///
protected void CommonInitialization(ScriptBlock scriptBlock, ExecutionContext context, bool useLocalScope, CommandOrigin origin, SessionStateInternal sessionState)
{
@@ -101,7 +101,7 @@ namespace System.Management.Automation
ScriptCommand scriptCommand = new ScriptCommand { CommandInfo = this.CommandInfo };
this.Command = scriptCommand;
- // WinBlue: 219115
+ // WinBlue: 219115
// Set the command origin for the new ScriptCommand object since we're not
// going through command discovery here where it's usually set.
this.Command.CommandOriginInternal = origin;
@@ -161,74 +161,74 @@ namespace System.Management.Automation
}
///
- /// This class implements a command processor for script related commands.
+ /// This class implements a command processor for script related commands.
///
///
- ///
+ ///
/// 1. Usage scenarios
- ///
- /// ScriptCommandProcessor is used for four kinds of commands.
- ///
+ ///
+ /// ScriptCommandProcessor is used for four kinds of commands.
+ ///
/// a. Functions and filters
- ///
- /// For example,
- ///
+ ///
+ /// For example,
+ ///
/// function foo($a) {$a}
/// foo "my text"
- ///
- /// Second command is an example of a function invocation.
- ///
- /// In this case, a FunctionInfo object is provided while constructing
- /// command processor.
- ///
+ ///
+ /// Second command is an example of a function invocation.
+ ///
+ /// In this case, a FunctionInfo object is provided while constructing
+ /// command processor.
+ ///
/// b. Script File
- ///
+ ///
/// For example,
- ///
+ ///
/// . .\my.ps1
- ///
- /// In this case, a ExternalScriptInfo or ScriptInfo object is provided
- /// while constructing command processor.
- ///
+ ///
+ /// In this case, a ExternalScriptInfo or ScriptInfo object is provided
+ /// while constructing command processor.
+ ///
/// c. ScriptBlock
- ///
- /// For example,
- ///
+ ///
+ /// For example,
+ ///
/// . {$a = 5}
- ///
+ ///
/// In this case, a ScriptBlock object is provided while constructing command
- /// processor.
- ///
+ /// processor.
+ ///
/// d. Script Text
- ///
+ ///
/// This is used internally for directly running a text stream of script.
- ///
+ ///
/// 2. Design
- ///
+ ///
/// a. Script block
- ///
+ ///
/// No matter how a script command processor is created, core piece of information
- /// is always a ScriptBlock object, which can come from either a FunctionInfo object,
- /// a ScriptInfo object, or directly parsed from script text.
- ///
+ /// is always a ScriptBlock object, which can come from either a FunctionInfo object,
+ /// a ScriptInfo object, or directly parsed from script text.
+ ///
/// b. Script scope
- ///
- /// A script block can be executed either in current scope or in a new scope.
- ///
+ ///
+ /// A script block can be executed either in current scope or in a new scope.
+ ///
/// New scope created should be a scope supporting $script: in case the command
- /// processor is created from a script file.
- ///
+ /// processor is created from a script file.
+ ///
/// c. Begin/Process/End blocks
- ///
+ ///
/// Each script block can have one block of script for begin/process/end. These map
- /// to BeginProcessing, ProcessingRecord, and EndProcessing of cmdlet api.
- ///
+ /// to BeginProcessing, ProcessingRecord, and EndProcessing of cmdlet api.
+ ///
/// d. ExitException handling
- ///
+ ///
/// If the command processor is created based on a script file, its exit exception
/// handling is different in the sense that it indicates an exitcode instead of killing
- /// current powershell session.
- ///
+ /// current powershell session.
+ ///
///
internal sealed class DlrScriptCommandProcessor : ScriptCommandProcessorBase
{
diff --git a/src/System.Management.Automation/engine/ScriptInfo.cs b/src/System.Management.Automation/engine/ScriptInfo.cs
index 0d5e5c8617..a6b5d42ed8 100644
--- a/src/System.Management.Automation/engine/ScriptInfo.cs
+++ b/src/System.Management.Automation/engine/ScriptInfo.cs
@@ -17,23 +17,23 @@ namespace System.Management.Automation
///
/// Creates an instance of the ScriptInfo class with the specified name, and script.
///
- ///
+ ///
///
/// The name of the script.
///
- ///
+ ///
///
/// The script definition
///
- ///
+ ///
///
/// The execution context for the script.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal ScriptInfo(string name, ScriptBlock script, ExecutionContext context)
: base(name, CommandTypes.Script, context)
{
diff --git a/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs b/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs
index e181cece47..fe9a66cd07 100644
--- a/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs
+++ b/src/System.Management.Automation/engine/SecurityDescriptorCmdletProviderInterfaces.cs
@@ -9,7 +9,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Provides the *-SecurityDescriptor noun for the cmdlet providers.
+ /// Provides the *-SecurityDescriptor noun for the cmdlet providers.
///
///
public sealed class SecurityDescriptorCmdletProviderIntrinsics
@@ -82,7 +82,7 @@ namespace System.Management.Automation
///
/// The sections of the security descriptor to include.
///
- ///
+ ///
///
/// The SecurityDescriptor(s) at the specified path.
///
@@ -203,7 +203,7 @@ namespace System.Management.Automation
///
/// The sections of the security descriptor to include.
///
- ///
+ ///
///
/// The SecurityDescriptor(s) at the specified path.
///
@@ -233,7 +233,7 @@ namespace System.Management.Automation
///
/// The sections of the security descriptor to include.
///
- ///
+ ///
///
/// A new SecurityDescriptor of the specified type.
///
diff --git a/src/System.Management.Automation/engine/SecurityManagerBase.cs b/src/System.Management.Automation/engine/SecurityManagerBase.cs
index 6eb2b13a65..07a5851aea 100644
--- a/src/System.Management.Automation/engine/SecurityManagerBase.cs
+++ b/src/System.Management.Automation/engine/SecurityManagerBase.cs
@@ -8,37 +8,37 @@ using System.Management.Automation.Host;
namespace System.Management.Automation
{
///
- /// This enum defines the dispatch origin of a command.
- ///
+ /// This enum defines the dispatch origin of a command.
+ ///
public enum CommandOrigin
{
///
/// The command was submitted via a runspace.
- ///
+ ///
Runspace,
///
/// The command was dispatched by the msh engine as a result of
/// a dispatch request from an already running command.
- ///
+ ///
Internal
}
///
/// Defines the base class for an authorization manager of a Runspace.
- ///
+ ///
/// An authorization manager helps a host control and restrict the
/// execution of commands. For each of the command types listed in
/// the
/// enumeration, the engine requests permission from the AuthorizationManager
/// to run the command.
- ///
+ ///
/// Extending this class requires that you override the ShouldRun method with
- /// the logic specific to your needs. The base class gives permission to run
- /// every command. The default
+ /// the logic specific to your needs. The base class gives permission to run
+ /// every command. The default
/// Microsoft.PowerShell.PSAuthorizationManager
/// provides a customized and much more complete authorization policy.
- ///
+ ///
public class AuthorizationManager
{
#region constructor
@@ -69,7 +69,7 @@ namespace System.Management.Automation
///
/// allows access to the host.
///
- ///
+ ///
/// This method throws SecurityException in case running is not allowed.
///
///
@@ -77,7 +77,7 @@ namespace System.Management.Automation
/// If the derived security manager threw an exception or returned
/// false with a reason.
///
- ///
+ ///
internal void ShouldRunInternal(CommandInfo commandInfo,
CommandOrigin origin,
PSHost host)
@@ -85,8 +85,8 @@ namespace System.Management.Automation
#if UNIX
// TODO:PSL this is a workaround since the exception below
// hides the internal issue of what's going on in terms of
- // execution policy.
- // On non-Windows platform Set/Get-ExecutionPolicy throw
+ // execution policy.
+ // On non-Windows platform Set/Get-ExecutionPolicy throw
// PlatformNotSupportedException
return;
#else
@@ -175,7 +175,7 @@ namespace System.Management.Automation
///
/// The host running the command
///
- /// The reason for preventing execution, if applicable
+ /// The reason for preventing execution, if applicable
///
/// True if the host should run the command. False otherwise
///
diff --git a/src/System.Management.Automation/engine/SerializationStrings.cs b/src/System.Management.Automation/engine/SerializationStrings.cs
index dbaebaadb1..94bfa19b25 100644
--- a/src/System.Management.Automation/engine/SerializationStrings.cs
+++ b/src/System.Management.Automation/engine/SerializationStrings.cs
@@ -7,10 +7,10 @@ namespace System.Management.Automation
{
///
/// This class contains strings required for serialization
- ///
+ ///
internal static class SerializationStrings
{
- #region element tags
+ #region element tags
///
/// Element tag for root node
@@ -105,97 +105,97 @@ namespace System.Management.Automation
#region primitive known type tags
///
- /// Element tag for char property.
+ /// Element tag for char property.
///
/// This property is used for System.Char type
internal const string CharTag = "C";
///
- /// Element tag for guid property.
+ /// Element tag for guid property.
///
/// This property is used for System.Guid type
internal const string GuidTag = "G";
///
- /// Element tag for boolean property.
+ /// Element tag for boolean property.
///
/// This property is used for System.Boolean type
internal const string BooleanTag = "B";
///
- /// Element tag for unsignedByte property.
+ /// Element tag for unsignedByte property.
///
/// This property is used for System.Byte type
internal const string UnsignedByteTag = "By";
///
- /// Element tag for dateTime property.
+ /// Element tag for dateTime property.
///
/// This property is used for System.DateTime type
internal const string DateTimeTag = "DT";
///
- /// Element tag for decimal property.
+ /// Element tag for decimal property.
///
/// This property is used for System.Decimal type
internal const string DecimalTag = "D";
///
- /// Element tag for double property.
+ /// Element tag for double property.
///
/// This property is used for System.Double type
internal const string DoubleTag = "Db";
///
- /// Element tag for duration property.
+ /// Element tag for duration property.
///
/// This property is used for System.TimeSpan type
internal const string DurationTag = "TS";
///
- /// Element tag for float property.
+ /// Element tag for float property.
///
/// This property is used for System.Single type
internal const string FloatTag = "Sg";
///
- /// Element tag for int property.
+ /// Element tag for int property.
///
/// This property is used for System.Int32 type
internal const string IntTag = "I32";
///
- /// Element tag for long property.
+ /// Element tag for long property.
///
/// This property is used for System.Int64 type
internal const string LongTag = "I64";
///
- /// Element tag for byte property.
+ /// Element tag for byte property.
///
/// This property is used for System.SByte type
internal const string ByteTag = "SB";
///
- /// Element tag for short property.
+ /// Element tag for short property.
///
/// This property is used for System.Int16 type
internal const string ShortTag = "I16";
///
- /// Element tag for base64Binary property.
+ /// Element tag for base64Binary property.
///
/// This property is used for System.IO.Stream type
internal const string Base64BinaryTag = "BA";
///
- /// Element tag for scriptblock property.
+ /// Element tag for scriptblock property.
///
/// This property is used for System.Management.Automation.ScriptBlock type
internal const string ScriptBlockTag = "SBK";
///
- /// Element tag for string property.
+ /// Element tag for string property.
///
/// This property is used for System.String type
internal const string StringTag = "S";
@@ -207,25 +207,25 @@ namespace System.Management.Automation
internal const string SecureStringTag = "SS";
///
- /// Element tag for unsignedShort property.
+ /// Element tag for unsignedShort property.
///
/// This property is used for System.UInt16 Stream type
internal const string UnsignedShortTag = "U16";
///
- /// Element tag for unsignedInt property.
+ /// Element tag for unsignedInt property.
///
/// This property is used for System.UInt32 type
internal const string UnsignedIntTag = "U32";
///
- /// Element tag for unsignedLong property.
+ /// Element tag for unsignedLong property.
///
/// This property is used for System.Long type
internal const string UnsignedLongTag = "U64";
///
- /// Element tag for anyUri property.
+ /// Element tag for anyUri property.
///
/// This property is used for System.Uri type
internal const string AnyUriTag = "URI";
@@ -251,7 +251,7 @@ namespace System.Management.Automation
internal const string NilTag = "Nil";
///
- /// Element tag for PSObjectReference property.
+ /// Element tag for PSObjectReference property.
///
/// This property is used for a reference to a property bag
internal const string ReferenceTag = "Ref";
@@ -309,7 +309,7 @@ namespace System.Management.Automation
///
internal const string MonadNamespacePrefix = "ps";
- #endregion namespace values
+ #endregion namespace values
};
}
diff --git a/src/System.Management.Automation/engine/SessionState.cs b/src/System.Management.Automation/engine/SessionState.cs
index 9ced8b5e7e..41ef431729 100644
--- a/src/System.Management.Automation/engine/SessionState.cs
+++ b/src/System.Management.Automation/engine/SessionState.cs
@@ -15,7 +15,7 @@ using System.Diagnostics.CodeAnalysis;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
[SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling", Justification = "This is a bridge class between internal classes and a public interface. It requires this much coupling.")]
@@ -25,7 +25,7 @@ namespace System.Management.Automation
///
/// An instance of the PSTraceSource class used for trace output
- /// using "SessionState" as the category.
+ /// using "SessionState" as the category.
///
[Dbg.TraceSourceAttribute(
"SessionState",
@@ -41,15 +41,15 @@ namespace System.Management.Automation
///
/// Constructor for session state object
///
- ///
+ ///
///
/// The context for the runspace to which this session state object belongs.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
internal SessionStateInternal(ExecutionContext context) : this(null, false, context)
{
}
@@ -142,7 +142,7 @@ namespace System.Management.Automation
///
/// Provides all the path manipulation and globbing for Monad paths.
///
- ///
+ ///
internal LocationGlobber Globber
{
get { return _globberPrivate ?? (_globberPrivate = ExecutionContext.LocationGlobber); }
@@ -155,7 +155,7 @@ namespace System.Management.Automation
internal ExecutionContext ExecutionContext { get; }
///
- /// Returns the public session state facade object for this session state instance.
+ /// Returns the public session state facade object for this session state instance.
///
internal SessionState PublicSessionState
{
@@ -178,7 +178,7 @@ namespace System.Management.Automation
///
internal PSModuleInfo Module { get; set; } = null;
- // This is used to maintain the order in which modules were imported.
+ // This is used to maintain the order in which modules were imported.
// This is used by Get-Command -All to order by last imported
internal List ModuleTableKeys = new List();
@@ -292,7 +292,7 @@ namespace System.Management.Automation
//
// BUGBUG
//
- // String resources for aliases are currently associated with Runspace init
+ // String resources for aliases are currently associated with Runspace init
//
// $Host
@@ -491,7 +491,7 @@ namespace System.Management.Automation
///
/// Gets the collection of relationship providers
///
- ///
+ ///
internal RelationshipProviderCollection Relationships
{
get { return relationships; }
@@ -503,9 +503,9 @@ namespace System.Management.Automation
///
/// Notification for SessionState to do cleanup
- /// before runspace is closed.
+ /// before runspace is closed.
///
- ///
+ ///
internal void RunspaceClosingNotification()
{
if (this != ExecutionContext.TopLevelSessionState && Providers.Count > 0)
@@ -535,38 +535,38 @@ namespace System.Management.Automation
/// Constructs a new instance of a ProviderInvocationException
/// using the specified data
///
- ///
+ ///
///
/// The resource ID to use as the format message for the error.
///
- ///
+ ///
///
/// This is the message template string.
///
- ///
+ ///
///
/// The provider information used when formatting the error message.
///
- ///
+ ///
///
/// The path used when formatting the error message.
///
- ///
+ ///
///
/// The exception that was thrown by the provider. This will be set as
/// the ProviderInvocationException's InnerException and the message will
/// be used when formatting the error message.
///
- ///
+ ///
///
/// A new instance of a ProviderInvocationException.
///
- ///
+ ///
///
/// Wraps in a ProviderInvocationException
/// and then throws it.
///
- ///
+ ///
internal ProviderInvocationException NewProviderInvocationException(
string resourceId,
string resourceStr,
@@ -582,43 +582,43 @@ namespace System.Management.Automation
/// Constructs a new instance of a ProviderInvocationException
/// using the specified data
///
- ///
+ ///
///
/// The resource ID to use as the format message for the error.
///
- ///
+ ///
///
/// This is the message template string.
///
- ///
+ ///
///
/// The provider information used when formatting the error message.
///
- ///
+ ///
///
/// The path used when formatting the error message.
///
- ///
+ ///
///
/// The exception that was thrown by the provider. This will be set as
/// the ProviderInvocationException's InnerException and the message will
/// be used when formatting the error message.
///
- ///
+ ///
///
/// If true, the error record from the inner exception will be used if it contains one.
/// If false, the error message specified by the resourceId will be used.
///
- ///
+ ///
///
/// A new instance of a ProviderInvocationException.
///
- ///
+ ///
///
/// Wraps in a ProviderInvocationException
/// and then throws it.
///
- ///
+ ///
internal ProviderInvocationException NewProviderInvocationException(
string resourceId,
string resourceStr,
diff --git a/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs b/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs
index 24206f6cec..cbf3982a0e 100644
--- a/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateAliasAPIs.cs
@@ -10,7 +10,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -41,7 +41,7 @@ namespace System.Management.Automation
///
/// Gets an IEnumerable for the alias table
///
- ///
+ ///
internal IDictionary GetAliasTable()
{
Dictionary result =
@@ -74,23 +74,23 @@ namespace System.Management.Automation
///
/// Gets an IEnumerable for the alias table for a given scope
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal IDictionary GetAliasTableAtScope(string scopeID)
{
Dictionary result =
@@ -122,18 +122,18 @@ namespace System.Management.Automation
///
/// Gets the value of the specified alias from the alias table.
///
- ///
+ ///
///
/// The name of the alias value to retrieve.
///
- ///
+ ///
///
/// The origin of the command calling this API.
///
///
/// The AliasInfo representing the alias.
///
- ///
+ ///
internal AliasInfo GetAlias(string aliasName, CommandOrigin origin)
{
AliasInfo result = null;
@@ -179,15 +179,15 @@ namespace System.Management.Automation
///
/// Gets the value of the specified alias from the alias table.
///
- ///
+ ///
///
/// The name of the alias value to retrieve.
///
- ///
+ ///
///
/// The AliasInfo representing the alias.
///
- ///
+ ///
internal AliasInfo GetAlias(string aliasName)
{
return GetAlias(aliasName, CommandOrigin.Internal);
@@ -196,31 +196,31 @@ namespace System.Management.Automation
///
/// Gets the value of the specified alias from the alias table.
///
- ///
+ ///
///
/// The name of the alias value to retrieve.
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// The AliasInfo representing the alias.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal AliasInfo GetAliasAtScope(string aliasName, string scopeID)
{
AliasInfo result = null;
@@ -248,35 +248,35 @@ namespace System.Management.Automation
///
/// Sets the alias with specified name to the specified value in the current scope.
///
- ///
+ ///
///
/// The name of the alias to set.
///
- ///
+ ///
///
/// The value to set the alias to.
///
- ///
+ ///
///
/// If true, the value will be set even if the alias is ReadOnly.
///
- ///
+ ///
///
/// THe origin of the caller of this API
///
- ///
+ ///
///
/// The resulting AliasInfo for the alias that was set.
///
- ///
+ ///
///
/// If or is null or empty.
///
- ///
+ ///
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasValue(string aliasName, string value, bool force, CommandOrigin origin)
{
if (String.IsNullOrEmpty(aliasName))
@@ -296,34 +296,34 @@ namespace System.Management.Automation
///
/// Sets the alias with specified name to the specified value in the current scope.
- /// BUGBUG: this overload only exists for the test suites. They should be cleaned up
+ /// BUGBUG: this overload only exists for the test suites. They should be cleaned up
/// and this overload removed.
///
- ///
+ ///
///
/// The name of the alias to set.
///
- ///
+ ///
///
/// The value to set the alias to.
///
- ///
+ ///
///
/// If true, the value will be set even if the alias is ReadOnly.
///
- ///
+ ///
///
/// The resulting AliasInfo for the alias that was set.
///
- ///
+ ///
///
/// If or is null or empty.
///
- ///
+ ///
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasValue(string aliasName, string value, bool force)
{
return SetAliasValue(aliasName, value, force, CommandOrigin.Internal);
@@ -332,39 +332,39 @@ namespace System.Management.Automation
///
/// Sets the alias with specified name to the specified value in the current scope.
///
- ///
+ ///
///
/// The name of the alias to set.
///
- ///
+ ///
///
/// The value to set the alias to.
///
- ///
+ ///
///
/// The options to set on the alias.
///
- ///
+ ///
///
/// If true, the value will be set even if the alias is ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// The resulting AliasInfo for the alias that was set.
///
- ///
+ ///
///
/// If or is null or empty.
///
- ///
+ ///
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasValue(
string aliasName,
string value,
@@ -391,35 +391,35 @@ namespace System.Management.Automation
/// Sets the alias with specified name to the specified value in the current scope.
/// BUGBUG: this api only exists for the test suites. They should be fixed and it should be removed.
///
- ///
+ ///
///
/// The name of the alias to set.
///
- ///
+ ///
///
/// The value to set the alias to.
///
- ///
+ ///
///
/// The options to set on the alias.
///
- ///
+ ///
///
/// If true, the value will be set even if the alias is ReadOnly.
///
- ///
+ ///
///
/// The resulting AliasInfo for the alias that was set.
///
- ///
+ ///
///
/// If or is null or empty.
///
- ///
+ ///
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasValue(
string aliasName,
string value,
@@ -432,32 +432,32 @@ namespace System.Management.Automation
///
/// Sets the alias with specified name to the specified value in the current scope.
///
- ///
+ ///
///
/// The AliasInfo representing the alias.
///
- ///
+ ///
///
/// If true, the alias will be set even if there is an existing ReadOnly
/// alias.
///
- ///
+ ///
///
/// Specifies the origin of the command setting the alias.
///
- ///
+ ///
///
/// The resulting AliasInfo for the alias that was set.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasItem(AliasInfo alias, bool force, CommandOrigin origin)
{
if (alias == null)
@@ -473,48 +473,48 @@ namespace System.Management.Automation
///
/// Sets the alias with specified name to the specified value in the current scope.
///
- ///
+ ///
///
/// The AliasInfo representing the alias.
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// If true, the alias will be set even if there is an existing ReadOnly
/// alias.
///
- ///
+ ///
///
/// Specifies the command origin of the calling command.
///
- ///
+ ///
///
/// The resulting AliasInfo for the alias that was set.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasItemAtScope(AliasInfo alias, string scopeID, bool force, CommandOrigin origin)
{
if (alias == null)
@@ -540,44 +540,44 @@ namespace System.Management.Automation
///
/// Sets the alias with specified name to the specified value in the current scope.
///
- ///
+ ///
///
/// The AliasInfo representing the alias.
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// If true, the alias will be set even if there is an existing ReadOnly
/// alias.
///
- ///
+ ///
///
/// The resulting AliasInfo for the alias that was set.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasItemAtScope(AliasInfo alias, string scopeID, bool force)
{
return SetAliasItemAtScope(alias, scopeID, force, CommandOrigin.Internal);
@@ -586,23 +586,23 @@ namespace System.Management.Automation
///
/// Removes the specified alias.
///
- ///
+ ///
///
/// The name of the alias to remove.
///
- ///
+ ///
///
/// If true the alias will be removed even if its ReadOnly.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If the alias is constant.
///
- ///
+ ///
internal void RemoveAlias(string aliasName, bool force)
{
if (String.IsNullOrEmpty(aliasName))
diff --git a/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs b/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs
index c6e8e872ef..333a52c3e1 100644
--- a/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateCmdletAPIs.cs
@@ -9,7 +9,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -18,15 +18,15 @@ namespace System.Management.Automation
///
/// Gets the value of the specified cmdlet from the cmdlet table.
///
- ///
+ ///
///
/// The name of the cmdlet value to retrieve.
///
- ///
+ ///
///
/// The CmdletInfo representing the cmdlet.
///
- ///
+ ///
internal CmdletInfo GetCmdlet(string cmdletName)
{
return GetCmdlet(cmdletName, CommandOrigin.Internal);
@@ -35,19 +35,19 @@ namespace System.Management.Automation
///
/// Gets the value of the specified cmdlet from the cmdlet table.
///
- ///
+ ///
///
/// The name of the cmdlet value to retrieve.
///
- ///
+ ///
///
/// The origin of hte command trying to retrieve this cmdlet.
///
- ///
+ ///
///
/// The CmdletInfo representing the cmdlet.
///
- ///
+ ///
internal CmdletInfo GetCmdlet(string cmdletName, CommandOrigin origin)
{
CmdletInfo result = null;
@@ -92,31 +92,31 @@ namespace System.Management.Automation
///
/// Gets the value of the specified cmdlet from the cmdlet table.
///
- ///
+ ///
///
/// The name of the cmdlet value to retrieve.
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// The CmdletInfo representing the cmdlet.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal CmdletInfo GetCmdletAtScope(string cmdletName, string scopeID)
{
CmdletInfo result = null;
@@ -144,7 +144,7 @@ namespace System.Management.Automation
///
/// Gets an IEnumerable for the cmdlet table
///
- ///
+ ///
internal IDictionary> GetCmdletTable()
{
Dictionary> result =
@@ -182,23 +182,23 @@ namespace System.Management.Automation
///
/// Gets an IEnumerable for the cmdlet table for a given scope
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal IDictionary> GetCmdletTableAtScope(string scopeID)
{
Dictionary> result =
@@ -233,31 +233,31 @@ namespace System.Management.Automation
///
/// Removes a cmdlet from the function table.
///
- ///
+ ///
///
/// The name of the cmdlet to remove.
///
- ///
+ ///
///
/// The name of the cmdlet to remove.
///
- ///
+ ///
///
/// THe origin of the caller of this API
///
- ///
+ ///
///
/// If true, the cmdlet is removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If the function is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveCmdlet(string name, int index, bool force, CommandOrigin origin)
{
if (String.IsNullOrEmpty(name))
@@ -298,23 +298,23 @@ namespace System.Management.Automation
///
/// Removes a cmdlet entry from the cmdlet table.
///
- ///
+ ///
///
/// The name of the cmdlet entry to remove.
///
- ///
+ ///
///
/// If true, the cmdlet is removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If the function is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveCmdletEntry(string name, bool force)
{
if (String.IsNullOrEmpty(name))
diff --git a/src/System.Management.Automation/engine/SessionStateContainer.cs b/src/System.Management.Automation/engine/SessionStateContainer.cs
index 00fa430ab8..376b1e2d46 100644
--- a/src/System.Management.Automation/engine/SessionStateContainer.cs
+++ b/src/System.Management.Automation/engine/SessionStateContainer.cs
@@ -16,7 +16,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -27,44 +27,44 @@ namespace System.Management.Automation
///
/// Determines if the monad virtual namespace path exists.
///
- ///
+ ///
///
/// The path to the object to determine if it exists.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// true if the object specified by path exists, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool ItemExists(string path, bool force, bool literalPath)
{
if (path == null)
@@ -86,40 +86,40 @@ namespace System.Management.Automation
///
/// Determines if the monad virtual namespace path exists.
///
- ///
+ ///
///
/// The path to the object to determine if it exists.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// true if the object specified by path exists, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool ItemExists(
string path,
CmdletProviderContext context)
@@ -163,31 +163,31 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path exists
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool ItemExists(
CmdletProvider providerInstance,
string path,
@@ -243,46 +243,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the test-path cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object ItemExistsDynamicParameters(string path, CmdletProviderContext context)
{
if (path == null)
@@ -320,36 +320,36 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the test-path cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object ItemExistsDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -408,36 +408,36 @@ namespace System.Management.Automation
///
/// Determines if the MSH path is a syntactically and semantically valid path for the provider.
///
- ///
+ ///
///
/// The path to validate.
///
- ///
+ ///
///
/// true if the object specified by path is syntactically and semantically valid, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool IsValidPath(string path)
{
if (path == null)
@@ -457,40 +457,40 @@ namespace System.Management.Automation
///
/// Determines if the MSH path is a syntactically and semantically valid path for the provider.
///
- ///
+ ///
///
/// The path to validate.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// true if the object specified by path is syntactically and semantically valid, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool IsValidPath(
string path,
CmdletProviderContext context)
@@ -518,31 +518,31 @@ namespace System.Management.Automation
///
/// Determines if the specified path is valid.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private bool IsValidPath(
CmdletProvider providerInstance,
string path,
@@ -602,36 +602,36 @@ namespace System.Management.Automation
///
/// Determines if the monad virtual namespace path is a container.
///
- ///
+ ///
///
/// The path to the object to determine if it is a container.
///
- ///
+ ///
///
/// true if the object specified by path is a container, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool IsItemContainer(string path)
{
if (path == null)
@@ -651,40 +651,40 @@ namespace System.Management.Automation
///
/// Determines if the monad virtual namespace path is a container.
///
- ///
+ ///
///
/// The path to the object to determine if it is a container.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// true if the object specified by path is a container, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool IsItemContainer(
string path,
CmdletProviderContext context)
@@ -729,31 +729,31 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path is a container.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private bool IsItemContainer(
CmdletProvider providerInstance,
string path,
@@ -831,7 +831,7 @@ namespace System.Management.Automation
}
catch (NotSupportedException)
{
- // If the provider is neither a NavigationProvider nor a
+ // If the provider is neither a NavigationProvider nor a
// ContainerProvider then the path cannot be a container
result = false;
@@ -848,44 +848,44 @@ namespace System.Management.Automation
///
/// Deletes the specified object
///
- ///
+ ///
///
/// A relative or absolute path to the object to be deleted.
///
- ///
+ ///
///
/// The delete should occur in all sub-containers of the specified path.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void RemoveItem(string[] paths, bool recurse, bool force, bool literalPath)
{
if (paths == null)
@@ -905,45 +905,45 @@ namespace System.Management.Automation
///
/// Deletes the specified object
///
- ///
+ ///
///
/// A relative or absolute path to the object to be deleted.
///
- ///
+ ///
///
/// The delete should occur in all sub-containers of the specified path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void RemoveItem(
string[] paths,
bool recurse,
@@ -982,40 +982,40 @@ namespace System.Management.Automation
///
/// Internal remove item method that just calls the provider directly without globbing.
///
- ///
+ ///
///
/// The name of the provider to use.
///
- ///
+ ///
///
/// The path of the item to remove.
///
- ///
+ ///
///
/// True if all items should be removed recursively.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void RemoveItem(
string providerId,
string path,
@@ -1042,40 +1042,40 @@ namespace System.Management.Automation
///
/// Internal remove item method that just calls the provider directly without globbing.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The path of the item to remove.
///
- ///
+ ///
///
/// True if all items should be removed recursively.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void RemoveItem(
CmdletProvider providerInstance,
string path,
@@ -1133,7 +1133,7 @@ namespace System.Management.Automation
// Earlier, we used to check if "path" has any child items remaining. If not, we remove "path".
// This does not work for some providers (for e.g. IIS provider) which do not support removing the child items
// So, instead of checking for any child items remaining (which are applicable to only those providers which support them - like File, Registry),
- // we check if there are any items that were never intended to be deleted. If there are no such items, then, we can remove "path".
+ // we check if there are any items that were never intended to be deleted. If there are no such items, then, we can remove "path".
// WinBlue: 289907
if (childrenNotMatchingFilterCriteria == 0)
{
@@ -1174,46 +1174,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the remove-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The delete should occur in all sub-containers of the specified path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object RemoveItemDynamicParameters(
string path,
bool recurse,
@@ -1254,40 +1254,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the remove-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// If true, all items in the subtree should be removed.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object RemoveItemDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -1347,55 +1347,55 @@ namespace System.Management.Automation
///
/// Gets the children of the specified item.
///
- ///
+ ///
///
/// An array of relative or absolute paths to the object to get the children of.
///
- ///
+ ///
///
/// If true, gets all the children in all the sub-containers of the specified
/// container. If false, only gets the immediate children of the specified
/// container.
///
- ///
+ ///
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// This method does not provider streaming of the results. If you want streaming
/// then you must call the overload that takes a CmdletProviderContext.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection GetChildItems(string[] paths, bool recurse, uint depth, bool force, bool literalPath)
{
if (paths == null)
@@ -1425,51 +1425,51 @@ namespace System.Management.Automation
///
/// Gets the children of the specified item.
///
- ///
+ ///
///
/// A relative or absolute path to the object to get the children of.
///
- ///
+ ///
///
/// If true, gets all the children in all the sub-containers of the specified
/// container. If false, only gets the immediate children of the specified
/// container.
///
- ///
+ ///
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void GetChildItems(
string path,
bool recurse,
@@ -1597,7 +1597,7 @@ namespace System.Management.Automation
}
else
{
- // If the path wasn't globbed or we are recursing then we want to get the
+ // If the path wasn't globbed or we are recursing then we want to get the
// children of the path. If we were globbing and we are not recursing
// then we just want to get the item for the resolved paths.
@@ -1673,39 +1673,39 @@ namespace System.Management.Automation
///
/// Gets the child items of the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// If true, all the child items in the subtree are returned.
///
- ///
+ ///
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void GetChildItems(
CmdletProvider providerInstance,
string path,
@@ -1760,19 +1760,19 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path is a container.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
private bool IsPathContainer(
CmdletProvider providerInstance,
string path,
@@ -1801,7 +1801,7 @@ namespace System.Management.Automation
}
}
return itemContainer;
-
+
} // IsPathContainer
///
@@ -1814,7 +1814,7 @@ namespace System.Management.Automation
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The path to the item to get the children from.
///
@@ -1826,32 +1826,32 @@ namespace System.Management.Automation
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// The count of items that do not match any include/exclude criteria.
- ///
- ///
+ ///
+ ///
/// Indicates if this is a Enumerate/Remove operation
- ///
+ ///
/// a hint used to skip IsItemContainer checks
///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void ProcessPathItems(
CmdletProvider providerInstance,
string path,
@@ -1892,7 +1892,7 @@ namespace System.Management.Automation
WildcardOptions.IgnoreCase);
// If the item is a container we have to filter its children
- // Use a hint + lazy evaluation to skip a container check
+ // Use a hint + lazy evaluation to skip a container check
if (skipIsItemContainerCheck || IsPathContainer(providerInstance, path, context))
{
CmdletProviderContext newContext =
@@ -2057,7 +2057,7 @@ namespace System.Management.Automation
}
else
{
- // The object is a match so, remove it.
+ // The object is a match so, remove it.
containerCmdletProvider.RemoveItem(path, recurse, context);
}
}
@@ -2069,46 +2069,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-childitem cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The delete should occur in all sub-containers of the specified path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object GetChildItemsDynamicParameters(
string path,
bool recurse,
@@ -2154,8 +2154,8 @@ namespace System.Management.Automation
catch (ItemNotFoundException)
{
// If the provided path is like c:\fakepath\aa*, since we cannot resolve c:\fakepath, an
- // ItemNotFoundException will be thrown out. In this case, we catch the exception
- // and check if the "providerInstance" is identified. If providerInstance is not null,
+ // ItemNotFoundException will be thrown out. In this case, we catch the exception
+ // and check if the "providerInstance" is identified. If providerInstance is not null,
// we can carry on with the get-dynamic-parameters method.
if (providerInstance == null)
{
@@ -2173,7 +2173,7 @@ namespace System.Management.Automation
if (providerInstance != null)
{
PSDriveInfo drive = null;
- // If we get here, the GetProviderPath should always succeed. This method was already invoked
+ // If we get here, the GetProviderPath should always succeed. This method was already invoked
// in the call to GetGlobbedProviderPathsFromMonadPath, and since "providerInstance" is not null,
// the invocation in method GetGlobbedProviderPathsFromMonadPath should succeed.
string providerPath = Globber.GetProviderPath(path, context, out provider, out drive);
@@ -2211,40 +2211,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-childitem cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// If true, all child items in the subtree should be returned.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object GetChildItemsDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -2305,18 +2305,18 @@ namespace System.Management.Automation
///
/// Gets names of the children of the specified path.
///
- ///
+ ///
///
/// The paths to the items from which to retrieve the child names.
///
- ///
+ ///
///
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
- /// If true, gets all the relative paths of all the children
+ /// If true, gets all the relative paths of all the children
/// in all the sub-containers of the specified
/// container. If false, only gets the immediate child names of the specified
/// container.
@@ -2325,48 +2325,48 @@ namespace System.Management.Automation
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// An array of strings that contains the names of the children of the specified
/// container.
///
- ///
+ ///
///
/// The child names are the leaf portion of the path. Example, for the file system
/// the name for the path c:\windows\system32\foo.dll would be foo.dll or for
/// the directory c:\windows\system32 would be system32. For Active Directory the
/// child names would be RDN values of the child objects of the container.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection GetChildNames(
string[] paths,
ReturnContainers returnContainers,
@@ -2411,18 +2411,18 @@ namespace System.Management.Automation
///
/// Gets names of the children of the specified path.
///
- ///
+ ///
///
/// The path to the item from which to retrieve the child names.
///
- ///
+ ///
///
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
- /// If true, gets all the relative paths of all the children
+ /// If true, gets all the relative paths of all the children
/// in all the sub-containers of the specified
/// container. If false, only gets the immediate child names of the specified
/// container.
@@ -2431,48 +2431,48 @@ namespace System.Management.Automation
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing is returned, but all names should be written to the context object.
///
- ///
+ ///
///
/// The child names are the leaf portion of the path. Example, for the file system
/// the name for the path c:\windows\system32\foo.dll would be foo.dll or for
/// the directory c:\windows\system32 would be system32. For Active Directory the
/// child names would be RDN values of the child objects of the container.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void GetChildNames(
string path,
ReturnContainers returnContainers,
@@ -2559,7 +2559,7 @@ namespace System.Management.Automation
}
else
{
- // Since the original path did not contain glob characters,
+ // Since the original path did not contain glob characters,
// if the provider is a NavigationCmdletProvider, write
// out the child name, else write out the name as it
// was resolved.
@@ -2658,60 +2658,60 @@ namespace System.Management.Automation
} // GetChildNames
///
- /// Gets the child names of the item at the specified path by
+ /// Gets the child names of the item at the specified path by
/// manually recursing through all the containers instead of
/// allowing the provider to do the recursion.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path the name is relative to.
///
- ///
+ ///
///
/// If true all names in the subtree should be returned.
///
- ///
+ ///
///
/// Current depth of recursion; special case uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
/// A set of filters that the names must match to be returned.
///
- ///
+ ///
///
/// A set of filters that the names cannot match to be returned.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void DoGetChildNamesManually(
CmdletProvider providerInstance,
string providerPath,
@@ -2870,36 +2870,36 @@ namespace System.Management.Automation
///
/// Gets the names of the children of the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void GetChildNames(
CmdletProvider providerInstance,
string path,
@@ -2953,42 +2953,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-childitem -name cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object GetChildNamesDynamicParameters(
string path,
CmdletProviderContext context)
@@ -3023,8 +3023,8 @@ namespace System.Management.Automation
catch (ItemNotFoundException)
{
// If the provided path is like c:\fakepath\aa*, since we cannot resolve c:\fakepath, an
- // ItemNotFoundException will be thrown out. In this case, we catch the exception
- // and check if the "providerInstance" is identified. If providerInstance is not null,
+ // ItemNotFoundException will be thrown out. In this case, we catch the exception
+ // and check if the "providerInstance" is identified. If providerInstance is not null,
// we can carry on with the get-dynamic-parameters method.
if (providerInstance == null)
{
@@ -3043,7 +3043,7 @@ namespace System.Management.Automation
if (providerInstance != null)
{
PSDriveInfo drive = null;
- // If we get here, the GetProviderPath should always succeed. This method was already invoked
+ // If we get here, the GetProviderPath should always succeed. This method was already invoked
// in the call to GetGlobbedProviderPathsFromMonadPath, and since "providerInstance" is not null,
// the invocation in method GetGlobbedProviderPathsFromMonadPath should succeed.
string providerPath = Globber.GetProviderPath(path, context, out provider, out drive);
@@ -3059,36 +3059,36 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-childitem -names cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object GetChildNamesDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -3148,13 +3148,13 @@ namespace System.Management.Automation
///
/// Renames the item at the specified path to the new name provided.
///
- ///
+ ///
///
/// The path to the item to rename.
///
- ///
+ ///
///
- /// The name to which the item should be renamed. This name should always be
+ /// The name to which the item should be renamed. This name should always be
/// relative to the parent container.
///
///
@@ -3165,28 +3165,28 @@ namespace System.Management.Automation
///
/// The item that was renamed at the specified path.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection RenameItem(string path, string newName, bool force)
{
if (path == null)
@@ -3209,50 +3209,50 @@ namespace System.Management.Automation
///
/// Renames the item at the specified path to the new name provided.
///
- ///
+ ///
///
/// The path to the item to rename.
///
- ///
+ ///
///
- /// The name to which the item should be renamed. This name should always be
+ /// The name to which the item should be renamed. This name should always be
/// relative to the parent container.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. All items that are renamed are written into the context object.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void RenameItem(
string path,
string newName,
@@ -3274,7 +3274,7 @@ namespace System.Management.Automation
out provider,
out providerInstance);
- // Can only rename one item at a time, so if we glob more than
+ // Can only rename one item at a time, so if we glob more than
// one item write out an error.
if (providerPaths.Count == 1)
@@ -3300,35 +3300,35 @@ namespace System.Management.Automation
///
/// Renames the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The new name of the item.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void RenameItem(
CmdletProvider providerInstance,
string path,
@@ -3382,47 +3382,47 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the rename-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
- /// The name to which the item should be renamed. This name should always be
+ /// The name to which the item should be renamed. This name should always be
/// relative to the parent container.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object RenameItemDynamicParameters(
string path,
string newName,
@@ -3463,40 +3463,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the rename-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The new name of the item.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object RenameItemDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -3557,11 +3557,11 @@ namespace System.Management.Automation
///
/// Creates a new item at the specified path.
///
- ///
+ ///
///
/// The path(s) to the container(s) to create the item in.
///
- ///
+ ///
///
/// The name of the item to create.
///
@@ -3573,36 +3573,36 @@ namespace System.Management.Automation
///
/// The content of the new item to create.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// The item(s) that was created.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection NewItem(string[] paths, string name, string type, object content, bool force)
{
if (paths == null)
@@ -3624,11 +3624,11 @@ namespace System.Management.Automation
///
/// Creates a new item at the specified path.
///
- ///
+ ///
///
/// The path(s) to the item(s) to create.
///
- ///
+ ///
///
/// The name of the item to create.
///
@@ -3640,41 +3640,41 @@ namespace System.Management.Automation
///
/// The content to create the new item with.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. The item created is written to the context object.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void NewItem(
string[] paths,
string name,
@@ -3809,39 +3809,39 @@ namespace System.Management.Automation
///
/// Creates a new item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The type of the item to create.
///
- ///
+ ///
///
/// The content of the item to create.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void NewItemPrivate(
CmdletProvider providerInstance,
string path,
@@ -3893,11 +3893,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the new-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The provider specific type of the item to be created.
///
@@ -3905,38 +3905,38 @@ namespace System.Management.Automation
///
/// The content to create the new item with.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object NewItemDynamicParameters(
string path,
string type,
@@ -3978,44 +3978,44 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the new-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The type of the new item.
///
- ///
+ ///
///
/// The value of the new item
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object NewItemDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -4076,7 +4076,7 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path has children.
///
- ///
+ ///
///
/// The path to the item to see if it has children.
///
@@ -4084,36 +4084,36 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// True if the item has children, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool HasChildItems(string path, bool force, bool literalPath)
{
if (path == null)
@@ -4135,7 +4135,7 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path has children.
///
- ///
+ ///
///
/// The path to the item to see if it has children.
///
@@ -4143,37 +4143,37 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// True if the item has children, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal bool HasChildItems(
string path,
CmdletProviderContext context)
@@ -4210,27 +4210,27 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path has children.
///
- ///
+ ///
///
/// The provider to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool HasChildItems(
string providerId,
string path)
@@ -4258,31 +4258,31 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path has children.
///
- ///
+ ///
///
/// The provider to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal bool HasChildItems(
string providerId,
string path,
@@ -4296,31 +4296,31 @@ namespace System.Management.Automation
///
/// Determines if the item at the specified path has children.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private bool HasChildItems(
CmdletProvider providerInstance,
string path,
@@ -4381,19 +4381,19 @@ namespace System.Management.Automation
///
/// Copies an item at the specified path to an item at the .
///
- ///
+ ///
///
/// The path(s) of the item(s) to copy.
///
- ///
+ ///
///
/// The path of the item to copy to.
///
- ///
+ ///
///
/// Tells the provider to recurse sub-containers when copying.
///
- ///
+ ///
///
/// Determines how the source container is used in the copy operation.
///
@@ -4401,36 +4401,36 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The objects that were copied.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection CopyItem(string[] paths,
string copyPath,
bool recurse,
@@ -4462,19 +4462,19 @@ namespace System.Management.Automation
///
/// Copies an item at the specified path to an item at the .
///
- ///
+ ///
///
/// The path(s) of the item(s) to copy.
///
- ///
+ ///
///
/// The path of the item to copy to.
///
- ///
+ ///
///
/// Tells the provider to recurse sub-containers when copying.
///
- ///
+ ///
///
/// Determines how the source container is used in the copy operation.
///
@@ -4482,33 +4482,33 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void CopyItem(
string[] paths,
string copyPath,
@@ -4746,7 +4746,7 @@ namespace System.Management.Automation
}
else
{
- // Since we know the destination isn't a container, check to
+ // Since we know the destination isn't a container, check to
// see if it exists.
if (ItemExists(providerInstance, providerDestinationPath, context))
@@ -4796,39 +4796,39 @@ namespace System.Management.Automation
///
/// Copies the specified item(s) to the specified destination
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to copy the item(s) to.
///
- ///
+ ///
///
/// If true all sub-containers and their children should be copied.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void CopyItem(
CmdletProvider providerInstance,
string path,
@@ -4883,35 +4883,35 @@ namespace System.Management.Automation
///
/// Recursively copies many items to a single container
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to copy the item(s) to.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void CopyRecurseToSingleContainer(
CmdletProvider providerInstance,
string sourcePath,
@@ -4967,50 +4967,50 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the copy-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path of the item to copy to.
///
- ///
+ ///
///
/// Tells the provider to recurse sub-containers when copying.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object CopyItemDynamicParameters(
string path,
string destination,
@@ -5088,44 +5088,44 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the copy-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to copy the item to.
///
- ///
+ ///
///
/// If true, subcontainers and their children should be copied.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object CopyItemDynamicParameters(
CmdletProvider providerInstance,
string path,
diff --git a/src/System.Management.Automation/engine/SessionStateContent.cs b/src/System.Management.Automation/engine/SessionStateContent.cs
index f95007ac17..ec4b9a4250 100644
--- a/src/System.Management.Automation/engine/SessionStateContent.cs
+++ b/src/System.Management.Automation/engine/SessionStateContent.cs
@@ -12,7 +12,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -23,44 +23,44 @@ namespace System.Management.Automation
///
/// Gets the content reader for the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to get the content reader for.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The content readers for all items that the path resolves to.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection GetContentReader(string[] paths, bool force, bool literalPath)
{
if (paths == null)
@@ -82,45 +82,45 @@ namespace System.Management.Automation
///
/// Gets the content reader for the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to get the content reader from.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// The content readers for all items that the path resolves to.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal Collection GetContentReader(
string[] paths,
CmdletProviderContext context)
@@ -169,31 +169,31 @@ namespace System.Management.Automation
///
/// Gets the content reader for the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private IContentReader GetContentReaderPrivate(
CmdletProvider providerInstance,
string path,
@@ -249,42 +249,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-content cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object GetContentReaderDynamicParameters(
string path,
CmdletProviderContext context)
@@ -324,36 +324,36 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-content cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object GetContentReaderDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -412,44 +412,44 @@ namespace System.Management.Automation
///
/// Gets the content writer for the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to get the content writer for.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The content writers for all items that the path resolves to.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection GetContentWriter(string[] paths, bool force, bool literalPath)
{
if (paths == null)
@@ -471,45 +471,45 @@ namespace System.Management.Automation
///
/// Gets the content writer for the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to get the content writer from.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// The content writers for all items that the path resolves to.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal Collection GetContentWriter(
string[] paths,
CmdletProviderContext context)
@@ -556,31 +556,31 @@ namespace System.Management.Automation
///
/// Gets the content writer for the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private IContentWriter GetContentWriterPrivate(
CmdletProvider providerInstance,
string path,
@@ -635,42 +635,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the set-content and add-content cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object GetContentWriterDynamicParameters(
string path,
CmdletProviderContext context)
@@ -710,36 +710,36 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the set-content and add-content cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object GetContentWriterDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -798,40 +798,40 @@ namespace System.Management.Automation
///
/// Clears all the content from the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to clear the content from.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void ClearContent(string[] paths, bool force, bool literalPath)
{
if (paths == null)
@@ -851,41 +851,41 @@ namespace System.Management.Automation
///
/// Clears all of the content from the specified item.
///
- ///
+ ///
///
/// The path to the item to clear the content from.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void ClearContent(
string[] paths,
CmdletProviderContext context)
@@ -923,31 +923,31 @@ namespace System.Management.Automation
///
/// Clears the content from the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void ClearContentPrivate(
CmdletProvider providerInstance,
string path,
@@ -1000,42 +1000,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-content cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object ClearContentDynamicParameters(
string path,
CmdletProviderContext context)
@@ -1075,35 +1075,35 @@ namespace System.Management.Automation
///
/// Calls the provider to get the clear-content dynamic parameters
///
- ///
+ ///
///
/// The instance of the provider to call
///
- ///
+ ///
///
/// The path to pass to the provider.
///
- ///
+ ///
///
/// The context the command is executing under.
///
- ///
+ ///
///
/// The dynamic parameter object returned by the provider.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object ClearContentDynamicParameters(
CmdletProvider providerInstance,
string path,
diff --git a/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs b/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs
index 23d0f3418c..b70e4811ea 100644
--- a/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateDriveAPIs.cs
@@ -16,7 +16,7 @@ using System.Globalization;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -31,11 +31,11 @@ namespace System.Management.Automation
///
/// Adds the specified drive to the current scope.
///
- ///
+ ///
///
/// The drive to be added to the current scope.
///
- ///
+ ///
///
/// The ID for the scope to add the drive to. The scope ID can be any of the
/// "special" scope identifiers like "global", "local", or "private" or it
@@ -44,33 +44,33 @@ namespace System.Management.Automation
/// If this parameter is null or empty the drive will be placed in the
/// current scope.
///
- ///
+ ///
///
/// The drive that was added, if any.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the drive already exists,
/// or
/// If .Name contains one or more invalid characters; ~ / \\ . :
///
- ///
+ ///
///
/// If the provider is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// The provider for the could not be found.
///
- ///
+ ///
///
/// If the provider threw an exception or returned null.
///
- ///
+ ///
internal PSDriveInfo NewDrive(PSDriveInfo drive, string scopeID)
{
if (drive == null)
@@ -111,11 +111,11 @@ namespace System.Management.Automation
///
/// Adds a drive to the PowerShell namespace.
///
- ///
+ ///
///
/// The new drive to be added.
///
- ///
+ ///
///
/// The ID for the scope to add the drive to. The scope ID can be any of the
/// "special" scope identifiers like "global", "local", or "private" or it
@@ -124,38 +124,38 @@ namespace System.Management.Automation
/// If this parameter is null or empty the drive will be placed in the
/// current scope.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the drive already exists
/// or
/// If .Name contains one or more invalid characters; ~ / \\ . :
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// If the provider is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// The provider for the could not be found.
///
- ///
+ ///
///
/// If the provider threw an exception or returned null.
///
- ///
+ ///
internal void NewDrive(PSDriveInfo drive, string scopeID, CmdletProviderContext context)
{
if (drive == null)
@@ -278,19 +278,19 @@ namespace System.Management.Automation
/// to a single path then the resolved provider internal path is returned. If it
/// does not resolve to a single MSH path the root is returned as it was passed.
///
- ///
+ ///
///
/// The root path of the drive to be resolved.
///
- ///
+ ///
///
/// The provider that should be used when resolving the path.
///
- ///
+ ///
///
/// The new root path of the drive.
///
- ///
+ ///
private string GetProviderRootFromSpecifiedRoot(string root, ProviderInfo provider)
{
Dbg.Diagnostics.Assert(
@@ -319,7 +319,7 @@ namespace System.Management.Automation
if (resolvedPaths != null &&
resolvedPaths.Count == 1)
{
- // and the provider used to resolve the path,
+ // and the provider used to resolve the path,
// matches the one specified by the drive...
if (provider.NameEquals(resolvedProvider.FullName))
@@ -382,33 +382,33 @@ namespace System.Management.Automation
/// Gets an object that defines the additional parameters for the NewDrive implementation
/// for a provider.
///
- ///
+ ///
///
/// The provider ID for the drive that is being created.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// If does not exist.
///
- ///
+ ///
internal object NewDriveDynamicParameters(string providerId, CmdletProviderContext context)
{
if (providerId == null)
{
- // If the provider hasn't been specified yet, just return null.
+ // If the provider hasn't been specified yet, just return null.
// The provider can be specified as pipeline input.
return null;
}
@@ -441,23 +441,23 @@ namespace System.Management.Automation
///
/// Searches through the session state scopes to find a drive
///
- ///
+ ///
///
/// The name of a drive to find.
///
- ///
+ ///
///
/// The drive information if the drive is found.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If there is no drive with .
///
- ///
+ ///
internal PSDriveInfo GetDrive(string name)
{
return GetDrive(name, true);
@@ -534,37 +534,37 @@ namespace System.Management.Automation
/// Searches through the session state scopes looking
/// for a drive of the specified name.
///
- ///
+ ///
///
/// The name of the drive to return.
///
- ///
+ ///
///
/// The scope ID of the scope to look in for the drive.
/// If this parameter is null or empty the drive will be
/// found by searching the scopes using the dynamic scoping
/// rules.
///
- ///
+ ///
///
/// The drive for the given name in the given scope or null if
/// the drive was not found.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal PSDriveInfo GetDrive(string name, string scopeID)
{
if (name == null)
@@ -847,20 +847,20 @@ namespace System.Management.Automation
/// Determines if the specified automounted drive still exists. If not,
/// the drive is removed.
///
- ///
+ ///
///
/// The drive to validate or remove.
///
- ///
+ ///
///
/// The scope the drive is in. This will be used to remove the drive
/// if necessary.
///
- ///
+ ///
///
/// True if the drive is still valid, false if the drive was removed.
///
- ///
+ ///
private bool ValidateOrRemoveAutoMountedDrive(PSDriveInfo drive, SessionStateScope scope)
{
bool result = true;
@@ -931,8 +931,8 @@ namespace System.Management.Automation
} // ValidateOrRemoveAutoMountedDrive
///
- /// If a VHD is mounted to a drive prior to the PowerShell session being launched,
- /// then such a drive has to be validated for its existence before performing
+ /// If a VHD is mounted to a drive prior to the PowerShell session being launched,
+ /// then such a drive has to be validated for its existence before performing
/// any operations on that drive to make sure that the drive is not unmounted.
///
///
@@ -953,7 +953,7 @@ namespace System.Management.Automation
// We would hit this situation in the following scenario:
// 1. Launch Powershell session 'A' and mount the VHD.
// 2. Launch different powershell session 'B'.
- // 3. Unmount the VHD in session 'A'.
+ // 3. Unmount the VHD in session 'A'.
// The drive pointing to VHD in session 'B' gets detected as DriveType.NoRootDirectory
// after the VHD is removed in session 'A'.
if (drive != null && !string.IsNullOrEmpty(drive.Name) && drive.Name.Length == 1)
@@ -1004,15 +1004,15 @@ namespace System.Management.Automation
///
/// Gets all the drives for a specific provider
///
- ///
+ ///
///
/// The identifier for the provider to retrieve the drives for.
///
- ///
+ ///
///
/// An IEnumerable that contains the drives for the specified provider.
///
- ///
+ ///
internal Collection GetDrivesForProvider(string providerId)
{
if (String.IsNullOrEmpty(providerId))
@@ -1043,11 +1043,11 @@ namespace System.Management.Automation
///
/// Removes the drive with the specified name.
///
- ///
+ ///
///
/// The name of the drive to remove.
///
- ///
+ ///
///
/// Determines whether drive should be forcefully removed even if there was errors.
///
@@ -1058,7 +1058,7 @@ namespace System.Management.Automation
/// starting at the current scope through all the parent scopes to the
/// global scope until a drive of the given name is found to remove.
///
- ///
+ ///
internal void RemoveDrive(string driveName, bool force, string scopeID)
{
if (driveName == null)
@@ -1083,11 +1083,11 @@ namespace System.Management.Automation
///
/// Removes the drive with the specified name.
///
- ///
+ ///
///
/// The name of the drive to remove.
///
- ///
+ ///
///
/// Determines whether drive should be forcefully removed even if there was errors.
///
@@ -1098,11 +1098,11 @@ namespace System.Management.Automation
/// starting at the current scope through all the parent scopes to the
/// global scope until a drive of the given name is found to remove.
///
- ///
+ ///
///
/// The context of the command.
///
- ///
+ ///
internal void RemoveDrive(
string driveName,
bool force,
@@ -1137,11 +1137,11 @@ namespace System.Management.Automation
///
/// Removes the specified drive.
///
- ///
+ ///
///
/// The drive to be removed.
///
- ///
+ ///
///
/// Determines whether drive should be forcefully removed even if there was errors.
///
@@ -1152,7 +1152,7 @@ namespace System.Management.Automation
/// starting at the current scope through all the parent scopes to the
/// global scope until a drive of the given name is found to remove.
///
- ///
+ ///
internal void RemoveDrive(PSDriveInfo drive, bool force, string scopeID)
{
if (drive == null)
@@ -1173,11 +1173,11 @@ namespace System.Management.Automation
///
/// Removes the specified drive.
///
- ///
+ ///
///
/// The drive to be removed.
///
- ///
+ ///
///
/// Determines whether drive should be forcefully removed even if there was errors.
///
@@ -1188,16 +1188,16 @@ namespace System.Management.Automation
/// starting at the current scope through all the parent scopes to the
/// global scope until a drive of the given name is found to remove.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal void RemoveDrive(
PSDriveInfo drive,
bool force,
@@ -1306,27 +1306,27 @@ namespace System.Management.Automation
/// Determines if the drive can be removed by calling the provider
/// for the drive.
///
- ///
+ ///
///
/// The drive to test for removal.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// True if the drive can be removed, false otherwise.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the provider threw an exception when RemoveDrive was called.
///
- ///
+ ///
private bool CanRemoveDrive(PSDriveInfo drive, CmdletProviderContext context)
{
if (context == null)
@@ -1413,12 +1413,12 @@ namespace System.Management.Automation
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal Collection Drives(string scope)
{
Dictionary driveTable = new Dictionary();
diff --git a/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs b/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs
index 7800d4a237..7d6673c9de 100644
--- a/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs
+++ b/src/System.Management.Automation/engine/SessionStateDynamicProperty.cs
@@ -12,7 +12,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -34,7 +34,7 @@ namespace System.Management.Automation
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -43,36 +43,36 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// A property table containing the properties and their values.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection NewProperty(
string[] paths,
string property,
@@ -118,7 +118,7 @@ namespace System.Management.Automation
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -127,37 +127,37 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. The property should be passed to the context as a PSObject.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void NewProperty(
string[] paths,
string property,
@@ -203,43 +203,43 @@ namespace System.Management.Automation
///
/// Creates a new property on the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to create.
///
- ///
+ ///
///
/// The type of the property to create.
///
- ///
+ ///
///
/// The value of the property to create.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void NewProperty(
CmdletProvider providerInstance,
string path,
@@ -299,18 +299,18 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the new-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property that should be created.
///
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -319,34 +319,34 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object NewPropertyDynamicParameters(
string path,
string propertyName,
@@ -390,48 +390,48 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the new-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to create.
///
- ///
+ ///
///
/// The type of the property to create.
///
- ///
+ ///
///
/// The value of the property.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object NewPropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -493,40 +493,40 @@ namespace System.Management.Automation
///
/// Removes the specified property from the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to remove the property from.
///
- ///
+ ///
///
/// The name of the property to remove
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -555,45 +555,45 @@ namespace System.Management.Automation
///
/// Removes the specified properties from the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to remove the properties from.
///
- ///
+ ///
///
/// The name of the property to remove
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void RemoveProperty(
string[] paths,
string property,
@@ -637,35 +637,35 @@ namespace System.Management.Automation
///
/// Removes the property from the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to remove.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void RemoveProperty(
CmdletProvider providerInstance,
string path,
@@ -723,11 +723,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the remove-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property that should be created.
///
@@ -735,34 +735,34 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object RemovePropertyDynamicParameters(
string path,
string propertyName,
@@ -804,40 +804,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the remove-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to remove.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object RemovePropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -899,19 +899,19 @@ namespace System.Management.Automation
/// Copies the specified property on the specified item to the specified property
/// on the destination item. The source and destination items can be the same item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to copy the property from.
///
- ///
+ ///
///
/// The name of the property to be copied.
///
///
///
/// The path to the item to copy the property to.
- ///
- ///
+ ///
+ ///
///
/// The name of the property to copy the property to.
///
@@ -919,34 +919,34 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If , ,
/// , or
/// is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection CopyProperty(
string[] sourcePaths,
string sourceProperty,
@@ -992,19 +992,19 @@ namespace System.Management.Automation
/// Copies the specified property on the specified item to the specified property
/// on the destination item. The source and destination items can be the same item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to copy the property from.
///
- ///
+ ///
///
/// The name of the property to be copied.
///
///
///
/// The path to the item to copy the property to.
- ///
- ///
+ ///
+ ///
///
/// The name of the property to copy the property to.
///
@@ -1012,35 +1012,35 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If , ,
/// , or
/// is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void CopyProperty(
string[] sourcePaths,
string sourceProperty,
@@ -1129,23 +1129,23 @@ namespace System.Management.Automation
///
/// Copies the property
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to be copied.
///
///
///
/// The path to the item to copy the property to.
- ///
- ///
+ ///
+ ///
///
/// The name of the property to copy the property to.
///
@@ -1153,19 +1153,19 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void CopyProperty(
CmdletProvider providerInstance,
string sourcePath,
@@ -1233,19 +1233,19 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the copy-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to be copied.
///
///
///
/// The path to the item to copy the property to.
- ///
- ///
+ ///
+ ///
///
/// The name of the property to copy the property to.
///
@@ -1253,34 +1253,34 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object CopyPropertyDynamicParameters(
string path,
string sourceProperty,
@@ -1329,48 +1329,48 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the copy-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The name of the property to copy.
///
- ///
+ ///
///
/// The path to the item to copy the property to.
///
- ///
+ ///
///
/// The name of the property to copy the property to on the destination item.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object CopyPropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -1438,19 +1438,19 @@ namespace System.Management.Automation
/// Moves the specified property on the specified item to the specified property
/// on the destination item. The source and destination items can be the same item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to move the property from.
///
- ///
+ ///
///
/// The name of the property to be moved.
///
///
///
/// The path to the item to move the property to.
- ///
- ///
+ ///
+ ///
///
/// The name of the property to move the property to.
///
@@ -1458,38 +1458,38 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If , ,
/// , or
/// is null.
///
- ///
+ ///
///
/// If resolves to more than one item.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection MoveProperty(
string[] sourcePaths,
string sourceProperty,
@@ -1535,19 +1535,19 @@ namespace System.Management.Automation
/// Moves the specified property on the specified item to the specified property
/// on the destination item. The source and destination items can be the same item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to move the property from.
///
- ///
+ ///
///
/// The name of the property to be moved.
///
///
///
/// The path to the item to move the property to.
- ///
- ///
+ ///
+ ///
///
/// The name of the property to move the property to.
///
@@ -1555,39 +1555,39 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If , ,
/// , or
/// is null.
///
- ///
+ ///
///
/// If resolves to more than one item.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void MoveProperty(
string[] sourcePaths,
string sourceProperty,
@@ -1673,43 +1673,43 @@ namespace System.Management.Automation
///
/// Moves the property from one item to another
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The property to be moved.
///
- ///
+ ///
///
/// The path of the item to move the property to.
///
- ///
+ ///
///
/// The name of the property to move the property to.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void MoveProperty(
CmdletProvider providerInstance,
string sourcePath,
@@ -1777,19 +1777,19 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the move-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to be moved.
///
///
///
/// The path to the item to move the property to.
- ///
- ///
+ ///
+ ///
///
/// The name of the property to move the property to.
///
@@ -1797,34 +1797,34 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object MovePropertyDynamicParameters(
string path,
string sourceProperty,
@@ -1873,48 +1873,48 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the move-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to move.
///
- ///
+ ///
///
/// The path to the item to move the property to.
///
- ///
+ ///
///
/// The name of the property on the destination item to move the property to.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object MovePropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -1983,11 +1983,11 @@ namespace System.Management.Automation
///
/// Renames the specified property on the specified item to the specified property.
///
- ///
+ ///
///
/// The path(s) to the item(s) to rename the property on.
///
- ///
+ ///
///
/// The name of the property to be renamed.
///
@@ -1999,33 +1999,33 @@ namespace System.Management.Automation
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If , ,
/// or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection RenameProperty(
string[] sourcePaths,
string sourceProperty,
@@ -2063,11 +2063,11 @@ namespace System.Management.Automation
///
/// Renames the specified property on the specified item to the specified property.
///
- ///
+ ///
///
/// The path(s) to the item(s) to rename the property on.
///
- ///
+ ///
///
/// The name of the property to be renamed.
///
@@ -2079,34 +2079,34 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If , ,
/// or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void RenameProperty(
string[] paths,
string sourceProperty,
@@ -2157,39 +2157,39 @@ namespace System.Management.Automation
///
/// Renames the property of the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to rename.
///
- ///
+ ///
///
/// The new name of the property.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void RenameProperty(
CmdletProvider providerInstance,
string sourcePath,
@@ -2252,11 +2252,11 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the rename-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to be renamed.
///
@@ -2268,34 +2268,34 @@ namespace System.Management.Automation
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object RenamePropertyDynamicParameters(
string path,
string sourceProperty,
@@ -2342,44 +2342,44 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the rename-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The name of the property to rename.
///
- ///
+ ///
///
/// The new name for the property.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object RenamePropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
diff --git a/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs b/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs
index d6d6304f40..5a284f2b11 100644
--- a/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateFunctionAPIs.cs
@@ -12,7 +12,7 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -53,11 +53,11 @@ namespace System.Management.Automation
/// the current scope as a reference and filtering the functions in
/// the other scopes based on the scoping rules.
///
- ///
+ ///
///
/// An IDictionary representing the visible functions.
///
- ///
+ ///
internal IDictionary GetFunctionTable()
{
SessionStateScopeEnumerator scopeEnumerator =
@@ -83,23 +83,23 @@ namespace System.Management.Automation
///
/// Gets an IEnumerable for the function table for a given scope
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "script", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal IDictionary GetFunctionTableAtScope(string scopeID)
{
Dictionary result =
@@ -137,23 +137,23 @@ namespace System.Management.Automation
///
/// Get a functions out of session state.
///
- ///
+ ///
///
/// name of function to look up
///
- ///
+ ///
///
/// Origin of the command that called this API...
///
- ///
+ ///
///
/// The value of the specified function.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal FunctionInfo GetFunction(string name, CommandOrigin origin)
{
if (String.IsNullOrEmpty(name))
@@ -178,23 +178,23 @@ namespace System.Management.Automation
///
/// Get a functions out of session state.
///
- ///
+ ///
///
/// name of function to look up
///
- ///
+ ///
///
/// The value of the specified function.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal FunctionInfo GetFunction(string name)
{
return GetFunction(name, CommandOrigin.Internal);
- } // GetFunction
+ } // GetFunction
private IEnumerable GetFunctionAliases(IParameterMetadataProvider ipmp)
{
@@ -220,31 +220,31 @@ namespace System.Management.Automation
///
/// Set a function in the current scope of session state.
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value of the function being set.
///
- ///
+ ///
///
/// Origin of the caller of this API
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunctionRaw(
string name,
ScriptBlock function,
@@ -357,42 +357,42 @@ namespace System.Management.Automation
///
/// Set a function in the current scope of session state.
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value of the function being set.
///
- ///
+ ///
///
/// The original function (if any) from which the ScriptBlock is derived.
///
- ///
+ ///
///
/// The options to set on the function.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// Origin of the caller of this API
///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -407,47 +407,47 @@ namespace System.Management.Automation
///
/// Set a function in the current scope of session state.
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value of the function being set.
///
- ///
+ ///
///
/// The original function (if any) from which the ScriptBlock is derived.
///
- ///
+ ///
///
/// The options to set on the function.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// Origin of the caller of this API
///
- ///
+ ///
///
/// The name of the help file associated with the function.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -463,50 +463,50 @@ namespace System.Management.Automation
///
/// Set a function in the current scope of session state.
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value of the function being set.
///
- ///
+ ///
///
/// The original function (if any) from which the ScriptBlock is derived.
///
- ///
+ ///
///
/// The options to set on the function.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// Origin of the caller of this API
///
- ///
+ ///
///
/// The execution context for the function.
///
- ///
+ ///
///
/// The name of the help file associated with the function.
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -523,55 +523,55 @@ namespace System.Management.Automation
///
/// Set a function in the current scope of session state.
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value of the function being set.
///
- ///
+ ///
///
/// The original function (if any) from which the ScriptBlock is derived.
///
- ///
+ ///
///
/// The options to set on the function.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// Origin of the caller of this API
///
- ///
+ ///
///
/// The execution context for the function.
///
- ///
+ ///
///
/// The name of the help file associated with the function.
///
- ///
+ ///
///
/// Set to true if it is a regular function (meaning, we do not need to check this is a workflow or if the script contains JobDefinition Attribute and then process it)
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -629,42 +629,42 @@ namespace System.Management.Automation
///
/// Set a function in the current scope of session state.
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value of the function being set.
///
- ///
+ ///
///
/// The original function (if any) from which the ScriptBlock is derived.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller
///
- ///
+ ///
///
/// If is null or empty.
/// or
/// If is not a FilterInfo
/// or FunctionInfo
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -750,38 +750,38 @@ namespace System.Management.Automation
///
/// Set a function in the current scope of session state.
- ///
+ ///
/// BUGBUG: this overload is preserved because a lot of tests use reflection to
/// call it. The tests should be fixed and this API eventually removed.
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value of the function being set.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// If is null or empty.
/// or
/// If is not a FilterInfo
/// or FunctionInfo
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(string name, ScriptBlock function, bool force)
{
return SetFunction(name, function, null, force, CommandOrigin.Internal);
@@ -790,27 +790,27 @@ namespace System.Management.Automation
///
/// Removes a function from the function table.
///
- ///
+ ///
///
/// The name of the function to remove.
///
- ///
+ ///
///
/// THe origin of the caller of this API
///
- ///
+ ///
///
/// If true, the function is removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If the function is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveFunction(string name, bool force, CommandOrigin origin)
{
if (String.IsNullOrEmpty(name))
@@ -840,47 +840,47 @@ namespace System.Management.Automation
///
/// Removes a function from the function table.
///
- ///
+ ///
///
/// The name of the function to remove.
///
- ///
+ ///
///
/// If true, the function is removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If the function is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveFunction(string name, bool force)
{
RemoveFunction(name, force, CommandOrigin.Internal);
}
///
- /// Removes a function from the function table
+ /// Removes a function from the function table
/// if the function was imported from the given module.
- ///
+ ///
/// BUGBUG: This is only used by the implicit remoting functions...
///
- ///
+ ///
///
/// The name of the function to remove.
///
- ///
+ ///
///
/// Module the function might be imported from.
///
- ///
+ ///
///
/// If the function is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveFunction(string name, PSModuleInfo module)
{
Dbg.Assert(module != null, "Caller should verify that module parameter is not null");
diff --git a/src/System.Management.Automation/engine/SessionStateItem.cs b/src/System.Management.Automation/engine/SessionStateItem.cs
index 2e848fed97..9c9073aa3c 100644
--- a/src/System.Management.Automation/engine/SessionStateItem.cs
+++ b/src/System.Management.Automation/engine/SessionStateItem.cs
@@ -12,7 +12,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -23,45 +23,45 @@ namespace System.Management.Automation
///
/// Gets the specified object
///
- ///
+ ///
///
/// The path(s) to the object(s). They can be either a relative (most common)
/// or absolute path.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The item at the specified path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection GetItem(string[] paths, bool force, bool literalPath)
{
if (paths == null)
@@ -87,47 +87,47 @@ namespace System.Management.Automation
///
/// Gets the specified object
///
- ///
+ ///
///
/// The path(s) to the object(s). They can be either a relative (most common)
/// or absolute path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing is returned, but all objects should be written to the WriteObject
/// method of the parameter.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void GetItem(
string[] paths,
CmdletProviderContext context)
@@ -165,31 +165,31 @@ namespace System.Management.Automation
///
/// Gets the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void GetItemPrivate(
CmdletProvider providerInstance,
string path,
@@ -242,42 +242,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object GetItemDynamicParameters(string path, CmdletProviderContext context)
{
if (path == null)
@@ -315,36 +315,36 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object GetItemDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -403,49 +403,49 @@ namespace System.Management.Automation
///
/// Gets the specified object
///
- ///
+ ///
///
/// The path(s) to the object. It can be either a relative (most common)
/// or absolute path.
///
- ///
+ ///
///
/// The new value for the item at the specified path.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The item that was modified at the specified path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection SetItem(string[] paths, object value, bool force, bool literalPath)
{
if (paths == null)
@@ -469,46 +469,46 @@ namespace System.Management.Automation
///
/// Sets the specified object to the specified value
///
- ///
+ ///
///
/// The path(s) to the object. It can be either a relative (most common)
/// or absolute path.
///
- ///
+ ///
///
/// The new value of the item at the specified path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void SetItem(
string[] paths,
object value,
@@ -550,35 +550,35 @@ namespace System.Management.Automation
///
/// Sets item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The value of the item.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void SetItem(
CmdletProvider providerInstance,
string path,
@@ -632,46 +632,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the set-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The new value of the item at the specified path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object SetItemDynamicParameters(string path, object value, CmdletProviderContext context)
{
if (path == null)
@@ -709,40 +709,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the set-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The value to be set.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object SetItemDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -804,24 +804,24 @@ namespace System.Management.Automation
/// maps to, this could mean the properties and/or content and/or value is
/// cleared.
///
- ///
+ ///
///
/// The path(s) to the object. It can be either a relative (most common)
/// or absolute path.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The items that were cleared.
///
- ///
+ ///
///
/// If an error occurs that error will be thrown.
///
@@ -829,24 +829,24 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection ClearItem(string[] paths, bool force, bool literalPath)
{
if (paths == null)
@@ -870,42 +870,42 @@ namespace System.Management.Automation
/// maps to, this could mean the properties and/or content and/or value is
/// cleared.
///
- ///
+ ///
///
/// The path(s) to the object. It can be either a relative (most common)
/// or absolute path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void ClearItem(
string[] paths,
CmdletProviderContext context)
@@ -946,31 +946,31 @@ namespace System.Management.Automation
///
/// Clears the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void ClearItemPrivate(
CmdletProvider providerInstance,
string path,
@@ -1023,42 +1023,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object ClearItemDynamicParameters(string path, CmdletProviderContext context)
{
if (path == null)
@@ -1096,36 +1096,36 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object ClearItemDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -1185,16 +1185,16 @@ namespace System.Management.Automation
/// Performs the default action on the specified item. The default action is
/// determined by the provider.
///
- ///
+ ///
///
/// The path(s) to the object(s). They can be either a relative (most common)
/// or absolute path(s).
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If an error occurs that error will be thrown.
///
@@ -1202,24 +1202,24 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void InvokeDefaultAction(string[] paths, bool literalPath)
{
if (paths == null)
@@ -1239,42 +1239,42 @@ namespace System.Management.Automation
/// Performs the default action on the specified item. The default action
/// is determined by the provider.
///
- ///
+ ///
///
/// The path(s) to the object(s). They can be either a relative (most common)
/// or absolute paths.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void InvokeDefaultAction(
string[] paths,
CmdletProviderContext context)
@@ -1315,31 +1315,31 @@ namespace System.Management.Automation
///
/// Invokes the default action on the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void InvokeDefaultActionPrivate(
CmdletProvider providerInstance,
string path,
@@ -1392,42 +1392,42 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the invoke-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object InvokeDefaultActionDynamicParameters(string path, CmdletProviderContext context)
{
if (path == null)
@@ -1465,36 +1465,36 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the invoke-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object InvokeDefaultActionDynamicParameters(
CmdletProvider providerInstance,
string path,
diff --git a/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs b/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs
index 72f9c25644..e2d3057837 100644
--- a/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateLocationAPIs.cs
@@ -13,7 +13,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -24,11 +24,11 @@ namespace System.Management.Automation
/// you want to change the current working directory use the SetLocation
/// method.
///
- ///
+ ///
///
/// If a location has not been set yet.
///
- ///
+ ///
internal PathInfo CurrentLocation
{
get
@@ -56,29 +56,29 @@ namespace System.Management.Automation
/// Gets the namespace specific path of the current working directory
/// for the specified namespace.
///
- ///
+ ///
///
/// An identifier that uniquely identifies the namespace to get the
/// current working directory for.
///
- ///
+ ///
///
- /// The namespace specific path of the current working directory for
+ /// The namespace specific path of the current working directory for
/// the specified namespace.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If refers to a provider that does not exist.
///
- ///
+ ///
///
/// If a current drive cannot be found for the provider
///
- ///
+ ///
internal PathInfo GetNamespaceCurrentLocation(string namespaceID)
{
if (namespaceID == null)
@@ -139,11 +139,11 @@ namespace System.Management.Automation
///
/// Changes the current working directory to the path specified
///
- ///
+ ///
///
/// The path of the new current working directory
///
- ///
+ ///
///
/// The PathInfo object representing the path of the location
/// that was set.
@@ -152,25 +152,25 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If does not exist, is not a container, or
/// resolved to multiple containers.
///
- ///
+ ///
///
/// If refers to a provider that does not exist.
///
- ///
+ ///
///
/// If refers to a drive that does not exist.
///
- ///
+ ///
///
/// If the provider associated with threw an
/// exception.
///
- ///
+ ///
internal PathInfo SetLocation(string path)
{
return SetLocation(path, null);
@@ -179,15 +179,15 @@ namespace System.Management.Automation
///
/// Changes the current working directory to the path specified
///
- ///
+ ///
///
/// The path of the new current working directory
///
- ///
+ ///
///
/// The context the provider uses when performing the operation.
///
- ///
+ ///
///
/// The PathInfo object representing the path of the location
/// that was set.
@@ -196,29 +196,29 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If does not exist, is not a container, or
/// resolved to multiple containers.
///
- ///
+ ///
///
/// If refers to a provider that does not exist.
///
- ///
+ ///
///
/// If refers to a drive that does not exist.
///
- ///
+ ///
///
/// If the provider associated with threw an
/// exception.
///
- ///
+ ///
///
/// If the could not be resolved.
///
- ///
+ ///
internal PathInfo SetLocation(string path, CmdletProviderContext context)
{
if (path == null)
@@ -465,7 +465,7 @@ namespace System.Management.Automation
{
if (currentPath.Length == 0)
{
- // Treat this as a container because providers that only
+ // Treat this as a container because providers that only
// support the ContainerCmdletProvider interface are really
// containers at their root.
@@ -496,7 +496,7 @@ namespace System.Management.Automation
}
else
{
- // Set the path to use
+ // Set the path to use
path = currentPath;
// Mark it as a container
@@ -560,53 +560,53 @@ namespace System.Management.Automation
/// Determines if the specified path is the current working directory
/// or a parent of the current working directory.
///
- ///
+ ///
///
/// A monad namespace absolute or relative path.
///
- ///
+ ///
///
/// The context the provider uses when performing the operation.
///
- ///
+ ///
///
/// true, if the path is the current working directory or a parent of the current
/// working directory. false, otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
internal bool IsCurrentLocationOrAncestor(string path, CmdletProviderContext context)
{
bool result = false;
@@ -840,7 +840,7 @@ namespace System.Management.Automation
///
/// Resets the current working drive and directory to the first
/// entry on the working directory stack and removes that entry
- /// from the stack.
+ /// from the stack.
///
///
///
@@ -862,20 +862,20 @@ namespace System.Management.Automation
/// or
/// A stack was not found with the specified name.
///
- ///
+ ///
///
/// If the path on the stack refers to a provider that does not exist.
///
- ///
+ ///
///
/// If the path on the stack refers to a drive that does not exist.
///
- ///
+ ///
///
/// If the provider associated with the path on the stack threw an
/// exception.
///
- ///
+ ///
internal PathInfo PopLocation(string stackName)
{
if (String.IsNullOrEmpty(stackName))
@@ -964,9 +964,9 @@ namespace System.Management.Automation
/// Gets the monad namespace paths for all the directories that are
/// pushed on the working directory stack.
///
- ///
+ ///
///
- /// The stack of the ID of the location stack to retrieve. If it is
+ /// The stack of the ID of the location stack to retrieve. If it is
/// null or empty the default stack is used.
///
///
@@ -974,12 +974,12 @@ namespace System.Management.Automation
/// The PathInfoStack representing the location stack for the specified
/// stack ID.
///
- ///
+ ///
///
/// If no location stack exists except if
/// the default stack is requested.
///
- ///
+ ///
internal PathInfoStack LocationStack(string stackName)
{
if (String.IsNullOrEmpty(stackName))
@@ -1028,7 +1028,7 @@ namespace System.Management.Automation
///
/// If does not exist as a location stack.
///
- ///
+ ///
internal PathInfoStack SetDefaultLocationStack(string stackName)
{
if (String.IsNullOrEmpty(stackName))
diff --git a/src/System.Management.Automation/engine/SessionStateNavigation.cs b/src/System.Management.Automation/engine/SessionStateNavigation.cs
index 501ff58859..d76d673968 100644
--- a/src/System.Management.Automation/engine/SessionStateNavigation.cs
+++ b/src/System.Management.Automation/engine/SessionStateNavigation.cs
@@ -12,7 +12,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -23,35 +23,35 @@ namespace System.Management.Automation
///
/// Gets the path to the parent object for the given object
///
- ///
+ ///
///
/// The path to the object to get the parent path from
///
- ///
+ ///
///
/// The root of the drive.
///
- ///
+ ///
///
/// The path to the parent object
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string GetParentPath(string path, string root)
{
if (path == null)
@@ -71,40 +71,40 @@ namespace System.Management.Automation
///
/// Gets the path to the parent object for the given object
///
- ///
+ ///
///
/// The path to the object to get the parent path from
///
- ///
+ ///
///
/// The root of the drive. Namespace providers should
/// return the root if GetParentPath is called for the root.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// The path to the parent object
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string GetParentPath(
string path,
string root,
@@ -119,24 +119,24 @@ namespace System.Management.Automation
/// Allow to use FileSystem as the default provider when the
/// given path is drive-qualified and the drive cannot be found.
///
- ///
+ ///
///
/// The path to the object to get the parent path from
///
- ///
+ ///
///
/// The root of the drive. Namespace providers should
/// return the root if GetParentPath is called for the root.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Specify whether to use default provider when needed.
///
- ///
+ ///
///
/// The path to the parent object
///
@@ -248,11 +248,11 @@ namespace System.Management.Automation
///
/// Removes either the drive or provider qualifier or both from the path.
///
- ///
+ ///
///
/// The path to strip the provider qualifier from.
///
- ///
+ ///
///
/// The provider that should handle the RemoveQualifier call.
///
@@ -260,19 +260,19 @@ namespace System.Management.Automation
///
/// Returns the qualifier of the path.
///
- ///
+ ///
///
/// Returns true if the path is a provider-qualified path.
///
- ///
+ ///
///
/// Returns true if the path is a drive-qualified path.
///
- ///
+ ///
///
/// The path without the qualifier.
///
- ///
+ ///
private string RemoveQualifier(string path, ProviderInfo provider, out string qualifier, out bool isProviderQualified, out bool isDriveQualified)
{
Dbg.Diagnostics.Assert(
@@ -322,44 +322,44 @@ namespace System.Management.Automation
///
/// Gets the path to the parent object for the given object
///
- ///
+ ///
///
/// The provider that should handle the GetParentPath call.
///
- ///
+ ///
///
/// The path to the object to get the parent path from
///
- ///
+ ///
///
/// The root of the drive. Namespace providers should
/// return the root if GetParentPath is called for the root.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// The path to the parent object
///
- ///
+ ///
///
/// This is internal so that it can be called from the LocationGlobber.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string GetParentPath(
ProviderInfo provider,
string path,
@@ -390,44 +390,44 @@ namespace System.Management.Automation
///
/// Gets the path to the parent object for the given object
///
- ///
+ ///
///
/// The instance of the provider that should handle the GetParentPath call.
///
- ///
+ ///
///
/// The path to the object to get the parent path from
///
- ///
+ ///
///
/// The root of the drive. Namespace providers should
/// return the root if GetParentPath is called for the root.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// The path to the parent object
///
- ///
+ ///
///
/// This is internal so that it can be called from the LocationGlobber.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string GetParentPath(
CmdletProvider providerInstance,
string path,
@@ -493,36 +493,36 @@ namespace System.Management.Automation
/// Normalizes the path that was passed in and returns the normalized path
/// as a relative path to the basePath that was passed.
///
- ///
+ ///
///
/// An MSH path to an item. The item should exist
/// or the provider should write out an error.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
- /// A normalized path that is relative to the basePath that was passed.
+ /// A normalized path that is relative to the basePath that was passed.
///
///
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string NormalizeRelativePath(string path, string basePath)
{
if (path == null)
@@ -543,40 +543,40 @@ namespace System.Management.Automation
/// Normalizes the path that was passed in and returns the normalized path
/// as a relative path to the basePath that was passed.
///
- ///
+ ///
///
/// An MSH path to an item. The item should exist
/// or the provider should write out an error.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
- /// A normalized path that is relative to the basePath that was passed.
+ /// A normalized path that is relative to the basePath that was passed.
///
///
///
/// If is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string NormalizeRelativePath(
string path,
string basePath,
@@ -663,17 +663,17 @@ namespace System.Management.Automation
//
// If the drive root doesn't end with a path separator then there is a chance the
// path starts with the drive root name but doesn't actually refer to it. For example,
- // (see Win8 bug 922001) consider drive with root HKEY_LOCAL_MACHINE named
+ // (see Win8 bug 922001) consider drive with root HKEY_LOCAL_MACHINE named
// HKEY_LOCAL_MACHINE_foo. The path would start with the drive root but is not a provider
// path.
//
- // We will remediate this by only considering this a provider path if
+ // We will remediate this by only considering this a provider path if
// 1. The drive root ends with a path separator.
// OR
// 2. The path starts with the drive root followed by a path separator
// OR
// 3. The path exactly matches the drive root.
- //
+ //
// 1. Test for the drive root ending with a path separator.
bool driveRootEndsWithPathSeparator = IsPathSeparator(drive.Root[drive.Root.Length - 1]);
@@ -720,39 +720,39 @@ namespace System.Management.Automation
/// Normalizes the path that was passed in and returns the normalized path
/// as a relative path to the basePath that was passed.
///
- ///
+ ///
///
/// The provider to use to normalize the path.
///
- ///
+ ///
///
/// An provider internal path to normalize.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
- /// A normalized path that is relative to the basePath that was passed.
+ /// A normalized path that is relative to the basePath that was passed.
///
///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string NormalizeRelativePath(
ProviderInfo provider,
string path,
@@ -825,39 +825,39 @@ namespace System.Management.Automation
///
/// Generates a path from the given parts.
///
- ///
+ ///
///
/// The parent segment of the path to be joined with the child.
///
- ///
+ ///
///
/// The child segment of the ath to be joined with the parent.
///
- ///
+ ///
///
/// The generated path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If both and is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string MakePath(
string parent,
string child)
@@ -870,43 +870,43 @@ namespace System.Management.Automation
///
/// Generates a path from the given parts.
///
- ///
+ ///
///
/// The parent segment of the path to be joined with the child.
///
- ///
+ ///
///
/// The child segment of the ath to be joined with the parent.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// The generated path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If both and is null.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string MakePath(
string parent,
string child,
@@ -975,39 +975,39 @@ namespace System.Management.Automation
///
/// Uses the specified provider to put the two parts of a path together
///
- ///
+ ///
///
/// The provider to use.
///
- ///
+ ///
///
/// The parent part of the path to join with the child.
///
- ///
+ ///
///
/// The child part of the path to join with the parent.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// The combined path.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string MakePath(
ProviderInfo provider,
string parent,
@@ -1034,39 +1034,39 @@ namespace System.Management.Automation
///
/// Uses the specified provider to put the two parts of a path together
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The parent part of the path to join with the child.
///
- ///
+ ///
///
/// The child part of the path to join with the parent.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// The combined path.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string MakePath(
CmdletProvider providerInstance,
string parent,
@@ -1135,36 +1135,36 @@ namespace System.Management.Automation
///
/// Gets the name of the leaf element in the specified path.
///
- ///
+ ///
///
/// The fully qualified path to the item
///
- ///
+ ///
///
/// The leaf element in the path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string GetChildName(string path)
{
if (path == null)
@@ -1184,40 +1184,40 @@ namespace System.Management.Automation
///
/// Gets the name of the leaf element in the specified path.
///
- ///
+ ///
///
/// The fully qualified path to the item
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// The leaf element in the path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal string GetChildName(
string path,
CmdletProviderContext context)
@@ -1230,19 +1230,19 @@ namespace System.Management.Automation
/// Allow to use FileSystem as the default provider when the
/// given path is drive-qualified and the drive cannot be found.
///
- ///
+ ///
///
/// The fully qualified path to the item
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// to use default provider when needed.
///
- ///
+ ///
///
/// The leaf element in the path.
///
@@ -1302,31 +1302,31 @@ namespace System.Management.Automation
///
/// Gets the leaf element of the specified path.
///
- ///
+ ///
///
/// The provider to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private string GetChildName(
ProviderInfo provider,
string path,
@@ -1354,36 +1354,36 @@ namespace System.Management.Automation
///
/// Gets the leaf element of the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Specify True if the method should just return the Path if the
/// provider doesn't support container overloads.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private string GetChildName(
CmdletProvider providerInstance,
string path,
@@ -1447,31 +1447,31 @@ namespace System.Management.Automation
///
/// Moves the item specified by path to the specified destination.
///
- ///
+ ///
///
/// The path(s) to the item(s) to be moved.
///
- ///
+ ///
///
/// The path of the destination container.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// The item(s) that were moved.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If resolves to multiple paths.
/// or
@@ -1481,24 +1481,24 @@ namespace System.Management.Automation
/// If resolves to multiple paths and
/// is not a container.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection MoveItem(string[] paths, string destination, bool force, bool literalPath)
{
if (paths == null)
@@ -1522,49 +1522,49 @@ namespace System.Management.Automation
///
/// Moves the item specified by path to the specified destination.
///
- ///
+ ///
///
/// The path(s) to the item(s) to be moved.
///
- ///
+ ///
///
/// The path of the destination container.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. All items that are moved are written into the context object.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void MoveItem(
string[] paths,
string destination,
@@ -1690,35 +1690,35 @@ namespace System.Management.Automation
///
/// Moves the item at the specified path to the destination path
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to where the item should be moved.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void MoveItemPrivate(
CmdletProvider providerInstance,
string path,
@@ -1772,46 +1772,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the move-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to move the item to.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object MoveItemDynamicParameters(
string path,
string destination,
@@ -1852,40 +1852,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the move-item cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The path to where the item should be moved.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object MoveItemDynamicParameters(
CmdletProvider providerInstance,
string path,
diff --git a/src/System.Management.Automation/engine/SessionStateProperty.cs b/src/System.Management.Automation/engine/SessionStateProperty.cs
index 008ae485f3..3c3825a48f 100644
--- a/src/System.Management.Automation/engine/SessionStateProperty.cs
+++ b/src/System.Management.Automation/engine/SessionStateProperty.cs
@@ -12,7 +12,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -23,44 +23,44 @@ namespace System.Management.Automation
///
/// Gets the specified properties from the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to get the properties from.
///
- ///
+ ///
///
/// A list of the properties that the provider should return.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// A property table container the properties and their values.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection GetProperty(
string[] paths,
Collection providerSpecificPickList,
@@ -86,50 +86,50 @@ namespace System.Management.Automation
///
/// Gets the specified properties from the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to get the properties from.
///
- ///
+ ///
///
/// A list of the properties that the provider should return.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. A PSObject representing the properties should be written to the
/// context.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void GetProperty(
string[] paths,
Collection providerSpecificPickList,
@@ -172,35 +172,35 @@ namespace System.Management.Automation
///
/// Gets the property from the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The names of the properties to get.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void GetPropertyPrivate(
CmdletProvider providerInstance,
string path,
@@ -254,46 +254,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// A list of the properties that the provider should return.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object GetPropertyDynamicParameters(
string path,
Collection providerSpecificPickList,
@@ -334,40 +334,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the get-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The names of the properties to get.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object GetPropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -427,48 +427,48 @@ namespace System.Management.Automation
///
/// Sets the specified properties on the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to set the properties on.
///
- ///
+ ///
///
/// A PSObject containing the properties to be changed.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// An array of PSObjects representing the properties that were set on each item.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal Collection SetProperty(string[] paths, PSObject property, bool force, bool literalPath)
{
if (paths == null)
@@ -497,50 +497,50 @@ namespace System.Management.Automation
///
/// Sets the specified properties on specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to set the properties on.
///
- ///
+ ///
///
/// A property table containing the properties and values to be set on the object.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. A PSObject is passed to the context for the properties on each item
/// that were modified.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void SetProperty(
string[] paths,
PSObject property,
@@ -587,35 +587,35 @@ namespace System.Management.Automation
///
/// Sets the property of the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to set.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void SetPropertyPrivate(
CmdletProvider providerInstance,
string path,
@@ -673,46 +673,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// A property table containing the properties and values to be set on the object.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object SetPropertyDynamicParameters(
string path,
PSObject propertyValue,
@@ -753,40 +753,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the set-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The value of the property to set.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object SetPropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
@@ -847,44 +847,44 @@ namespace System.Management.Automation
///
/// Clears the specified property on the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to clear the property on.
///
- ///
+ ///
///
/// The name of the property to clear.
///
- ///
+ ///
///
/// Passed on to providers to force operations.
///
- ///
+ ///
///
/// If true, globbing is not done on paths.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void ClearProperty(
string[] paths,
Collection propertyToClear,
@@ -913,45 +913,45 @@ namespace System.Management.Automation
///
/// Clears the specified property in the specified item.
///
- ///
+ ///
///
/// The path(s) to the item(s) to clear the property on.
///
- ///
+ ///
///
/// A property table containing the property to clear.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void ClearProperty(
string[] paths,
Collection propertyToClear,
@@ -995,35 +995,35 @@ namespace System.Management.Automation
///
/// Clears the value of the property from the item at the specified path.
///
- ///
+ ///
///
/// The provider instance to use.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to clear.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private void ClearPropertyPrivate(
CmdletProvider providerInstance,
string path,
@@ -1081,46 +1081,46 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// A property table containing the property to clear.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal object ClearPropertyDynamicParameters(
string path,
Collection propertyToClear,
@@ -1161,40 +1161,40 @@ namespace System.Management.Automation
///
/// Gets the dynamic parameters for the clear-itemproperty cmdlet.
///
- ///
+ ///
///
/// The path to the item if it was specified on the command line.
///
- ///
+ ///
///
/// The name of the property to clear.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
///
/// If the does not support this operation.
///
- ///
+ ///
///
/// If the pipeline is being stopped while executing the command.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
private object ClearPropertyDynamicParameters(
CmdletProvider providerInstance,
string path,
diff --git a/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs b/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs
index 44534042cd..ecf08f9379 100644
--- a/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateProviderAPIs.cs
@@ -15,7 +15,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a PowerShell session
+ /// Holds the state of a PowerShell session
///
internal sealed partial class SessionStateInternal
{
@@ -38,7 +38,7 @@ namespace System.Management.Automation
///
/// Stores the current working drive for each provider. This
- /// allows for retrieving the current working directory for each
+ /// allows for retrieving the current working directory for each
/// individual provider.
///
internal Dictionary ProvidersCurrentWorkingDrive
@@ -57,7 +57,7 @@ namespace System.Management.Automation
///
/// Gets called by the RunspaceConfiguration when a PSSnapin gets added or removed.
///
- ///
+ ///
internal void UpdateProviders()
{
// This should only be called from Update() on a runspace configuration q.e.d. runspace configuration
@@ -184,36 +184,36 @@ namespace System.Management.Automation
/// Determines the appropriate provider for the drive and then calls the NewDrive
/// method of that provider.
///
- ///
+ ///
///
/// The drive to have the provider verify.
///
- ///
+ ///
///
/// The command context under which the drive is being added.
///
- ///
+ ///
///
/// If true, the drive root will be resolved as an MSH path before verifying with
/// the provider. If false, the path is assumed to be a provider-internal path.
///
- ///
+ ///
///
/// The instance of the drive to be added as approved by the provider.
///
- ///
+ ///
///
/// If the provider is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// The provider for the could not be found.
///
- ///
+ ///
///
/// If the provider throws an exception while validating the drive.
///
- ///
+ ///
private PSDriveInfo ValidateDriveWithProvider(PSDriveInfo drive, CmdletProviderContext context, bool resolvePathIfPossible)
{
Dbg.Diagnostics.Assert(
@@ -299,24 +299,24 @@ namespace System.Management.Automation
///
/// Gets an instance of a provider given the provider ID.
///
- ///
+ ///
///
/// The identifier for the provider to return an instance of.
///
- ///
+ ///
///
/// An instance of the specified provider.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that doesn't exist or
/// the name passed matched multiple providers.
///
- ///
+ ///
internal Provider.CmdletProvider GetProviderInstance(string providerId)
{
if (providerId == null)
@@ -332,19 +332,19 @@ namespace System.Management.Automation
///
/// Gets an instance of a provider given the provider information.
///
- ///
+ ///
///
/// The provider to return an instance of.
///
- ///
+ ///
///
/// An instance of the specified provider.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal Provider.CmdletProvider GetProviderInstance(ProviderInfo provider)
{
if (provider == null)
@@ -358,19 +358,19 @@ namespace System.Management.Automation
///
/// Creates an exception for the case where the provider name matched multiple providers.
///
- ///
+ ///
///
/// The name of the provider.
///
- ///
+ ///
///
/// The ProviderInfo of the possible matches.
///
- ///
+ ///
///
/// An exception representing the error with a message stating which providers are possible matches.
///
- ///
+ ///
internal static ProviderNameAmbiguousException NewAmbiguousProviderName(string name, Collection matchingProviders)
{
string possibleMatches = GetPossibleMatches(matchingProviders);
@@ -402,28 +402,28 @@ namespace System.Management.Automation
///
/// Gets an instance of an DriveCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// The provider ID of the provider to get an instance of.
///
- ///
+ ///
///
/// An instance of a DriveCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
///
/// If the refers to a provider that doesn't exist.
///
- ///
+ ///
internal DriveCmdletProvider GetDriveProviderInstance(string providerId)
{
if (providerId == null)
@@ -446,24 +446,24 @@ namespace System.Management.Automation
///
/// Gets an instance of an DriveCmdletProvider given the provider information.
///
- ///
+ ///
///
/// The provider to get an instance of.
///
- ///
+ ///
///
/// An instance of a DriveCmdletProvider for the specified provider.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
internal DriveCmdletProvider GetDriveProviderInstance(ProviderInfo provider)
{
if (provider == null)
@@ -486,24 +486,24 @@ namespace System.Management.Automation
///
/// Gets an instance of an DriveCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// An instance of a DriveCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from DriveCmdletProvider.
///
- ///
+ ///
private static DriveCmdletProvider GetDriveProviderInstance(CmdletProvider providerInstance)
{
if (providerInstance == null)
@@ -526,28 +526,28 @@ namespace System.Management.Automation
///
/// Gets an instance of an ItemCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// The provider ID of the provider to get an instance of.
///
- ///
+ ///
///
/// An instance of a ItemCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
///
/// If the refers to a provider that doesn't exist.
///
- ///
+ ///
internal ItemCmdletProvider GetItemProviderInstance(string providerId)
{
if (providerId == null)
@@ -570,24 +570,24 @@ namespace System.Management.Automation
///
/// Gets an instance of an ItemCmdletProvider given the provider.
///
- ///
+ ///
///
/// The provider to get an instance of.
///
- ///
+ ///
///
/// An instance of a ItemCmdletProvider for the specified provider.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
internal ItemCmdletProvider GetItemProviderInstance(ProviderInfo provider)
{
if (provider == null)
@@ -610,24 +610,24 @@ namespace System.Management.Automation
///
/// Gets an instance of an ItemCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// An instance of a ItemCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from ItemCmdletProvider.
///
- ///
+ ///
private static ItemCmdletProvider GetItemProviderInstance(CmdletProvider providerInstance)
{
if (providerInstance == null)
@@ -650,28 +650,28 @@ namespace System.Management.Automation
///
/// Gets an instance of an ContainerCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// The provider ID of the provider to get an instance of.
///
- ///
+ ///
///
/// An instance of a ContainerCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
///
/// If the refers to a provider that doesn't exist.
///
- ///
+ ///
internal ContainerCmdletProvider GetContainerProviderInstance(string providerId)
{
if (providerId == null)
@@ -694,24 +694,24 @@ namespace System.Management.Automation
///
/// Gets an instance of an ContainerCmdletProvider given the provider.
///
- ///
+ ///
///
/// The provider to get an instance of.
///
- ///
+ ///
///
/// An instance of a ContainerCmdletProvider for the specified provider.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
internal ContainerCmdletProvider GetContainerProviderInstance(ProviderInfo provider)
{
if (provider == null)
@@ -734,24 +734,24 @@ namespace System.Management.Automation
///
/// Gets an instance of an ContainerCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// An instance of a ContainerCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from ContainerCmdletProvider.
///
- ///
+ ///
private static ContainerCmdletProvider GetContainerProviderInstance(CmdletProvider providerInstance)
{
if (providerInstance == null)
@@ -774,24 +774,24 @@ namespace System.Management.Automation
///
/// Gets an instance of an NavigationCmdletProvider given the provider.
///
- ///
+ ///
///
/// The provider to get an instance of.
///
- ///
+ ///
///
/// An instance of a NavigationCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
internal NavigationCmdletProvider GetNavigationProviderInstance(ProviderInfo provider)
{
if (provider == null)
@@ -814,29 +814,29 @@ namespace System.Management.Automation
///
/// Gets an instance of an NavigationCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// The instance of the provider to use.
///
- ///
+ ///
///
/// Specify True if the method should just return the Path if the
/// provider doesn't support container overloads.
///
- ///
+ ///
///
/// An instance of a NavigationCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// if is null.
///
- ///
+ ///
///
/// if the is not for a provider
/// that is derived from NavigationCmdletProvider.
///
- ///
+ ///
private static NavigationCmdletProvider GetNavigationProviderInstance(CmdletProvider providerInstance, bool acceptNonContainerProviders)
{
if (providerInstance == null)
@@ -861,19 +861,19 @@ namespace System.Management.Automation
///
/// Determines if the specified CmdletProvider is loaded.
///
- ///
+ ///
///
/// The name of the CmdletProvider.
///
- ///
+ ///
///
/// true if the CmdletProvider is loaded, or false otherwise.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal bool IsProviderLoaded(string name)
{
bool result = false;
@@ -901,24 +901,24 @@ namespace System.Management.Automation
///
/// Gets the provider of the specified name
///
- ///
+ ///
///
/// The name of the provider to retrieve
///
- ///
+ ///
///
/// The provider of the given name
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
- /// The provider with the specified
+ /// The provider with the specified
/// could not be found.
///
- ///
+ ///
internal Collection GetProvider(string name)
{
if (String.IsNullOrEmpty(name))
@@ -945,26 +945,26 @@ namespace System.Management.Automation
///
/// Gets the provider of the specified name
///
- ///
+ ///
///
/// The name of the provider to retrieve
///
- ///
+ ///
///
/// The provider of the given name
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
- /// The provider with the specified
+ /// The provider with the specified
/// could not be found or the name was ambiguous.
/// If the name is ambiguous then the PSSnapin qualified name must
/// be specified.
///
- ///
+ ///
internal ProviderInfo GetSingleProvider(string name)
{
Collection matchingProviders = GetProvider(name);
@@ -1105,33 +1105,33 @@ namespace System.Management.Automation
/// provider, calling its start method followed by the InitializeDefaultDrives method. The
/// Drives that are returned from the InitializeDefaultDrives method are then mounted.
///
- ///
+ ///
///
/// An instance of the provider to use for the initialization.
///
- ///
+ ///
///
/// The provider to be initialized.
///
- ///
+ ///
///
/// The context under which the initialization is occurring. If this parameter is not
/// null, errors will be written to the WriteError method of the context.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the provider is not a DriveCmdletProvider.
///
- ///
+ ///
///
/// If a drive already exists for the name of one of the drives the
/// provider tries to add.
///
- ///
+ ///
internal void InitializeProvider(
Provider.CmdletProvider providerInstance,
ProviderInfo provider,
@@ -1198,7 +1198,7 @@ namespace System.Management.Automation
if (newDrives != null && newDrives.Count > 0)
{
- // Add the drives.
+ // Add the drives.
foreach (PSDriveInfo newDrive in newDrives)
{
@@ -1237,30 +1237,30 @@ namespace System.Management.Automation
///
- /// Creates and adds a provider to the provider container
+ /// Creates and adds a provider to the provider container
///
- ///
+ ///
///
/// The provider to add.
///
- ///
+ ///
///
/// The provider that was added or null if the provider failed to be added.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the provider already exists.
///
- ///
+ ///
///
/// If there was a failure to load the provider or the provider
/// threw an exception.
///
- ///
+ ///
internal ProviderInfo NewProvider(ProviderInfo provider)
{
if (provider == null)
@@ -1269,7 +1269,7 @@ namespace System.Management.Automation
}
// Check to see if the provider already exists.
- // We do the check instead of allowing the hashtable to
+ // We do the check instead of allowing the hashtable to
// throw the exception so that we give a better error
// message.
ProviderInfo existingProvider = ProviderExists(provider);
@@ -1381,7 +1381,7 @@ namespace System.Management.Automation
throw sessionStateException;
}
- // Add the provider to the provider current working
+ // Add the provider to the provider current working
// drive hashtable so that we can associate a current working
// drive with it.
@@ -1390,7 +1390,7 @@ namespace System.Management.Automation
bool initializeProviderError = false;
try
{
- // Initialize the provider and give it a chance to
+ // Initialize the provider and give it a chance to
// mount some drives.
InitializeProvider(providerInstance, provider, context);
@@ -1427,7 +1427,7 @@ namespace System.Management.Automation
{
if (initializeProviderError)
{
- // An exception during initialization should remove the provider from
+ // An exception during initialization should remove the provider from
// session state.
Providers.Remove(provider.Name.ToString());
@@ -1469,15 +1469,15 @@ namespace System.Management.Automation
///
/// Creates an entry in the providers hashtable for the new provider.
///
- ///
+ ///
///
/// The provider being added.
///
- ///
+ ///
///
/// If a provider with the same name and PSSnapIn name already exists.
///
- ///
+ ///
private void NewProviderEntry(ProviderInfo provider)
{
bool isDuplicateProvider = false;
@@ -1568,11 +1568,11 @@ namespace System.Management.Automation
///
/// Removes the provider of the given name.
///
- ///
+ ///
///
/// The name of the provider to remove.
///
- ///
+ ///
///
/// Determines if the provider should be removed forcefully even if there were
/// drives present or errors.
@@ -1581,39 +1581,39 @@ namespace System.Management.Automation
///
/// The context under which the command is being run.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// There are still drives associated with this provider,
/// and the "force" option was not specified.
///
- ///
+ ///
///
/// A provider with name could not be found.
///
- ///
+ ///
///
/// If a provider throws an exception it gets written to the .
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// All drives associated with the provider must be removed before the provider
/// can be removed. Call SessionState.GetDrivesForProvider() to determine if there
/// are any drives associated with the provider. A SessionStateException
/// will be written to the context if any such drives do exist.
///
- ///
+ ///
internal void RemoveProvider(
string providerName,
bool force,
@@ -1775,17 +1775,17 @@ namespace System.Management.Automation
///
/// Removes the provider from the providers dictionary.
///
- ///
+ ///
///
/// The provider to be removed.
///
- ///
+ ///
///
/// If there are multiple providers with the same name, then only the provider
/// from the matching PSSnapin is removed.
/// If the last provider of that name is removed the entry is removed from the dictionary.
///
- ///
+ ///
private void RemoveProviderFromCollection(ProviderInfo provider)
{
List matchingProviders;
@@ -1807,7 +1807,7 @@ namespace System.Management.Automation
///
/// Gets the count of the number of providers that are loaded
///
- ///
+ ///
internal int ProviderCount
{
get
diff --git a/src/System.Management.Automation/engine/SessionStatePublic.cs b/src/System.Management.Automation/engine/SessionStatePublic.cs
index 403180c812..e032b115aa 100644
--- a/src/System.Management.Automation/engine/SessionStatePublic.cs
+++ b/src/System.Management.Automation/engine/SessionStatePublic.cs
@@ -26,7 +26,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
internal SessionState(SessionStateInternal sessionState)
{
if (sessionState == null)
@@ -311,7 +311,7 @@ namespace System.Management.Automation
///
/// The state APIs to access relationship providers in session state.
///
- ///
+ ///
public RelationshipProviderManagementIntrinsics Relationship
{
get
@@ -334,7 +334,7 @@ namespace System.Management.Automation
///
/// Gets a reference to the "real" session state object instead of the facade
///
- ///
+ ///
internal SessionStateInternal Internal
{
get { return _sessionState; }
diff --git a/src/System.Management.Automation/engine/SessionStateScope.cs b/src/System.Management.Automation/engine/SessionStateScope.cs
index 8e1aff4fc8..6b5e4b3972 100644
--- a/src/System.Management.Automation/engine/SessionStateScope.cs
+++ b/src/System.Management.Automation/engine/SessionStateScope.cs
@@ -20,11 +20,11 @@ namespace System.Management.Automation
///
/// Constructor for a session state scope.
///
- ///
+ ///
///
/// The parent of this scope. It can be null for the global scope.
///
- ///
+ ///
internal SessionStateScope(SessionStateScope parentScope)
{
ScopeOrigin = CommandOrigin.Internal;
@@ -61,11 +61,11 @@ namespace System.Management.Automation
/// The script scope for this scope. It may reference itself but may not
/// be a null reference.
///
- ///
+ ///
///
/// If is null when setting the property.
///
- ///
+ ///
internal SessionStateScope ScriptScope
{
get { return _scriptScope; }
@@ -93,7 +93,7 @@ namespace System.Management.Automation
/// When dotting a script, no new scope is created. Automatic variables must go somewhere, so rather than store
/// them in the scope they are dotted into, we just store them in a tuple like any other local variable so we
/// can skip saving and restoring them as the scopes change, instead it's a simple push/pop of this stack.
- ///
+ ///
/// This works because in a dotted script block, the only locals in the tuple are the automatic variables, all
/// other variables use the variable apis to find the variable and get/set it.
///
@@ -104,24 +104,24 @@ namespace System.Management.Automation
///
/// Adds a new drive to the scope's drive collection.
///
- ///
+ ///
///
/// The new drive to be added.
///
- ///
+ ///
///
/// This method assumes the drive has already been verified and
/// the provider has already been notified.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If a drive of the same name already exists in this scope.
///
- ///
+ ///
internal void NewDrive(PSDriveInfo newDrive)
{
if (newDrive == null)
@@ -163,20 +163,20 @@ namespace System.Management.Automation
///
/// Removes the specified drive from this scope.
///
- ///
+ ///
///
/// The drive to be removed.
///
- ///
+ ///
///
/// This method assumes that the drive has already been validated for removal
/// by the provider.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal void RemoveDrive(PSDriveInfo drive)
{
if (drive == null)
@@ -218,20 +218,20 @@ namespace System.Management.Automation
///
/// Retrieves the drive of the specified name.
///
- ///
+ ///
///
/// The name of the drive to retrieve.
///
- ///
+ ///
///
/// An instance of a PSDriveInfo object with the specified name if one
/// exists in this scope or null if one does not exist.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PSDriveInfo GetDrive(string name)
{
if (name == null)
@@ -294,7 +294,7 @@ namespace System.Management.Automation
///
/// The name of the variable to retrieve.
///
- ///
+ ///
///
/// The origin of the command trying to retrieve this variable...
///
@@ -356,7 +356,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -397,7 +397,7 @@ namespace System.Management.Automation
/// If true, sets the variable value to newValue. If false, newValue must
/// be a PSVariable object and the item will be set rather than the value.
///
- ///
+ ///
///
/// If true, the variable will be set even if it is readonly.
///
@@ -405,11 +405,11 @@ namespace System.Management.Automation
///
/// Which SessionState this variable belongs to.
///
- ///
+ ///
///
/// The origin of the caller
///
- ///
+ ///
///
/// If true and the variable is being set in the global scope,
/// then all of the normal variable lookup stuff is bypassed and
@@ -421,8 +421,8 @@ namespace System.Management.Automation
///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
internal PSVariable SetVariable(string name, object value, bool asValue, bool force, SessionStateInternal sessionState, CommandOrigin origin = CommandOrigin.Internal, bool fastPath = false)
{
Diagnostics.Assert(name != null, "The caller should verify the name");
@@ -566,23 +566,23 @@ namespace System.Management.Automation
///
/// The new variable to create.
///
- ///
+ ///
///
/// If true, the variable will be set even if it is readonly.
///
- ///
+ ///
///
/// Which SessionState this variable belongs to.
///
- ///
+ ///
///
/// The PSVariable representing the variable that was set.
///
///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
internal PSVariable NewVariable(PSVariable newVariable, bool force, SessionStateInternal sessionState)
{
PSVariable variable;
@@ -666,11 +666,11 @@ namespace System.Management.Automation
///
/// If true, the variable will be removed even if its ReadOnly.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
internal void RemoveVariable(string name, bool force)
{
Diagnostics.Assert(
@@ -798,15 +798,15 @@ namespace System.Management.Automation
///
/// The execution context for this engine instance.
///
- ///
+ ///
///
/// If true, the value will be set even if the alias is ReadOnly.
///
- ///
+ ///
///
/// Origin of the caller of this API
///
- ///
+ ///
///
/// The string representing the value that was set.
///
@@ -814,7 +814,7 @@ namespace System.Management.Automation
///
/// if the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasValue(string name, string value, ExecutionContext context, bool force, CommandOrigin origin)
{
Diagnostics.Assert(
@@ -878,19 +878,19 @@ namespace System.Management.Automation
///
/// The execution context for this engine instance.
///
- ///
+ ///
///
/// The options to set on the alias.
///
- ///
+ ///
///
/// If true, the value will be set even if the alias is ReadOnly.
///
- ///
+ ///
///
/// Origin of the caller of this API
///
- ///
+ ///
///
/// The string representing the value that was set.
///
@@ -898,7 +898,7 @@ namespace System.Management.Automation
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasValue(
string name,
string value,
@@ -954,7 +954,7 @@ namespace System.Management.Automation
if ((options & ScopedItemOptions.AllScope) == 0 &&
(aliasInfo.Options & ScopedItemOptions.AllScope) != 0)
{
- // user is trying to remove the AllScope option from the alias.
+ // user is trying to remove the AllScope option from the alias.
// Do not allow this (as per spec).
SessionStateUnauthorizedAccessException e =
@@ -1002,11 +1002,11 @@ namespace System.Management.Automation
/// If true, the alias will be set even if there is an existing ReadOnly
/// alias.
///
- ///
+ ///
///
/// Specifies the command origin of the calling command.
///
- ///
+ ///
///
/// The string representing the value that was set.
///
@@ -1014,7 +1014,7 @@ namespace System.Management.Automation
///
/// If the alias is read-only or constant.
///
- ///
+ ///
internal AliasInfo SetAliasItem(AliasInfo aliasToSet, bool force, CommandOrigin origin = CommandOrigin.Internal)
{
Diagnostics.Assert(
@@ -1047,7 +1047,7 @@ namespace System.Management.Automation
if ((aliasToSet.Options & ScopedItemOptions.AllScope) == 0 &&
(aliasInfo.Options & ScopedItemOptions.AllScope) != 0)
{
- // user is trying to remove the AllScope option from the alias.
+ // user is trying to remove the AllScope option from the alias.
// Do not allow this (as per spec).
SessionStateUnauthorizedAccessException e =
@@ -1080,11 +1080,11 @@ namespace System.Management.Automation
///
/// If true, the alias will be removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If the alias is constant.
///
- ///
+ ///
internal void RemoveAlias(string name, bool force)
{
Diagnostics.Assert(
@@ -1172,15 +1172,15 @@ namespace System.Management.Automation
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// The execution context for the function/filter.
///
- ///
+ ///
///
/// A FunctionInfo that is either a FilterInfo or FunctionInfo representing the
/// function or filter.
@@ -1188,8 +1188,8 @@ namespace System.Management.Automation
///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -1218,15 +1218,15 @@ namespace System.Management.Automation
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// The execution context for the function/filter.
///
- ///
+ ///
///
/// A FunctionInfo that is either a FilterInfo or FunctionInfo representing the
/// function or filter.
@@ -1234,8 +1234,8 @@ namespace System.Management.Automation
///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -1266,19 +1266,19 @@ namespace System.Management.Automation
///
/// The options that should be applied to the function.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// The execution context for the function/filter.
///
- ///
+ ///
///
/// A FunctionInfo that is either a FilterInfo or FunctionInfo representing the
/// function or filter.
@@ -1286,8 +1286,8 @@ namespace System.Management.Automation
///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -1332,23 +1332,23 @@ namespace System.Management.Automation
///
/// The options that should be applied to the function.
///
- ///
+ ///
///
/// If true, the function will be set even if its ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// The execution context for the function/filter.
///
- ///
+ ///
///
/// The name of the help file associated with the function.
///
- ///
+ ///
///
/// Function to create the FunctionInfo.
///
@@ -1360,8 +1360,8 @@ namespace System.Management.Automation
///
///
/// If the function is read-only or constant.
- ///
- ///
+ ///
+ ///
internal FunctionInfo SetFunction(
string name,
ScriptBlock function,
@@ -1480,11 +1480,11 @@ namespace System.Management.Automation
///
/// If true, the function is removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If the function is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveFunction(string name, bool force)
{
Diagnostics.Assert(
@@ -1576,24 +1576,24 @@ namespace System.Management.Automation
///
/// The cmdlet that should be added.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// The execution context for the cmdlet.
///
- ///
+ ///
///
/// A CmdletInfo representing the cmdlet
///
///
///
/// If the cmdlet is read-only or constant.
- ///
- ///
- ///
+ ///
+ ///
+ ///
internal CmdletInfo AddCmdletToCache(
string name,
CmdletInfo cmdlet,
@@ -1689,20 +1689,20 @@ namespace System.Management.Automation
///
/// The name of the cmdlet to remove.
///
- ///
+ ///
///
/// The index at which to remove the cmdlet
/// If index is -1, remove all cmdlets with that name
///
- ///
+ ///
///
/// If true, the cmdlet is removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If the cmdlet is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveCmdlet(string name, int index, bool force)
{
Diagnostics.Assert(
@@ -1738,15 +1738,15 @@ namespace System.Management.Automation
///
/// The key for the cmdlet entry to remove.
///
- ///
+ ///
///
/// If true, the cmdlet entry is removed even if it is ReadOnly.
///
- ///
+ ///
///
/// If the cmdlet is constant.
- ///
- ///
+ ///
+ ///
internal void RemoveCmdletEntry(string name, bool force)
{
Diagnostics.Assert(
@@ -2030,7 +2030,7 @@ namespace System.Management.Automation
/// We don't need a new reference in each scope since it
/// is ScopedItemOptions.Constant.
///
- ///
+ ///
private static readonly PSVariable s_trueVar =
new PSVariable(
StringLiterals.True,
@@ -2043,7 +2043,7 @@ namespace System.Management.Automation
/// We don't need a new reference in each scope since it
/// is ScopedItemOptions.Constant.
///
- ///
+ ///
private static readonly PSVariable s_falseVar =
new PSVariable(
StringLiterals.False,
@@ -2056,7 +2056,7 @@ namespace System.Management.Automation
/// We don't need a new reference in each scope since it
/// is ScopedItemOptions.Constant.
///
- ///
+ ///
private static readonly NullVariable s_nullVar =
new NullVariable();
@@ -2086,7 +2086,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -2109,7 +2109,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs b/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs
index 720a37d49d..ee48e19bfc 100644
--- a/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateScopeAPIs.cs
@@ -10,7 +10,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -25,28 +25,28 @@ namespace System.Management.Automation
///
/// Given a scope identifier, returns the proper session state scope.
///
- ///
+ ///
///
/// A scope identifier that is either one of the "special" scopes like
/// "global", "local", or "private, or a numeric ID of a relative scope
/// to the current scope.
///
- ///
+ ///
///
/// The scope identified by the scope ID or the current scope if the
/// scope ID is not defined as a special or numeric scope identifier.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal SessionStateScope GetScopeByID(string scopeID)
{
SessionStateScope result = _currentScope;
@@ -85,7 +85,7 @@ namespace System.Management.Automation
else
{
// Since the scope is not any of the special scopes
- // try parsing it as an ID
+ // try parsing it as an ID
try
{
@@ -115,21 +115,21 @@ namespace System.Management.Automation
///
/// Given a scope ID, walks the scope list to the appropriate scope and returns it.
///
- ///
+ ///
///
/// The numeric indexer to the scope relative to the current scope.
///
- ///
+ ///
///
/// The scope at the index specified. The index is relative to the current
/// scope.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal SessionStateScope GetScopeByID(int scopeID)
{
SessionStateScope processingScope = _currentScope;
@@ -163,7 +163,7 @@ namespace System.Management.Automation
///
/// The module scope of a session state. This is only used internally
- /// by the engine. There is no module scope qualifier.
+ /// by the engine. There is no module scope qualifier.
///
internal SessionStateScope ModuleScope { get; }
@@ -221,16 +221,16 @@ namespace System.Management.Automation
/// Creates a new scope in the scope tree and assigns the parent
/// and child scopes appropriately.
///
- ///
+ ///
///
/// If true, the new scope is pushed on to the script scope stack and
/// can be referenced using $script:
///
- ///
+ ///
///
/// A new SessionStateScope which is a child of the current scope.
///
- ///
+ ///
internal SessionStateScope NewScope(bool isScriptScope)
{
Diagnostics.Assert(
@@ -252,15 +252,15 @@ namespace System.Management.Automation
/// Removes the current scope from the scope tree and
/// changes the current scope to the parent scope.
///
- ///
+ ///
///
/// The scope to cleanup and remove.
///
- ///
+ ///
///
/// The global scope cannot be removed.
///
- ///
+ ///
internal void RemoveScope(SessionStateScope scope)
{
Diagnostics.Assert(
@@ -312,7 +312,7 @@ namespace System.Management.Automation
}
catch (Exception) // Catch-all OK, 3rd party callout.
{
- // Ignore all exceptions from the provider as we are
+ // Ignore all exceptions from the provider as we are
// going to force the removal anyway
}
} // foreach drive
diff --git a/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs b/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs
index b5402bb95e..e88352c533 100644
--- a/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs
+++ b/src/System.Management.Automation/engine/SessionStateScopeEnumerator.cs
@@ -13,7 +13,7 @@ namespace System.Management.Automation
/// Constructs an enumerator for enumerating through the session state scopes
/// using the appropriate scoping rules (default to dynamic scoping).
///
- ///
+ ///
///
/// The starting scope to start the enumeration from.
///
@@ -26,11 +26,11 @@ namespace System.Management.Automation
///
/// Uses the proper scoping rules to get the next scope to do the lookup in.
///
- ///
+ ///
///
/// True if the enumerator was advanced to the next scope, or false otherwise.
///
- ///
+ ///
public bool MoveNext()
{
// On the first call to MoveNext the enumerator should be before
@@ -55,12 +55,12 @@ namespace System.Management.Automation
///
/// Gets the current lookup scope
///
- ///
+ ///
///
/// The enumerator is positioned before the first element of the
/// collection or after the last element.
///
- ///
+ ///
SessionStateScope IEnumerator.Current
{
get
@@ -85,7 +85,7 @@ namespace System.Management.Automation
///
/// Gets the IEnumerator for this class
///
- ///
+ ///
///
/// The IEnumerator interface for this class.
///
diff --git a/src/System.Management.Automation/engine/SessionStateSecurityDescriptorInterface.cs b/src/System.Management.Automation/engine/SessionStateSecurityDescriptorInterface.cs
index 79b84bbd58..16b4cbf9c2 100644
--- a/src/System.Management.Automation/engine/SessionStateSecurityDescriptorInterface.cs
+++ b/src/System.Management.Automation/engine/SessionStateSecurityDescriptorInterface.cs
@@ -14,7 +14,7 @@ using Microsoft.PowerShell.CoreClr.Stubs;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -23,21 +23,21 @@ namespace System.Management.Automation
///
/// Gets an instance of an ISecurityDescriptorCmdletProvider given the provider ID.
///
- ///
+ ///
///
/// An instance of a CmdletProvider.
///
- ///
+ ///
///
/// An instance of a ISecurityDescriptorCmdletProvider for the specified provider ID.
///
- ///
+ ///
///
/// ArgumentNullException if providerId is null.
/// NotSupportedException if the providerId is not for a provider
/// that is derived from ISecurityDescriptorCmdletProvider.
///
- ///
+ ///
internal static ISecurityDescriptorCmdletProvider GetPermissionProviderInstance(CmdletProvider providerInstance)
{
if (providerInstance == null)
@@ -66,19 +66,19 @@ namespace System.Management.Automation
///
/// Gets the security descriptor from the specified item.
///
- ///
+ ///
///
/// The path to the item to retrieve the security descriptor from.
///
- ///
+ ///
///
/// Specifies the parts of a security descriptor to retrieve.
///
- ///
+ ///
///
/// The security descriptor for the item at the specified path.
///
- ///
+ ///
internal Collection GetSecurityDescriptor(string path,
AccessControlSections sections)
{
@@ -101,29 +101,29 @@ namespace System.Management.Automation
///
/// Gets the security descriptor from the specified item.
///
- ///
+ ///
///
/// The path to the item to retrieve the security descriptor from.
///
- ///
+ ///
///
/// Specifies the parts of a security descriptor to retrieve.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. The security descriptor for the item at the specified path is
/// written to the context.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void GetSecurityDescriptor(
string path,
AccessControlSections sections,
@@ -208,19 +208,19 @@ namespace System.Management.Automation
///
/// Sets the security descriptor on the specified item.
///
- ///
+ ///
///
/// The path to the item to set the security descriptor on.
///
- ///
+ ///
///
/// The security descriptor to set on the item at the specified path.
///
- ///
+ ///
///
/// The security descriptor that was set on the item at the specified path.
///
- ///
+ ///
internal Collection SetSecurityDescriptor(string path, ObjectSecurity securityDescriptor)
{
if (path == null)
@@ -248,29 +248,29 @@ namespace System.Management.Automation
///
/// Sets the security descriptor on the specified item.
///
- ///
+ ///
///
/// The path to the item to set the security descriptor on.
///
- ///
+ ///
///
/// The security descriptor to set on the item at the specified path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Nothing. The security descriptor that was set on the item at the specified path
/// is written to the context.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal void SetSecurityDescriptor(
string path,
ObjectSecurity securityDescriptor,
@@ -372,7 +372,7 @@ namespace System.Management.Automation
//
// thrown if path points to an item that does not
// support access control.
- //
+ //
// for example, FAT or FAT32 file in case of file system provider
//
context.WriteError(new ErrorRecord(e, e.GetType().FullName, ErrorCategory.InvalidOperation, path));
@@ -403,25 +403,25 @@ namespace System.Management.Automation
///
/// Gets the security descriptor from the specified item.
///
- ///
+ ///
///
/// The path to the item to retrieve the security descriptor from.
///
- ///
+ ///
///
/// Specifies the parts of a security descriptor to retrieve.
///
- ///
+ ///
///
/// Nothing. The security descriptor for the item at the specified path is
/// written to the context.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal ObjectSecurity NewSecurityDescriptorFromPath(
string path,
AccessControlSections sections)
@@ -519,25 +519,25 @@ namespace System.Management.Automation
///
/// Gets the security descriptor from the specified item.
///
- ///
+ ///
///
/// The type of the item which corresponds to the security
/// descriptor that we want to create.
///
- ///
+ ///
///
/// The name of the provider.
///
- ///
+ ///
///
/// Specifies the parts of a security descriptor to retrieve.
///
- ///
+ ///
///
/// Nothing. The security descriptor for the item at the specified type is
/// written to the context.
///
- ///
+ ///
internal ObjectSecurity NewSecurityDescriptorOfType(
string providerId,
string type,
@@ -550,26 +550,26 @@ namespace System.Management.Automation
///
/// Gets the security descriptor from the specified item.
///
- ///
+ ///
///
/// The type of the item which corresponds to the security
/// descriptor that we want to create.
///
- ///
+ ///
///
/// The type of the item which corresponds to the security
/// descriptor that we want to create.
///
- ///
+ ///
///
/// Specifies the parts of a security descriptor to retrieve.
///
- ///
+ ///
///
/// Nothing. The security descriptor for the item at the specified type is
/// written to the context.
///
- ///
+ ///
internal ObjectSecurity NewSecurityDescriptorOfType(
CmdletProvider providerInstance,
string type,
diff --git a/src/System.Management.Automation/engine/SessionStateStrings.cs b/src/System.Management.Automation/engine/SessionStateStrings.cs
index c640c10351..cb93f41d42 100644
--- a/src/System.Management.Automation/engine/SessionStateStrings.cs
+++ b/src/System.Management.Automation/engine/SessionStateStrings.cs
@@ -5,7 +5,7 @@ Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Management.Automation
{
///
- /// Holds the #defines for any special strings used in session state.
+ /// Holds the #defines for any special strings used in session state.
///
///
internal static class StringLiterals
@@ -24,7 +24,7 @@ namespace System.Management.Automation
/// Porting note: IO.Path.DirectorySeparatorChar is correct for all platforms. On Windows,
/// it is '\', and on Linux, it is '/', as expected.
///
- ///
+ ///
internal static readonly char DefaultPathSeparator = System.IO.Path.DirectorySeparatorChar;
internal static readonly string DefaultPathSeparatorString = DefaultPathSeparator.ToString();
@@ -36,7 +36,7 @@ namespace System.Management.Automation
/// be "slash agnostic", we need to use the assumption that a '\' is the alternate path
/// separator on Linux.
///
- ///
+ ///
internal static readonly char AlternatePathSeparator = Platform.IsWindows ? '/' : '\\';
internal static readonly string AlternatePathSeparatorString = AlternatePathSeparator.ToString();
@@ -44,14 +44,14 @@ namespace System.Management.Automation
/// The default path prefix for remote paths. This is to mimic
/// UNC paths in the file system.
///
- ///
+ ///
internal const string DefaultRemotePathPrefix = "\\\\";
///
/// The alternate path prefix for remote paths. This is to mimic
/// UNC paths in the file system.
///
- ///
+ ///
internal const string AlternateRemotePathPrefix = "//";
///
@@ -60,7 +60,7 @@ namespace System.Management.Automation
internal const string HomePath = "~";
///
- /// name of the global variable table in Variable scopes of session state.
+ /// name of the global variable table in Variable scopes of session state.
///
internal const string Global = "GLOBAL";
diff --git a/src/System.Management.Automation/engine/SessionStateUtils.cs b/src/System.Management.Automation/engine/SessionStateUtils.cs
index edbe709a0b..246a833c75 100644
--- a/src/System.Management.Automation/engine/SessionStateUtils.cs
+++ b/src/System.Management.Automation/engine/SessionStateUtils.cs
@@ -68,7 +68,7 @@ namespace System.Management.Automation
///
/// Max # of drives allowed in a scope in Session State
///
- ///
+ ///
internal const int MaxDriveCapacity = 32768;
///
@@ -84,7 +84,7 @@ namespace System.Management.Automation
///
/// Max # of errors allowed in a scope in Session State
///
- ///
+ ///
internal const int MaxErrorCapacity = 32768;
///
@@ -111,15 +111,15 @@ namespace System.Management.Automation
///
/// Converts the specified array into a collection of the specified type.
///
- ///
+ ///
///
/// The array to be converted.
///
- ///
+ ///
///
/// A collection of the elements that were in the array.
///
- ///
+ ///
internal static Collection ConvertArrayToCollection(T[] array)
{
Collection result = new Collection();
@@ -138,27 +138,27 @@ namespace System.Management.Automation
/// the string comparer is specified it is used for the comparison, else the
/// .Equals method is used.
///
- ///
+ ///
///
/// The collection to check for the value.
///
- ///
+ ///
///
/// The value to check for.
///
- ///
+ ///
///
/// If specified the comparer will be used instead of .Equals.
///
- ///
+ ///
///
/// true if the value is contained in the collection or false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal static bool CollectionContainsValue(IEnumerable collection, object value, IComparer comparer)
{
if (collection == null)
@@ -194,20 +194,20 @@ namespace System.Management.Automation
/// Constructs a collection of WildcardPatterns for the specified
/// string collection.
///
- ///
+ ///
///
/// The string patterns to construct the WildcardPatterns for.
///
- ///
+ ///
///
/// The options to create the WildcardPatterns with.
///
- ///
+ ///
///
/// A collection of WildcardPatterns that represent the string patterns
/// that were passed.
///
- ///
+ ///
internal static Collection CreateWildcardsFromStrings(
IEnumerable globPatterns,
WildcardOptions options)
@@ -289,15 +289,15 @@ namespace System.Management.Automation
///
/// Converts an OpenMode enum value to a FileMode
///
- ///
+ ///
///
/// The OpenMode value to be converted.
///
- ///
+ ///
///
/// The FileMode representation of the OpenMode.
///
- ///
+ ///
internal static FileMode GetFileModeFromOpenMode(OpenMode openMode)
{
FileMode result = FileMode.Create;
@@ -328,7 +328,7 @@ namespace Microsoft.PowerShell.Commands
/// The enum used by commands to allow the user to specify how
/// a file (or other item) should be opened.
///
- ///
+ ///
public enum OpenMode
{
///
diff --git a/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs b/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs
index 544e9c0dcc..4f966aa37b 100644
--- a/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs
+++ b/src/System.Management.Automation/engine/SessionStateVariableAPIs.cs
@@ -16,7 +16,7 @@ using Dbg = System.Management.Automation;
namespace System.Management.Automation
{
///
- /// Holds the state of a Monad Shell session
+ /// Holds the state of a Monad Shell session
///
internal sealed partial class SessionStateInternal
{
@@ -36,25 +36,25 @@ namespace System.Management.Automation
///
/// Get a variable out of session state. This interface supports
- /// the scope specifiers like "global:foobar"
+ /// the scope specifiers like "global:foobar"
///
- ///
+ ///
///
/// name of variable to look up
///
- ///
+ ///
///
/// Origin of the command making this request.
///
- ///
+ ///
///
/// The specified variable.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PSVariable GetVariable(string name, CommandOrigin origin)
{
if (name == null)
@@ -72,21 +72,21 @@ namespace System.Management.Automation
///
/// Get a variable out of session state. This interface supports
- /// the scope specifiers like "global:foobar"
+ /// the scope specifiers like "global:foobar"
///
- ///
+ ///
///
/// name of variable to look up
///
- ///
+ ///
///
/// The specified variable.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PSVariable GetVariable(string name)
{
return GetVariable(name, CommandOrigin.Internal);
@@ -95,38 +95,38 @@ namespace System.Management.Automation
///
/// Get a variable out of session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "env:PATH" or "global:foobar"
+ /// "env:PATH" or "global:foobar"
///
- ///
+ ///
///
/// name of variable to look up
///
- ///
+ ///
///
/// The value of the specified variable.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal object GetVariableValue(string name)
{
if (name == null)
@@ -147,42 +147,42 @@ namespace System.Management.Automation
///
/// Get a variable out of session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "env:PATH" or "global:foobar"
+ /// "env:PATH" or "global:foobar"
///
- ///
+ ///
///
/// name of variable to look up
///
- ///
+ ///
///
/// value to return if you can't find Name or it returns null.
///
- ///
+ ///
///
/// The value of the specified variable.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal object GetVariableValue(string name, object defaultValue)
{
object returnObject = GetVariableValue(name) ?? defaultValue;
@@ -190,14 +190,14 @@ namespace System.Management.Automation
}
///
- /// Looks up the specified variable and returns the context under which
+ /// Looks up the specified variable and returns the context under which
/// the variable was found as well as the variable itself.
///
- ///
+ ///
///
/// The VariablePath helper for the variable.
///
- ///
+ ///
///
/// The scope the variable was found in. Null if the variable wasn't found.
///
@@ -207,42 +207,42 @@ namespace System.Management.Automation
/// have the drive data already set. This will be null if the variable was
/// not found.
///
- ///
+ ///
///
/// The variable if it was found or null if it was not.
///
- ///
+ ///
///
/// The is first parsed to see if it contains a drive
- /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
+ /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
/// then only that scope is searched for the variable. If any other drive specifier
/// is found the lookup goes in the following order.
/// - current scope
/// - each consecutive parent scope until the variable is found.
/// - global scope
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal object GetVariableValue(
VariablePath variablePath,
out CmdletProviderContext context,
@@ -269,14 +269,14 @@ namespace System.Management.Automation
}
///
- /// Looks up the specified variable and returns the context under which
+ /// Looks up the specified variable and returns the context under which
/// the variable was found as well as the variable itself.
///
- ///
+ ///
///
/// The VariablePath helper for the variable.
///
- ///
+ ///
///
/// The scope the variable was found in. Null if the variable wasn't found.
///
@@ -286,46 +286,46 @@ namespace System.Management.Automation
/// have the drive data already set. This will be null if the variable was
/// not found.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// The variable if it was found or null if it was not.
///
- ///
+ ///
///
/// The is first parsed to see if it contains a drive
- /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
+ /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
/// then only that scope is searched for the variable. If any other drive specifier
/// is found the lookup goes in the following order.
/// - current scope
/// - each consecutive parent scope until the variable is found.
/// - global scope
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
#pragma warning disable 0162
internal object GetVariableValueFromProvider(
VariablePath variablePath,
@@ -557,18 +557,18 @@ namespace System.Management.Automation
#pragma warning restore 0162
///
- /// Looks up the specified variable and returns the context under which
+ /// Looks up the specified variable and returns the context under which
/// the variable was found as well as the variable itself.
///
- ///
+ ///
///
/// The VariablePath helper for the variable.
///
- ///
+ ///
///
/// The scope the variable was found in. Null if the variable wasn't found.
///
- ///
+ ///
///
/// Origin of the command requesting this variable
///
@@ -576,20 +576,20 @@ namespace System.Management.Automation
///
/// The variable if it was found or null if it was not.
///
- ///
+ ///
///
/// The is first parsed to see if it contains a drive
- /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
- /// then only that scope is searched for the variable.
+ /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
+ /// then only that scope is searched for the variable.
/// - current scope
/// - each consecutive parent scope until the variable is found.
/// - global scope
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PSVariable GetVariableItem(
VariablePath variablePath,
out SessionStateScope scope,
@@ -618,14 +618,14 @@ namespace System.Management.Automation
} // GetVariableItem
///
- /// Looks up the specified variable and returns the context under which
+ /// Looks up the specified variable and returns the context under which
/// the variable was found as well as the variable itself.
///
- ///
+ ///
///
/// The VariablePath helper for the variable.
///
- ///
+ ///
///
/// The scope the variable was found in. Null if the variable wasn't found.
///
@@ -633,20 +633,20 @@ namespace System.Management.Automation
///
/// The variable if it was found or null if it was not.
///
- ///
+ ///
///
/// The is first parsed to see if it contains a drive
- /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
- /// then only that scope is searched for the variable.
+ /// specifier or special scope. If a special scope is found ("LOCAL" or "GLOBAL")
+ /// then only that scope is searched for the variable.
/// - current scope
/// - each consecutive parent scope until the variable is found.
/// - global scope
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PSVariable GetVariableItem(
VariablePath variablePath,
out SessionStateScope scope)
@@ -657,35 +657,35 @@ namespace System.Management.Automation
///
/// Get a variable out of session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "env:PATH" or "global:foobar"
+ /// "env:PATH" or "global:foobar"
///
- ///
+ ///
///
/// name of variable to look up
///
- ///
+ ///
///
/// The ID of the scope to lookup the variable in.
///
- ///
+ ///
///
/// The value of the specified variable.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal PSVariable GetVariableAtScope(string name, string scopeID)
{
if (name == null)
@@ -710,57 +710,57 @@ namespace System.Management.Automation
}
return resultItem;
- } // GetVariable
+ } // GetVariable
///
/// Get a variable out of session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "env:PATH" or "global:foobar"
+ /// "env:PATH" or "global:foobar"
///
- ///
+ ///
///
/// name of variable to look up
///
- ///
+ ///
///
/// The ID of the scope to lookup the variable in.
///
- ///
+ ///
///
/// The value of the specified variable.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal object GetVariableValueAtScope(string name, string scopeID)
{
if (name == null)
@@ -957,7 +957,7 @@ namespace System.Management.Automation
}
}
- // If we get a PSVariable or DictionaryEntry returned then we have to
+ // If we get a PSVariable or DictionaryEntry returned then we have to
// grab the value from it and return that instead.
if (resultItem != null)
@@ -1003,46 +1003,46 @@ namespace System.Management.Automation
///
/// Set a variable in session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "$env:PATH = 'c:\windows'" or "$global:foobar = 13"
+ /// "$env:PATH = 'c:\windows'" or "$global:foobar = 13"
///
- ///
+ ///
///
/// The name of the item to set.
///
- ///
+ ///
///
/// The new value of the item being set.
///
- ///
+ ///
///
/// The origin of the caller of this API...
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void SetVariableValue(string name, object newValue, CommandOrigin origin)
{
if (name == null)
@@ -1058,46 +1058,46 @@ namespace System.Management.Automation
///
/// Set a variable in session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "$env:PATH = 'c:\windows'" or "$global:foobar = 13"
- ///
+ /// "$env:PATH = 'c:\windows'" or "$global:foobar = 13"
+ ///
/// BUGBUG: this overload exists because a lot of tests in the
/// testsuite use it. Those tests should eventually be fixed and this overload
/// should be removed.
///
- ///
+ ///
///
/// The name of the item to set.
///
- ///
+ ///
///
/// The new value of the item being set.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void SetVariableValue(string name, object newValue)
{
SetVariableValue(name, newValue, CommandOrigin.Internal);
@@ -1105,34 +1105,34 @@ namespace System.Management.Automation
///
/// Set a variable in session state. This interface supports
- /// the scope specifiers like "$global:foobar = 13"
+ /// the scope specifiers like "$global:foobar = 13"
///
- ///
+ ///
///
/// The variable to be set.
///
- ///
+ ///
///
/// If true, the variable is set even if it is ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// A PSVariable object if refers to a variable.
/// An PSObject if refers to a provider path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
internal object SetVariable(PSVariable variable, bool force, CommandOrigin origin)
{
if (variable == null || String.IsNullOrEmpty(variable.Name))
@@ -1148,54 +1148,54 @@ namespace System.Management.Automation
///
/// Set a variable using a pre-parsed variablePath object instead of a string.
///
- ///
+ ///
///
/// A pre-parsed variable path object for the variable in question.
///
- ///
+ ///
///
/// The value to set.
///
- ///
+ ///
///
/// If true, sets the variable value to newValue. If false, newValue must
/// be a PSVariable object and the item will be set rather than the value.
///
- ///
+ ///
///
/// The origin of the caller
///
- ///
+ ///
///
/// A PSVariable object if refers to a variable.
/// An PSObject if refers to a provider path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal object SetVariable(
VariablePath variablePath,
object newValue,
@@ -1208,58 +1208,58 @@ namespace System.Management.Automation
///
/// Set a variable using a pre-parsed variablePath object instead of a string.
///
- ///
+ ///
///
/// A pre-parsed variable path object for the variable in question.
///
- ///
+ ///
///
/// The value to set.
///
- ///
+ ///
///
/// If true, sets the variable value to newValue. If false, newValue must
/// be a PSVariable object and the item will be set rather than the value.
///
- ///
+ ///
///
/// If true, the variable is set even if it is ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller
///
- ///
+ ///
///
/// A PSVariable object if refers to a variable.
/// An PSObject if refers to a provider path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal object SetVariable(
VariablePath variablePath,
object newValue,
@@ -1500,7 +1500,7 @@ namespace System.Management.Automation
///
/// Set a variable in session state.
///
- ///
+ ///
///
/// The variable to set
///
@@ -1510,36 +1510,36 @@ namespace System.Management.Automation
/// of the scope tree with the current scope being zero, its parent scope
/// being 1 and so on, or "global", "local", "private", or "script"
///
- ///
+ ///
///
/// If true, the variable is set even if it is ReadOnly.
///
- ///
+ ///
///
/// The origin of the caller
///
- ///
+ ///
///
/// If is null or its name is null or empty.
/// or
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// A PSVariable object if refers to a variable.
/// An PSObject if refers to a provider path.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
internal object SetVariableAtScope(PSVariable variable, string scopeID, bool force, CommandOrigin origin)
{
if (variable == null || String.IsNullOrEmpty(variable.Name))
@@ -1557,30 +1557,30 @@ namespace System.Management.Automation
force,
this,
origin);
- } // SetVariableAtScope
+ } // SetVariableAtScope
#region NewVariable
///
/// Creates a new variable.
///
- ///
+ ///
///
/// The variable to create
///
- ///
+ ///
///
/// If true, the variable is created even if it is ReadOnly.
///
- ///
+ ///
///
/// A PSVariable representing the variable that was created.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
internal object NewVariable(PSVariable variable, bool force)
{
if (variable == null || String.IsNullOrEmpty(variable.Name))
@@ -1598,7 +1598,7 @@ namespace System.Management.Automation
///
/// Creates a new variable in the specified scope
///
- ///
+ ///
///
/// The variable to create
///
@@ -1608,31 +1608,31 @@ namespace System.Management.Automation
/// of the scope tree with the current scope being zero, its parent scope
/// being 1 and so on, or "global", "local", "private", or "script"
///
- ///
+ ///
///
/// If true, the variable is set even if it is ReadOnly.
///
- ///
+ ///
///
/// If is null or its name is null or empty.
/// or
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// A PSVariable representing the variable that was created.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
internal object NewVariableAtScope(PSVariable variable, string scopeID, bool force)
{
if (variable == null || String.IsNullOrEmpty(variable.Name))
@@ -1650,43 +1650,43 @@ namespace System.Management.Automation
variable,
force,
this);
- } // NewVariableAtScope
+ } // NewVariableAtScope
#endregion NewVariable
///
/// Removes a variable from the variable table.
///
- ///
+ ///
///
/// The name of the variable to remove.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void RemoveVariable(string name)
{
RemoveVariable(name, false);
@@ -1695,40 +1695,40 @@ namespace System.Management.Automation
///
/// Removes a variable from the variable table.
///
- ///
+ ///
///
/// The name of the variable to remove.
///
- ///
+ ///
///
/// If true, the variable will be removed even if its ReadOnly.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
- ///
+ ///
internal void RemoveVariable(string name, bool force)
{
if (name == null)
@@ -1759,19 +1759,19 @@ namespace System.Management.Automation
///
/// Removes a variable from the variable table.
///
- ///
+ ///
///
/// The variable to remove.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
internal void RemoveVariable(PSVariable variable)
{
RemoveVariable(variable, false);
@@ -1780,23 +1780,23 @@ namespace System.Management.Automation
///
/// Removes a variable from the variable table.
///
- ///
+ ///
///
/// The variable to remove.
///
- ///
+ ///
///
/// If true, the variable will be removed even if its ReadOnly.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
internal void RemoveVariable(PSVariable variable, bool force)
{
if (variable == null)
@@ -1817,36 +1817,36 @@ namespace System.Management.Automation
///
/// Remove a variable from session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "env:PATH" or "global:foobar"
+ /// "env:PATH" or "global:foobar"
///
- ///
+ ///
///
/// name of variable to remove
///
- ///
+ ///
///
/// The ID of the scope to lookup the variable in.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
- ///
+ ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
///
/// If refers to an MSH path (not a variable)
/// and the provider throws an exception.
///
- ///
+ ///
internal void RemoveVariableAtScope(string name, string scopeID)
{
RemoveVariableAtScope(name, scopeID, false);
@@ -1855,39 +1855,39 @@ namespace System.Management.Automation
///
/// Remove a variable from session state. This interface supports
/// the "namespace:name" syntax so you can do things like
- /// "env:PATH" or "global:foobar"
+ /// "env:PATH" or "global:foobar"
///
- ///
+ ///
///
/// name of variable to remove
///
- ///
+ ///
///
/// The ID of the scope to lookup the variable in.
///
- ///
+ ///
///
/// If true, the variable will be removed even if its ReadOnly.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
///
/// If refers to an MSH path (not a variable)
/// and the provider throws an exception.
///
- ///
+ ///
internal void RemoveVariableAtScope(string name, string scopeID, bool force)
{
if (String.IsNullOrEmpty(name))
@@ -1922,67 +1922,67 @@ namespace System.Management.Automation
context.ThrowFirstErrorOrDoNothing();
}
}
- } // RemoveVariableAtScope
+ } // RemoveVariableAtScope
///
- /// Remove a variable from session state.
+ /// Remove a variable from session state.
///
- ///
+ ///
///
/// The variable to remove
///
- ///
+ ///
///
/// The ID of the scope to lookup the variable in.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
internal void RemoveVariableAtScope(PSVariable variable, string scopeID)
{
RemoveVariableAtScope(variable, scopeID, false);
}
///
- /// Remove a variable from session state.
+ /// Remove a variable from session state.
///
- ///
+ ///
///
/// The variable to remove
///
- ///
+ ///
///
/// The ID of the scope to lookup the variable in.
///
- ///
+ ///
///
/// If true, the variable will be removed even if its ReadOnly.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
internal void RemoveVariableAtScope(PSVariable variable, string scopeID, bool force)
{
if (variable == null)
@@ -1997,18 +1997,18 @@ namespace System.Management.Automation
SessionStateScope lookupScope = GetScopeByID(scopeID);
lookupScope.RemoveVariable(variablePath.QualifiedName, force);
- } // RemoveVariableAtScope
+ } // RemoveVariableAtScope
///
/// Gets a flattened view of the variables that are visible using
/// the current scope as a reference and filtering the variables in
/// the other scopes based on the scoping rules.
///
- ///
+ ///
///
/// An IDictionary representing the visible variables.
///
- ///
+ ///
internal IDictionary GetVariableTable()
{
SessionStateScopeEnumerator scopeEnumerator =
@@ -2059,21 +2059,21 @@ namespace System.Management.Automation
/// the current scope as a reference and filtering the variables in
/// the other scopes based on the scoping rules.
///
- ///
+ ///
///
/// An IDictionary representing the visible variables.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
internal IDictionary GetVariableTableAtScope(string scopeID)
{
var result = new Dictionary(StringComparer.OrdinalIgnoreCase);
diff --git a/src/System.Management.Automation/engine/ShellVariable.cs b/src/System.Management.Automation/engine/ShellVariable.cs
index 360d43dfe8..823c1bfd65 100644
--- a/src/System.Management.Automation/engine/ShellVariable.cs
+++ b/src/System.Management.Automation/engine/ShellVariable.cs
@@ -20,11 +20,11 @@ namespace System.Management.Automation
///
/// Constructs a variable with the given name.
///
- ///
+ ///
///
/// The name of the variable.
///
- ///
+ ///
///
/// If is null or empty.
///
@@ -36,15 +36,15 @@ namespace System.Management.Automation
///
/// Constructs a variable with the given name, and value.
///
- ///
+ ///
///
/// The name of the variable.
///
- ///
+ ///
///
/// The value of the variable.
///
- ///
+ ///
///
/// If is null or empty.
///
@@ -56,20 +56,20 @@ namespace System.Management.Automation
///
/// Constructs a variable with the given name, value, and options.
///
- ///
+ ///
///
/// The name of the variable.
///
- ///
+ ///
///
/// The value of the variable.
///
- ///
+ ///
///
/// The constraints of the variable. Note, variables can only be made constant
/// in the constructor.
///
- ///
+ ///
///
/// If is null or empty.
///
@@ -81,24 +81,24 @@ namespace System.Management.Automation
///
/// Constructs a variable with the given name, value, options, and description.
///
- ///
+ ///
///
/// The name of the variable.
///
- ///
+ ///
///
/// The value of the variable.
///
- ///
+ ///
///
/// The constraints of the variable. Note, variables can only be made constant
/// in the constructor.
///
- ///
+ ///
///
/// The description for the variable.
///
- ///
+ ///
///
/// If is null or empty.
///
@@ -111,29 +111,29 @@ namespace System.Management.Automation
///
/// Constructs a variable with the given name, value, options, and description.
///
- ///
+ ///
///
/// The name of the variable.
///
- ///
+ ///
///
/// The value of the variable.
///
- ///
+ ///
///
/// The constraints of the variable. Note, variables can only be made constant
/// in the constructor.
///
- ///
+ ///
///
/// The attributes for the variable. ValidateArgumentsAttribute and derived types
/// will be used to validate a value before setting it.
///
- ///
+ ///
///
/// The description for the variable.
///
- ///
+ ///
///
/// If is null or empty.
///
@@ -152,29 +152,29 @@ namespace System.Management.Automation
///
/// Constructs a variable with the given name, value, options, and attributes
///
- ///
+ ///
///
/// The name of the variable.
///
- ///
+ ///
///
/// The value of the variable.
///
- ///
+ ///
///
/// The constraints of the variable. Note, variables can only be made constant
/// in the constructor.
///
- ///
+ ///
///
/// The attributes for the variable. ValidateArgumentsAttribute and derived types
/// will be used to validate a value before setting it.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
///
/// If the validation metadata identified in
/// throws an exception.
@@ -274,11 +274,11 @@ namespace System.Management.Automation
///
/// Gets or sets the value of the variable
///
- ///
+ ///
///
/// If the variable is read-only or constant upon call to set.
///
- ///
+ ///
///
/// is not valid according to one or more
/// of the attributes of this shell variable.
@@ -329,7 +329,7 @@ namespace System.Management.Automation
///
/// Gets or sets the scope options on the variable.
///
- ///
+ ///
///
/// Upon set, if the variable is constant or if
/// contains the constant flag.
@@ -383,13 +383,13 @@ namespace System.Management.Automation
throw e;
}
- // Now check to see if the caller is trying to
+ // Now check to see if the caller is trying to
// remove the AllScope option. This is not allowed
// at any time.
if (IsAllScope && ((newOptions & ScopedItemOptions.AllScope) == 0))
{
- // user is trying to remove the AllScope option from the variable.
+ // user is trying to remove the AllScope option from the variable.
// Do not allow this (as per spec).
SessionStateUnauthorizedAccessException e =
@@ -409,7 +409,7 @@ namespace System.Management.Automation
///
/// Gets the collection that contains the attributes for the variable.
///
- ///
+ ///
///
/// To add or remove attributes, get the collection and then add or remove
/// attributes to that collection.
@@ -428,12 +428,12 @@ namespace System.Management.Automation
///
/// value which needs to be checked
///
- ///
+ ///
///
- /// If is null or if no attributes are set, then
+ /// If is null or if no attributes are set, then
/// the value is deemed valid.
///
- ///
+ ///
///
/// If the validation metadata throws an exception.
///
@@ -460,15 +460,15 @@ namespace System.Management.Automation
///
/// Determines if the value is valid for the specified attribute
///
- ///
+ ///
///
/// The variable value to validate.
///
- ///
+ ///
///
/// The attribute to use to validate that value.
///
- ///
+ ///
///
/// True if the value is valid with respect to the attribute, or false otherwise.
///
@@ -505,18 +505,18 @@ namespace System.Management.Automation
/// Runs all ArgumentTransformationAttributes that are specified in the Attributes
/// collection on the given value in the order that they are in the collection.
///
- ///
+ ///
///
/// The attributes to use to transform the value.
///
///
/// The value to be transformed.
///
- ///
+ ///
///
/// The transformed value.
///
- ///
+ ///
///
/// If the argument transformation fails.
///
@@ -568,7 +568,7 @@ namespace System.Management.Automation
/// Returns true if the PSVariable is constant (only visible in the
/// current scope), false otherwise.
///
- ///
+ ///
internal bool IsConstant
{
get
@@ -581,7 +581,7 @@ namespace System.Management.Automation
/// Returns true if the PSVariable is readonly (only visible in the
/// current scope), false otherwise.
///
- ///
+ ///
internal bool IsReadOnly
{
get
@@ -594,7 +594,7 @@ namespace System.Management.Automation
/// Returns true if the PSVariable is private (only visible in the
/// current scope), false otherwise.
///
- ///
+ ///
internal bool IsPrivate
{
get
@@ -607,7 +607,7 @@ namespace System.Management.Automation
/// Returns true if the PSVariable is propagated to all scopes
/// when the scope is created.
///
- ///
+ ///
internal bool IsAllScope
{
get
@@ -650,20 +650,20 @@ namespace System.Management.Automation
///
/// Verifies the constraints and attributes before setting the value
///
- ///
+ ///
///
/// The value to be set.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
///
- ///
+ ///
///
/// If the validation metadata throws an exception or the value doesn't
/// pass the validation metadata.
///
- ///
+ ///
private void SetValue(object value)
{
// Check to see if the variable is writable
@@ -845,14 +845,14 @@ namespace System.Management.Automation
/// This class is used for $null. It always returns null as a value and accepts
/// any value when it is set and throws it away.
///
- ///
+ ///
internal class NullVariable : PSVariable
{
///
/// Constructor that calls the base class constructor with name "null" and
/// value null.
///
- ///
+ ///
internal NullVariable() : base(StringLiterals.Null, null, ScopedItemOptions.Constant | ScopedItemOptions.AllScope)
{
}
diff --git a/src/System.Management.Automation/engine/SpecialVariables.cs b/src/System.Management.Automation/engine/SpecialVariables.cs
index 91a9fc045c..835384138f 100644
--- a/src/System.Management.Automation/engine/SpecialVariables.cs
+++ b/src/System.Management.Automation/engine/SpecialVariables.cs
@@ -208,7 +208,7 @@ namespace System.Management.Automation
internal static readonly VariablePath PSSessionConfigurationNameVarPath = new VariablePath("global:" + PSSessionConfigurationName);
///
- /// environment variable that will define the default
+ /// environment variable that will define the default
/// application name for the connection uri
///
internal const string PSSessionApplicationName = "PSSessionApplicationName";
diff --git a/src/System.Management.Automation/engine/TypeMetadata.cs b/src/System.Management.Automation/engine/TypeMetadata.cs
index ede36faae2..dbf6e66e9e 100644
--- a/src/System.Management.Automation/engine/TypeMetadata.cs
+++ b/src/System.Management.Automation/engine/TypeMetadata.cs
@@ -34,7 +34,7 @@ namespace System.Management.Automation
#region Constructor
///
- ///
+ ///
///
///
internal ParameterSetMetadata(ParameterSetSpecificMetadata psMD)
@@ -134,7 +134,7 @@ namespace System.Management.Automation
}
///
- /// Specifies if this parameter takes all the remaining unbound
+ /// Specifies if this parameter takes all the remaining unbound
/// arguments that were specified
///
///
@@ -200,7 +200,7 @@ namespace System.Management.Automation
#region Private / Internal Methods & Properties
///
- ///
+ ///
///
///
internal void Initialize(ParameterSetSpecificMetadata psMD)
@@ -299,7 +299,7 @@ namespace System.Management.Automation
private const string HelpMessageFormat = @"{0}HelpMessage='{1}'";
///
- ///
+ ///
///
///
internal string GetProxyParameterData()
@@ -506,7 +506,7 @@ namespace System.Management.Automation
///
/// Gets the name of the parameter
///
- ///
+ ///
public String Name
{
get
@@ -599,7 +599,7 @@ namespace System.Management.Automation
}
///
- /// Gets a dictionary of parameter metadata for the supplied .
+ /// Gets a dictionary of parameter metadata for the supplied .
///
///
/// CLR Type for which the parameter metadata is constructed.
@@ -630,7 +630,7 @@ namespace System.Management.Automation
#region Internal Methods/Properties
///
- ///
+ ///
///
///
internal void Initialize(CompiledCommandParameter compiledParameterMD)
@@ -663,7 +663,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -764,7 +764,7 @@ namespace System.Management.Automation
private const string CredentialAttributeFormat = @"{0}[System.Management.Automation.CredentialAttribute()]";
///
- ///
+ ///
///
///
/// prefix that is added to every new-line. Used for tabbing content.
@@ -945,7 +945,7 @@ namespace System.Management.Automation
StringBuilder regexOps = new System.Text.StringBuilder();
string or = "";
string[] regexOptionEnumValues = Enum.GetNames(typeof(System.Text.RegularExpressions.RegexOptions));
-
+
foreach(string regexOption in regexOptionEnumValues)
{
System.Text.RegularExpressions.RegexOptions option = (System.Text.RegularExpressions.RegexOptions) Enum.Parse(
@@ -1067,7 +1067,7 @@ namespace System.Management.Automation
///
/// The metadata associated with a bindable type
///
- ///
+ ///
internal class InternalParameterMetadata
{
#region ctor
@@ -1075,33 +1075,33 @@ namespace System.Management.Automation
///
/// Gets or constructs an instance of the InternalParameterMetadata for the specified runtime-defined parameters.
///
- ///
+ ///
///
/// The runtime-defined parameter collection that describes the parameters and their metadata.
///
- ///
+ ///
///
/// True if dynamic parameters are being processed, or false otherwise.
///
- ///
+ ///
///
/// Check for reserved parameter names.
///
- ///
+ ///
///
- /// An instance of the TypeMetadata for the specified runtime-defined parameters. The metadata
+ /// An instance of the TypeMetadata for the specified runtime-defined parameters. The metadata
/// is always constructed on demand and never cached.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
internal static InternalParameterMetadata Get(RuntimeDefinedParameterDictionary runtimeDefinedParameters,
bool processingDynamicParameters,
bool checkNames)
@@ -1117,33 +1117,33 @@ namespace System.Management.Automation
///
/// Gets or constructs an instance of the InternalParameterMetadata for the specified type.
///
- ///
+ ///
///
/// The type to get the metadata for.
///
- ///
+ ///
///
/// The current engine context.
///
- ///
+ ///
///
/// True if dynamic parameters are being processed, or false otherwise.
///
- ///
+ ///
///
/// An instance of the TypeMetadata for the specified type. The metadata may get
/// constructed on-demand or may be retrieved from the cache.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
internal static InternalParameterMetadata Get(Type type, ExecutionContext context, bool processingDynamicParameters)
{
if (type == null)
@@ -1164,34 +1164,34 @@ namespace System.Management.Automation
return result;
} // GetMetadata
- //
+ //
///
- /// Constructs an instance of the InternalParameterMetadata using the metadata in the
+ /// Constructs an instance of the InternalParameterMetadata using the metadata in the
/// runtime-defined parameter collection.
///
- ///
+ ///
///
/// The collection of runtime-defined parameters that declare the parameters and their
/// metadata.
///
- ///
+ ///
///
/// True if dynamic parameters are being processed, or false otherwise.
///
- ///
+ ///
///
/// Check if the parameter name has been reserved.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
internal InternalParameterMetadata(RuntimeDefinedParameterDictionary runtimeDefinedParameters, bool processingDynamicParameters, bool checkNames)
{
if (runtimeDefinedParameters == null)
@@ -1201,29 +1201,29 @@ namespace System.Management.Automation
ConstructCompiledParametersUsingRuntimeDefinedParameters(runtimeDefinedParameters, processingDynamicParameters, checkNames);
}
- //
+ //
///
/// Constructs an instance of the InternalParameterMetadata using the reflection information retrieved
/// from the enclosing bindable object type.
///
- ///
+ ///
///
/// The type information for the bindable object
///
- ///
+ ///
///
/// True if dynamic parameters are being processed, or false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
internal InternalParameterMetadata(Type type, bool processingDynamicParameters)
{
if (type == null)
@@ -1242,15 +1242,15 @@ namespace System.Management.Automation
///
/// Gets the type name of the bindable type
///
- ///
+ ///
internal string TypeName { get; } = String.Empty;
///
- /// Gets a dictionary of the compiled parameter metadata for this Type.
+ /// Gets a dictionary of the compiled parameter metadata for this Type.
/// The dictionary keys are the names of the parameters (or aliases) and
/// the values are the compiled parameter metadata.
///
- ///
+ ///
internal Dictionary BindableParameters { get; }
= new Dictionary(StringComparer.OrdinalIgnoreCase);
@@ -1258,7 +1258,7 @@ namespace System.Management.Automation
/// Gets a dictionary of the parameters that have been aliased to other names. The key is
/// the alias name and the value is the CompiledCommandParameter metadata.
///
- ///
+ ///
internal Dictionary AliasedParameters { get; }
= new Dictionary(StringComparer.OrdinalIgnoreCase);
@@ -1279,24 +1279,24 @@ namespace System.Management.Automation
///
/// Fills in the data for an instance of this class using the specified runtime-defined parameters
///
- ///
+ ///
///
/// A description of the parameters and their metadata.
///
- ///
+ ///
///
/// True if dynamic parameters are being processed, or false otherwise.
///
- ///
+ ///
///
/// Check if the parameter name has been reserved.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
private void ConstructCompiledParametersUsingRuntimeDefinedParameters(
RuntimeDefinedParameterDictionary runtimeDefinedParameters,
bool processingDynamicParameters,
@@ -1323,16 +1323,16 @@ namespace System.Management.Automation
///
/// Compiles the parameter using reflection against the CLR type.
///
- ///
+ ///
///
/// True if dynamic parameters are being processed, or false otherwise.
///
- ///
+ ///
///
/// If a parameter defines the same parameter-set name multiple times.
/// If the attributes could not be read from a property or field.
///
- ///
+ ///
private void ConstructCompiledParametersUsingReflection(bool processingDynamicParameters)
{
Diagnostics.Assert(
@@ -1382,7 +1382,7 @@ namespace System.Management.Automation
}
// NTRAID#Windows Out Of Band Releases-906345-2005/06/30-JeffJon
- // This call verifies that the parameter is unique or
+ // This call verifies that the parameter is unique or
// can be deemed unique. If not, an exception is thrown.
// If it is unique (or deemed unique), then it is added
// to the bindableParameters collection
@@ -1430,8 +1430,8 @@ namespace System.Management.Automation
if (error)
{
- // A duplicate parameter was found and could not be deemed unique
- // through inheritance.
+ // A duplicate parameter was found and could not be deemed unique
+ // through inheritance.
throw new MetadataException(
"DuplicateParameterDefinition",
@@ -1488,19 +1488,19 @@ namespace System.Management.Automation
///
/// Determines if the specified member represents a parameter based on its attributes
///
- ///
+ ///
///
/// The member to check to see if it is a parameter.
///
- ///
+ ///
///
/// True if at least one ParameterAttribute is declared on the member, or false otherwise.
///
- ///
+ ///
///
/// If GetCustomAttributes fails on .
///
- ///
+ ///
private static bool IsMemberAParameter(MemberInfo member)
{
bool result = false;
diff --git a/src/System.Management.Automation/engine/TypeTable.cs b/src/System.Management.Automation/engine/TypeTable.cs
index 98876908ff..b0bbe18336 100644
--- a/src/System.Management.Automation/engine/TypeTable.cs
+++ b/src/System.Management.Automation/engine/TypeTable.cs
@@ -2513,7 +2513,7 @@ namespace System.Management.Automation.Runspaces
public bool IsHidden { get; set; }
///
- /// Indicating if the MemberSet will inherit members of the MemberSet
+ /// Indicating if the MemberSet will inherit members of the MemberSet
/// of the same name in the "parent" class.
///
public bool InheritMembers { get; set; }
@@ -2594,7 +2594,7 @@ namespace System.Management.Automation.Runspaces
/*concurrency*/1, /*capacity*/5, StringComparer.OrdinalIgnoreCase);
///
- /// points to a Hashtable from type name to type adapter
+ /// points to a Hashtable from type name to type adapter
///
private readonly ConcurrentDictionary _typeAdapters =
new ConcurrentDictionary(
@@ -2604,7 +2604,7 @@ namespace System.Management.Automation.Runspaces
internal readonly bool isShared;
private List _typeFileList;
- // This holds all the type information that is in the typetable
+ // This holds all the type information that is in the typetable
// Holds file name if types file was used to update the types
// Holds typename/typedata instance if typename/typedata was used to update the types
// InitialSessionStateEntryCollection is thread safe, so no locks are needed during updates here.
@@ -2762,7 +2762,7 @@ namespace System.Management.Automation.Runspaces
/// - DefaultDisplayPropertySet is not an PSPropertySet
/// - DefaultDisplayProperty is not an PSPropertyInfo
/// - DefaultKeyPropertySet is not an PSPropertySet
- ///
+ ///
/// SerializationMethod InheritPropertySerializationSet PropertySerializationSet SerializationDepth StringSerializationSource
/// --------------------- ------------------------------- ------------------------ ------------------- ---------------------------
/// String must NOT be present must NOT be present must NOT be present optional
@@ -3395,7 +3395,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
internal TypeTable() : this(isShared: false)
{
@@ -3415,7 +3415,7 @@ namespace System.Management.Automation.Runspaces
///
///
/// 1. Path {0} is not fully qualified. Specify a fully qualified type file path.
- ///
+ ///
///
/// 1. There were errors loading TypeTable. Look in the Errors property to get
/// detailed error messages.
@@ -3470,7 +3470,7 @@ namespace System.Management.Automation.Runspaces
///
///
/// 1. Path {0} is not fully qualified. Specify a fully qualified type file path.
- ///
+ ///
///
/// 1. There were errors loading TypeTable. Look in the Errors property to get
/// detailed error messages.
@@ -3604,7 +3604,7 @@ namespace System.Management.Automation.Runspaces
continue;
}
// We are in a MemberSet InheritMembers situation, so we add the members in
- // typeMembers to the existing memberset.
+ // typeMembers to the existing memberset.
foreach (PSMemberInfo typeMemberAsMemberSetMember in typeMemberAsMemberSet.Members)
{
if (currentMemberAsMemberSet.Members[typeMemberAsMemberSetMember.Name] == null)
@@ -3659,9 +3659,9 @@ namespace System.Management.Automation.Runspaces
* strict match on the type name. The look-up should be similar to the
* code below, except that child classes must override base classes
* in the same hierarchy.
- *
+ *
* The same applies to TypeConverters
- *
+ *
* The matching for both converters and adapters should be revisited in
* the M3 milestone.
*/
@@ -4274,7 +4274,7 @@ namespace System.Management.Automation.Runspaces
/// Host passed to . Can be null if no interactive questions should be asked.
///
///
- /// 1. The TypeTable cannot be updated because the TypeTable might have
+ /// 1. The TypeTable cannot be updated because the TypeTable might have
/// been created outside of the Runspace.
///
internal void Update(
@@ -4321,7 +4321,7 @@ namespace System.Management.Automation.Runspaces
///
/// Indicate if the file cannot be loaded due to the security reason
///
- /// 1. The TypeTable cannot be updated because the TypeTable might have
+ /// 1. The TypeTable cannot be updated because the TypeTable might have
/// been created outside of the Runspace.
///
internal void Update(
@@ -4349,7 +4349,7 @@ namespace System.Management.Automation.Runspaces
///
/// Indicate if the file cannot be loaded due to security reason
///
- /// 1. The TypeTable cannot be updated because the TypeTable might have
+ /// 1. The TypeTable cannot be updated because the TypeTable might have
/// been created outside of the Runspace.
///
internal void Update(
diff --git a/src/System.Management.Automation/engine/Types_Ps1Xml.generated.cs b/src/System.Management.Automation/engine/Types_Ps1Xml.generated.cs
index 98781bd3f3..d4918a39c6 100644
--- a/src/System.Management.Automation/engine/Types_Ps1Xml.generated.cs
+++ b/src/System.Management.Automation/engine/Types_Ps1Xml.generated.cs
@@ -686,7 +686,7 @@ namespace System.Management.Automation.Runspaces
# WMI team fixed the formatting issue related to InstalledOn
# property in Windows7 (to return string)..so returning the WMI's
# version directly
- [DateTime]::Parse($this.psBase.properties[""InstalledOn""].Value, [System.Globalization.DateTimeFormatInfo]::new())
+ [DateTime]::Parse($this.psBase.properties[""InstalledOn""].Value, [System.Globalization.DateTimeFormatInfo]::new())
}
else
{
diff --git a/src/System.Management.Automation/engine/UserFeedbackParameters.cs b/src/System.Management.Automation/engine/UserFeedbackParameters.cs
index 6f4266478a..d7119fc4f3 100644
--- a/src/System.Management.Automation/engine/UserFeedbackParameters.cs
+++ b/src/System.Management.Automation/engine/UserFeedbackParameters.cs
@@ -59,7 +59,7 @@ namespace System.Management.Automation
///
/// a total count of objects that the cmdlet would return without paging
///
- /// accuracy of the parameter.
+ /// accuracy of the parameter.
/// 1.0 means 100% accurate;
/// 0.0 means that total count is unknown;
/// anything in-between means that total count is estimated
@@ -108,12 +108,12 @@ namespace System.Management.Automation.Internal
///
/// Constructs an instance with the specified command instance
///
- ///
+ ///
///
/// The instance of the command that the parameters should set the
/// user feedback properties on when the parameters get bound.
///
- ///
+ ///
internal ShouldProcessParameters(MshCommandRuntime commandRuntime)
{
if (commandRuntime == null)
@@ -175,12 +175,12 @@ namespace System.Management.Automation.Internal
///
/// Constructs an instance with the specified command instance
///
- ///
+ ///
///
/// The instance of the command that the parameters should set the
/// user feedback properties on when the parameters get bound.
///
- ///
+ ///
internal TransactionParameters(MshCommandRuntime commandRuntime)
{
_commandRuntime = commandRuntime;
diff --git a/src/System.Management.Automation/engine/Utils.cs b/src/System.Management.Automation/engine/Utils.cs
index efb6b72154..2d4a90dba6 100644
--- a/src/System.Management.Automation/engine/Utils.cs
+++ b/src/System.Management.Automation/engine/Utils.cs
@@ -29,7 +29,7 @@ namespace System.Management.Automation
{
///
/// helper fns
- ///
+ ///
internal static class Utils
{
// From System.Web.Util.HashCodeCombiner
@@ -184,7 +184,7 @@ namespace System.Management.Automation
}
///
- /// Gets TypeTable by querying the ExecutionContext stored in
+ /// Gets TypeTable by querying the ExecutionContext stored in
/// Thread-Local-Storage. This will return null if ExecutionContext
/// is not available.
///
@@ -243,13 +243,13 @@ namespace System.Management.Automation
///
internal static string GetApplicationBase(string shellId)
{
-#if CORECLR
+#if CORECLR
// Use the location of SMA.dll as the application base
// Assembly.GetEntryAssembly and GAC are not in CoreCLR.
Assembly assembly = typeof(PSObject).GetTypeInfo().Assembly;
return Path.GetDirectoryName(assembly.Location);
#else
- // This code path applies to Windows FullCLR inbox deployments. All CoreCLR
+ // This code path applies to Windows FullCLR inbox deployments. All CoreCLR
// implementations should use the location of SMA.dll since it must reside in PSHOME.
//
// try to get the path from the registry first
@@ -258,13 +258,13 @@ namespace System.Management.Automation
{
return result;
}
-
+
// The default keys aren't installed, so try and use the entry assembly to
// get the application base. This works for managed apps like minishells...
Assembly assem = Assembly.GetEntryAssembly();
if (assem != null)
{
- // For minishells, we just return the executable path.
+ // For minishells, we just return the executable path.
return Path.GetDirectoryName(assem.Location);
}
@@ -274,7 +274,7 @@ namespace System.Management.Automation
string gacRootPath = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.Windows), "Microsoft.Net\\assembly");
if (!assem.Location.StartsWith(gacRootPath, StringComparison.OrdinalIgnoreCase))
{
- // For other hosts.
+ // For other hosts.
return Path.GetDirectoryName(assem.Location);
}
@@ -349,7 +349,7 @@ namespace System.Management.Automation
}
///
- /// Checks if the filePath represents a file under product folder
+ /// Checks if the filePath represents a file under product folder
/// ie., PowerShell ApplicationBase or $env:windir\system32 or
/// $env:windir\syswow64.
///
@@ -429,7 +429,7 @@ namespace System.Management.Automation
}
///
- /// Coverts a string to version format.
+ /// Coverts a string to version format.
/// If the string is of the format x (ie., no dots), then ".0" is appended
/// to the string.
/// Version.TryParse will be used to convert the string to a Version
@@ -530,7 +530,7 @@ namespace System.Management.Automation
#if !CORECLR
///
/// Checks whether current monad session supports NetFrameworkVersion specified
- /// by checkVersion. The specified version is treated as the the minimum required
+ /// by checkVersion. The specified version is treated as the the minimum required
/// version of .NET framework.
///
/// Version to check
@@ -546,13 +546,13 @@ namespace System.Management.Automation
return false;
}
- // Construct a temporary version number with build number and revision number set to 0.
- // This is done so as to re-use the version specifications in PSUtils.FrameworkRegistryInstallation
+ // Construct a temporary version number with build number and revision number set to 0.
+ // This is done so as to re-use the version specifications in PSUtils.FrameworkRegistryInstallation
Version tempVersion = new Version(checkVersion.Major, checkVersion.Minor, 0, 0);
- // Win8: 840038 - For any version above the highest known .NET version (4.5 for Windows 8), we can't make a call as to
+ // Win8: 840038 - For any version above the highest known .NET version (4.5 for Windows 8), we can't make a call as to
// whether the requirement is satisfied or not because we can't detect that version of .NET.
- // We end up erring on the side of app compat by letting it through.
+ // We end up erring on the side of app compat by letting it through.
// We will write a message in the Verbose output saying that we cannot detect the specified version of the .NET Framework.
if (checkVersion > PsUtils.FrameworkRegistryInstallation.KnownHighestNetFrameworkVersion)
{
@@ -609,7 +609,7 @@ namespace System.Management.Automation
internal static string GetRegistryConfigurationPrefix()
{
- // For 3.0 PowerShell, we still use "1" as the registry version key for
+ // For 3.0 PowerShell, we still use "1" as the registry version key for
// Snapin and Custom shell lookup/discovery.
// For 3.0 PowerShell, we use "3" as the registry version key only for Engine
// related data like ApplicationBase etc.
@@ -621,7 +621,7 @@ namespace System.Management.Automation
return GetRegistryConfigurationPrefix() + "\\" + shellID;
}
- // Calling static members of 'Registry' on UNIX will raise 'PlatformNotSupportedException'
+ // Calling static members of 'Registry' on UNIX will raise 'PlatformNotSupportedException'
#if UNIX
internal static RegistryKey[] RegLocalMachine = null;
internal static RegistryKey[] RegCurrentUser = null;
@@ -1005,12 +1005,12 @@ namespace System.Management.Automation
}
else if (errorCode == 32)
{
- // Errorcode 32 is 'ERROR_SHARING_VIOLATION' i.e.
+ // Errorcode 32 is 'ERROR_SHARING_VIOLATION' i.e.
// The process cannot access the file because it is being used by another process.
// GetFileAttributes may return INVALID_FILE_ATTRIBUTES for a system file or directory because of this error.
// GetFileAttributes function tries to open the file with FILE_READ_ATTRIBUTES access right but it fails if the
// sharing flag for the file is set to 0x00000000.This flag prevents it from opening a file for delete, read, or
- // write access. For example: C:\pagefile.sys is always opened by OS with sharing flag 0x00000000.
+ // write access. For example: C:\pagefile.sys is always opened by OS with sharing flag 0x00000000.
// But FindFirstFile is still able to get attributes as this api retrieves the required information using a find
// handle generated with FILE_LIST_DIRECTORY access.
// Fall back to FindFirstFile to check if the file actually exists.
@@ -1555,7 +1555,7 @@ namespace System.Management.Automation
// (Copied from System.IO.Path so we can call TrimEnd in the same way that Directory.EnumerateFiles would on the search patterns).
// Trim trailing white spaces, tabs etc but don't be aggressive in removing everything that has UnicodeCategory of trailing space.
- // String.WhitespaceChars will trim aggressively than what the underlying FS does (for ex, NTFS, FAT).
+ // String.WhitespaceChars will trim aggressively than what the underlying FS does (for ex, NTFS, FAT).
internal static readonly char[] PathSearchTrimEnd = { (char)0x9, (char)0xA, (char)0xB, (char)0xC, (char)0xD, (char)0x20, (char)0x85, (char)0xA0 };
}
}
diff --git a/src/System.Management.Automation/engine/VariableAttributeCollection.cs b/src/System.Management.Automation/engine/VariableAttributeCollection.cs
index 51c82d23ae..c7f850821b 100644
--- a/src/System.Management.Automation/engine/VariableAttributeCollection.cs
+++ b/src/System.Management.Automation/engine/VariableAttributeCollection.cs
@@ -19,16 +19,16 @@ namespace System.Management.Automation
/// the specified variable. Whenever the attributes change
/// the variable value is verified against the attribute.
///
- ///
+ ///
///
/// The variable that needs to be verified anytime an attribute
/// changes.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PSVariableAttributeCollection(PSVariable variable)
{
if (variable == null)
@@ -46,24 +46,24 @@ namespace System.Management.Automation
/// Ensures that the variable that the attribute is being added to is still
/// valid after the attribute is added.
///
- ///
+ ///
///
/// The zero-based index at which should be inserted.
///
- ///
+ ///
///
/// The attribute being added to the collection.
///
- ///
+ ///
///
/// If the new attribute causes the variable to be in an invalid state.
///
- ///
+ ///
///
/// If the new attribute is an ArgumentTransformationAttribute and the transformation
/// fails.
///
- ///
+ ///
protected override void InsertItem(int index, Attribute item)
{
object variableValue = VerifyNewAttribute(item);
@@ -77,19 +77,19 @@ namespace System.Management.Automation
/// Ensures that the variable that the attribute is being set to is still
/// valid after the attribute is set.
///
- ///
+ ///
///
/// The zero-based index at which should be set.
///
- ///
+ ///
///
/// The attribute being set in the collection.
///
- ///
+ ///
///
/// If the new attribute causes the variable to be in an invalid state.
///
- ///
+ ///
protected override void SetItem(int index, Attribute item)
{
object variableValue = VerifyNewAttribute(item);
@@ -119,16 +119,16 @@ namespace System.Management.Automation
/// Validates and performs any transformations that the new attribute
/// implements.
///
- ///
+ ///
///
/// The new attribute to be added to the collection.
///
- ///
+ ///
///
/// The new variable value. This may change from the original value if the
/// new attribute is an ArgumentTransformationAttribute.
///
- ///
+ ///
private object VerifyNewAttribute(Attribute item)
{
object variableValue = _variable.Value;
diff --git a/src/System.Management.Automation/engine/VariableInterfaces.cs b/src/System.Management.Automation/engine/VariableInterfaces.cs
index ef83fa217f..0f2f135f50 100644
--- a/src/System.Management.Automation/engine/VariableInterfaces.cs
+++ b/src/System.Management.Automation/engine/VariableInterfaces.cs
@@ -26,15 +26,15 @@ namespace System.Management.Automation
///
/// Constructs a facade for the specified session.
///
- ///
+ ///
///
/// The session for which the facade wraps.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal PSVariableIntrinsics(SessionStateInternal sessionState)
{
if (sessionState == null)
@@ -99,7 +99,7 @@ namespace System.Management.Automation
///
///
///
- /// The ID of the scope to do the lookup in.
+ /// The ID of the scope to do the lookup in.
///
///
///
@@ -109,12 +109,12 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
@@ -146,20 +146,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -196,20 +196,20 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -236,7 +236,7 @@ namespace System.Management.Automation
///
///
///
- /// The ID of the scope to do the lookup in.
+ /// The ID of the scope to do the lookup in.
///
///
///
@@ -246,30 +246,30 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero, or not
/// a number and not "script", "global", "local", or "private"
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -300,24 +300,24 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -337,18 +337,18 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
/// The variable to set
///
///
///
/// If is null.
///
- ///
+ ///
///
/// If the variable is read-only or constant.
- ///
- ///
+ ///
+ ///
public void Set(PSVariable variable)
{
Dbg.Diagnostics.Assert(
@@ -372,24 +372,24 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
///
/// If the refers to a provider that could not be found.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider that the refers to does
/// not support this operation.
///
- ///
+ ///
///
/// If the provider threw an exception.
///
@@ -415,7 +415,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// if the variable is constant.
///
@@ -447,17 +447,17 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
- ///
+ ///
+ ///
///
/// if the variable is constant.
///
- ///
+ ///
///
/// If refers to an MSH path (not a variable)
/// and the provider throws an exception.
@@ -490,13 +490,13 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If is less than zero or greater than the number of currently
/// active scopes.
///
- ///
- ///
+ ///
+ ///
///
/// if the variable is constant.
///
diff --git a/src/System.Management.Automation/engine/VariablePath.cs b/src/System.Management.Automation/engine/VariablePath.cs
index dbe5eaf24c..5706252ab6 100644
--- a/src/System.Management.Automation/engine/VariablePath.cs
+++ b/src/System.Management.Automation/engine/VariablePath.cs
@@ -77,13 +77,13 @@ namespace System.Management.Automation
///
/// Constructs a scoped item lookup path.
///
- ///
+ ///
/// The path to parse.
///
/// These flags for anything known about the path (such as, is it a function) before
/// being scanned.
///
- ///
+ ///
///
/// If is null.
///
diff --git a/src/System.Management.Automation/engine/WinRT/IInspectable.cs b/src/System.Management.Automation/engine/WinRT/IInspectable.cs
index 06159b39f4..d0bdae5744 100644
--- a/src/System.Management.Automation/engine/WinRT/IInspectable.cs
+++ b/src/System.Management.Automation/engine/WinRT/IInspectable.cs
@@ -9,15 +9,15 @@ namespace System.Management.Automation
{
///
/// IInspectable represents the base interface for all WinRT types.
- /// Any run time class exposed through WInRT language projections
- /// like C#, VB.Net, C++ and JavaScript would have implemented
+ /// Any run time class exposed through WInRT language projections
+ /// like C#, VB.Net, C++ and JavaScript would have implemented
/// the IInspectable interface.
/// This interface is needed on long term basis to efficiently support identifying
- /// WinRT type instances created in Powershell session. Hence being
+ /// WinRT type instances created in Powershell session. Hence being
/// included as part of SMA.
/// The only purpose of this interface is to identify if the created object is of WinRT type.
/// Users should not implement this interface for any custom functionalities.
- /// This is like a PInvoke. WinRT team have defined IInspectable in the COM layer.
+ /// This is like a PInvoke. WinRT team have defined IInspectable in the COM layer.
/// Through PInvoke this interface is being used in the managed layer.
///
[Guid("AF86E2E0-B12D-4c6a-9C5A-D7AA65101E90")]
diff --git a/src/System.Management.Automation/engine/WorkflowInfo.cs b/src/System.Management.Automation/engine/WorkflowInfo.cs
index da83246c29..f6339b5462 100644
--- a/src/System.Management.Automation/engine/WorkflowInfo.cs
+++ b/src/System.Management.Automation/engine/WorkflowInfo.cs
@@ -16,27 +16,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the workflowInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the workflow.
///
- ///
+ ///
///
/// The script body defining the workflow.
///
- ///
+ ///
///
/// The ScriptBlock for the workflow
///
- ///
+ ///
///
/// The XAML used to define the workflow
///
- ///
+ ///
///
/// The workflows referenced within .
///
- ///
+ ///
///
/// If is null.
///
@@ -58,26 +58,26 @@ namespace System.Management.Automation
///
/// Creates an instance of the workflowInfo class with the specified name and ScriptBlock
- ///
+ ///
///
/// The name of the workflow.
- ///
+ ///
///
/// The script body defining the workflow.
///
///
/// The ScriptBlock for the workflow
- ///
+ ///
///
/// The XAML used to define the workflow
///
///
/// The workflows referenced within .
///
- /// module
+ /// module
///
/// If is null.
- ///
+ ///
public WorkflowInfo(string name, string definition, ScriptBlock workflow, string xamlDefinition, WorkflowInfo[] workflowsCalled, PSModuleInfo module)
: this(name, definition, workflow, xamlDefinition, workflowsCalled)
{
@@ -87,23 +87,23 @@ namespace System.Management.Automation
///
/// Creates an instance of the workflowInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the workflow.
///
- ///
+ ///
///
/// The ScriptBlock for the workflow
///
- ///
+ ///
///
/// The ExecutionContext for the workflow.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal WorkflowInfo(string name, ScriptBlock workflow, ExecutionContext context) : this(name, workflow, context, null)
{
}
@@ -111,27 +111,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the workflowInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the workflow.
///
- ///
+ ///
///
/// The ScriptBlock for the workflow
///
- ///
+ ///
///
/// The ExecutionContext for the workflow.
///
- ///
+ ///
///
/// The helpfile for the workflow.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal WorkflowInfo(string name, ScriptBlock workflow, ExecutionContext context, string helpFile)
: base(name, workflow, context, helpFile)
{
@@ -141,27 +141,27 @@ namespace System.Management.Automation
///
/// Creates an instance of the WorkflowInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the workflow.
///
- ///
+ ///
///
/// The ScriptBlock for the workflow
///
- ///
+ ///
///
/// The options to set on the function. Note, Constant can only be set at creation time.
///
- ///
+ ///
///
/// The execution context for the workflow.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal WorkflowInfo(string name, ScriptBlock workflow, ScopedItemOptions options, ExecutionContext context) : this(name, workflow, options, context, null)
{
} // workflowInfo ctor
@@ -169,31 +169,31 @@ namespace System.Management.Automation
///
/// Creates an instance of the WorkflowInfo class with the specified name and ScriptBlock
///
- ///
+ ///
///
/// The name of the workflow.
///
- ///
+ ///
///
/// The ScriptBlock for the workflow
///
- ///
+ ///
///
/// The options to set on the function. Note, Constant can only be set at creation time.
///
- ///
+ ///
///
/// The execution context for the workflow.
///
- ///
+ ///
///
/// The helpfile for the workflow.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal WorkflowInfo(string name, ScriptBlock workflow, ScopedItemOptions options, ExecutionContext context, string helpFile)
: base(name, workflow, options, context, helpFile)
{
@@ -236,15 +236,15 @@ namespace System.Management.Automation
///
/// The script block that the function should represent.
///
- ///
+ ///
///
/// If true, the script block will be applied even if the filter is ReadOnly.
///
- ///
+ ///
///
/// Any options to set on the new function, null if none.
///
- ///
+ ///
///
/// Helpfile for this function
///
diff --git a/src/System.Management.Automation/engine/cmdlet.cs b/src/System.Management.Automation/engine/cmdlet.cs
index 0312141f09..9f54718e95 100644
--- a/src/System.Management.Automation/engine/cmdlet.cs
+++ b/src/System.Management.Automation/engine/cmdlet.cs
@@ -26,9 +26,9 @@ namespace System.Management.Automation
/// deriving from the PSCmdlet base class. The Cmdlet base class is the primary means by
/// which users create their own Cmdlets. Extending this class provides support for the most
/// common functionality, including object output and record processing.
- /// If your Cmdlet requires access to the MSH Runtime (for example, variables in the session state,
- /// access to the host, or information about the current Cmdlet Providers,) then you should instead
- /// derive from the PSCmdlet base class.
+ /// If your Cmdlet requires access to the MSH Runtime (for example, variables in the session state,
+ /// access to the host, or information about the current Cmdlet Providers,) then you should instead
+ /// derive from the PSCmdlet base class.
/// In both cases, users should first develop and implement an object model to accomplish their
/// task, extending the Cmdlet or PSCmdlet classes only as a thin management layer.
///
@@ -85,7 +85,7 @@ namespace System.Management.Automation
///
/// If Stopping is true, many Cmdlet methods will throw
/// .
- ///
+ ///
/// In general, if a Cmdlet's override implementation of ProcessRecord etc.
/// throws , the best thing to do is to
/// shut down the operation and return to the caller.
@@ -115,11 +115,11 @@ namespace System.Management.Automation
///
/// Sets the parameter set
///
- ///
+ ///
///
/// The name of the valid parameter set.
///
- ///
+ ///
internal void SetParameterSetName(string parameterSetName)
{
_parameterSetName = parameterSetName;
@@ -179,7 +179,7 @@ namespace System.Management.Automation
///
/// When overridden in the derived class, performs clean-up
- /// after the command execution.
+ /// after the command execution.
/// Default implementation in the base class just returns.
///
///
@@ -333,7 +333,7 @@ namespace System.Management.Automation
/// terminates the command, where
///
/// allows the command to continue.
- ///
+ ///
/// If the pipeline is terminated due to ActionPreference.Stop
/// or ActionPreference.Inquire, this method will throw
/// ,
@@ -509,9 +509,9 @@ namespace System.Management.Automation
/// and only from that thread.
///
///
- /// Use WriteCommandDetail to write important information about cmdlet execution to
- /// pipeline execution log.
- ///
+ /// Use WriteCommandDetail to write important information about cmdlet execution to
+ /// pipeline execution log.
+ ///
/// If LogPipelineExecutionDetail is turned on, this information will be written
/// to monad log under log category "Pipeline execution detail"
///
@@ -549,7 +549,7 @@ namespace System.Management.Automation
/// Use WriteProgress to display progress information about
/// the activity of your Cmdlet, when the operation of your Cmdlet
/// could potentially take a long time.
- ///
+ ///
/// By default, progress output will
/// be displayed, although this can be configured with the
/// ProgressPreference shell variable.
@@ -784,11 +784,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -816,7 +816,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(filename))
@@ -849,7 +849,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify text for both the
/// target resource and the action.
///
@@ -882,11 +882,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -912,7 +912,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(filename, "delete"))
@@ -945,7 +945,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify the complete text
/// describing the operation, rather than just the name and action.
///
@@ -986,11 +986,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -1016,7 +1016,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(
@@ -1055,7 +1055,7 @@ namespace System.Management.Automation
/// (e.g. delete files, stop services etc.) should call ShouldProcess
/// to give the user the opportunity to confirm that the operation
/// should actually be performed.
- ///
+ ///
/// This variant allows the caller to specify the complete text
/// describing the operation, rather than just the name and action.
///
@@ -1102,11 +1102,11 @@ namespace System.Management.Automation
/// A Cmdlet should declare
/// [Cmdlet( SupportsShouldProcess = true )]
/// if-and-only-if it calls ShouldProcess before making changes.
- ///
+ ///
/// ShouldProcess may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// ShouldProcess will take into account command-line settings
/// and preference variables in determining what it should return
/// and whether it should prompt the user.
@@ -1132,7 +1132,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// ShouldProcessReason shouldProcessReason;
@@ -1215,16 +1215,16 @@ namespace System.Management.Automation
/// and ShouldProcess.
/// If this is not done, it will be difficult to use the Cmdlet
/// from scripts and non-interactive hosts.
- ///
+ ///
/// Cmdlets using ShouldContinue must still verify operations
/// which will make changes using ShouldProcess.
/// This will assure that settings such as -WhatIf work properly.
/// You may call ShouldContinue either before or after ShouldProcess.
- ///
+ ///
/// ShouldContinue may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// Cmdlets may have different "classes" of confirmations. For example,
/// "del" confirms whether files in a particular directory should be
/// deleted, whether read-only files should be deleted, etc.
@@ -1249,7 +1249,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// [Parameter]
/// public SwitchParameter Force
/// {
@@ -1257,7 +1257,7 @@ namespace System.Management.Automation
/// set { force = value; }
/// }
/// private bool force;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(
@@ -1344,16 +1344,16 @@ namespace System.Management.Automation
/// and ShouldProcess.
/// If this is not done, it will be difficult to use the Cmdlet
/// from scripts and non-interactive hosts.
- ///
+ ///
/// Cmdlets using ShouldContinue must still verify operations
/// which will make changes using ShouldProcess.
/// This will assure that settings such as -WhatIf work properly.
/// You may call ShouldContinue either before or after ShouldProcess.
- ///
+ ///
/// ShouldContinue may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// Cmdlets may have different "classes" of confirmations. For example,
/// "del" confirms whether files in a particular directory should be
/// deleted, whether read-only files should be deleted, etc.
@@ -1378,7 +1378,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// [Parameter]
/// public SwitchParameter Force
/// {
@@ -1386,10 +1386,10 @@ namespace System.Management.Automation
/// set { force = value; }
/// }
/// private bool force;
- ///
+ ///
/// private bool yesToAll;
/// private bool noToAll;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(
@@ -1484,16 +1484,16 @@ namespace System.Management.Automation
/// and ShouldProcess.
/// If this is not done, it will be difficult to use the Cmdlet
/// from scripts and non-interactive hosts.
- ///
+ ///
/// Cmdlets using ShouldContinue must still verify operations
/// which will make changes using ShouldProcess.
/// This will assure that settings such as -WhatIf work properly.
/// You may call ShouldContinue either before or after ShouldProcess.
- ///
+ ///
/// ShouldContinue may only be called during a call to this Cmdlet's
/// implementation of ProcessRecord, BeginProcessing or EndProcessing,
/// and only from that thread.
- ///
+ ///
/// Cmdlets may have different "classes" of confirmations. For example,
/// "del" confirms whether files in a particular directory should be
/// deleted, whether read-only files should be deleted, etc.
@@ -1518,7 +1518,7 @@ namespace System.Management.Automation
/// set { filename = value; }
/// }
/// private string filename;
- ///
+ ///
/// [Parameter]
/// public SwitchParameter Force
/// {
@@ -1526,10 +1526,10 @@ namespace System.Management.Automation
/// set { force = value; }
/// }
/// private bool force;
- ///
+ ///
/// private bool yesToAll;
/// private bool noToAll;
- ///
+ ///
/// public override void ProcessRecord()
/// {
/// if (ShouldProcess(
@@ -1694,7 +1694,7 @@ namespace System.Management.Automation
/// terminates the command, where
///
/// allows the command to continue.
- ///
+ ///
/// The cmdlet can also terminate the command by simply throwing
/// any exception. When the cmdlet's implementation of
/// ,
@@ -1707,7 +1707,7 @@ namespace System.Management.Automation
/// so that the additional information in
///
/// is available.
- ///
+ ///
///
/// always throws
/// ,
@@ -1776,7 +1776,7 @@ namespace System.Management.Automation
///
/// When overridden in the derived class, performs clean-up
- /// after the command execution.
+ /// after the command execution.
/// Default implementation in the base class just returns.
///
///
diff --git a/src/System.Management.Automation/engine/debugger/Breakpoint.cs b/src/System.Management.Automation/engine/debugger/Breakpoint.cs
index f2c6c09076..51bcad3245 100644
--- a/src/System.Management.Automation/engine/debugger/Breakpoint.cs
+++ b/src/System.Management.Automation/engine/debugger/Breakpoint.cs
@@ -11,7 +11,7 @@ using System.Management.Automation.Language;
namespace System.Management.Automation
{
///
- /// Holds the information for a given breakpoint
+ /// Holds the information for a given breakpoint
///
public abstract class Breakpoint
{
diff --git a/src/System.Management.Automation/engine/debugger/debugger.cs b/src/System.Management.Automation/engine/debugger/debugger.cs
index e81dcce23e..4d9809acf7 100644
--- a/src/System.Management.Automation/engine/debugger/debugger.cs
+++ b/src/System.Management.Automation/engine/debugger/debugger.cs
@@ -25,7 +25,7 @@ namespace System.Management.Automation
#region Event Args
///
- /// Possible actions for the debugger after hitting a breakpoint/step
+ /// Possible actions for the debugger after hitting a breakpoint/step
///
public enum DebuggerResumeAction
{
@@ -52,12 +52,12 @@ namespace System.Management.Automation
};
///
- /// Arguments for the DebuggerStop event.
+ /// Arguments for the DebuggerStop event.
///
public class DebuggerStopEventArgs : EventArgs
{
///
- /// Initializes the DebuggerStopEventArgs
+ /// Initializes the DebuggerStopEventArgs
///
internal DebuggerStopEventArgs(InvocationInfo invocationInfo, List breakpoints)
{
@@ -88,7 +88,7 @@ namespace System.Management.Automation
public InvocationInfo InvocationInfo { get; internal set; }
///
- /// The breakpoint(s) hit
+ /// The breakpoint(s) hit
///
///
/// Note there may be more than one breakpoint on the same object (line, variable, command). A single event is
@@ -107,7 +107,7 @@ namespace System.Management.Automation
};
///
- /// Kinds of breakpoint updates
+ /// Kinds of breakpoint updates
///
public enum BreakpointUpdateType
{
@@ -130,12 +130,12 @@ namespace System.Management.Automation
};
///
- /// Arguments for the BreakpointUpdated event.
+ /// Arguments for the BreakpointUpdated event.
///
public class BreakpointUpdatedEventArgs : EventArgs
{
///
- /// Initializes the BreakpointUpdatedEventArgs
+ /// Initializes the BreakpointUpdatedEventArgs
///
internal BreakpointUpdatedEventArgs(Breakpoint breakpoint, BreakpointUpdateType updateType, int breakpointCount)
{
@@ -163,7 +163,7 @@ namespace System.Management.Automation
#region PSJobStartEventArgs
///
- /// Arguments for the script job start callback event.
+ /// Arguments for the script job start callback event.
///
public sealed class PSJobStartEventArgs : EventArgs
{
@@ -269,7 +269,7 @@ namespace System.Management.Automation
None = 0x0,
///
- /// Default setting for original PowerShell script debugging.
+ /// Default setting for original PowerShell script debugging.
/// Compatible with PowerShell Versions 2 and 3.
///
Default = 0x1,
@@ -475,7 +475,7 @@ namespace System.Management.Automation
#region Public Methods
///
- /// Evaluates provided command either as a debugger specific command
+ /// Evaluates provided command either as a debugger specific command
/// or a PowerShell command.
///
/// PowerShell command
@@ -617,7 +617,7 @@ namespace System.Management.Automation
/// Sets up debugger to debug provided job or its child jobs.
///
///
- /// Job object that is either a debuggable job or a container
+ /// Job object that is either a debuggable job or a container
/// of debuggable child jobs.
///
internal virtual void DebugJob(Job job)
@@ -728,7 +728,7 @@ namespace System.Management.Automation
#region ScriptDebugger class
///
- /// Holds the debugging information for a Monad Shell session
+ /// Holds the debugging information for a Monad Shell session
///
internal sealed class ScriptDebugger : Debugger, IDisposable
{
@@ -1964,7 +1964,7 @@ namespace System.Management.Automation
{
get
{
- // The debugger can be enabled if we are not in DebugMode.None and if we are
+ // The debugger can be enabled if we are not in DebugMode.None and if we are
// not in a local session set only to RemoteScript.
return !((DebugMode == DebugModes.RemoteScript) && IsLocalSession) && (DebugMode != DebugModes.None);
}
@@ -2427,9 +2427,9 @@ namespace System.Management.Automation
///
/// Sets how the debugger deals with breakpoint events that are not handled.
- /// Ignore - This is the default behavior and ignores any breakpoint event
+ /// Ignore - This is the default behavior and ignores any breakpoint event
/// if there is no handler. Releases any preserved event.
- /// Wait - This mode preserves a breakpoint event until a handler is
+ /// Wait - This mode preserves a breakpoint event until a handler is
/// subscribed.
///
internal override UnhandledBreakpointProcessingMode UnhandledBreakpointMode
@@ -2460,7 +2460,7 @@ namespace System.Management.Automation
/// Sets up debugger to debug provided job or its child jobs.
///
///
- /// Job object that is either a debuggable job or a container
+ /// Job object that is either a debuggable job or a container
/// of debuggable child jobs.
///
internal override void DebugJob(Job job)
@@ -2475,7 +2475,7 @@ namespace System.Management.Automation
}
}
- // If a debuggable job was passed in then add it to the
+ // If a debuggable job was passed in then add it to the
// job running list.
bool jobsAdded = TryAddDebugJob(job);
if (!jobsAdded)
@@ -2684,8 +2684,8 @@ namespace System.Management.Automation
}
// At this point the script debugger stack frame must be the Workflow execution function which is DebuggerHidden.
- // The internal debugger resume action is set to StepOut, *if* the user selected StepIn, so as to skip this frame
- // since debugging the workflow execution function is turned off. We look at the previous resume action to see
+ // The internal debugger resume action is set to StepOut, *if* the user selected StepIn, so as to skip this frame
+ // since debugging the workflow execution function is turned off. We look at the previous resume action to see
// what the user intended. If it is StepIn then we start the workflow job debugger in step mode.
Diagnostics.Assert(_callStack.LastFunctionContext()._debuggerHidden, "Current stack frame must be WF function DebuggerHidden");
DebuggerResumeAction startAction = (_previousDebuggerAction == DebuggerResumeAction.StepInto) ?
@@ -2998,7 +2998,7 @@ namespace System.Management.Automation
private CallStackInfo FixUpCallStack()
{
- // Remove the top level call stack item, which is
+ // Remove the top level call stack item, which is
// the PS script that starts the workflow. The workflow
// debugger will add its call stack in its GetCallStack()
// override.
@@ -3150,7 +3150,7 @@ namespace System.Management.Automation
{
if (detachCommand)
{
- // Exit command means to cancel the nested debugger session. This needs to be done by the
+ // Exit command means to cancel the nested debugger session. This needs to be done by the
// owner of the session so we raise an event and release the debugger stop.
UnhandledBreakpointMode = UnhandledBreakpointProcessingMode.Ignore;
RaiseNestedDebuggingCancelEvent();
@@ -3233,7 +3233,7 @@ namespace System.Management.Automation
#if !CORECLR // Workflow Not Supported on OneCore PS
private void EnableRunningWorkflowJobsForStepping()
{
- // Make sure workflow job start callback is set to pick
+ // Make sure workflow job start callback is set to pick
// up any newly starting jobs.
if (!_wfStartEventSubscribed)
{
@@ -4014,7 +4014,7 @@ namespace System.Management.Automation
///
/// Checks to see if the runspace debugger is in a preserved debug
- /// stop state, and if so then allows the debugger stop event to
+ /// stop state, and if so then allows the debugger stop event to
/// continue processing and raise the event.
///
internal void CheckStateAndRaiseStopEvent()
@@ -4032,7 +4032,7 @@ namespace System.Management.Automation
}
else
{
- // If this is a remote server debugger then we want to convert the pending remote
+ // If this is a remote server debugger then we want to convert the pending remote
// debugger stop to a local debugger stop event for this Debug-Runspace to handle.
ServerRemoteDebugger serverRemoteDebugger = this._wrappedDebugger as ServerRemoteDebugger;
if (serverRemoteDebugger != null)
@@ -4134,8 +4134,8 @@ namespace System.Management.Automation
}
///
- /// Wrapper class for runspace debugger where the runspace is being used in an
- /// embedded scenario such as Workflow InlineScript or Invoke-Command command
+ /// Wrapper class for runspace debugger where the runspace is being used in an
+ /// embedded scenario such as Workflow InlineScript or Invoke-Command command
/// inside script.
///
internal sealed class EmbeddedRunspaceDebugger : NestedRunspaceDebugger
@@ -4310,7 +4310,7 @@ namespace System.Management.Automation
{
if (parentStackFrame == null) { return null; }
- // Attempt to find parent script file create script block with Ast to
+ // Attempt to find parent script file create script block with Ast to
// find correct line and offset adjustments.
if ((_parentScriptBlockAst == null) &&
!string.IsNullOrEmpty(parentStackFrame.ScriptName) &&
@@ -4888,7 +4888,7 @@ namespace System.Management.Automation
#region PSDebugContext class
///
- /// This class exposes the information about the debugger that is available via $PSDebugContext
+ /// This class exposes the information about the debugger that is available via $PSDebugContext
///
public class PSDebugContext
{
@@ -4914,7 +4914,7 @@ namespace System.Management.Automation
public InvocationInfo InvocationInfo { get; private set; }
///
- /// If not empty, indicates that the execution was suspended because one or more breakpoints
+ /// If not empty, indicates that the execution was suspended because one or more breakpoints
/// were hit. Otherwise, the execution was suspended as part of a step operation.
///
public Breakpoint[] Breakpoints { get; private set; }
@@ -5100,7 +5100,7 @@ namespace System.Management.Automation.Internal
{
microsoft.powershell.utility\set-variable -Name $key -Value $Variables[$key] -Scope global
}
-
+
Set-StrictMode -Off
}";
diff --git a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs
index 3f19f0f3f8..c7181032f2 100644
--- a/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs
+++ b/src/System.Management.Automation/engine/hostifaces/AsyncResult.cs
@@ -70,7 +70,7 @@ namespace System.Management.Automation.Runspaces
public bool IsCompleted { get; private set; }
///
- /// This is not supported and returns null.
+ /// This is not supported and returns null.
///
public object AsyncState { get; }
diff --git a/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs b/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs
index 576b09f0d6..7734de6307 100644
--- a/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs
+++ b/src/System.Management.Automation/engine/hostifaces/ChoiceDescription.cs
@@ -10,29 +10,29 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation.Host
{
///
- ///
+ ///
/// Provides a description of a choice for use by .
///
- ///
+ ///
///
public sealed
class ChoiceDescription
{
///
- ///
+ ///
/// Initializes an new instance of ChoiceDescription and defines the Label value.
- ///
+ ///
///
///
- ///
+ ///
/// The label to identify this field description
- ///
+ ///
///
///
- ///
+ ///
/// is null or empty.
- ///
+ ///
///
public
@@ -50,29 +50,29 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Initializes an new instance of ChoiceDescription and defines the Label and HelpMessage values.
- ///
+ ///
///
///
- ///
+ ///
/// The label to identify this field description.
- ///
+ ///
///
///
- ///
- /// The help message for this field.
- ///
+ ///
+ /// The help message for this field.
+ ///
///
///
- ///
+ ///
/// is null or empty.
- ///
+ ///
///
///
- ///
+ ///
/// is null.
- ///
+ ///
///
public
@@ -104,19 +104,19 @@ namespace System.Management.Automation.Host
{ }
///
- ///
+ ///
/// Gets a short, human-presentable message to describe and identify the choice. Think Button label.
- ///
+ ///
///
///
- ///
+ ///
/// Note that the special character & (ampersand) may be embedded in the label string to identify the next character in the label
/// as a "hot key" (aka "keyboard accelerator") that the Console.PromptForChoice implementation may use to allow the user to
/// quickly set input focus to this choice. The implementation of
/// is responsible for parsing the label string for this special character and rendering it accordingly.
- ///
+ ///
/// For examples, a choice named "Yes to All" might have "Yes to &All" as it's label.
- ///
+ ///
///
public
@@ -134,9 +134,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets and sets the help message for this field.
- ///
+ ///
///
///
///
@@ -144,10 +144,10 @@ namespace System.Management.Automation.Host
///
///
///
- ///
+ ///
/// This should be a few sentences to describe the field, suitable for presentation as a tool tip.
/// Avoid placing including formatting characters such as newline and tab.
- ///
+ ///
///
public
diff --git a/src/System.Management.Automation/engine/hostifaces/Command.cs b/src/System.Management.Automation/engine/hostifaces/Command.cs
index 474d443b46..bed8852ff1 100644
--- a/src/System.Management.Automation/engine/hostifaces/Command.cs
+++ b/src/System.Management.Automation/engine/hostifaces/Command.cs
@@ -148,7 +148,7 @@ namespace System.Management.Automation.Runspaces
/// Access the value indicating if LocalScope is to be used for running
/// this script command.
///
- /// True if this command is a script and localScope is
+ /// True if this command is a script and localScope is
/// used for executing the script
/// This value is always false for non-script commands
public bool UseLocalScope
@@ -206,12 +206,12 @@ namespace System.Management.Automation.Runspaces
private PipelineResultTypes _mergeUnclaimedPreviousCommandResults =
PipelineResultTypes.None;
///
- /// Sets this command as the mergepoint for previous unclaimed
+ /// Sets this command as the mergepoint for previous unclaimed
/// commands' results
///
///
///
- /// Currently only supported operation is to merge
+ /// Currently only supported operation is to merge
/// Output and Error.
///
///
@@ -274,15 +274,15 @@ namespace System.Management.Automation.Runspaces
///
/// Merges this commands results
///
- ///
+ ///
///
/// Pipeline stream to be redirected.
///
- ///
+ ///
///
/// Pipeline stream in to which myResult is merged
///
- ///
+ ///
///
/// myResult parameter is not PipelineResultTypes.Error or
/// toResult parameter is not PipelineResultTypes.Output
@@ -364,7 +364,7 @@ namespace System.Management.Automation.Runspaces
if (_mergeUnclaimedPreviousCommandResults != PipelineResultTypes.None)
{
- //Currently only merging previous unclaimed error and output is supported.
+ //Currently only merging previous unclaimed error and output is supported.
if (mcr != null)
{
mcr.MergeUnclaimedPreviousErrorResults = true;
@@ -550,7 +550,7 @@ namespace System.Management.Automation.Runspaces
#region Private fields
///
- /// This is used for script commands (i.e. _isScript is true). If
+ /// This is used for script commands (i.e. _isScript is true). If
/// _useLocalScope is true, script is run in LocalScope. If
/// null, it was unspecified and a suitable default is used (true
/// for non-script, false for script). Note that the public
@@ -565,13 +565,13 @@ namespace System.Management.Automation.Runspaces
///
- /// Creates a Command object from a PSObject property bag.
+ /// Creates a Command object from a PSObject property bag.
/// PSObject has to be in the format returned by ToPSObjectForRemoting method.
///
/// PSObject to rehydrate
///
/// Command rehydrated from a PSObject property bag
- ///
+ ///
///
/// Thrown if the PSObject is null.
///
@@ -772,12 +772,12 @@ namespace System.Management.Automation.Runspaces
None,
///
- /// Success output
+ /// Success output
///
Output,
///
- /// Error output
+ /// Error output
///
Error,
diff --git a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs
index 6fe54b6443..84a95429c4 100644
--- a/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs
+++ b/src/System.Management.Automation/engine/hostifaces/ConnectionBase.cs
@@ -25,7 +25,7 @@ namespace System.Management.Automation.Runspaces
#region constructors
///
- /// Construct an instance of an Runspace using a custom
+ /// Construct an instance of an Runspace using a custom
/// implementation of PSHost.
///
/// The explicit PSHost implementation
@@ -54,7 +54,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Construct an instance of an Runspace using a custom
+ /// Construct an instance of an Runspace using a custom
/// implementation of PSHost.
///
/// The explicit PSHost implementation
@@ -89,7 +89,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Construct an instance of an Runspace using a custom
+ /// Construct an instance of an Runspace using a custom
/// implementation of PSHost.
///
///
@@ -257,7 +257,7 @@ namespace System.Management.Automation.Runspaces
if (etwEnabled) RunspaceEventSource.Log.OpenRunspaceStart();
lock (SyncRoot)
{
- //Call fails if RunspaceState is not BeforeOpen.
+ //Call fails if RunspaceState is not BeforeOpen.
if (RunspaceState != RunspaceState.BeforeOpen)
{
InvalidRunspaceStateException e =
@@ -273,7 +273,7 @@ namespace System.Management.Automation.Runspaces
SetRunspaceState(RunspaceState.Opening);
}
- //Raise event outside the lock
+ //Raise event outside the lock
RaiseRunspaceStateEvents();
OpenHelper(syncCall);
@@ -318,7 +318,7 @@ namespace System.Management.Automation.Runspaces
/// Close the runspace Asynchronously.
///
///
- /// Attempts to execute pipelines after a call to
+ /// Attempts to execute pipelines after a call to
/// close will fail.
///
///
@@ -330,16 +330,16 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Close the runspace
+ /// Close the runspace
///
/// If true runspace is closed synchronously
/// else runspaces is closed asynchronously
///
- ///
+ ///
///
/// RunspaceState is BeforeOpen or Opening
///
- ///
+ ///
///
/// If SessionStateProxy has some method call in progress
///
@@ -374,7 +374,7 @@ namespace System.Management.Automation.Runspaces
}
finally
{
- // Acquire the lock before we carry on with the rest operations
+ // Acquire the lock before we carry on with the rest operations
Monitor.Enter(SyncRoot);
}
}
@@ -411,10 +411,10 @@ namespace System.Management.Automation.Runspaces
//Already closing is set to true if Runspace is already
//in closing. In this case wait for runspace to close.
//This can happen in two scenarios:
- //1) User calls Runspace.Close from two threads.
+ //1) User calls Runspace.Close from two threads.
//2) In remoting, some error from data structure handler layer can start
- //runspace closure. At the same time, user can call
- //remove runspace.
+ //runspace closure. At the same time, user can call
+ //remove runspace.
//
if (syncCall)
@@ -582,7 +582,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Creates a nested pipeline.
+ /// Creates a nested pipeline.
///
///
/// Nested pipelines are needed for nested prompt scenario. Nested
@@ -595,7 +595,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Creates a nested pipeline.
+ /// Creates a nested pipeline.
///
/// A valid command string
/// if true command is added to history
@@ -616,9 +616,9 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Create a pipeline from a command string
+ /// Create a pipeline from a command string
///
- ///
+ ///
/// A valid command string or String.Empty.
/// if true command is added to history
/// True for nested pipeline
@@ -669,7 +669,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Retrieve the current state of the runspace.
+ /// Retrieve the current state of the runspace.
///
///
protected RunspaceState RunspaceState
@@ -682,10 +682,10 @@ namespace System.Management.Automation.Runspaces
///
/// This is queue of all the state change event which have occured for
- /// this runspace. RaiseRunspaceStateEvents raises event for each
+ /// this runspace. RaiseRunspaceStateEvents raises event for each
/// item in this queue. We don't raise events from with SetRunspaceState
/// because SetRunspaceState is often called from with in the a lock.
- /// Raising event with in a lock introduces chances of deadlock in GUI
+ /// Raising event with in a lock introduces chances of deadlock in GUI
/// applications.
///
private Queue _runspaceEventQueue = new Queue();
@@ -711,14 +711,14 @@ namespace System.Management.Automation.Runspaces
/// Set the new runspace state.
///
/// the new state
- /// An exception indicating the state change is the
+ /// An exception indicating the state change is the
/// result of an error, otherwise; null.
///
///
- /// Sets the internal runspace state information member variable. It also
- /// adds RunspaceStateInfo to a queue.
+ /// Sets the internal runspace state information member variable. It also
+ /// adds RunspaceStateInfo to a queue.
/// RaiseRunspaceStateEvents raises event for each item in this queue.
- ///
+ ///
protected void SetRunspaceState(RunspaceState state, Exception reason)
{
lock (SyncRoot)
@@ -730,7 +730,7 @@ namespace System.Management.Automation.Runspaces
//Add _runspaceStateInfo to _runspaceEventQueue.
//RaiseRunspaceStateEvents will raise event for each item
//in this queue.
- //Note:We are doing clone here instead of passing the member
+ //Note:We are doing clone here instead of passing the member
//_runspaceStateInfo because we donot want outside
//to change our runspace state.
RunspaceAvailability previousAvailability = _runspaceAvailability;
@@ -777,8 +777,8 @@ namespace System.Management.Automation.Runspaces
}
else
{
- //Clear the events if there are no EventHandlers. This
- //ensures that events do not get called for state
+ //Clear the events if there are no EventHandlers. This
+ //ensures that events do not get called for state
//changes prior to their registration.
_runspaceEventQueue.Clear();
}
@@ -818,9 +818,9 @@ namespace System.Management.Automation.Runspaces
#region running pipeline management
///
- /// In RemoteRunspace, it is required to invoke pipeline
+ /// In RemoteRunspace, it is required to invoke pipeline
/// as part of open call (i.e. while state is Opening).
- /// If this property is true, runspace state check is
+ /// If this property is true, runspace state check is
/// not performed in AddToRunningPipelineList call.
///
protected bool ByPassRunspaceStateCheck { get; set; }
@@ -835,15 +835,15 @@ namespace System.Management.Automation.Runspaces
///
/// Add the pipeline to list of pipelines in execution.
///
- /// Pipeline to add to the
- /// list of pipelines in execution
- ///
+ /// Pipeline to add to the
+ /// list of pipelines in execution
+ ///
///
/// Thrown if the runspace is not in the Opened state.
/// .
///
- ///
- /// Thrown if
+ ///
+ /// Thrown if
/// is null.
///
internal void AddToRunningPipelineList(PipelineBase pipeline)
@@ -875,12 +875,12 @@ namespace System.Management.Automation.Runspaces
///
/// Remove the pipeline from list of pipelines in execution.
///
- /// Pipeline to remove from the
- /// list of pipelines in execution
- ///
+ /// Pipeline to remove from the
+ /// list of pipelines in execution
+ ///
///
/// Thrown if is null.
- ///
+ ///
internal void RemoveFromRunningPipelineList(PipelineBase pipeline)
{
Dbg.Assert(pipeline != null, "caller should validate the parameter");
@@ -910,7 +910,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Waits till all the pipelines running in the runspace have
+ /// Waits till all the pipelines running in the runspace have
/// finished execution.
///
internal bool WaitForFinishofPipelines()
@@ -969,7 +969,7 @@ namespace System.Management.Automation.Runspaces
///
- /// Stops all the running pipelines
+ /// Stops all the running pipelines
///
protected void StopPipelines()
{
@@ -1015,7 +1015,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Gets the currently executing pipeline.
+ /// Gets the currently executing pipeline.
///
/// Internal because it is needed by invoke-history
internal override Pipeline GetCurrentlyRunningPipeline()
@@ -1036,8 +1036,8 @@ namespace System.Management.Automation.Runspaces
lock (_pipelineListLock)
{
- //first check if this pipeline is in the list of running
- //pipelines. It is possible that pipeline has already
+ //first check if this pipeline is in the list of running
+ //pipelines. It is possible that pipeline has already
//completed.
if (RunningPipelines.Contains(pipeline) == false)
{
@@ -1077,7 +1077,7 @@ namespace System.Management.Automation.Runspaces
void
DoConcurrentCheckAndAddToRunningPipelines(PipelineBase pipeline, bool syncCall)
{
- //Concurrency check should be done under runspace lock
+ //Concurrency check should be done under runspace lock
lock (SyncRoot)
{
if (_bSessionStateProxyCallInProgress == true)
@@ -1093,7 +1093,7 @@ namespace System.Management.Automation.Runspaces
}
}
- // PowerShell support for async notifications happen through the
+ // PowerShell support for async notifications happen through the
// CheckForInterrupts() method on ParseTreeNode. These are only called when
// the engine is active (and processing,) so the Pulse() method
// executes the equivalent of a NOP so that async events
diff --git a/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs b/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs
index dae7f5d6d6..d584b4ef43 100644
--- a/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs
+++ b/src/System.Management.Automation/engine/hostifaces/ConnectionFactory.cs
@@ -33,8 +33,8 @@ namespace System.Management.Automation.Runspaces
#region Runspace Factory
///
- /// Creates a runspace using host of type .
- /// This runspace is created using the information
+ /// Creates a runspace using host of type .
+ /// This runspace is created using the information
/// from EntryAssembly.
///
///
@@ -52,14 +52,14 @@ namespace System.Management.Automation.Runspaces
/// configuration information from EntryAssembly.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// A runspace object
///
///
/// Thrown when host is null.
- ///
+ ///
public static Runspace CreateRunspace(PSHost host)
{
if (host == null)
@@ -81,7 +81,7 @@ namespace System.Management.Automation.Runspaces
///
///
/// Thrown when runspaceConfiguration is null
- ///
+ ///
#if CORECLR
internal
#else
@@ -113,10 +113,10 @@ namespace System.Management.Automation.Runspaces
///
///
/// Thrown when host is null
- ///
+ ///
///
/// Thrown when runspaceConfiguration is null
- ///
+ ///
#if CORECLR
internal
#else
@@ -151,7 +151,7 @@ namespace System.Management.Automation.Runspaces
///
///
/// Thrown when initialSessionState is null
- ///
+ ///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Runspace")]
public static Runspace CreateRunspace(InitialSessionState initialSessionState)
{
@@ -179,10 +179,10 @@ namespace System.Management.Automation.Runspaces
///
///
/// Thrown when host is null
- ///
+ ///
///
/// Thrown when initialSessionState is null
- ///
+ ///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Runspace")]
public static Runspace CreateRunspace(PSHost host, InitialSessionState initialSessionState)
{
@@ -213,10 +213,10 @@ namespace System.Management.Automation.Runspaces
///
///
/// Thrown when host is null
- ///
+ ///
///
/// Thrown when initialSessionState is null
- ///
+ ///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Runspace")]
internal static Runspace CreateRunspaceFromSessionStateNoClone(PSHost host, InitialSessionState initialSessionState)
{
@@ -238,7 +238,7 @@ namespace System.Management.Automation.Runspaces
#region RunspacePool Factory
///
- /// Creates a RunspacePool using default RunspaceConfiguration
+ /// Creates a RunspacePool using default RunspaceConfiguration
/// with MaxRunspaces 1 and MinRunspaces 1.
///
public static RunspacePool CreateRunspacePool()
@@ -253,13 +253,13 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Creates a RunspacePool using default RunspaceConfiguration.
+ /// Creates a RunspacePool using default RunspaceConfiguration.
///
/// limits the number of Runspaces that can exist in this
/// pool. The minimum pool size is set to .
///
///
- /// The minimum number of Runspaces that exist in this
+ /// The minimum number of Runspaces that exist in this
/// pool. Should be greater than or equal to 1.
///
///
@@ -313,11 +313,11 @@ namespace System.Management.Automation.Runspaces
/// Should be greater than or equal to 1.
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// is null.
@@ -340,18 +340,18 @@ namespace System.Management.Automation.Runspaces
/// Should be greater than or equal to 1.
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
/// RunspaceConfiguration to use when creating a new Runspace in the
/// pool.
- ///
+ ///
///
/// RunspaceConfiguration is null.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// is null.
@@ -377,18 +377,18 @@ namespace System.Management.Automation.Runspaces
/// Should be greater than or equal to 1.
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
/// initialSessionState to use when creating a new Runspace in the
/// pool.
- ///
+ ///
///
/// RunspaceConfiguration is null.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// is null.
@@ -413,15 +413,15 @@ namespace System.Management.Automation.Runspaces
#region RunspacePool - remote Factory
///
- /// Creates a RunspacePool
+ /// Creates a RunspacePool
/// on the specified remote computer.
///
/// limits the number of Runspaces that can exist in this
- /// pool. The minimum pool size is set to
+ /// pool. The minimum pool size is set to
/// .
///
///
- /// The minimum number of Runspace that should exist in this
+ /// The minimum number of Runspace that should exist in this
/// pool. Should be greater than 1.
///
///
@@ -445,15 +445,15 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Creates a RunspacePool
+ /// Creates a RunspacePool
/// on the specified remote runspace computer.
///
/// limits the number of Runspaces that can exist in this
- /// pool. The minimum pool size is set to
+ /// pool. The minimum pool size is set to
/// .
///
///
- /// The minimum number of Runspace that should exist in this
+ /// The minimum number of Runspace that should exist in this
/// pool. Should be greater than 1.
///
///
@@ -479,15 +479,15 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Creates a RunspacePool
+ /// Creates a RunspacePool
/// on the specified remote runspace computer.
///
/// limits the number of Runspaces that can exist in this
- /// pool. The minimum pool size is set to
+ /// pool. The minimum pool size is set to
/// .
///
///
- /// The minimum number of Runspace that should exist in this
+ /// The minimum number of Runspace that should exist in this
/// pool. Should be greater than 1.
///
///
@@ -503,7 +503,7 @@ namespace System.Management.Automation.Runspaces
/// TypeTable has the following information used by deserializer:
/// 1. TargetTypeForDeserialization
/// 2. TypeConverter
- ///
+ ///
/// If is null no custom serialization/deserialization
/// can be done. Default PowerShell behavior will be used in this case.
///
@@ -526,15 +526,15 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Creates a RunspacePool
+ /// Creates a RunspacePool
/// on the specified remote runspace computer.
///
/// limits the number of Runspaces that can exist in this
- /// pool. The minimum pool size is set to
+ /// pool. The minimum pool size is set to
/// .
///
///
- /// The minimum number of Runspace that should exist in this
+ /// The minimum number of Runspace that should exist in this
/// pool. Should be greater than 1.
///
///
@@ -550,7 +550,7 @@ namespace System.Management.Automation.Runspaces
/// TypeTable has the following information used by deserializer:
/// 1. TargetTypeForDeserialization
/// 2. TypeConverter
- ///
+ ///
/// If is null no custom serialization/deserialization
/// can be done. Default PowerShell behavior will be used in this case.
///
@@ -594,7 +594,7 @@ namespace System.Management.Automation.Runspaces
#region Runspace - Remote Factory
///
- ///
+ ///
///
///
/// The TypeTable to use while deserializing/serializing remote objects.
@@ -615,7 +615,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
///
/// The TypeTable to use while deserializing/serializing remote objects.
@@ -639,7 +639,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
///
///
@@ -679,7 +679,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
///
///
@@ -690,7 +690,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
///
///
@@ -704,7 +704,7 @@ namespace System.Management.Automation.Runspaces
#region V3 Extensions
///
- ///
+ ///
///
///
///
@@ -716,7 +716,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs b/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs
index ce122092c5..a395f79aa7 100644
--- a/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs
+++ b/src/System.Management.Automation/engine/hostifaces/DefaultHost.cs
@@ -67,9 +67,9 @@ namespace Microsoft.PowerShell
#region methods
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -82,15 +82,15 @@ namespace Microsoft.PowerShell
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
- ///
+ ///
/// On calling this method
- ///
+ ///
///
public override
@@ -101,15 +101,15 @@ namespace Microsoft.PowerShell
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
- ///
+ ///
/// On calling this method
- ///
+ ///
///
public override
void
@@ -119,9 +119,9 @@ namespace Microsoft.PowerShell
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -134,9 +134,9 @@ namespace Microsoft.PowerShell
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs
index 978a3e10d6..7ed9bcc22e 100644
--- a/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs
+++ b/src/System.Management.Automation/engine/hostifaces/FieldDescription.cs
@@ -18,10 +18,10 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation.Host
{
///
- ///
+ ///
/// Provides a description of a field for use by .
///
- ///
+ ///
///
///
/// It is permitted to subclass
@@ -32,19 +32,19 @@ namespace System.Management.Automation.Host
FieldDescription
{
///
- ///
+ ///
/// Initializes a new instance of FieldDescription and defines the Name value.
- ///
+ ///
///
///
- ///
+ ///
/// The name to identify this field description
- ///
+ ///
///
///
- ///
+ ///
/// is null or empty.
- ///
+ ///
///
public
@@ -74,19 +74,19 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Sets the ParameterTypeName, ParameterTypeFullName, and ParameterAssemblyFullName as a single operation.
- ///
+ ///
///
///
- ///
+ ///
/// The Type that sets the properties.
- ///
+ ///
///
///
- ///
+ ///
/// If is null.
- ///
+ ///
///
public
@@ -106,22 +106,22 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets the short name of the parameter's type.
- ///
+ ///
///
///
- ///
+ ///
/// The type name of the parameter
- ///
- ///
+ ///
+ ///
///
- ///
+ ///
/// If not already set by a call to ,
/// will be used as the type.
///
- ///
+ ///
///
public
@@ -144,17 +144,17 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets the full string name of the parameter's type.
- ///
+ ///
///
///
- ///
+ ///
/// If not already set by a call to ,
/// will be used as the type.
///
- ///
+ ///
///
public
@@ -176,18 +176,18 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets the full name of the assembly containing the type identified by ParameterTypeFullName or ParameterTypeName
- ///
+ ///
///
///
- ///
+ ///
/// If the assembly is not currently loaded in the hosting application's AppDomain, the hosting application needs
/// to load the containing assembly to access the type information. AssemblyName is used for this purpose.
- ///
+ ///
/// If not already set by a call to ,
/// will be used as the type.
- ///
+ ///
///
public
@@ -210,11 +210,11 @@ namespace System.Management.Automation.Host
///
- ///
- /// A short, human-presentable message to describe and identify the field. If supplied, a typical implementation of
+ ///
+ /// A short, human-presentable message to describe and identify the field. If supplied, a typical implementation of
/// will use this value instead of
/// the field name to identify the field to the user.
- ///
+ ///
///
///
///
@@ -222,18 +222,18 @@ namespace System.Management.Automation.Host
///
///
///
- ///
+ ///
/// Note that the special character & (ampersand) may be embedded in the label string to identify the next
/// character in the label as a "hot key" (aka "keyboard accelerator") that the
/// implementation may use
/// to allow the user to quickly set input focus to this field. The implementation of
/// is responsible for parsing
/// the label string for this special character and rendering it accordingly.
- ///
+ ///
/// For example, a field named "SSN" might have "&Social Security Number" as it's label.
- ///
+ ///
/// If no label is set, then the empty string is returned.
- ///
+ ///
///
public
@@ -260,9 +260,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets and sets the help message for this field.
- ///
+ ///
///
///
///
@@ -270,10 +270,10 @@ namespace System.Management.Automation.Host
///
///
///
- ///
+ ///
/// This should be a few sentences to describe the field, suitable for presentation as a tool tip.
/// Avoid placing including formatting characters such as newline and tab.
- ///
+ ///
///
public
@@ -299,9 +299,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets and sets whether a value must be supplied for this field
- ///
+ ///
///
public
@@ -309,17 +309,17 @@ namespace System.Management.Automation.Host
IsMandatory { get; set; } = true;
///
- ///
+ ///
/// Gets and sets the default value, if any, for the implementation of
/// to pre-populate its UI with. This is a PSObject instance so that the value can be serialized, converted,
/// manipulated like any pipeline object.
- ///
+ ///
///
///
- ///
+ ///
/// It is up to the implementer of to decide if it
/// can make use of the object in its presentation of the fields prompt.
- ///
+ ///
///
public
@@ -328,11 +328,11 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets the Attribute classes that apply to the field. In the case that
/// is being called from the MSH engine, this will contain the set of prompting attributes that are attached to a
/// cmdlet parameter declaration.
- ///
+ ///
///
public
@@ -343,15 +343,15 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// For use by remoting serialization.
- ///
+ ///
///
///
///
- ///
+ ///
/// If is null.
- ///
+ ///
///
internal
@@ -369,15 +369,15 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// For use by remoting serialization.
- ///
+ ///
///
///
///
- ///
+ ///
/// If is null.
- ///
+ ///
///
internal
@@ -395,15 +395,15 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// For use by remoting serialization.
- ///
+ ///
///
///
///
- ///
+ ///
/// If is null.
- ///
+ ///
///
internal
@@ -422,17 +422,17 @@ namespace System.Management.Automation.Host
/// Indicates if this field description was
/// modified by the remoting protocol layer
///
- /// Used by the console host to
+ /// Used by the console host to
/// determine if this field description was
- /// modified by the remoting protocol layer
+ /// modified by the remoting protocol layer
/// and take appropriate actions
internal bool ModifiedByRemotingProtocol { get; set; } = false;
///
- /// Indicates if this field description
+ /// Indicates if this field description
/// is coming from a remote host
///
- /// Used by the console host to
+ /// Used by the console host to
/// not cast strings to an arbitrary type,
/// but let the server-side do the type conversion
///
diff --git a/src/System.Management.Automation/engine/hostifaces/History.cs b/src/System.Management.Automation/engine/hostifaces/History.cs
index 1447cb6e39..52107542bb 100644
--- a/src/System.Management.Automation/engine/hostifaces/History.cs
+++ b/src/System.Management.Automation/engine/hostifaces/History.cs
@@ -26,7 +26,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Constructor
///
- /// Id of pipeline in which command associated
+ /// Id of pipeline in which command associated
/// with this history entry is executed
/// command string
/// status of pipeline execution
@@ -62,7 +62,7 @@ namespace Microsoft.PowerShell.Commands
#region public
///
- /// Id of this history entry.
+ /// Id of this history entry.
///
///
public long Id
@@ -74,7 +74,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// CommandLine string
+ /// CommandLine string
///
///
public string CommandLine
@@ -276,7 +276,7 @@ namespace Microsoft.PowerShell.Commands
internal History(ExecutionContext context)
{
- //Create history size variable. Add ValidateRangeAttribute to
+ //Create history size variable. Add ValidateRangeAttribute to
//validate the range.
Collection attrs = new Collection();
attrs.Add(new ValidateRangeAttribute(1, (int)Int16.MaxValue));
@@ -302,7 +302,7 @@ namespace Microsoft.PowerShell.Commands
///
///
/// If true, the entry will not be added when the history is locked
- /// id for the new created entry. Use this id to fetch the
+ /// id for the new created entry. Use this id to fetch the
/// entry. Returns -1 if the entry is not added
/// This function is thread safe
internal long AddEntry(long pipelineId, string cmdline, PipelineState status, DateTime startTime, DateTime endTime, bool skipIfLocked)
@@ -356,7 +356,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets entry from buffer for given id. This id should be the
+ /// Gets entry from buffer for given id. This id should be the
/// id returned by Add method.
///
/// Id of the entry to be fetched
@@ -380,11 +380,11 @@ namespace Microsoft.PowerShell.Commands
///
- /// Get count HistoryEntries
+ /// Get count HistoryEntries
///
///
///
- ///
+ ///
/// history entries
internal HistoryInfo[] GetEntries(long id, long count, SwitchParameter newest)
{
@@ -441,7 +441,7 @@ namespace Microsoft.PowerShell.Commands
if (_buffer[GetIndexFromId(i)] == null) continue;
if (_buffer[GetIndexFromId(i)].Cleared == true)
{
- // we have to clear count entries before an id, so if an entry is null,decrement
+ // we have to clear count entries before an id, so if an entry is null,decrement
// first id as long as its is greater than the lowest entry in the buffer.
firstId--;
continue;
@@ -474,7 +474,7 @@ namespace Microsoft.PowerShell.Commands
if (_buffer[GetIndexFromId(i)] == null) continue;
if (_buffer[GetIndexFromId(i)].Cleared == true)
{
- // we have to clear count entries before an id, so if an entry is null,increment first id
+ // we have to clear count entries before an id, so if an entry is null,increment first id
firstId++;
continue;
}
@@ -492,10 +492,10 @@ namespace Microsoft.PowerShell.Commands
}
else
{
- //get entries for count,newest
+ //get entries for count,newest
long index, SmallestID = 0;
- //if we change the defaulthistory size and when no of entries exceed the size, then
+ //if we change the defaulthistory size and when no of entries exceed the size, then
//we need to get the smallest entry in the buffer when we want to clear the oldest entry
//eg if size is 5 and then the entries can be 7,6,1,2,3
if (_capacity != DefaultHistorySize)
@@ -651,9 +651,9 @@ namespace Microsoft.PowerShell.Commands
///
- /// Clears the history entry from buffer for a given id.
+ /// Clears the history entry from buffer for a given id.
///
- /// Id of the entry to be Cleared
+ /// Id of the entry to be Cleared
/// nothing
internal void ClearEntry(long id)
{
@@ -730,7 +730,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets entry from buffer for given id. This id should be the
+ /// Gets entry from buffer for given id. This id should be the
/// id returned by Add method.
///
/// Id of the entry to be fetched
@@ -795,10 +795,10 @@ namespace Microsoft.PowerShell.Commands
HistoryInfo[] tempBuffer = new HistoryInfo[historySize];
- //Calculate number of entries to copy in new buffer.
+ //Calculate number of entries to copy in new buffer.
int numberOfEntries = _countEntriesInBuffer;
- //when buffer size is changed,we have to consider the totalnumber of entries added
+ //when buffer size is changed,we have to consider the totalnumber of entries added
if (numberOfEntries < _countEntriesAdded)
numberOfEntries = (int)_countEntriesAdded;
@@ -836,7 +836,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets index in buffer for an entry with given Id using passed in
+ /// Gets index in buffer for an entry with given Id using passed in
/// capacity
///
///
@@ -900,8 +900,8 @@ namespace Microsoft.PowerShell.Commands
private int _countEntriesInBuffer;
///
- /// total number of entries added till now including those which have
- /// been overwritten after buffer got full. This is also number of
+ /// total number of entries added till now including those which have
+ /// been overwritten after buffer got full. This is also number of
/// last entry added.
///
private long _countEntriesAdded;
@@ -965,8 +965,8 @@ namespace Microsoft.PowerShell.Commands
private int _count;
///
- /// No of History Entries (starting from last) that are to be displayed.
- ///
+ /// No of History Entries (starting from last) that are to be displayed.
+ ///
[Parameter(Position = 1)]
[ValidateRangeAttribute(0, (int)Int16.MaxValue)]
public int Count
@@ -994,7 +994,7 @@ namespace Microsoft.PowerShell.Commands
{
if (!_countParameterSpecified)
{
- //If Id parameter is specified and count is not specified,
+ //If Id parameter is specified and count is not specified,
//get history
foreach (long id in _id)
{
@@ -1083,13 +1083,13 @@ namespace Microsoft.PowerShell.Commands
private bool _multipleIdProvided;
private string _id;
///
- /// Accepts a string value indicating a previously executed command to
- /// re-execute.
- /// If string can be parsed to long,
- /// it will be used as HistoryId
- /// else
- /// as a string value indicating a previously executed command to
- /// re-execute. This string is the first n characters of the command
+ /// Accepts a string value indicating a previously executed command to
+ /// re-execute.
+ /// If string can be parsed to long,
+ /// it will be used as HistoryId
+ /// else
+ /// as a string value indicating a previously executed command to
+ /// re-execute. This string is the first n characters of the command
/// that is to be re-executed.
///
[Parameter(Position = 0, ValueFromPipelineByPropertyName = true)]
@@ -1118,7 +1118,7 @@ namespace Microsoft.PowerShell.Commands
///
protected override void EndProcessing()
{
- //Invoke-history can execute only one command. If multiple
+ //Invoke-history can execute only one command. If multiple
//ids were provided, throw exception
if (_multipleIdProvided == true)
{
@@ -1146,7 +1146,7 @@ namespace Microsoft.PowerShell.Commands
//Get the history entry to invoke
HistoryInfo entry = GetHistoryEntryToInvoke(history);
- //Check if there is a loop in invoke-history
+ //Check if there is a loop in invoke-history
LocalPipeline pipeline = (LocalPipeline)((LocalRunspace)Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (pipeline.PresentInInvokeHistoryEntryList(entry) == false)
@@ -1191,7 +1191,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (HostException)
{
- //when the host is not interactive, HostException is thrown
+ //when the host is not interactive, HostException is thrown
//do nothing
}
@@ -1245,7 +1245,7 @@ namespace Microsoft.PowerShell.Commands
{
HistoryInfo entry = null;
- //User didn't specify any input parameter. Invoke the last
+ //User didn't specify any input parameter. Invoke the last
//entry
if (_id == null)
{
@@ -1398,7 +1398,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Invoke-history is replaced in history by the command it executed.
/// This replacement happens only if Invoke-History is single element
- /// in the pipeline. If there are more than one element in pipeline
+ /// in the pipeline. If there are more than one element in pipeline
/// (ex A | Invoke-History 2 | B) then we cannot do this replacement.
///
private void ReplaceHistoryString(HistoryInfo entry)
@@ -1423,14 +1423,14 @@ namespace Microsoft.PowerShell.Commands
#region parameters
///
- /// This parameter specifies the current pipeline object
+ /// This parameter specifies the current pipeline object
///
[Parameter(Position = 0, ValueFromPipeline = true)]
public PSObject[] InputObject { set; get; }
private bool _passthru;
///
- /// A Boolean that indicates whether history objects should be
+ /// A Boolean that indicates whether history objects should be
/// passed to the next element in the pipeline.
///
[Parameter()]
@@ -1449,9 +1449,9 @@ namespace Microsoft.PowerShell.Commands
override
void BeginProcessing()
{
- //Get currently running pipeline and add history entry for
+ //Get currently running pipeline and add history entry for
//this pipeline.
- //Note:Generally History entry for current pipeline is added
+ //Note:Generally History entry for current pipeline is added
//on completion of pipeline (See LocalPipeline implementation).
//However Add-history adds additional entries in to history and
//additional entries must be added after history for current pipeline.
@@ -1501,7 +1501,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Convert mshObject that has has the properties of an HistoryInfo
+ /// Convert mshObject that has has the properties of an HistoryInfo
/// object in to HistoryInfo object.
///
///
@@ -1680,7 +1680,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Specifies the ID of a command in the session history.Clear history clears the entries
/// wit the specified ID(s)
- ///
+ ///
[Parameter(ParameterSetName = "IDParameter", Position = 0,
HelpMessage = "Specifies the ID of a command in the session history.Clear history clears only the specified command")]
[ValidateRangeAttribute((int)1, int.MaxValue)]
@@ -1697,7 +1697,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- ///
+ ///
/// id of a history entry
///
@@ -1722,7 +1722,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- ///
+ ///
/// commandline parameter
///
@@ -1747,7 +1747,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- ///
+ ///
/// count of the history entries
///
private int _count = 32;
@@ -1774,7 +1774,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- ///
+ ///
/// switch parameter on the history entries
///
@@ -1848,7 +1848,7 @@ namespace Microsoft.PowerShell.Commands
// if count parameter is not present
if (!_countParameterSpecified)
{
- // clearing the entry for each id in the id[] parameter.
+ // clearing the entry for each id in the id[] parameter.
foreach (long id in _id)
{
Dbg.Assert(id > 0, "ValidateRangeAttribute should not allow this");
@@ -1897,7 +1897,7 @@ namespace Microsoft.PowerShell.Commands
);
}
else
- {// if id,count adn newest parameters are present
+ {// if id,count adn newest parameters are present
//throw an exception for invalid count values
long id = _id[0];
@@ -1983,7 +1983,7 @@ namespace Microsoft.PowerShell.Commands
);
}
else
- { // if commandline,count and newest parameters are present.
+ { // if commandline,count and newest parameters are present.
ClearHistoryEntries(0, _count, _commandline[0], _newest);
}
}
@@ -2042,7 +2042,7 @@ namespace Microsoft.PowerShell.Commands
{
count = 0;
}
- // Return the matching history entries for the command line parameter
+ // Return the matching history entries for the command line parameter
// if newest id false...gets the oldest entry
_entries = _history.GetEntries(wildcardpattern, count, newest);
}// end case cmdline
@@ -2055,17 +2055,17 @@ namespace Microsoft.PowerShell.Commands
}
return;
- }//end function
+ }//end function
///
/// history obj
- ///
+ ///
private History _history;
///
/// array of historyinfo objects
- ///
+ ///
private HistoryInfo[] _entries;
#endregion Private
diff --git a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs
index 6d1158a461..e73eeb5fcf 100644
--- a/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs
+++ b/src/System.Management.Automation/engine/hostifaces/HostUtilities.cs
@@ -42,7 +42,7 @@ namespace System.Management.Automation
param()
$foundSuggestion = $false
-
+
if($lastError -and
($lastError.Exception -is ""System.Management.Automation.CommandNotFoundException""))
{
@@ -831,7 +831,7 @@ namespace System.Management.Automation
string configurationName,
PSHost host)
{
- // Create a loop-back remote runspace with network access enabled, and
+ // Create a loop-back remote runspace with network access enabled, and
// with the provided endpoint configurationname.
TypeTable typeTable = TypeTable.LoadDefaultTypeFiles();
var connectInfo = new WSManConnectionInfo();
@@ -861,16 +861,16 @@ namespace System.Management.Automation
#region Runspace Invoke
///
- /// Helper method to invoke a PSCommand on a given runspace. This method correctly invokes the command for
+ /// Helper method to invoke a PSCommand on a given runspace. This method correctly invokes the command for
/// these runspace cases:
/// 1. Local runspace. If the local runspace is busy it will invoke as a nested command.
/// 2. Remote runspace.
/// 3. Runspace that is stopped in the debugger at a breakpoint.
- ///
+ ///
/// Error and information streams are ignored and only the command result output is returned.
- ///
- /// This method is NOT thread safe. It does not support running commands from different threads on the
- /// provided runspace. It assumes the thread invoking this method is the same that runs all other
+ ///
+ /// This method is NOT thread safe. It does not support running commands from different threads on the
+ /// provided runspace. It assumes the thread invoking this method is the same that runs all other
/// commands on the provided runspace.
///
/// Runspace to invoke the command on
diff --git a/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs b/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs
index 84a67bfee4..c9fbf7a467 100644
--- a/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs
+++ b/src/System.Management.Automation/engine/hostifaces/InformationalRecord.cs
@@ -10,8 +10,8 @@ namespace System.Management.Automation
{
///
/// Base class for items in the PSInformationalBuffers.
- ///
- /// A PSInformationalRecord consists of a string Message and the InvocationInfo and pipeline state corresponding
+ ///
+ /// A PSInformationalRecord consists of a string Message and the InvocationInfo and pipeline state corresponding
/// to the command that created the record.
///
[DataContract()]
@@ -169,7 +169,7 @@ namespace System.Management.Automation
public class WarningRecord : InformationalRecord
{
///
- ///
+ ///
///
///
public WarningRecord(string message)
@@ -177,7 +177,7 @@ namespace System.Management.Automation
{ }
///
- ///
+ ///
///
///
public WarningRecord(PSObject record)
@@ -226,7 +226,7 @@ namespace System.Management.Automation
public class DebugRecord : InformationalRecord
{
///
- ///
+ ///
///
///
public DebugRecord(string message)
@@ -234,7 +234,7 @@ namespace System.Management.Automation
{ }
///
- ///
+ ///
///
///
public DebugRecord(PSObject record)
@@ -249,7 +249,7 @@ namespace System.Management.Automation
public class VerboseRecord : InformationalRecord
{
///
- ///
+ ///
///
///
public VerboseRecord(string message)
@@ -257,7 +257,7 @@ namespace System.Management.Automation
{ }
///
- ///
+ ///
///
///
public VerboseRecord(PSObject record)
diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHost.cs b/src/System.Management.Automation/engine/hostifaces/InternalHost.cs
index 27c054c7e0..0f0d8857bb 100644
--- a/src/System.Management.Automation/engine/hostifaces/InternalHost.cs
+++ b/src/System.Management.Automation/engine/hostifaces/InternalHost.cs
@@ -15,31 +15,31 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation.Internal.Host
{
///
- ///
+ ///
/// Wraps PSHost instances to provide a shim layer
/// between InternalCommand and the host-supplied PSHost instance.
- ///
+ ///
/// This class exists for the purpose of ensuring that an externally-supplied PSHost meets the minimum proper required
- /// implementation, and also to provide a leverage point at which the monad engine can hook the interaction between the engine,
+ /// implementation, and also to provide a leverage point at which the monad engine can hook the interaction between the engine,
/// cmdlets, and that external host.
///
- /// That leverage may be necessary to manage concurrent access between multiple pipelines sharing the same instance of
+ /// That leverage may be necessary to manage concurrent access between multiple pipelines sharing the same instance of
/// PSHost.
- ///
+ ///
///
internal class InternalHost : PSHost, IHostSupportsInteractiveSession
{
///
- ///
- /// There should only be one instance of InternalHost per runspace (i.e. per engine), and all engine use of the host
+ ///
+ /// There should only be one instance of InternalHost per runspace (i.e. per engine), and all engine use of the host
/// should be through that single instance. If we ever accidentally create more than one instance of InternalHost per
/// runspace, then some of the internal state checks that InternalHost makes, like checking the nestedPromptCounter, can
/// be messed up.
- ///
+ ///
/// To ensure that this constraint is met, I wanted to make this class a singleton. However, Hitesh rightly pointed out
- /// that a singleton would be appdomain-global, which would prevent having multiple runspaces per appdomain. So we will
+ /// that a singleton would be appdomain-global, which would prevent having multiple runspaces per appdomain. So we will
/// just have to be careful not to create extra instances of InternalHost per runspace.
- ///
+ ///
///
internal InternalHost(PSHost externalHost, ExecutionContext executionContext)
{
@@ -59,15 +59,15 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
///
///
- ///
+ ///
/// when the external host's Name is null or empty.
- ///
+ ///
///
public override string Name
{
@@ -90,15 +90,15 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
- ///
+ ///
/// when the external host's Version is null.
- ///
+ ///
///
public override System.Version Version
{
@@ -121,15 +121,15 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
- ///
+ ///
/// when the external host's InstanceId is a zero Guid.
- ///
+ ///
///
public override System.Guid InstanceId
{
@@ -151,9 +151,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
///
///
@@ -180,16 +180,16 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
///
///
///
///
/// when the external host's CurrentCulture is null.
- ///
+ ///
///
public override System.Globalization.CultureInfo CurrentCulture
{
@@ -202,16 +202,16 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
///
///
///
- ///
+ ///
/// If the external host's CurrentUICulture is null.
- ///
+ ///
///
public override CultureInfo CurrentUICulture
{
@@ -227,10 +227,10 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
- ///
+ ///
+ /// See base class
+ ///
+ ///
///
public override void SetShouldExit(int exitCode)
{
@@ -238,9 +238,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
///
public override void EnterNestedPrompt()
@@ -261,7 +261,7 @@ namespace System.Management.Automation.Internal.Host
/// Internal proxy for EnterNestedPrompt
///
///
- ///
+ ///
internal void EnterNestedPrompt(InternalCommand callingCommand)
{
// Ensure we are in control of the pipeline
@@ -282,8 +282,8 @@ namespace System.Management.Automation.Internal.Host
throw new InvalidOperationException();
}
- // NTRAID#Windows OS Bugs-986407-2004/07/29 When kumarp has done the configuration work in the engine, it
- // should include setting a bit that indicates that the initialization is complete, and code should be
+ // NTRAID#Windows OS Bugs-986407-2004/07/29 When kumarp has done the configuration work in the engine, it
+ // should include setting a bit that indicates that the initialization is complete, and code should be
// added here to throw an exception if this function is called before that bit is set.
if (NestedPromptCount < 0)
@@ -420,9 +420,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
///
public override void ExitNestedPrompt()
@@ -445,9 +445,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
public override PSObject PrivateData
{
@@ -459,9 +459,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
- /// See base class
- ///
+ ///
+ /// See base class
+ ///
///
///
public override void NotifyBeginApplication()
@@ -470,9 +470,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// Called by the engine to notify the host that the execution of a legacy command has completed.
- ///
+ ///
///
///
public override void NotifyEndApplication()
@@ -563,7 +563,7 @@ namespace System.Management.Automation.Internal.Host
///
/// Sets the reference to the external host and the internal UI to a temporary
/// new host and its UI. This exists so that if the PowerShell/Pipeline
- /// object has a different host from the runspace it can set it's host during its
+ /// object has a different host from the runspace it can set it's host during its
/// invocation, and then revert it after the invocation is completed.
///
/// and
@@ -618,4 +618,4 @@ namespace System.Management.Automation.Internal.Host
private readonly Guid _zeroGuid;
}
-} // namespace
+} // namespace
diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs
index eeb2c41659..a39965b2f8 100644
--- a/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs
+++ b/src/System.Management.Automation/engine/hostifaces/InternalHostRawUserInterface.cs
@@ -44,9 +44,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -82,9 +82,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -121,9 +121,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -160,9 +160,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -199,9 +199,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -238,9 +238,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -277,9 +277,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -316,9 +316,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -346,9 +346,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -376,9 +376,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -403,8 +403,8 @@ namespace System.Management.Automation.Internal.Host
}
catch (PipelineStoppedException)
{
- //PipelineStoppedException is thrown by host when it wants
- //to stop the pipeline.
+ //PipelineStoppedException is thrown by host when it wants
+ //to stop the pipeline.
LocalPipeline lpl = (LocalPipeline)((RunspaceBase)_parentHost.Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (lpl == null)
{
@@ -419,9 +419,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
/// if the RawUI property of the external host is null, possibly because the PSHostRawUserInterface is not
@@ -443,9 +443,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -473,9 +473,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -512,9 +512,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -537,9 +537,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -567,9 +567,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -593,9 +593,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -629,7 +629,7 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
///
///
///
@@ -647,7 +647,7 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
///
///
///
@@ -670,7 +670,7 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
///
///
///
@@ -692,4 +692,4 @@ namespace System.Management.Automation.Internal.Host
private PSHostRawUserInterface _externalRawUI;
private InternalHost _parentHost;
}
-} // namespace
+} // namespace
diff --git a/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs
index 7625a3f1a8..0cad91cb1d 100644
--- a/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs
+++ b/src/System.Management.Automation/engine/hostifaces/InternalHostUserInterface.cs
@@ -65,9 +65,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -88,9 +88,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -114,8 +114,8 @@ namespace System.Management.Automation.Internal.Host
}
catch (PipelineStoppedException)
{
- //PipelineStoppedException is thrown by host when it wants
- //to stop the pipeline.
+ //PipelineStoppedException is thrown by host when it wants
+ //to stop the pipeline.
LocalPipeline lpl = (LocalPipeline)((RunspaceBase)_parent.Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (lpl == null)
{
@@ -130,9 +130,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -158,8 +158,8 @@ namespace System.Management.Automation.Internal.Host
}
catch (PipelineStoppedException)
{
- //PipelineStoppedException is thrown by host when it wants
- //to stop the pipeline.
+ //PipelineStoppedException is thrown by host when it wants
+ //to stop the pipeline.
LocalPipeline lpl = (LocalPipeline)((RunspaceBase)_parent.Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (lpl == null)
{
@@ -174,9 +174,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -207,9 +207,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -244,9 +244,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -272,9 +272,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -324,9 +324,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -361,9 +361,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -380,7 +380,7 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
///
internal void WriteDebugRecord(DebugRecord record)
{
@@ -413,19 +413,19 @@ namespace System.Management.Automation.Internal.Host
///
///
///
- ///
+ ///
/// If the debug preference is set to ActionPreference.Stop
- ///
+ ///
///
///
- ///
+ ///
/// If the debug preference is set to ActionPreference.Inquire and user requests to stop execution.
- ///
+ ///
///
///
- ///
+ ///
/// If the debug preference is not a valid ActionPreference value.
- ///
+ ///
///
internal
@@ -486,7 +486,7 @@ namespace System.Management.Automation.Internal.Host
///
///
/// This method is not thread safe. Caller should make sure of the
- /// associated risks.
+ /// associated risks.
///
internal void SetInformationalMessageBuffers(PSInformationalBuffers informationalBuffers)
{
@@ -517,21 +517,21 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// Ask the user whether to continue/stop or break to a nested prompt.
- ///
+ ///
///
///
- ///
+ ///
/// Message to display to the user. This routine will append the text "Continue" to ensure that people know what question
/// they are answering.
- ///
+ ///
///
///
- ///
+ ///
/// Preference setting which determines the behaviour. This is by-ref and will be modified based upon what the user
/// types. (e.g. YesToAll will change Inquire => NotifyContinue)
- ///
+ ///
///
private
@@ -636,9 +636,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -660,7 +660,7 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
///
internal void WriteVerboseRecord(VerboseRecord record)
{
@@ -687,9 +687,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -709,7 +709,7 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
///
internal void WriteWarningRecord(WarningRecord record)
{
@@ -736,7 +736,7 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
///
internal void WriteInformationRecord(InformationRecord record)
{
@@ -790,9 +790,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -801,14 +801,14 @@ namespace System.Management.Automation.Internal.Host
///
///
///
- ///
+ ///
/// If is null.
- ///
+ ///
///
///
- ///
+ ///
/// If .Count is less than 1.
- ///
+ ///
///
///
///
@@ -844,8 +844,8 @@ namespace System.Management.Automation.Internal.Host
}
catch (PipelineStoppedException)
{
- //PipelineStoppedException is thrown by host when it wants
- //to stop the pipeline.
+ //PipelineStoppedException is thrown by host when it wants
+ //to stop the pipeline.
LocalPipeline lpl = (LocalPipeline)((RunspaceBase)_parent.Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (lpl == null)
{
@@ -861,9 +861,9 @@ namespace System.Management.Automation.Internal.Host
///
- ///
+ ///
/// See base class
- ///
+ ///
///
///
///
@@ -893,8 +893,8 @@ namespace System.Management.Automation.Internal.Host
}
catch (PipelineStoppedException)
{
- //PipelineStoppedException is thrown by host when it wants
- //to stop the pipeline.
+ //PipelineStoppedException is thrown by host when it wants
+ //to stop the pipeline.
LocalPipeline lpl = (LocalPipeline)((RunspaceBase)_parent.Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (lpl == null)
{
@@ -919,8 +919,8 @@ namespace System.Management.Automation.Internal.Host
/// An Collection of ChoiceDescription objects that describe each choice.
///
///
- /// The index of the labels in the choices collection element to be presented to the user as
- /// the default choice(s).
+ /// The index of the labels in the choices collection element to be presented to the user as
+ /// the default choice(s).
///
///
/// The indices of the choice elements that corresponds to the options selected.
@@ -957,8 +957,8 @@ namespace System.Management.Automation.Internal.Host
}
catch (PipelineStoppedException)
{
- //PipelineStoppedException is thrown by host when it wants
- //to stop the pipeline.
+ //PipelineStoppedException is thrown by host when it wants
+ //to stop the pipeline.
LocalPipeline lpl = (LocalPipeline)((RunspaceBase)_parent.Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (lpl == null)
{
@@ -1136,5 +1136,5 @@ namespace System.Management.Automation.Internal.Host
private InternalHost _parent = null;
private PSInformationalBuffers _informationalBuffers = null;
}
-} // namespace
+} // namespace
diff --git a/src/System.Management.Automation/engine/hostifaces/ListModifier.cs b/src/System.Management.Automation/engine/hostifaces/ListModifier.cs
index 5d29537346..6fe0c2eb3a 100644
--- a/src/System.Management.Automation/engine/hostifaces/ListModifier.cs
+++ b/src/System.Management.Automation/engine/hostifaces/ListModifier.cs
@@ -13,7 +13,7 @@ namespace System.Management.Automation
/// PSListModifier is a simple helper class created by the update-list cmdlet.
/// The update-list cmdlet will either return an instance of this class, or
/// it will internally use an instance of this class to implement the updates.
- ///
+ ///
/// Cmdlets can also take a PSListModifier as a parameter. Usage might look like:
///
/// Get-Mailbox | Set-Mailbox -Alias @{Add='jim'}
@@ -252,7 +252,7 @@ namespace System.Management.Automation
}
///
- /// A generic version of PSListModifier that exists for the sole purpose of making
+ /// A generic version of PSListModifier that exists for the sole purpose of making
/// cmdlets that accept a PSListModifier more usable. Users that look at the syntax
/// of the command will see something like PSListModifier[Mailbox] and know they need
/// to pass in Mailboxes.
diff --git a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs
index d945186405..b218f1ea55 100644
--- a/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs
+++ b/src/System.Management.Automation/engine/hostifaces/LocalConnection.cs
@@ -36,7 +36,7 @@ namespace System.Management.Automation.Runspaces
#region constructors
///
- /// Construct an instance of an Runspace using a custom implementation
+ /// Construct an instance of an Runspace using a custom implementation
/// of PSHost.
///
///
@@ -52,7 +52,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Construct an instance of an Runspace using a custom implementation
+ /// Construct an instance of an Runspace using a custom implementation
/// of PSHost.
///
///
@@ -71,7 +71,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Construct an instance of an Runspace using a custom implementation
+ /// Construct an instance of an Runspace using a custom implementation
/// of PSHost.
///
///
@@ -88,10 +88,10 @@ namespace System.Management.Automation.Runspaces
#endregion constructors
///
- /// Private data to be used by applications built on top of PowerShell.
- ///
+ /// Private data to be used by applications built on top of PowerShell.
+ ///
/// Local runspace pool is created with application private data set to an empty .
- ///
+ ///
/// Runspaces that are part of a inherit application private data from the pool.
///
public override PSPrimitiveDictionary GetApplicationPrivateData()
@@ -172,7 +172,7 @@ namespace System.Management.Automation.Runspaces
#if CORECLR // No ApartmentState.STA Support In CoreCLR
bool allowed = value == PSThreadOptions.ReuseThread;
#else
- // if the runspace is already opened we only allow changing the options if
+ // if the runspace is already opened we only allow changing the options if
// the apartment state is MTA and the new value is ReuseThread
bool allowed = (this.ApartmentState == ApartmentState.MTA || this.ApartmentState == ApartmentState.Unknown) // Unknown is the same as MTA
&&
@@ -232,7 +232,7 @@ namespace System.Management.Automation.Runspaces
#region protected_methods
///
- /// Create a pipeline from a command string
+ /// Create a pipeline from a command string
///
/// A valid command string. Can be null
/// if true command is added to history
@@ -384,7 +384,7 @@ namespace System.Management.Automation.Runspaces
private static object s_debugPreferenceLockObject = new object();
///
- /// DebugPreference serves as a property bag to keep
+ /// DebugPreference serves as a property bag to keep
/// track of all process specific debug preferences.
///
public class DebugPreference
@@ -450,12 +450,12 @@ namespace System.Management.Automation.Runspaces
}
else
{
- // In this case, the cache contains the process name, hence we check the list of
+ // In this case, the cache contains the process name, hence we check the list of
// app domains for which the debug preference is set to enable.
DebugPreference processDebugPreference = GetProcessSpecificDebugPreference(debugPreferenceCache[processName]);
// processDebugPreference would point to null if debug preference is enabled for all app domains.
- // If processDebugPreference is not null then it means that user has selected specific
+ // If processDebugPreference is not null then it means that user has selected specific
// appdomins for which the debug preference has to be enabled.
if (processDebugPreference != null)
{
@@ -497,7 +497,7 @@ namespace System.Management.Automation.Runspaces
DebugPreference processDebugPreference = GetProcessSpecificDebugPreference(debugPreferenceCache[processName]);
// processDebugPreference would point to null if debug preference is enabled for all app domains.
- // If processDebugPreference is not null then it means that user has selected specific
+ // If processDebugPreference is not null then it means that user has selected specific
// appdomins for which the debug preference has to be enabled.
if (processDebugPreference != null)
{
@@ -510,7 +510,7 @@ namespace System.Management.Automation.Runspaces
{
if (cachedAppDomainNames.Contains(currentAppDomainName, StringComparer.OrdinalIgnoreCase))
{
- // remove requested appdomains debug preference details.
+ // remove requested appdomains debug preference details.
cachedAppDomainNames.Remove(currentAppDomainName);
iscacheUpdated = true;
}
@@ -552,11 +552,11 @@ namespace System.Management.Automation.Runspaces
}
///
- /// GetDebugPreferenceCache is a helper method used to fetch
+ /// GetDebugPreferenceCache is a helper method used to fetch
/// the debug preference cache contents as a Hashtable.
///
/// Runspace
- /// If the Debug preference is persisted then a hashtable containing
+ /// If the Debug preference is persisted then a hashtable containing
/// the debug preference is returned or else Null is returned.
private static Hashtable GetDebugPreferenceCache(Runspace runspace)
{
@@ -703,7 +703,7 @@ namespace System.Management.Automation.Runspaces
//Raise the event
RaiseRunspaceStateEvents();
- //Rethrow the exception. For asynchronous execution,
+ //Rethrow the exception. For asynchronous execution,
//OpenThreadProc will catch it. For synchronous execution
//caller of open will catch it.
throw;
@@ -736,7 +736,7 @@ namespace System.Management.Automation.Runspaces
// Raise the event
RaiseRunspaceStateEvents();
- // Throw the exception. For asynchronous execution,
+ // Throw the exception. For asynchronous execution,
// OpenThreadProc will catch it. For synchronous execution
// caller of open will catch it.
throw initError;
@@ -848,7 +848,7 @@ namespace System.Management.Automation.Runspaces
/// Close the runspace.
///
///
- /// Attempts to create/execute pipelines after a call to
+ /// Attempts to create/execute pipelines after a call to
/// close will fail.
///
private void DoCloseHelper()
@@ -884,10 +884,10 @@ namespace System.Management.Automation.Runspaces
//Stop all running pipelines
- //Note:Do not perform the Cancel in lock. Reason is
- //Pipeline executes in separate thread, say threadP.
- //When pipeline is canceled/failed/completed in
- //Pipeline.ExecuteThreadProc it removes the pipeline
+ //Note:Do not perform the Cancel in lock. Reason is
+ //Pipeline executes in separate thread, say threadP.
+ //When pipeline is canceled/failed/completed in
+ //Pipeline.ExecuteThreadProc it removes the pipeline
//from the list of running pipelines. threadP will need
//lock to remove the pipelines from the list of running pipelines
//And we will deadlock.
@@ -901,7 +901,7 @@ namespace System.Management.Automation.Runspaces
// Disconnect all disconnectable jobs in the job repository.
StopOrDisconnectAllJobs();
- // Close or disconnect all the remote runspaces available in the
+ // Close or disconnect all the remote runspaces available in the
// runspace repository.
CloseOrDisconnectAllRemoteRunspaces(() =>
{
@@ -914,7 +914,7 @@ namespace System.Management.Automation.Runspaces
return runspaces;
});
- //Notify Engine components that that runspace is closing.
+ //Notify Engine components that that runspace is closing.
_engine.Context.RunspaceClosingNotification();
//Log engine lifecycle event.
@@ -923,7 +923,7 @@ namespace System.Management.Automation.Runspaces
// Uninitialize the AMSI scan interface
AmsiUtils.Uninitialize();
- //All pipelines have been canceled. Close the runspace.
+ //All pipelines have been canceled. Close the runspace.
_engine = null;
_commandFactory = null;
@@ -957,7 +957,7 @@ namespace System.Management.Automation.Runspaces
///
/// Closes or disconnects all the remote runspaces passed in by the getRunspace
- /// function. If a remote runspace supports disconnect then it will be disconnected
+ /// function. If a remote runspace supports disconnect then it will be disconnected
/// rather than closed.
///
private void CloseOrDisconnectAllRemoteRunspaces(Func> getRunspaces)
@@ -1474,15 +1474,15 @@ namespace System.Management.Automation.Runspaces
// If the runspace is currently in a disconnected state then leave it
// as is.
- // in this case, calling a close won't raise any events. Simply raise
+ // in this case, calling a close won't raise any events. Simply raise
// the OperationCompleted event. After the if check, but before we
- // get to this point if the state was changed, then the StateChanged
+ // get to this point if the state was changed, then the StateChanged
// event handler will anyway raise the event and so we are fine
RaiseOperationCompleteEvent();
}
else
{
- // If the runspace supports disconnect semantics and is running a command,
+ // If the runspace supports disconnect semantics and is running a command,
// then disconnect it rather than closing it.
if (_remoteRunspace.CanDisconnect &&
_remoteRunspace.GetCurrentlyRunningPipeline() != null)
diff --git a/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs b/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs
index d04c2e89e1..3f3b54c3d1 100644
--- a/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs
+++ b/src/System.Management.Automation/engine/hostifaces/LocalPipeline.cs
@@ -118,7 +118,7 @@ namespace System.Management.Automation.Runspaces
#region private_methods
///
- /// Invoke the pipeline asynchronously with input.
+ /// Invoke the pipeline asynchronously with input.
///
///
/// Results are returned through the reader.
@@ -131,7 +131,7 @@ namespace System.Management.Automation.Runspaces
throw PSTraceSource.NewObjectDisposedException("pipeline");
}
- //Note:This method is called from within a lock by parent class. There
+ //Note:This method is called from within a lock by parent class. There
//is no need to lock further.
//Use input stream in two cases:
@@ -307,7 +307,7 @@ namespace System.Management.Automation.Runspaces
PipelineProcessor pipelineProcessor = null;
try
{
-#if TRANSACTIONS_SUPPORTED
+#if TRANSACTIONS_SUPPORTED
// 2004/11/08-JeffJon
//Transactions will not be supported for the Exchange release
@@ -471,7 +471,7 @@ namespace System.Management.Automation.Runspaces
this.LocalRunspace.ExecutionContext.EngineHostInterface.SetShouldExit(exitCode);
// close the remote runspaces available
- /*foreach (RemoteRunspaceInfo remoteRunspaceInfo in
+ /*foreach (RemoteRunspaceInfo remoteRunspaceInfo in
this.LocalRunspace.RunspaceRepository.Runspaces)
{
remoteRunspaceInfo.RemoteRunspace.CloseAsync();
@@ -637,8 +637,8 @@ namespace System.Management.Automation.Runspaces
{
// Impersonation is not supported in CoreCLR.
// This finally block is needed to handle fxcop CA2124
- // If sensitive operations such as impersonation occur in the try block, and an
- // exception is thrown, the filter can execute before the finally block. For the
+ // If sensitive operations such as impersonation occur in the try block, and an
+ // exception is thrown, the filter can execute before the finally block. For the
// impersonation example, this means that the filter would execute as the impersonated user.
if (null != oldImpersonationCtxt)
{
@@ -700,11 +700,11 @@ namespace System.Management.Automation.Runspaces
LocalRunspace.ExecutionContext.InternalHost.RevertHostRef();
}
- //Remove Execution Context From TLS
+ //Remove Execution Context From TLS
Runspace.DefaultRunspace = previousDefaultRunspace;
//If incomplete parse exception is hit, we should not add to history.
- //This is ensure that in case of multiline commands, command is in the
+ //This is ensure that in case of multiline commands, command is in the
//history only once.
if (!incompleteParseException)
{
@@ -843,7 +843,7 @@ namespace System.Management.Automation.Runspaces
LocalRunspace.StopNestedPipelines(this);
//close the input pipe if it hasn't been closed.
- //This would release the pipeline thread if it is
+ //This would release the pipeline thread if it is
//waiting for input.
if (InputStream.IsOpen)
{
@@ -875,7 +875,7 @@ namespace System.Management.Automation.Runspaces
#endregion stop
///
- /// Creates a PipelineProcessor object from LocalPipeline object.
+ /// Creates a PipelineProcessor object from LocalPipeline object.
///
/// Created PipelineProcessor object
private PipelineProcessor CreatePipelineProcessor()
@@ -1013,7 +1013,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// This method initializes streams and backs up their original states.
+ /// This method initializes streams and backs up their original states.
/// This should be only called from constructors.
///
private void InitStreams()
@@ -1028,7 +1028,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// This method sets streams to their orignal states from execution context.
+ /// This method sets streams to their orignal states from execution context.
/// This is done when Pipeline is completed/failed/stopped ie., termination state.
///
private void ClearStreams()
@@ -1070,7 +1070,7 @@ namespace System.Management.Automation.Runspaces
/// This method is called Add-History cmdlet to add history entry.
///
///
- /// In general history entry for current pipeline is added at the
+ /// In general history entry for current pipeline is added at the
/// end of pipeline execution.
/// However when add-history cmdlet is executed, history entry
/// needs to be added before add-history adds additional entries
@@ -1081,7 +1081,7 @@ namespace System.Management.Automation.Runspaces
{
//This method can be called by multiple times during a single
//pipeline execution. For ex: a script can execute add-history
- //command multiple times. However we should add entry only
+ //command multiple times. However we should add entry only
//once.
if (_historyIdForThisPipeline != -1)
{
@@ -1094,7 +1094,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Add-history cmdlet adds history entry for the pipeline in its
+ /// Add-history cmdlet adds history entry for the pipeline in its
/// begin processing. This method is called to update the end execution
/// time and status of pipeline.
///
@@ -1146,7 +1146,7 @@ namespace System.Management.Automation.Runspaces
#region private_fields
///
- /// Holds reference to LocalRunspace to which this pipeline is
+ /// Holds reference to LocalRunspace to which this pipeline is
/// associated with
///
private LocalRunspace LocalRunspace
@@ -1168,7 +1168,7 @@ namespace System.Management.Automation.Runspaces
#region invoke_loop_detection
///
- /// This is list of HistoryInfo ids which have been executed in
+ /// This is list of HistoryInfo ids which have been executed in
/// this pipeline.
///
private List _invokeHistoryIds = new List();
@@ -1471,7 +1471,7 @@ namespace System.Management.Automation.Runspaces
//Note: after _stopping is set to true, nothing can be pushed/popped
//from stack and it is safe to call stop on PipelineProcessors in stack
//outside the lock
- //Note: you want to do below loop outside the lock so that
+ //Note: you want to do below loop outside the lock so that
//pipeline execution thread doesn't get blocked on Push and Pop.
//Note: A copy of the stack is made because we "unstop" a stopped
//pipeline to execute finally blocks. We don't want to stop pipelines
diff --git a/src/System.Management.Automation/engine/hostifaces/MshHost.cs b/src/System.Management.Automation/engine/hostifaces/MshHost.cs
index 1202265d5a..8bad004b81 100644
--- a/src/System.Management.Automation/engine/hostifaces/MshHost.cs
+++ b/src/System.Management.Automation/engine/hostifaces/MshHost.cs
@@ -8,33 +8,33 @@ using System.Diagnostics.CodeAnalysis;
namespace System.Management.Automation.Host
{
///
- ///
- /// Defines the properties and facilities providing by an application hosting an MSH .
- ///
- ///
+ ///
+ /// Defines the properties and facilities providing by an application hosting an MSH .
+ ///
+ ///
///
- ///
- /// A hosting application derives from this class and
- /// overrides the abstract methods and properties. The hosting application creates an instance of its derived class and
+ ///
+ /// A hosting application derives from this class and
+ /// overrides the abstract methods and properties. The hosting application creates an instance of its derived class and
/// passes it to the CreateRunspace method.
- ///
- /// From the moment that the instance of the derived class (the "host class") is passed to CreateRunspace, the MSH runtime
+ ///
+ /// From the moment that the instance of the derived class (the "host class") is passed to CreateRunspace, the MSH runtime
/// can call any of the methods of that class. The instance must not be destroyed until after the Runspace is closed.
- ///
- /// There is a 1:1 relationship between the instance of the host class and the Runspace instance to which it is passed. In
- /// other words, it is not legal to pass the same instance of the host class to more than one call to CreateRunspace. (It
- /// is perfectly legal to call CreateRunspace more than once, as long as each call is supplied a unique instance of the host
+ ///
+ /// There is a 1:1 relationship between the instance of the host class and the Runspace instance to which it is passed. In
+ /// other words, it is not legal to pass the same instance of the host class to more than one call to CreateRunspace. (It
+ /// is perfectly legal to call CreateRunspace more than once, as long as each call is supplied a unique instance of the host
/// class.)
- ///
- /// Methods of the host class can be called by the Runspace or any cmdlet or script executed in that Runspace in any order
- /// and from any thread. It is the responsibility of the hosting application to define the host class methods in a
+ ///
+ /// Methods of the host class can be called by the Runspace or any cmdlet or script executed in that Runspace in any order
+ /// and from any thread. It is the responsibility of the hosting application to define the host class methods in a
/// threadsafe fashion. An implementation of the host class should not depend on method execution order.
- ///
+ ///
/// The instance of the host class that is passed to a Runspace is exposed by the Runspace to the cmdlets, scripts, and
- /// providers that are executed in that Runspace. Scripts access the host class via the $Host built-in variable. Cmdlets
+ /// providers that are executed in that Runspace. Scripts access the host class via the $Host built-in variable. Cmdlets
/// access the host via the Host property of the Cmdlet base class.
- ///
+ ///
///
///
///
@@ -49,9 +49,9 @@ namespace System.Management.Automation.Host
internal static bool IsStdOutputRedirected;
///
- ///
+ ///
/// Protected constructor which does nothing. Provided per .Net design guidelines section 4.3.1
- ///
+ ///
///
protected PSHost()
@@ -60,20 +60,20 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Gets the hosting application's identification in some user-friendly fashion. This name can be referenced by scripts and cmdlets
- /// to identify the host that is executing them. The format of the value is not defined, but a short, simple string is
+ /// to identify the host that is executing them. The format of the value is not defined, but a short, simple string is
/// recommended.
- ///
+ ///
///
///
/// In implementing this member, you should return some sort of informative string describing the nature
/// your hosting application. For the default console host shipped by Microsoft this is ConsoleHost.
///
///
- ///
+ ///
/// The name identifier of the hosting application.
- ///
+ ///
///
///
///
@@ -89,19 +89,19 @@ namespace System.Management.Automation.Host
///
- ///
- /// Gets the version of the hosting application. This value should remain invariant for a particular build of the
+ ///
+ /// Gets the version of the hosting application. This value should remain invariant for a particular build of the
/// host. This value may be referenced by scripts and cmdlets.
- ///
+ ///
///
///
/// When implementing this member, it should return the product version number for the product
/// that is hosting the Monad engine.
///
///
- ///
+ ///
/// The version number of the hosting application.
- ///
+ ///
///
public abstract System.Version Version
@@ -112,10 +112,10 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets a GUID that uniquely identifies this instance of the host. The value should remain invariant for the lifetime of
/// this instance.
- ///
+ ///
///
public abstract System.Guid InstanceId
@@ -126,21 +126,21 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets the hosting application's implementation of the
- /// abstract base class. A host
+ /// abstract base class. A host
/// that does not want to support user interaction should return null.
- ///
+ ///
///
///
- ///
- /// A reference to an instance of the hosting application's implementation of a class derived from
- /// , or null to indicate that user
+ ///
+ /// A reference to an instance of the hosting application's implementation of a class derived from
+ /// , or null to indicate that user
/// interaction is not supported.
- ///
+ ///
///
///
- /// The implementation of this routine should return an instance of the appropriate
+ /// The implementation of this routine should return an instance of the appropriate
/// implementation of PSHostUserInterface for this application. As an alternative,
/// for simple scenarios, just returning null is sufficient.
///
@@ -155,18 +155,18 @@ namespace System.Management.Automation.Host
///
///
/// Gets the host's culture: the culture that the runspace should use to set the CurrentCulture on new threads
- ///
+ ///
///
///
- ///
+ ///
/// A CultureInfo object representing the host's current culture. Returning null is not allowed.
- ///
+ ///
///
///
- ///
+ ///
/// The runspace will set the thread current culture to this value each time it starts a pipeline. Thus, cmdlets are
/// encouraged to use Thread.CurrentThread.CurrentCulture.
- ///
+ ///
///
public abstract System.Globalization.CultureInfo CurrentCulture
@@ -177,16 +177,16 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets the host's UI culture: the culture that the runspace and cmdlets should use to do resource loading.
- ///
+ ///
/// The runspace will set the thread current ui culture to this value each time it starts a pipeline.
- ///
+ ///
///
///
- ///
+ ///
/// A CultureInfo object representing the host's current UI culture. Returning null is not allowed.
- ///
+ ///
///
public abstract System.Globalization.CultureInfo CurrentUICulture
@@ -197,23 +197,23 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Request by the engine to end the current engine runspace (to shut down and terminate the host's root runspace).
///
- ///
- ///
- ///
+ ///
+ ///
+ ///
/// This method is called by the engine to request the host shutdown the engine. This is invoked by the exit keyword
/// or by any other facility by which a runspace instance wishes to be shut down.
- ///
+ ///
/// To honor this request, the host should stop accepting and submitting commands to the engine and close the runspace.
- ///
+ ///
///
///
- ///
- /// The exit code accompanying the exit keyword. Typically, after exiting a runspace, a host will also terminate. The
+ ///
+ /// The exit code accompanying the exit keyword. Typically, after exiting a runspace, a host will also terminate. The
/// exitCode parameter can be used to set the host's process exit code.
- ///
+ ///
///
public abstract void SetShouldExit(int exitCode);
@@ -221,27 +221,27 @@ namespace System.Management.Automation.Host
///
- ///
- /// Instructs the host to interrupt the currently running pipeline and start a new, "nested" input loop, where an input
- /// loop is the cycle of prompt, input, execute.
- ///
+ ///
+ /// Instructs the host to interrupt the currently running pipeline and start a new, "nested" input loop, where an input
+ /// loop is the cycle of prompt, input, execute.
+ ///
///
///
- ///
- /// Typically called by the engine in response to some user action that suspends the currently executing pipeline, such
+ ///
+ /// Typically called by the engine in response to some user action that suspends the currently executing pipeline, such
/// as choosing the "suspend" option of a ConfirmProcessing call. Before calling this method, the engine should set
/// various shell variables to the express the state of the interrupted input loop (current pipeline, current object in
/// pipeline, depth of nested input loops, etc.)
- ///
+ ///
/// A non-interactive host may throw a "not implemented" exception here.
- ///
+ ///
/// If the UI property returns null, the engine should not call this method.
- ///
- ///
- ///
- ///
+ ///
///
///
@@ -250,20 +250,20 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Causes the host to end the currently running input loop. If the input loop was created by a prior call to
- /// EnterNestedPrompt, the enclosing pipeline will be resumed. If the current input loop is the top-most loop, then the
+ /// EnterNestedPrompt, the enclosing pipeline will be resumed. If the current input loop is the top-most loop, then the
/// host will act as though SetShouldExit was called.
- ///
+ ///
///
///
- ///
+ ///
/// Typically called by the engine in response to some user action that resumes a suspended pipeline, such as with the
- /// 'continue-command' intrinsic cmdlet. Before calling this method, the engine should clear out the loop-specific
+ /// 'continue-command' intrinsic cmdlet. Before calling this method, the engine should clear out the loop-specific
/// variables that were set when the loop was created.
- ///
+ ///
/// If the UI Property returns a null, the engine should not call this method.
- ///
+ ///
///
///
@@ -272,34 +272,34 @@ namespace System.Management.Automation.Host
///
- ///
- /// Used to allow the host to pass private data through a Runspace to cmdlets running inside that Runspace's
+ ///
+ /// Used to allow the host to pass private data through a Runspace to cmdlets running inside that Runspace's
/// runspace. The type and nature of that data is entirely defined by the host, but there are some caveats:
- ///
+ ///
///
///
///
- ///
+ ///
/// The default implementation returns null.
- ///
+ ///
///
///
- ///
- /// If the host is using an out-of-process Runspace, then the value of this property is serialized when crossing
+ ///
+ /// If the host is using an out-of-process Runspace, then the value of this property is serialized when crossing
/// that process boundary in the same fashion as any object in a pipeline is serialized when crossing process boundaries.
/// In this case, the BaseObject property of the value will be null.
- ///
- /// If the host is using an in-process Runspace, then the BaseObject property can be a non-null value a live object.
- /// No guarantees are made as to the app domain or thread that the BaseObject is accessed if it is accessed in the
+ ///
+ /// If the host is using an in-process Runspace, then the BaseObject property can be a non-null value a live object.
+ /// No guarantees are made as to the app domain or thread that the BaseObject is accessed if it is accessed in the
/// runspace. No guarantees of threadsafety or reentrancy are made. The object set in the BaseObject property of
/// the value returned by this method is responsible for ensuring its own threadsafety and re-entrance safety.
/// Note that thread(s) accessing that object may not necessarily be the same from one access to the next.
- ///
+ ///
/// The return value should have value-semantics: that is, changes to the state of the instance returned are not
- /// reflected across processes. Ex: if a cmdlet reads this property, then changes the state of the result, that
- /// change will not be visible to the host if the host is in another process. Therefore, the implementation of
+ /// reflected across processes. Ex: if a cmdlet reads this property, then changes the state of the result, that
+ /// change will not be visible to the host if the host is in another process. Therefore, the implementation of
/// get for this property should always return a unique instance.
- ///
+ ///
///
public virtual PSObject PrivateData
@@ -313,38 +313,38 @@ namespace System.Management.Automation.Host
///
- ///
- /// Called by the engine to notify the host that it is about to execute a "legacy" command line application. A legacy
+ ///
+ /// Called by the engine to notify the host that it is about to execute a "legacy" command line application. A legacy
/// application is defined as a console-mode executable that may do one or more of the following:
/// . reads from stdin
- /// . writes to stdout
+ /// . writes to stdout
/// . writes to stderr
/// . uses any of the win32 console APIs
- ///
+ ///
///
///
- ///
- /// Notifying the host allows the host to do such things as save off any state that might need to be restored when the
+ ///
+ /// Notifying the host allows the host to do such things as save off any state that might need to be restored when the
/// legacy application terminates, set or remove break handler hooks, redirect stream handles, and so forth.
- ///
+ ///
/// The engine will always call this method and the NotifyEndApplication method in matching pairs.
- ///
+ ///
/// The engine may call this method several times in the course of a single pipeline. For instance, the pipeline:
- ///
+ ///
/// foo.exe | bar-cmdlet | baz.exe
- ///
+ ///
/// Will result in a sequence of calls similar to the following:
/// NotifyBeginApplication - called once when foo.exe is started
/// NotifyBeginApplication - called once when baz.exe is started
/// NotifyEndApplication - called once when baz.exe terminates
/// NotifyEndApplication - called once when foo.exe terminates
- ///
+ ///
/// Note that the order in which the NotifyEndApplication call follows the corresponding call to NotifyBeginApplication
/// with respect to any other call to NotifyBeginApplication is not defined, and should not be depended upon. In other
- /// words, NotifyBeginApplication may be called several times before NotifyEndApplication is called. The only thing
+ /// words, NotifyBeginApplication may be called several times before NotifyEndApplication is called. The only thing
/// that is guaranteed is that there will be an equal number of calls to NotifyEndApplication as to
/// NotifyBeginApplication.
- ///
+ ///
///
///
@@ -353,9 +353,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Called by the engine to notify the host that the execution of a legacy command has completed.
- ///
+ ///
///
///
@@ -365,7 +365,7 @@ namespace System.Management.Automation.Host
/// Used by hosting applications to notify PowerShell engine that it is
/// being hosted in a console based application and the Pipeline execution
/// thread should call SetThreadUILanguage(0). This property is currently
- /// used by ConsoleHost only and in future releases we may consider
+ /// used by ConsoleHost only and in future releases we may consider
/// exposing this publicly.
///
internal bool ShouldSetThreadUILanguageToZero { get; set; }
diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs
index 0c8deefd63..5abdab738d 100644
--- a/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs
+++ b/src/System.Management.Automation/engine/hostifaces/MshHostRawUserInterface.cs
@@ -9,17 +9,17 @@ using System.Globalization;
namespace System.Management.Automation.Host
{
- #region Ancillary types.
+ #region Ancillary types.
- // I would have preferred to make these nested types within PSHostRawUserInterface, but that
+ // I would have preferred to make these nested types within PSHostRawUserInterface, but that
// is evidently discouraged by the .net design guidelines.
///
- ///
+ ///
/// Represents an (x,y) coordinate pair
- ///
+ ///
///
public
@@ -30,9 +30,9 @@ namespace System.Management.Automation.Host
private int y;
///
- ///
+ ///
/// Gets and sets the X coordinate
- ///
+ ///
///
public int X
{
@@ -41,9 +41,9 @@ namespace System.Management.Automation.Host
}
///
- ///
- /// Gets and sets the Y coordinate
- ///
+ ///
+ /// Gets and sets the Y coordinate
+ ///
///
public int Y
{
@@ -53,19 +53,19 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Initializes a new instance of the Coordinates class and defines the X and Y values.
- ///
+ ///
///
///
- ///
+ ///
/// The X coordinate
- ///
+ ///
///
///
- ///
- /// The Y coordinate
- ///
+ ///
+ /// The Y coordinate
+ ///
///
public
Coordinates(int x, int y)
@@ -77,14 +77,14 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// "a,b" where a and b are the values of the X and Y properties.
- ///
+ ///
///
public override
@@ -97,20 +97,20 @@ namespace System.Management.Automation.Host
///
- ///
- /// Overrides
- ///
+ ///
+ /// Overrides
+ ///
///
///
- ///
+ ///
/// object to be compared for equality.
- ///
+ ///
///
///
- ///
+ ///
/// True if is Coordinates and its X and Y values are the same as those of this instance,
/// false if not.
- ///
+ ///
///
public override
@@ -130,14 +130,14 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// Hash code for this instance.
- ///
+ ///
///
public override
@@ -196,24 +196,24 @@ namespace System.Management.Automation.Host
///
- ///
- /// Compares two instances for equality
- ///
+ ///
+ /// Compares two instances for equality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if the respective X and Y values are the same, false otherwise.
- ///
+ ///
///
public static
@@ -228,24 +228,24 @@ namespace System.Management.Automation.Host
///
- ///
- /// Compares two instances for inequality
- ///
+ ///
+ /// Compares two instances for inequality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if any of the respective either X or Y field is not the same, false otherwise.
- ///
+ ///
///
public static
@@ -259,9 +259,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Represents a width and height pair
- ///
+ ///
///
public
@@ -272,9 +272,9 @@ namespace System.Management.Automation.Host
private int height;
///
- ///
+ ///
/// Gets and sets the Width
- ///
+ ///
///
public int Width
{
@@ -283,9 +283,9 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Gets and sets the Height
- ///
+ ///
///
public int Height
{
@@ -295,19 +295,19 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Initialize a new instance of the Size class and defines the Width and Height values.
- ///
+ ///
///
///
- ///
+ ///
/// The Width
- ///
+ ///
///
///
- ///
+ ///
/// The Height
- ///
+ ///
///
public
Size(int width, int height)
@@ -319,14 +319,14 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Overloads
- ///
+ ///
///
///
- ///
+ ///
/// "a,b" where a and b are the values of the Width and Height properties.
- ///
+ ///
///
public override
@@ -337,20 +337,20 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// object to be compared for equality.
- ///
+ ///
///
///
- ///
+ ///
/// True if is Size and its Width and Height values are the same as those of this instance,
/// false if not.
- ///
+ ///
///
public override
@@ -368,14 +368,14 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// Hash code for this instance.
- ///
+ ///
///
@@ -435,24 +435,24 @@ namespace System.Management.Automation.Host
}
///
- ///
- /// Compares two instances for equality
- ///
+ ///
+ /// Compares two instances for equality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if the respective Width and Height fields are the same, false otherwise.
- ///
+ ///
///
public static
@@ -465,24 +465,24 @@ namespace System.Management.Automation.Host
}
///
- ///
- /// Compares two instances for inequality
- ///
+ ///
+ /// Compares two instances for inequality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if any of the respective Width and Height fields are not the same, false otherwise.
- ///
+ ///
///
public static
@@ -496,10 +496,10 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Governs the behavior of
/// and
- ///
+ ///
///
[Flags]
@@ -508,33 +508,33 @@ namespace System.Management.Automation.Host
ReadKeyOptions
{
///
- ///
+ ///
/// Allow Ctrl-C to be processed as a keystroke, as opposed to causing a break event.
- ///
+ ///
///
AllowCtrlC = 0x0001,
///
- ///
- /// Do not display the character for the key in the window when pressed.
- ///
+ ///
+ /// Do not display the character for the key in the window when pressed.
+ ///
///
NoEcho = 0x0002,
///
- ///
+ ///
/// Include key down events. Either one of IncludeKeyDown and IncludeKeyUp or both must be specified.
- ///
+ ///
///
IncludeKeyDown = 0x0004,
///
- ///
+ ///
/// Include key up events. Either one of IncludeKeyDown and IncludeKeyUp or both must be specified.
- ///
+ ///
///
IncludeKeyUp = 0x0008
@@ -543,9 +543,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Defines the states of Control Key
- ///
+ ///
///
[Flags]
@@ -610,18 +610,18 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Represents information of a keystroke
- ///
+ ///
///
public
struct KeyInfo
{
///
- ///
+ ///
/// Gets and set device-independent key
- ///
+ ///
///
public int VirtualKeyCode { get; set; }
@@ -648,30 +648,30 @@ namespace System.Management.Automation.Host
public bool KeyDown { get; set; }
///
- ///
+ ///
/// Initialize a new instance of the KeyInfo class and defines the VirtualKeyCode,
/// Character, ControlKeyState and KeyDown values.
- ///
+ ///
///
///
- ///
+ ///
/// The virtual key code
- ///
+ ///
///
///
- ///
+ ///
/// The character
- ///
+ ///
///
///
- ///
+ ///
/// The control key state
- ///
+ ///
///
///
- ///
+ ///
/// Whether the key is pressed or released
- ///
+ ///
///
public
@@ -690,14 +690,14 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Overloads
- ///
+ ///
///
///
- ///
+ ///
/// "a,b,c,d" where a, b, c, and d are the values of the VirtualKeyCode, Character, ControlKeyState, and KeyDown properties.
- ///
+ ///
///
public override
@@ -707,20 +707,20 @@ namespace System.Management.Automation.Host
return string.Format(CultureInfo.InvariantCulture, "{0},{1},{2},{3}", VirtualKeyCode, Character, ControlKeyState, KeyDown);
}
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// object to be compared for equality.
- ///
+ ///
///
///
- ///
+ ///
/// True if is KeyInfo and its VirtualKeyCode, Character, ControlKeyState, and KeyDown values are the
/// same as those of this instance, false if not.
- ///
+ ///
///
public override
@@ -738,14 +738,14 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// Hash code for this instance.
- ///
+ ///
///
- ///
+ ///
///
public
struct Rectangle
{
///
- ///
+ ///
/// Gets and sets the left side of the rectangle
- ///
+ ///
///
public int Left { get; set; }
///
- ///
+ ///
/// Gets and sets the top of the rectangle
- ///
+ ///
///
public int Top { get; set; }
///
- ///
- /// Gets and sets the right side of the rectangle
- ///
+ ///
+ /// Gets and sets the right side of the rectangle
+ ///
///
public int Right { get; set; }
///
- ///
+ ///
/// Gets and sets the bottom of the rectangle
- ///
+ ///
///
public int Bottom { get; set; }
///
- ///
+ ///
/// Initialize a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values.
- ///
+ ///
///
///
- ///
+ ///
/// The left side of the rectangle
- ///
+ ///
///
///
- ///
+ ///
/// The top of the rectangle
- ///
+ ///
///
///
- ///
- /// The right side of the rectangle
- ///
+ ///
+ /// The right side of the rectangle
+ ///
///
///
- ///
+ ///
/// The bottom of the rectangle
- ///
+ ///
///
///
- ///
+ ///
/// is less than ;
/// is less than
- ///
+ ///
///
public
@@ -941,24 +941,24 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Initializes a new instance of the Rectangle class and defines the Left, Top, Right, and Bottom values
/// by , the upper left corner and , the lower
/// right corner.
- ///
+ ///
///
///
///
- ///
- /// The Coordinates of the upper left corner of the Rectangle
- ///
+ ///
+ /// The Coordinates of the upper left corner of the Rectangle
+ ///
///
///
- ///
+ ///
/// The Coordinates of the lower right corner of the Rectangle
- ///
+ ///
///
///
@@ -971,14 +971,14 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Overloads
- ///
+ ///
///
///
- ///
+ ///
/// "a,b ; c,d" where a, b, c, and d are values of the Left, Top, Right, and Bottom properties.
- ///
+ ///
///
public override
@@ -989,20 +989,20 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// object to be compared for equality.
- ///
+ ///
///
///
- ///
+ ///
/// True if is Rectangle and its Left, Top, Right, and Bottom values are the same as those of this instance,
/// false if not.
- ///
+ ///
///
public override
@@ -1020,16 +1020,16 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// Hash code for this instance.
///
- ///
+ ///
///
///
@@ -1090,24 +1090,24 @@ namespace System.Management.Automation.Host
}
///
- ///
- /// Compares two instances for equality
- ///
+ ///
+ /// Compares two instances for equality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if the respective Top, Left, Bottom, and Right fields are the same, false otherwise.
- ///
+ ///
///
public static
@@ -1121,24 +1121,24 @@ namespace System.Management.Automation.Host
}
///
- ///
- /// Compares two instances for inequality
- ///
+ ///
+ /// Compares two instances for inequality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if any of the respective Top, Left, Bottom, and Right fields are not the same, false otherwise.
- ///
+ ///
///
///
@@ -1153,16 +1153,16 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Represents a character, a foregroundColor color, and background color
- ///
+ ///
///
public
struct BufferCell
{
///
- ///
+ ///
/// Gets and sets the character value
///
///
@@ -1174,55 +1174,55 @@ namespace System.Management.Automation.Host
// essentially identical enum
///
- ///
+ ///
/// Gets and sets the foreground color
- ///
+ ///
///
public ConsoleColor ForegroundColor { get; set; }
///
- ///
+ ///
/// Gets and sets the background color
- ///
+ ///
///
public ConsoleColor BackgroundColor { get; set; }
///
- ///
+ ///
/// Gets and sets the type value
- ///
+ ///
///
public BufferCellType BufferCellType { get; set; }
///
- ///
+ ///
/// Initializes a new instance of the BufferCell class and defines the
/// Character, ForegroundColor, BackgroundColor and Type values.
- ///
+ ///
///
///
- ///
+ ///
/// The character in this BufferCell object
- ///
+ ///
///
///
- ///
+ ///
/// The foreground color of this BufferCell object
- ///
+ ///
///
///
- ///
+ ///
/// The foreground color of this BufferCell object
- ///
+ ///
///
///
- ///
+ ///
/// The type of this BufferCell object
- ///
+ ///
///
public
@@ -1236,14 +1236,14 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Overloads
- ///
+ ///
///
///
- ///
+ ///
/// "'a' b c d" where a, b, c, and d are the values of the Character, ForegroundColor, BackgroundColor, and Type properties.
- ///
+ ///
///
public override
@@ -1255,20 +1255,20 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
- ///
+ ///
/// object to be compared for equality.
- ///
+ ///
///
///
- ///
+ ///
/// True if is BufferCell and its Character, ForegroundColor, BackgroundColor, and BufferCellType values
/// are the same as those of this instance, false if not.
- ///
+ ///
///
public override
@@ -1286,16 +1286,16 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Overrides
- ///
+ ///
///
///
///
- ///
+ ///
/// Hash code for this instance.
- ///
+ ///
///
public override
@@ -1316,24 +1316,24 @@ namespace System.Management.Automation.Host
}
///
- ///
- /// Compares two instances for equality
- ///
+ ///
+ /// Compares two instances for equality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if the respective Character, ForegroundColor, BackgroundColor, and BufferCellType values are the same, false otherwise.
- ///
+ ///
///
public static
@@ -1349,25 +1349,25 @@ namespace System.Management.Automation.Host
}
///
- ///
- /// Compares two instances for inequality
- ///
+ ///
+ /// Compares two instances for inequality
+ ///
///
///
- ///
+ ///
/// The left side operand.
- ///
+ ///
///
///
- ///
+ ///
/// The right side operand.
- ///
+ ///
///
///
- ///
+ ///
/// true if any of the respective Character, ForegroundColor, BackgroundColor, and BufferCellType values are not the same,
/// false otherwise.
- ///
+ ///
///
public static
@@ -1380,35 +1380,35 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Defines three types of BufferCells to accommodate for hosts that use up to two cells
/// to display a character in some languages such as Chinese and Japanese.
- ///
+ ///
///
public enum
BufferCellType
{
///
- ///
+ ///
/// Character occupies one BufferCell
- ///
+ ///
///
Complete,
///
- ///
+ ///
/// Character occupies two BufferCells and this is the leading one
- ///
+ ///
///
Leading,
///
- ///
+ ///
/// Preceded by a Leading BufferCell
- ///
+ ///
///
Trailing
@@ -1420,19 +1420,19 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Defines the lowest-level user interface functions that an interactive application hosting an MSH
/// can choose to implement if it wants to
/// support any cmdlet that does character-mode interaction with the user.
- ///
+ ///
///
///
- ///
+ ///
/// It models an 2-dimensional grid of cells called a Buffer. A buffer has a visible rectangular region, called a window.
- /// Each cell of the grid has a character, a foreground color, and a background color. When the buffer has input focus, it
- /// shows a cursor positioned in one cell. Keystrokes can be read from the buffer and optionally echoed at the current
+ /// Each cell of the grid has a character, a foreground color, and a background color. When the buffer has input focus, it
+ /// shows a cursor positioned in one cell. Keystrokes can be read from the buffer and optionally echoed at the current
/// cursor position.
- ///
+ ///
///
///
///
@@ -1441,9 +1441,9 @@ namespace System.Management.Automation.Host
class PSHostRawUserInterface
{
///
- ///
+ ///
/// Protected constructor which does nothing. Provided per .Net design guidelines section 4.3.1
- ///
+ ///
///
protected
@@ -1455,15 +1455,15 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets or sets the color used to render characters on the screen buffer. Each character cell in the screen buffer can
/// have a separate foreground color.
- ///
+ ///
///
- ///
+ ///
///
///
@@ -1478,10 +1478,10 @@ namespace System.Management.Automation.Host
///
- ///
- /// Gets or sets the color used to render the background behind characters on the screen buffer. Each character cell in
+ ///
+ /// Gets or sets the color used to render the background behind characters on the screen buffer. Each character cell in
/// the screen buffer can have a separate background color.
- ///
+ ///
///
///
@@ -1496,17 +1496,17 @@ namespace System.Management.Automation.Host
///
- ///
- /// Gets or sets the cursor position in the screen buffer. The view window always adjusts it's location over the screen
+ ///
+ /// Gets or sets the cursor position in the screen buffer. The view window always adjusts it's location over the screen
/// buffer such that the cursor is always visible.
- ///
+ ///
///
///
- ///
+ ///
/// To write to the screen buffer without updating the cursor position, use
/// or
///
- ///
+ ///
///
///
///
@@ -1526,10 +1526,10 @@ namespace System.Management.Automation.Host
///
- ///
- /// Gets or sets position of the view window relative to the screen buffer, in characters. (0,0) is the upper left of the screen
+ ///
+ /// Gets or sets position of the view window relative to the screen buffer, in characters. (0,0) is the upper left of the screen
/// buffer.
- ///
+ ///
///
///
///
@@ -1547,9 +1547,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets or sets the cursor size as a percentage 0..100.
- ///
+ ///
///
///
@@ -1564,9 +1564,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets or sets the current size of the screen buffer, measured in character cells.
- ///
+ ///
///
///
///
@@ -1585,10 +1585,10 @@ namespace System.Management.Automation.Host
///
- ///
- /// Gets or sets the current view window size, measured in character cells. The window size cannot be larger than the
+ ///
+ /// Gets or sets the current view window size, measured in character cells. The window size cannot be larger than the
/// dimensions returned by .
- ///
+ ///
///
///
///
@@ -1607,21 +1607,21 @@ namespace System.Management.Automation.Host
///
- ///
- /// Gets the size of the largest window possible for the current buffer, current font, and current display hardware.
+ ///
+ /// Gets the size of the largest window possible for the current buffer, current font, and current display hardware.
/// The view window cannot be larger than the screen buffer or the current display (the display the window is rendered on).
- ///
+ ///
///
///
- ///
+ ///
/// The largest dimensions the window can be resized to without resizing the screen buffer.
- ///
+ ///
///
///
- ///
+ ///
/// Always returns a value less than or equal to
/// .
- ///
+ ///
///
///
///
@@ -1639,17 +1639,17 @@ namespace System.Management.Automation.Host
///
- ///
- /// Gets the largest window possible for the current font and display hardware, ignoring the current buffer dimensions. In
- /// other words, the dimensions of the largest window that could be rendered in the current display, if the buffer was
+ ///
+ /// Gets the largest window possible for the current font and display hardware, ignoring the current buffer dimensions. In
+ /// other words, the dimensions of the largest window that could be rendered in the current display, if the buffer was
/// at least as large.
- ///
+ ///
///
///
- ///
+ ///
/// To resize the window to this dimension, use
/// to first check and, if necessary, adjust, the screen buffer size.
- ///
+ ///
///
///
///
@@ -1667,15 +1667,15 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Reads a key stroke from the keyboard device, blocking until a keystroke is typed.
/// Same as ReadKey(ReadKeyOptions.IncludeKeyDown)
- ///
+ ///
///
///
- ///
+ ///
/// Key stroke when a key is pressed.
- ///
+ ///
///
///
///
@@ -1697,26 +1697,26 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Reads a key stroke from the keyboard device, blocking until a keystroke is typed.
/// Either one of ReadKeyOptions.IncludeKeyDown and ReadKeyOptions.IncludeKeyUp or both must be specified.
- ///
+ ///
///
///
- ///
+ ///
/// A bit mask of the options to be used to read the keyboard. Constants defined by
///
- ///
+ ///
///
///
- ///
+ ///
/// Key stroke depending on the value of .
- ///
+ ///
///
///
- ///
+ ///
/// Neither ReadKeyOptions.IncludeKeyDown nor ReadKeyOptions.IncludeKeyUp is specified.
- ///
+ ///
///
///
///
@@ -1737,9 +1737,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Resets the keyboard input buffer.
- ///
+ ///
///
///
///
@@ -1752,14 +1752,14 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// A non-blocking call to examine if a keystroke is waiting in the input buffer.
- ///
+ ///
///
///
- ///
+ ///
/// True if a keystroke is waiting in the input buffer, false if not.
- ///
+ ///
///
///
///
@@ -1775,9 +1775,9 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Gets or sets the titlebar text of the current view window.
- ///
+ ///
///
public abstract
@@ -1791,21 +1791,21 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Copies the array into the screen buffer at the
/// given origin, clipping such that cells in the array that would fall outside the screen buffer are ignored.
- ///
+ ///
///
///
- ///
+ ///
/// The top left corner of the rectangular screen area to which is copied.
- ///
+ ///
///
///
- ///
+ ///
/// A rectangle of objects to be copied to the
/// screen buffer.
- ///
+ ///
///
///
///
@@ -1823,25 +1823,25 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Copies a given character to all of the character cells in the screen buffer with the indicated colors.
- ///
+ ///
///
///
- ///
+ ///
/// The rectangle on the screen buffer to which is copied.
/// If all elements are -1, the entire screen buffer will be copied with .
- ///
+ ///
///
///
- ///
+ ///
/// The character and attributes used to fill .
- ///
+ ///
///
///
- ///
+ ///
/// Provided for clearing regions -- less chatty than passing an array of cells.
- ///
+ ///
///
///
///
@@ -1878,38 +1878,38 @@ namespace System.Management.Automation.Host
///
- ///
- /// Extracts a rectangular region of the screen buffer.
- ///
+ ///
+ /// Extracts a rectangular region of the screen buffer.
+ ///
///
///
- ///
+ ///
/// The rectangle on the screen buffer to extract.
- ///
+ ///
///
///
- ///
+ ///
/// An array of objects extracted from
/// the rectangular region of the screen buffer specified by
- ///
+ ///
///
///
- ///
+ ///
/// If the rectangle is completely outside of the screen buffer, a BufferCell array of zero rows and column will be
/// returned.
- ///
+ ///
/// If the rectangle is partially outside of the screen buffer, the area where the screen buffer and rectangle overlap
/// will be read and returned. The size of the returned array is the same as that of r. Each BufferCell in the
/// non-overlapping area of this array is set as follows:
- ///
+ ///
/// Character is the space (' ')
/// ForegroundColor to the current foreground color, given by the ForegroundColor property of this class.
/// BackgroundColor to the current background color, given by the BackgroundColor property of this class.
- ///
+ ///
/// The resulting array is organized in row-major order for performance reasons. The screen buffer, however, is
/// organized in column-major order -- e.g. you specify the column index first, then the row index second, as in (x, y).
/// This means that a cell at screen buffer position (x, y) is in the array element [y, x].
- ///
+ ///
///
///
///
@@ -1927,32 +1927,32 @@ namespace System.Management.Automation.Host
///
- ///
+ ///
/// Scroll a region of the screen buffer.
- ///
+ ///
///
///
- ///
+ ///
/// Indicates the region of the screen to be scrolled.
- ///
+ ///
///
///
- ///
- /// Indicates the upper left coordinates of the region of the screen to receive the source region contents. The target
+ ///
+ /// Indicates the upper left coordinates of the region of the screen to receive the source region contents. The target
/// region is the same size as the source region.
- ///
+ ///
///
///
- ///
- /// Indicates the region of the screen to include in the operation. If a cell would be changed by the operation but
+ ///
+ /// Indicates the region of the screen to include in the operation. If a cell would be changed by the operation but
/// does not fall within the clip region, it will be unchanged.
- ///
+ ///
///
///
- ///
- /// The character and attributes to be used to fill any cells within the intersection of the source rectangle and
+ ///
+ /// The character and attributes to be used to fill any cells within the intersection of the source rectangle and
/// clipping rectangle that are left "empty" by the move.
- ///
+ ///
///
///
///
@@ -1974,26 +1974,26 @@ namespace System.Management.Automation.Host
);
///
- ///
+ ///
/// Determines the number of BufferCells a substring of a string occupies.
- ///
+ ///
///
///
- ///
+ ///
/// The string whose substring length we want to know.
- ///
+ ///
///
///
- ///
+ ///
/// Offset where the substring begins in
- ///
+ ///
///
///
- ///
+ ///
/// The default implementation calls method
- /// with the substring extracted from the string
+ /// with the substring extracted from the string
/// starting at the offset
- ///
+ ///
///
///
///
@@ -2027,19 +2027,19 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Determines the number of BufferCells a string occupies.
- ///
+ ///
///
///
- ///
+ ///
/// The string whose length we want to know.
- ///
+ ///
///
///
- ///
+ ///
/// The default implementation returns the length of
- ///
+ ///
///
///
///
@@ -2066,19 +2066,19 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Determines the number of BufferCells a character occupies.
- ///
+ ///
///
///
- ///
+ ///
/// The character whose length we want to know.
- ///
+ ///
///
///
- ///
+ ///
/// The default implementation returns 1.
- ///
+ ///
///
///
///
@@ -2100,40 +2100,40 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Creates a two dimensional array of BufferCells by examining each character in .
- ///
+ ///
///
///
- ///
+ ///
/// String array based on which the two dimensional array of BufferCells will be created.
- ///
+ ///
///
///
- ///
+ ///
/// Foreground color of the buffer cells in the resulting array.
- ///
+ ///
///
///
- ///
+ ///
/// Background color of the buffer cells in the resulting array.
- ///
+ ///
///
///
- ///
+ ///
/// A two dimensional array of BufferCells whose characters are the same as those in
/// and whose foreground and background colors set to and
///
- ///
+ ///
///
///
- ///
+ ///
/// is null;
/// Any string in is null or empty
- ///
+ ///
///
///
- ///
+ ///
/// If a character C takes one BufferCell to display as determined by LengthInBufferCells,
/// one BufferCell is allocated with its Character set to C and BufferCellType to BufferCell.Complete.
/// On the other hand, if C takes two BufferCell, two adjacent BufferCells on a row in
@@ -2147,7 +2147,7 @@ namespace System.Management.Automation.Host
/// and , respectively.
/// The resulting array is suitable for use with
/// and .
- ///
+ ///
///
///
///
@@ -2224,42 +2224,42 @@ namespace System.Management.Automation.Host
#pragma warning restore 56506
///
- ///
+ ///
/// Creates a 2D array of BufferCells by examining .Character.
///
///
///
///
- ///
+ ///
/// The number of columns of the resulting array
- ///
+ ///
///
///
- ///
+ ///
/// The number of rows of the resulting array
- ///
+ ///
///
///
- ///
+ ///
/// The cell to be copied to each of the elements of the resulting array.
- ///
+ ///
///
///
- ///
+ ///
/// A by array of BufferCells where each cell's value is
/// based on
- ///
+ ///
///
- ///
+ ///
///
///
- ///
+ ///
/// is less than 1;
/// is less than 1.
- ///
+ ///
///
///
- ///
+ ///
/// If the character takes one BufferCell to display as determined by LengthInBufferCells,
/// one BufferCell is allocated with its Character set to the character and BufferCellType to
/// BufferCell.Complete.
@@ -2270,7 +2270,7 @@ namespace System.Management.Automation.Host
/// is odd, the last column will just contain the leading cell.
/// .BufferCellType is not used in creating the array.
/// The resulting array is suitable for use with the PSHostRawUserInterface.SetBufferContents method.
- ///
+ ///
///
///
///
@@ -2337,30 +2337,30 @@ namespace System.Management.Automation.Host
}
///
- ///
+ ///
/// Same as
- ///
+ ///
///
///
- ///
+ ///
/// The width and height of the resulting array.
- ///
+ ///
///
///
- ///
+ ///
/// The cell to be copied to each of the elements of the resulting array.
- ///
+ ///
///
///
- ///
+ ///
/// An array of BufferCells whose size is and where each cell's value is
/// based on
- ///
+ ///
///
///
- ///
+ ///
/// If .Width or .Height is less than 1.
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs
index 22251bf785..373c4f920d 100644
--- a/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs
+++ b/src/System.Management.Automation/engine/hostifaces/MshHostUserInterface.cs
@@ -16,11 +16,11 @@ using System.Threading.Tasks;
namespace System.Management.Automation.Host
{
///
- ///
+ ///
/// Defines the properties and facilities providing by an hosting application deriving from
/// that offers dialog-oriented and
/// line-oriented interactive features.
- ///
+ ///
///
///
///
@@ -28,12 +28,12 @@ namespace System.Management.Automation.Host
public abstract class PSHostUserInterface
{
///
- /// Gets hosting application's implementation of the
+ /// Gets hosting application's implementation of the
/// abstract base class
/// that implements that class.
///
///
- /// A reference to an instance of the hosting application's implementation of a class derived from
+ /// A reference to an instance of the hosting application's implementation of a class derived from
/// , or null to indicate that
/// low-level user interaction is not supported.
///
@@ -61,7 +61,7 @@ namespace System.Management.Automation.Host
///
public abstract string ReadLine();
///
- /// Same as ReadLine, except that the result is a SecureString, and that the input is not echoed to the user while it is
+ /// Same as ReadLine, except that the result is a SecureString, and that the input is not echoed to the user while it is
/// collected (or is echoed in some obfuscated way, such as showing a dot for each character).
///
///
@@ -198,8 +198,8 @@ namespace System.Management.Automation.Host
/// Invoked by to display a progress record.
///
///
- /// Unique identifier of the source of the record. An int64 is used because typically, the 'this' pointer of
- /// the command from whence the record is originating is used, and that may be from a remote Runspace on a 64-bit
+ /// Unique identifier of the source of the record. An int64 is used because typically, the 'this' pointer of
+ /// the command from whence the record is originating is used, and that may be from a remote Runspace on a 64-bit
/// machine.
///
///
@@ -234,7 +234,7 @@ namespace System.Management.Automation.Host
public virtual void WriteInformation(InformationRecord record) { }
// Gets the state associated with PowerShell transcription.
- //
+ //
// Ideally, this would be associated with the host instance, but remoting recycles host instances
// for each command that gets invoked (so that it can keep track of the order of commands and their
// output.) Therefore, we store this transcription data in the runspace. However, the
@@ -683,13 +683,13 @@ namespace System.Management.Automation.Host
}
if(!Directory.Exists(baseDirectory))
{
- Directory.CreateDirectory(baseDirectory);
+ Directory.CreateDirectory(baseDirectory);
}
if(!File.Exists(transcript.Path))
{
File.Create(transcript.Path).Dispose();
}
-
+
// Do the actual writing in the background so that it doesn't hold up the UI thread.
Task writer = Task.Run(() =>
{
@@ -745,8 +745,8 @@ namespace System.Management.Automation.Host
///
///
/// A Dictionary object with results of prompting. The keys are the field names from the FieldDescriptions, the values
- /// are objects representing the values of the corresponding fields as collected from the user. To the extent possible,
- /// the host should return values of the type(s) identified in the FieldDescription. When that is not possible (for
+ /// are objects representing the values of the corresponding fields as collected from the user. To the extent possible,
+ /// the host should return values of the type(s) identified in the FieldDescription. When that is not possible (for
/// example, the type is not available to the host), the host should return the value as a string.
///
///
@@ -779,7 +779,7 @@ namespace System.Management.Automation.Host
/// Name of the target for which the credential is being collected.
///
///
- /// User input credential.
+ /// User input credential.
///
///
///
@@ -813,7 +813,7 @@ namespace System.Management.Automation.Host
/// Options that control the credential gathering UI behavior
///
///
- /// User input credential.
+ /// User input credential.
///
///
///
@@ -838,7 +838,7 @@ namespace System.Management.Automation.Host
/// An Collection of ChoiceDescription objects that describe each choice.
///
///
- /// The index of the label in the choices collection element to be presented to the user as the default choice. -1
+ /// The index of the label in the choices collection element to be presented to the user as the default choice. -1
/// means "no default". Must be a valid index.
///
///
@@ -877,7 +877,7 @@ namespace System.Management.Automation.Host
}
///
- /// Get Module Logging information from the registry.
+ /// Get Module Logging information from the registry.
///
internal static TranscriptionOption GetSystemTranscriptOption(TranscriptionOption currentTranscript)
{
@@ -1168,11 +1168,11 @@ namespace System.Management.Automation.Host
/// An Collection of ChoiceDescription objects that describe each choice.
///
///
- /// The index of the labels in the choices collection element to be presented to the user as
- /// the default choice(s).
+ /// The index of the labels in the choices collection element to be presented to the user as
+ /// the default choice(s).
///
///
- /// The indices of the choice elements that corresponds to the options selected. The
+ /// The indices of the choice elements that corresponds to the options selected. The
/// returned collection may contain duplicates depending on a particular host
/// implementation.
///
@@ -1235,7 +1235,7 @@ namespace System.Management.Automation.Host
///
/// Searches for a corresponding match between the response string and the choices. A match is either the response
- /// string is the full text of the label (sans hotkey marker), or is a hotkey. Full labels are checked first, and take
+ /// string is the full text of the label (sans hotkey marker), or is a hotkey. Full labels are checked first, and take
/// precedence over hotkey matches.
///
///
diff --git a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs
index b752f3ca84..301d1921cc 100644
--- a/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs
+++ b/src/System.Management.Automation/engine/hostifaces/NativeCultureResolver.cs
@@ -1,18 +1,18 @@
/********************************************************************++
Copyright (c) Microsoft Corporation. All rights reserved.
-
-Description:
-
-Windows Vista and later support non-traditional UI fallback ie., a
+
+Description:
+
+Windows Vista and later support non-traditional UI fallback ie., a
user on an Arabic machine can choose either French or English(US) as
UI fallback language.
-CLR does not support this (non-traditional) fallback mechanism. So
-the static methods in this class calculate appropriate UI Culture
+CLR does not support this (non-traditional) fallback mechanism. So
+the static methods in this class calculate appropriate UI Culture
natively. ConsoleHot uses this API to set correct Thread UICulture.
-Dependent on:
-GetThreadPreferredUILanguages
+Dependent on:
+GetThreadPreferredUILanguages
SetThreadPreferredUILanguages
These methods are available on Windows Vista and later.
@@ -54,7 +54,7 @@ namespace Microsoft.PowerShell
///
/// Returns Parent culture for the current CultureInfo.
- /// If Parent.Name is null or empty, then chooses the immediate fallback
+ /// If Parent.Name is null or empty, then chooses the immediate fallback
/// If it is not empty, otherwise just returns Parent.
///
public override CultureInfo Parent
@@ -75,7 +75,7 @@ namespace Microsoft.PowerShell
// MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK
// returns fallback cultures (specified by the user)
// and also adds neutral culture where appropriate.
- // Ex: ja-jp ja en-us en
+ // Ex: ja-jp ja en-us en
while ((null != _fallbacks) && (_fallbacks.Length > 0))
{
string fallback = _fallbacks[0];
@@ -289,7 +289,7 @@ namespace Microsoft.PowerShell
{
// filter out languages that console cannot display..
// Sometimes GetConsoleFallbackUICulture returns neutral cultures
- // like "en" on "ar-SA". However neutral culture cannot be
+ // like "en" on "ar-SA". However neutral culture cannot be
// assigned as CurrentCulture. CreateSpecificCulture fixes
// this problem.
returnValue = CultureInfo.CreateSpecificCulture(
@@ -298,7 +298,7 @@ namespace Microsoft.PowerShell
}
catch (ArgumentException)
{
- // if there is any exception retrieving the
+ // if there is any exception retrieving the
// culture, just use the current thread's culture.
returnValue = CultureInfo.CurrentCulture;
}
@@ -310,7 +310,7 @@ namespace Microsoft.PowerShell
internal static extern WORD GetUserDefaultUILanguage();
///
- /// Constructs CultureInfo object without considering any Vista and later
+ /// Constructs CultureInfo object without considering any Vista and later
/// custom culture fallback logic.
///
/// A CultureInfo object
@@ -334,9 +334,9 @@ namespace Microsoft.PowerShell
private static bool IsVistaAndLater()
{
// The version number is obtained from MSDN
- // 4 - Windows NT 4.0, Windows Me, Windows 98, or Windows 95.
- // 5 - Windows Server 2003 R2, Windows Server 2003, Windows XP, or Windows 2000.
- // 6 - Windows Vista or Windows Server "Longhorn".
+ // 4 - Windows NT 4.0, Windows Me, Windows 98, or Windows 95.
+ // 5 - Windows Server 2003 R2, Windows Server 2003, Windows XP, or Windows 2000.
+ // 6 - Windows Vista or Windows Server "Longhorn".
if (Environment.OSVersion.Version.Major >= 6)
{
@@ -367,7 +367,7 @@ namespace Microsoft.PowerShell
if (filterOutNonConsoleCultures)
{
// Filter out languages that do not support console.
- // The third parameter should be null otherwise this API will not
+ // The third parameter should be null otherwise this API will not
// set Console CodePage filter.
// The MSDN documentation does not call this out explicitly. Opened
// Bug 950 (Windows Developer Content) to track this.
@@ -381,7 +381,7 @@ namespace Microsoft.PowerShell
// MUI_MERGE_SYSTEM_FALLBACK | MUI_MERGE_USER_FALLBACK
// returns fallback cultures (specified by the user)
// and also adds neutral culture where appropriate.
- // Ex: ja-jp ja en-us en
+ // Ex: ja-jp ja en-us en
if (!GetThreadPreferredUILanguages(
s_MUI_LANGUAGE_NAME | s_MUI_MERGE_SYSTEM_FALLBACK | s_MUI_MERGE_USER_FALLBACK,
out numberLangs,
@@ -426,17 +426,17 @@ namespace Microsoft.PowerShell
#region Dll Import data
///
- /// Returns the locale identifier for the user default locale.
+ /// Returns the locale identifier for the user default locale.
///
///
///
/// This function can return data from custom locales. Locales are not
/// guaranteed to be the same from computer to computer or between runs
/// of an application. If your application must persist or transmit data,
- /// see Using Persistent Locale Data.
- /// Applications that are intended to run only on Windows Vista and later
- /// should use GetUserDefaultLocaleName in preference to this function.
- /// GetUserDefaultLocaleName provides good support for supplemental locales.
+ /// see Using Persistent Locale Data.
+ /// Applications that are intended to run only on Windows Vista and later
+ /// should use GetUserDefaultLocaleName in preference to this function.
+ /// GetUserDefaultLocaleName provides good support for supplemental locales.
/// However, GetUserDefaultLocaleName is not supported for versions of Windows
/// prior to Windows Vista.
///
@@ -449,14 +449,14 @@ namespace Microsoft.PowerShell
///
///
///
- /// Returns the size of the buffer containing the locale name, including
- /// the terminating null character, if successful. The function returns 0
+ /// Returns the size of the buffer containing the locale name, including
+ /// the terminating null character, if successful. The function returns 0
/// if it does not succeed. To get extended error information, the application
/// can call GetLastError. Possible returns from GetLastError
/// include ERR_INSUFFICIENT_BUFFER.
///
///
- ///
+ ///
///
[DllImport("kernel32.dll", SetLastError = false, CharSet = CharSet.Unicode)]
private static extern int GetUserDefaultLocaleName(
diff --git a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs
index 987efa6a67..d314b9f1e8 100644
--- a/src/System.Management.Automation/engine/hostifaces/PSCommand.cs
+++ b/src/System.Management.Automation/engine/hostifaces/PSCommand.cs
@@ -8,7 +8,7 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation
{
///
- /// Defines a PowerShell command / script object which can be used with
+ /// Defines a PowerShell command / script object which can be used with
/// object.
///
public sealed class PSCommand
@@ -73,7 +73,7 @@ namespace System.Management.Automation
/// A string representing the command.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -116,7 +116,7 @@ namespace System.Management.Automation
/// if true local scope is used to run the script command.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -166,7 +166,7 @@ namespace System.Management.Automation
/// command is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
public PSCommand AddScript(string script)
@@ -210,7 +210,7 @@ namespace System.Management.Automation
/// command is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
public PSCommand AddScript(string script, bool useLocalScope)
@@ -247,7 +247,7 @@ namespace System.Management.Automation
/// command is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
public PSCommand AddCommand(Command command)
@@ -282,7 +282,7 @@ namespace System.Management.Automation
/// Value for the parameter.
///
///
- /// A PSCommand instance with added
+ /// A PSCommand instance with added
/// to the parameter list of the last command.
///
///
@@ -292,7 +292,7 @@ namespace System.Management.Automation
/// Name is non null and name length is zero after trimming whitespace.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
public PSCommand AddParameter(string parameterName, object value)
@@ -322,7 +322,7 @@ namespace System.Management.Automation
/// Name of the parameter.
///
///
- /// A PSCommand instance with added
+ /// A PSCommand instance with added
/// to the parameter list of the last command.
///
///
@@ -332,7 +332,7 @@ namespace System.Management.Automation
/// Name is non null and name length is zero after trimming whitespace.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
public PSCommand AddParameter(string parameterName)
@@ -357,7 +357,7 @@ namespace System.Management.Automation
/// PSCommand command = new PSCommand("get-process").
/// AddCommand("select-object").AddParameter("name");
///
- ///
+ ///
/// This will add the value "name" to the positional parameter list of "select-object"
/// cmdlet. When the command is invoked, this value will get bound to positional parameter 0
/// of the "select-object" cmdlet which is "Property".
@@ -366,11 +366,11 @@ namespace System.Management.Automation
/// Value for the parameter.
///
///
- /// A PSCommand instance parameter value added
+ /// A PSCommand instance parameter value added
/// to the parameter list of the last command.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -393,12 +393,12 @@ namespace System.Management.Automation
///
/// Adds an additional statement for execution
- ///
+ ///
/// For example,
///
/// Runspace rs = RunspaceFactory.CreateRunspace();
/// PowerShell ps = PowerShell.Create();
- ///
+ ///
/// ps.Runspace = rs;
/// ps.AddCommand("Get-Process").AddArgument("idle");
/// ps.AddStatement().AddCommand("Get-Service").AddArgument("audiosrv");
@@ -406,7 +406,7 @@ namespace System.Management.Automation
///
///
///
- /// A PowerShell instance with the items in added
+ /// A PowerShell instance with the items in added
/// to the parameter list of the last command.
///
public PSCommand AddStatement()
@@ -452,7 +452,7 @@ namespace System.Management.Automation
}
///
- /// Clears the command(s).
+ /// Clears the command(s).
///
public void Clear()
{
diff --git a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs
index 3e6634e1b9..129cfe0f25 100644
--- a/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs
+++ b/src/System.Management.Automation/engine/hostifaces/PSDataCollection.cs
@@ -144,7 +144,7 @@ namespace System.Management.Automation
private bool _blockingEnumerator = false;
///
- /// whether the ref count was incremented when
+ /// whether the ref count was incremented when
/// BlockingEnumerator was updated
///
private bool _refCountIncrementedForBlockingEnumerator = false;
@@ -165,7 +165,7 @@ namespace System.Management.Automation
}
///
- /// Creates a PSDataCollection that includes all the items in the IEnumerable and invokes Complete().
+ /// Creates a PSDataCollection that includes all the items in the IEnumerable and invokes Complete().
///
///
/// Items used to initialize the collection
@@ -189,7 +189,7 @@ namespace System.Management.Automation
/// store.
///
///
- /// Capacity is the number of elements that the PSDataCollection can
+ /// Capacity is the number of elements that the PSDataCollection can
/// store before resizing is required.
///
public PSDataCollection(int capacity) : this(new List(capacity))
@@ -518,7 +518,7 @@ namespace System.Management.Automation
}
///
- /// Completes insertions to the buffer.
+ /// Completes insertions to the buffer.
/// Subsequent Inserts to the buffer will result in an InvalidOperationException
///
public void Complete()
@@ -573,7 +573,7 @@ namespace System.Management.Automation
}
///
- /// Indicates whether the data collection should
+ /// Indicates whether the data collection should
/// have a blocking enumerator by default. Currently
/// only when a PowerShell object is associated with
/// the data collection, a reference count is added
@@ -630,14 +630,14 @@ namespace System.Management.Automation
#region IList Generic Overrides
///
- /// Gets or sets the element at the specified index.
+ /// Gets or sets the element at the specified index.
///
///
/// The zero-based index of the element to get or set.
///
///
- /// Objects cannot be added to a closed buffer.
- /// Make sure the buffer is open for Add and Insert
+ /// Objects cannot be added to a closed buffer.
+ /// Make sure the buffer is open for Add and Insert
/// operations to succeed.
///
///
@@ -674,13 +674,13 @@ namespace System.Management.Automation
}
///
- /// Determines the index of a specific item in the buffer.
+ /// Determines the index of a specific item in the buffer.
///
///
/// The object to locate in the buffer.
///
///
- /// The index of item if found in the buffer; otherwise, -1.
+ /// The index of item if found in the buffer; otherwise, -1.
///
public int IndexOf(T item)
{
@@ -691,7 +691,7 @@ namespace System.Management.Automation
}
///
- /// Inserts an item to the buffer at the specified index.
+ /// Inserts an item to the buffer at the specified index.
///
///
/// The zero-based index at which item should be inserted.
@@ -700,12 +700,12 @@ namespace System.Management.Automation
/// The object to insert into the buffer.
///
///
- /// Objects cannot be added to a closed buffer.
- /// Make sure the buffer is open for Add and Insert
+ /// Objects cannot be added to a closed buffer.
+ /// Make sure the buffer is open for Add and Insert
/// operations to succeed.
///
///
- /// The index specified is less than zero or greater
+ /// The index specified is less than zero or greater
/// than Count.
///
public void Insert(int index, T item)
@@ -779,8 +779,8 @@ namespace System.Management.Automation
/// item to add
///
///
- /// Objects cannot be added to a closed buffer.
- /// Make sure the buffer is open for Add and Insert
+ /// Objects cannot be added to a closed buffer.
+ /// Make sure the buffer is open for Add and Insert
/// operations to succeed.
///
public void Add(T item)
@@ -790,7 +790,7 @@ namespace System.Management.Automation
///
/// Removes all items from the buffer
- ///
+ ///
public void Clear()
{
lock (SyncObject)
@@ -803,13 +803,13 @@ namespace System.Management.Automation
}
///
- /// Determines whether the buffer contains an element with a specific value.
+ /// Determines whether the buffer contains an element with a specific value.
///
///
/// The object to locate in the buffer.
///
///
- /// true if the element value is found in the buffer; otherwise false.
+ /// true if the element value is found in the buffer; otherwise false.
///
public bool Contains(T item)
{
@@ -834,11 +834,11 @@ namespace System.Management.Automation
/// The zero-based index in the array at which copying begins.
///
///
- /// array is multidimensional.
+ /// array is multidimensional.
/// (or)
- /// arrayIndex is equal to or greater than the length of array.
+ /// arrayIndex is equal to or greater than the length of array.
/// (or)
- /// The number of elements in the source buffer is greater than the
+ /// The number of elements in the source buffer is greater than the
/// available space from arrayIndex to the end of the destination array.
/// (or)
/// Type T cannot be cast automatically to the type of the destination array.
@@ -858,13 +858,13 @@ namespace System.Management.Automation
}
///
- /// Removes the first occurrence of a specified item from the buffer.
+ /// Removes the first occurrence of a specified item from the buffer.
///
///
/// The object to remove from the buffer.
///
///
- /// true if item was successfully removed from the buffer; otherwise, false.
+ /// true if item was successfully removed from the buffer; otherwise, false.
///
public bool Remove(T item)
{
@@ -886,7 +886,7 @@ namespace System.Management.Automation
#region IEnumerable Generic Overrides
///
- /// Returns an enumerator that iterates through the
+ /// Returns an enumerator that iterates through the
/// elements of the buffer.
///
///
@@ -908,11 +908,11 @@ namespace System.Management.Automation
/// The object to add to the buffer.
///
///
- /// The position into which the new element was inserted.
+ /// The position into which the new element was inserted.
///
///
- /// Objects cannot be added to a closed buffer.
- /// Make sure the buffer is open for Add and Insert
+ /// Objects cannot be added to a closed buffer.
+ /// Make sure the buffer is open for Add and Insert
/// operations to succeed.
///
///
@@ -931,14 +931,14 @@ namespace System.Management.Automation
}
///
- /// Determines whether the collection contains an
- /// element with a specific value.
+ /// Determines whether the collection contains an
+ /// element with a specific value.
///
///
/// The object to locate in the collection
///
///
- /// true if the element value is found in the collection;
+ /// true if the element value is found in the collection;
/// otherwise false.
///
///
@@ -953,13 +953,13 @@ namespace System.Management.Automation
}
///
- /// Determines the zero-based index of an element in the buffer.
+ /// Determines the zero-based index of an element in the buffer.
///
///
/// The element in the buffer whose index is being determined.
///
///
- /// The index of the value if found in the buffer; otherwise, -1.
+ /// The index of the value if found in the buffer; otherwise, -1.
///
///
/// value reference is null.
@@ -973,7 +973,7 @@ namespace System.Management.Automation
}
///
- /// Inserts an object into the buffer at a specified index.
+ /// Inserts an object into the buffer at a specified index.
///
///
/// The zero-based index at which value is to be inserted.
@@ -997,7 +997,7 @@ namespace System.Management.Automation
///
/// Removes the first occurrence of a specified object
- /// as an element from the buffer.
+ /// as an element from the buffer.
///
///
/// The object to be removed from the buffer.
@@ -1036,7 +1036,7 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the element at the specified index.
+ /// Gets or sets the element at the specified index.
///
///
/// The zero-based index of the element to get or set.
@@ -1091,8 +1091,8 @@ namespace System.Management.Automation
}
///
- /// Copies the elements of the collection to a specified array,
- /// starting at a particular index.
+ /// Copies the elements of the collection to a specified array,
+ /// starting at a particular index.
///
///
/// The destination Array for the elements of type T copied
@@ -1102,11 +1102,11 @@ namespace System.Management.Automation
/// The zero-based index in the array at which copying begins.
///
///
- /// array is multidimensional.
+ /// array is multidimensional.
/// (or)
- /// arrayIndex is equal to or greater than the length of array.
+ /// arrayIndex is equal to or greater than the length of array.
/// (or)
- /// The number of elements in the source buffer is greater than the
+ /// The number of elements in the source buffer is greater than the
/// available space from arrayIndex to the end of the destination array.
///
///
@@ -1145,7 +1145,7 @@ namespace System.Management.Automation
///
/// Makes a shallow copy of all the elements currently in this collection
/// and clears them from this collection. This will not result in a blocking call.
- ///
+ ///
/// Calling this method might have side effects on the enumerator. When this
/// method is called, the behavior of the enumerator is not defined.
///
@@ -1160,7 +1160,7 @@ namespace System.Management.Automation
///
/// Makes a shallow copy of all the elements currently in this collection
/// and clears them from this collection. This will not result in a blocking call.
- ///
+ ///
/// Calling this method might have side effects on the enumerator. When this
/// method is called, the behavior of the enumerator is not defined.
///
@@ -1204,7 +1204,7 @@ namespace System.Management.Automation
}
else
{
- // reset the handle so that future
+ // reset the handle so that future
// threads will block
_readWaitHandle.Reset();
}
@@ -1235,7 +1235,7 @@ namespace System.Management.Automation
#region Protected Virtual Methods
///
- /// Inserts an item into the buffer at a specified index.
+ /// Inserts an item into the buffer at a specified index.
///
///
/// InstanceId of PowerShell instance adding this data.
@@ -1248,7 +1248,7 @@ namespace System.Management.Automation
/// The object to be inserted into the buffer.
///
///
- /// The index specified is less than zero or greater
+ /// The index specified is less than zero or greater
/// than Count.
///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "ps", Justification = "PS signifies PowerShell and is used at many places in the product.")]
@@ -1271,7 +1271,7 @@ namespace System.Management.Automation
/// The zero-based index of the buffer where the object is to be removed.
///
///
- /// The index specified is less than zero or greater
+ /// The index specified is less than zero or greater
/// than the number of items in the buffer.
///
protected virtual void RemoveItem(int index)
@@ -1320,7 +1320,7 @@ namespace System.Management.Automation
{
if (null == _readWaitHandle)
{
- // Create the handle signaled if there are objects in the buffer
+ // Create the handle signaled if there are objects in the buffer
// or the buffer has been closed.
_readWaitHandle = new ManualResetEvent(_data.Count > 0 || !_isOpen);
}
@@ -1358,7 +1358,7 @@ namespace System.Management.Automation
}
else
{
- // reset the handle so that future
+ // reset the handle so that future
// threads will block
_readWaitHandle.Reset();
}
@@ -1416,7 +1416,7 @@ namespace System.Management.Automation
}
///
- /// Inserts an item into the buffer at a specified index.
+ /// Inserts an item into the buffer at a specified index.
/// The caller should make sure the method call is
/// synchronized.
///
@@ -1432,12 +1432,12 @@ namespace System.Management.Automation
/// The object to be inserted into the buffer.
///
///
- /// Objects cannot be added to a closed buffer.
- /// Make sure the buffer is open for Add and Insert
+ /// Objects cannot be added to a closed buffer.
+ /// Make sure the buffer is open for Add and Insert
/// operations to succeed.
///
///
- /// The index specified is less than zero or greater
+ /// The index specified is less than zero or greater
/// than Count.
///
private void InternalInsertItem(Guid psInstanceId, int index, T item)
@@ -1461,8 +1461,8 @@ namespace System.Management.Automation
/// item to add
///
///
- /// Objects cannot be added to a closed buffer.
- /// Make sure the buffer is open for Add and Insert
+ /// Objects cannot be added to a closed buffer.
+ /// Make sure the buffer is open for Add and Insert
/// operations to succeed.
///
internal void InternalAdd(Guid psInstanceId, T item)
@@ -1487,13 +1487,13 @@ namespace System.Management.Automation
}
///
- /// Adds the elements of an ICollection to the end of the buffer.
+ /// Adds the elements of an ICollection to the end of the buffer.
///
///
/// InstanceId of PowerShell instance adding this data.
///
///
- /// The ICollection whose elements should be added to the end of
+ /// The ICollection whose elements should be added to the end of
/// the buffer.
///
///
@@ -1551,7 +1551,7 @@ namespace System.Management.Automation
///
/// Decrement counter to keep track of active PowerShell instances
- /// using this buffer. This is used only internally.
+ /// using this buffer. This is used only internally.
///
internal void DecrementRef()
{
@@ -1570,14 +1570,14 @@ namespace System.Management.Automation
// release any threads to notify refCount is 0. Enumerator
// blocks on this syncObject and it needs to be notified
- // when the count becomes 0.
+ // when the count becomes 0.
Monitor.PulseAll(SyncObject);
}
}
///
/// Returns the index of first occurrence of
- /// in the buffer.
+ /// in the buffer.
/// This method is not thread safe.
///
///
@@ -1821,7 +1821,7 @@ namespace System.Management.Automation
#region PSDataCollectionEnumerator
///
- /// Enumerator for PSDataCollection. This enumerator blocks until
+ /// Enumerator for PSDataCollection. This enumerator blocks until
/// either all the PowerShell operations are completed or the
/// PSDataCollection is closed.
///
@@ -1867,7 +1867,7 @@ namespace System.Management.Automation
#region IEnumerator Overrides
///
- /// Gets the element in the collection at the current position
+ /// Gets the element in the collection at the current position
/// of the enumerator.
///
///
@@ -1884,7 +1884,7 @@ namespace System.Management.Automation
}
///
- /// Gets the element in the collection at the current position
+ /// Gets the element in the collection at the current position
/// of the enumerator.
///
///
@@ -1904,11 +1904,11 @@ namespace System.Management.Automation
/// Advances the enumerator to the next element in the collection.
///
///
- /// true if the enumerator successfully advanced to the next element;
+ /// true if the enumerator successfully advanced to the next element;
/// otherwise, false.
///
///
- /// This will block if the original collection is attached to any
+ /// This will block if the original collection is attached to any
/// active PowerShell instances and the original collection is not
/// closed.
///
@@ -1921,7 +1921,7 @@ namespace System.Management.Automation
/// Advances the enumerator to the next element in the collection.
///
///
- /// true if the enumerator successfully advanced to the next element;
+ /// true if the enumerator successfully advanced to the next element;
/// otherwise, false.
///
/// true - to block when no elements are available
@@ -1972,8 +1972,8 @@ namespace System.Management.Automation
}
///
- /// Resets the enumerator to its initial position,
- /// which is before the first element in the collection.
+ /// Resets the enumerator to its initial position,
+ /// which is before the first element in the collection.
///
public void Reset()
{
@@ -1982,7 +1982,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
void IDisposable.Dispose()
{
@@ -1994,8 +1994,8 @@ namespace System.Management.Automation
#endregion
///
- /// Class that represents various informational buffers like
- /// verbose, debug, warning, progress, information used with command invocation.
+ /// Class that represents various informational buffers like
+ /// verbose, debug, warning, progress, information used with command invocation.
///
internal sealed class PSInformationalBuffers
{
diff --git a/src/System.Management.Automation/engine/hostifaces/Parameter.cs b/src/System.Management.Automation/engine/hostifaces/Parameter.cs
index 671dde82e2..5f7c237546 100644
--- a/src/System.Management.Automation/engine/hostifaces/Parameter.cs
+++ b/src/System.Management.Automation/engine/hostifaces/Parameter.cs
@@ -160,7 +160,7 @@ namespace System.Management.Automation.Runspaces
}
Debug.Assert(endPosition > 0, "parameter name should have some non-whitespace characters in it");
- // now make sure that parameterText doesn't have whitespace at the end,
+ // now make sure that parameterText doesn't have whitespace at the end,
parameterText = name.Substring(0, endPosition);
// parameterName should contain only the actual name of the parameter (no whitespace, colons, dashes)
@@ -193,13 +193,13 @@ namespace System.Management.Automation.Runspaces
#region Serialization / deserialization for remoting
///
- /// Creates a CommandParameter object from a PSObject property bag.
+ /// Creates a CommandParameter object from a PSObject property bag.
/// PSObject has to be in the format returned by ToPSObjectForRemoting method.
///
/// PSObject to rehydrate
///
/// CommandParameter rehydrated from a PSObject property bag
- ///
+ ///
///
/// Thrown if the PSObject is null.
///
diff --git a/src/System.Management.Automation/engine/hostifaces/Pipeline.cs b/src/System.Management.Automation/engine/hostifaces/Pipeline.cs
index e941ad6737..34b35550cc 100644
--- a/src/System.Management.Automation/engine/hostifaces/Pipeline.cs
+++ b/src/System.Management.Automation/engine/hostifaces/Pipeline.cs
@@ -18,14 +18,14 @@ namespace System.Management.Automation.Runspaces
{
#region Exceptions
///
- /// Defines exception which is thrown when state of the pipeline is different
+ /// Defines exception which is thrown when state of the pipeline is different
/// from expected state.
- ///
+ ///
[Serializable]
public class InvalidPipelineStateException : SystemException
{
///
- /// Initializes a new instance of the InvalidPipelineStateException class
+ /// Initializes a new instance of the InvalidPipelineStateException class
///
public InvalidPipelineStateException()
: base(StringUtil.Format(RunspaceStrings.InvalidPipelineStateStateGeneral))
@@ -33,7 +33,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Initializes a new instance of the InvalidPipelineStateException class
+ /// Initializes a new instance of the InvalidPipelineStateException class
/// with a specified error message
///
///
@@ -45,11 +45,11 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Initializes a new instance of the InvalidPipelineStateException class
- /// with a specified error message and a reference to the inner exception that is the cause of this exception.
+ /// Initializes a new instance of the InvalidPipelineStateException class
+ /// with a specified error message and a reference to the inner exception that is the cause of this exception.
///
///
- /// The error message that explains the reason for the exception.
+ /// The error message that explains the reason for the exception.
///
///
/// The exception that is the cause of the current exception.
@@ -60,10 +60,10 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Initializes a new instance of the InvalidPipelineStateException and defines value of
+ /// Initializes a new instance of the InvalidPipelineStateException and defines value of
/// CurrentState and ExpectedState
///
- /// The error message that explains the reason for the exception.
+ /// The error message that explains the reason for the exception.
///
/// Current state of pipeline
/// Expected state of pipeline
@@ -84,11 +84,11 @@ namespace System.Management.Automation.Runspaces
/// class with serialized data.
///
///
- /// The that holds the serialized object
+ /// The that holds the serialized object
/// data about the exception being thrown.
///
///
- /// The that contains contextual information
+ /// The that contains contextual information
/// about the source or destination.
///
private InvalidPipelineStateException(SerializationInfo info, StreamingContext context)
@@ -167,7 +167,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Type which has information about PipelineState and Exception
+ /// Type which has information about PipelineState and Exception
/// associated with PipelineState
///
public sealed class PipelineStateInfo
@@ -187,7 +187,7 @@ namespace System.Management.Automation.Runspaces
/// Constructor for state changes with an optional error.
///
/// The new state.
- /// A non-null exception if the state change was
+ /// A non-null exception if the state change was
/// caused by an error,otherwise; null.
///
internal PipelineStateInfo(PipelineState state, Exception reason)
@@ -228,8 +228,8 @@ namespace System.Management.Automation.Runspaces
/// The reason for the state change, if caused by an error.
///
///
- /// The value of this property is non-null if the state
- /// changed due to an error. Otherwise, the value of this
+ /// The value of this property is non-null if the state
+ /// changed due to an error. Otherwise, the value of this
/// property is null.
///
public Exception Reason { get; }
@@ -257,7 +257,7 @@ namespace System.Management.Automation.Runspaces
///
/// Constructor PipelineStateEventArgs from PipelineStateInfo
///
- /// The current state of the
+ /// The current state of the
/// pipeline.
///
/// ArgumentNullException when is null.
@@ -340,7 +340,7 @@ namespace System.Management.Automation.Runspaces
///
/// Gets the property which indicates if this pipeline is a child pipeline.
- ///
+ ///
/// IsChild flag makes it possible for the pipeline to differentiate between
/// a true v1 nested pipeline and the cmdlets calling cmdlets case. See bug
/// 211462.
@@ -380,7 +380,7 @@ namespace System.Management.Automation.Runspaces
/// When the caller calls Error.Read(), the caller reads from the
/// output of the pipeline. Thus,
/// is a PipelineReader or "thing which can be read from".
- ///
+ ///
/// This is the non-terminating error stream from the command.
/// In this release, the objects read from this PipelineReader
/// are PSObjects wrapping ErrorRecords.
@@ -435,18 +435,18 @@ namespace System.Management.Automation.Runspaces
internal PSInvocationSettings InvocationSettings { get; set; }
///
- /// If this flag is true, the commands in this Pipeline will redirect the global error output pipe
+ /// If this flag is true, the commands in this Pipeline will redirect the global error output pipe
/// (ExecutionContext.ShellFunctionErrorOutputPipe) to the command's error output pipe.
- ///
- /// When the global error output pipe is not set, $ErrorActionPreference is not checked and all
- /// errors are treated as terminating errors.
- ///
- /// On V1, the global error output pipe is redirected to the command's error output pipe only when
+ ///
+ /// When the global error output pipe is not set, $ErrorActionPreference is not checked and all
+ /// errors are treated as terminating errors.
+ ///
+ /// On V1, the global error output pipe is redirected to the command's error output pipe only when
/// it has already been redirected. The command-line host achieves this redirection by merging the
- /// error output into the output pipe so it checks $ErrorActionPreference all right. However, when
+ /// error output into the output pipe so it checks $ErrorActionPreference all right. However, when
/// the Pipeline class is used programmatically the global error output pipe is not set and the first
/// error terminates the pipeline.
- ///
+ ///
/// This flag is used to force the redirection. By default it is false to maintain compatibility with
/// V1, but the V2 hosting interface (PowerShell class) sets this flag to true to ensure the global
/// error output pipe is always set and $ErrorActionPreference when invoking the Pipeline.
@@ -472,7 +472,7 @@ namespace System.Management.Automation.Runspaces
/// objects.
///
/// If using synchronous invoke, do not close
- /// input objectWriter. Synchronous invoke will always close the input
+ /// input objectWriter. Synchronous invoke will always close the input
/// objectWriter.
///
///
@@ -482,9 +482,9 @@ namespace System.Management.Automation.Runspaces
/// PipelineState is not NotStarted.
///
///
- /// 1) A pipeline is already executing. Pipeline cannot execute
+ /// 1) A pipeline is already executing. Pipeline cannot execute
/// concurrently.
- /// 2) Attempt is made to invoke a nested pipeline directly. Nested
+ /// 2) Attempt is made to invoke a nested pipeline directly. Nested
/// pipeline must be invoked from a running pipeline.
///
///
@@ -543,7 +543,7 @@ namespace System.Management.Automation.Runspaces
/// Array may be empty but may not be null
/// An array of zero or more result objects
/// If using synchronous exectute, do not close
- /// input objectWriter. Synchronous invoke will always close the input
+ /// input objectWriter. Synchronous invoke will always close the input
/// objectWriter.
///
///
@@ -553,9 +553,9 @@ namespace System.Management.Automation.Runspaces
/// PipelineState is not NotStarted.
///
///
- /// 1) A pipeline is already executing. Pipeline cannot execute
+ /// 1) A pipeline is already executing. Pipeline cannot execute
/// concurrently.
- /// 2) Attempt is made to invoke a nested pipeline directly. Nested
+ /// 2) Attempt is made to invoke a nested pipeline directly. Nested
/// pipeline must be invoked from a running pipeline.
///
///
@@ -613,7 +613,7 @@ namespace System.Management.Automation.Runspaces
/// finish until Input to pipeline is closed. Caller of InvokeAsync must close
/// the input pipe after all input has been written to input pipe. Input pipe
/// is closed by calling Pipeline.Input.Close();
- ///
+ ///
/// If you want this pipeline to execute as a standalone command
/// (that is, using command-line parameters only),
/// be sure to call Pipeline.Input.Close() before calling
@@ -628,9 +628,9 @@ namespace System.Management.Automation.Runspaces
/// PipelineState is not NotStarted.
///
///
- /// 1) A pipeline is already executing. Pipeline cannot execute
+ /// 1) A pipeline is already executing. Pipeline cannot execute
/// concurrently.
- /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
+ /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
/// cannot be executed Asynchronously.
///
///
@@ -725,7 +725,7 @@ namespace System.Management.Automation.Runspaces
#region IDisposable Members
///
- /// Disposes the pipeline. If pipeline is running, dispose first
+ /// Disposes the pipeline. If pipeline is running, dispose first
/// stops the pipeline.
///
public
diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs
index 9a5dd011d3..996312acc4 100644
--- a/src/System.Management.Automation/engine/hostifaces/PowerShell.cs
+++ b/src/System.Management.Automation/engine/hostifaces/PowerShell.cs
@@ -28,7 +28,7 @@ namespace System.Management.Automation
#region Exceptions
///
- /// Defines exception which is thrown when state of the PowerShell is different
+ /// Defines exception which is thrown when state of the PowerShell is different
/// from the expected state.
///
[Serializable]
@@ -58,7 +58,7 @@ namespace System.Management.Automation
/// Creates a new instance of InvalidPowershellStateException class.
///
///
- /// The error message that explains the reason for the exception.
+ /// The error message that explains the reason for the exception.
///
///
/// The exception that is the cause of the current exception.
@@ -69,7 +69,7 @@ namespace System.Management.Automation
}
///
- /// Initializes a new instance of the InvalidPowerShellStateException and defines value of
+ /// Initializes a new instance of the InvalidPowerShellStateException and defines value of
/// CurrentState.
///
/// Current state of powershell
@@ -90,11 +90,11 @@ namespace System.Management.Automation
/// class with serialized data.
///
///
- /// The that holds the serialized object
+ /// The that holds the serialized object
/// data about the exception being thrown.
///
///
- /// The that contains contextual information
+ /// The that contains contextual information
/// about the source or destination.
///
protected
@@ -179,7 +179,7 @@ namespace System.Management.Automation
}
///
- /// Type which has information about InvocationState and Exception
+ /// Type which has information about InvocationState and Exception
/// associated with InvocationState
///
public sealed class PSInvocationStateInfo
@@ -190,7 +190,7 @@ namespace System.Management.Automation
/// Constructor for state changes with an optional error.
///
/// The new state.
- /// A non-null exception if the state change was
+ /// A non-null exception if the state change was
/// caused by an error,otherwise; null.
///
internal PSInvocationStateInfo(PSInvocationState state, Exception reason)
@@ -230,8 +230,8 @@ namespace System.Management.Automation
/// The reason for the state change, if caused by an error.
///
///
- /// The value of this property is non-null if the state
- /// changed due to an error. Otherwise, the value of this
+ /// The value of this property is non-null if the state
+ /// changed due to an error. Otherwise, the value of this
/// property is null.
///
public Exception Reason
@@ -375,7 +375,7 @@ namespace System.Management.Automation
public RemoteStreamOptions RemoteStreamOptions { get; set; }
///
- /// Boolean which tells if the command is added to the history of the
+ /// Boolean which tells if the command is added to the history of the
/// Runspace the command is executing in. By default this is false.
///
public bool AddToHistory { get; set; }
@@ -390,7 +390,7 @@ namespace System.Management.Automation
/// Pipeline Execution Thread.
///
///
- /// Scenario: In the IIS hosting model, the calling thread is impersonated with a different
+ /// Scenario: In the IIS hosting model, the calling thread is impersonated with a different
/// identity than the process identity. However Pipeline Execution Thread always inherits
/// process's identity and this will create problems related to security. In the IIS hosting
/// model, we should honor calling threads identity.
@@ -400,7 +400,7 @@ namespace System.Management.Automation
internal System.Security.Principal.WindowsIdentity WindowsIdentityToImpersonate { get; set; }
///
- /// When true, allows an unhandled flow control exceptions to
+ /// When true, allows an unhandled flow control exceptions to
/// propagate to a caller invoking the PowerShell object.
///
public bool ExposeFlowControlExceptions
@@ -410,7 +410,7 @@ namespace System.Management.Automation
}
///
- /// Invokes a remote command and immediately disconnects, if the transport
+ /// Invokes a remote command and immediately disconnects, if the transport
/// layer supports this operation.
///
internal bool InvokeAndDisconnect { get; set; }
@@ -463,7 +463,7 @@ namespace System.Management.Automation
}
///
- /// These flags control whether InvocationInfo is added to items in the Error, Warning, Verbose and Debug
+ /// These flags control whether InvocationInfo is added to items in the Error, Warning, Verbose and Debug
/// streams during remote calls
///
[Flags]
@@ -562,16 +562,16 @@ namespace System.Management.Automation
/// Runspace(Pool) if provided, otherwise execute using a default
/// Runspace. Provides access to different result buffers
/// like output, error, debug, verbose, progress, warning, and information.
- ///
+ ///
/// Provides a simple interface to execute a powershell command:
///
/// Powershell.Create("get-process").Invoke();
///
/// The above statement creates a local runspace using default
/// configuration, executes the command and then closes the runspace.
- ///
+ ///
/// Using RunspacePool property, the caller can provide the runspace
- /// where the command / script is executed.
+ /// where the command / script is executed.
///
[SuppressMessage("Microsoft.Naming", "CA1724:TypeNamesShouldNotMatchNamespaces", Justification = "PowerShell is a valid type in SMAR namespace.")]
public sealed class PowerShell : IDisposable
@@ -616,7 +616,7 @@ namespace System.Management.Automation
///
///
/// A Runspace or RunspacePool to refer while invoking the command.
- /// This can be null in which case a new runspace is created
+ /// This can be null in which case a new runspace is created
/// whenever Invoke* method is called.
///
private PowerShell(PSCommand command, Collection extraCommands, object rsConnection)
@@ -639,7 +639,7 @@ namespace System.Management.Automation
}
///
- /// Constructs a PowerShell instance in the disconnected start state with
+ /// Constructs a PowerShell instance in the disconnected start state with
/// the provided remote command connect information and runspace(pool) objects.
///
/// Remote command connect information.
@@ -671,7 +671,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -735,7 +735,7 @@ namespace System.Management.Automation
///
/// This method will be called by RemotePipeline
/// before it begins execution. This method is used to set
- /// the command collection of the remote pipeline as the
+ /// the command collection of the remote pipeline as the
/// command collection of the underlying powershell
internal void InitForRemotePipeline(CommandCollection command, ObjectStreamBase inputstream,
ObjectStreamBase outputstream, ObjectStreamBase errorstream, PSInvocationSettings settings, bool redirectShellErrorOutputPipe)
@@ -871,17 +871,17 @@ namespace System.Management.Automation
/// Creates a nested powershell within the current instance.
/// Nested PowerShell is used to do simple operations like checking state
/// of a variable while another command is using the runspace.
- ///
+ ///
/// Nested PowerShell should be invoked from the same thread as the parent
- /// PowerShell invocation thread. So effectively the parent Powershell
- /// invocation thread is blocked until nested invoke() operation is
+ /// PowerShell invocation thread. So effectively the parent Powershell
+ /// invocation thread is blocked until nested invoke() operation is
/// complete.
- ///
+ ///
/// Implement PSHost.EnterNestedPrompt to perform invoke() operation on the
/// nested powershell.
///
///
- /// 1. State of powershell instance is not valid to create a nested powershell instance.
+ /// 1. State of powershell instance is not valid to create a nested powershell instance.
/// Nested PowerShell should be created only for a running powershell instance.
///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "ps", Justification = "ps represents PowerShell and is used at many places.")]
@@ -935,7 +935,7 @@ namespace System.Management.Automation
/// cmdlet is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -976,7 +976,7 @@ namespace System.Management.Automation
/// cmdlet is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1015,7 +1015,7 @@ namespace System.Management.Automation
/// command is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1057,7 +1057,7 @@ namespace System.Management.Automation
/// command is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1092,7 +1092,7 @@ namespace System.Management.Automation
/// command is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1124,7 +1124,7 @@ namespace System.Management.Automation
/// command is null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1157,7 +1157,7 @@ namespace System.Management.Automation
/// Value for the parameter.
///
///
- /// A PowerShell instance with added
+ /// A PowerShell instance with added
/// to the parameter list of the last command.
///
///
@@ -1167,7 +1167,7 @@ namespace System.Management.Automation
/// Name is non null and name length is zero after trimming whitespace.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1200,7 +1200,7 @@ namespace System.Management.Automation
/// Name of the parameter.
///
///
- /// A PowerShell instance with added
+ /// A PowerShell instance with added
/// to the parameter list of the last command.
///
///
@@ -1210,7 +1210,7 @@ namespace System.Management.Automation
/// Name is non null and name length is zero after trimming whitespace.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1235,10 +1235,10 @@ namespace System.Management.Automation
/// Adds a set of parameters to the last added command.
///
///
- /// List of parameters.
+ /// List of parameters.
///
///
- /// A PowerShell instance with the items in added
+ /// A PowerShell instance with the items in added
/// to the parameter list of the last command.
///
///
@@ -1248,7 +1248,7 @@ namespace System.Management.Automation
/// The function was given a null argument.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
public PowerShell AddParameters(IList parameters)
@@ -1283,7 +1283,7 @@ namespace System.Management.Automation
/// Dictionary of parameters. Each key-value pair corresponds to a parameter name and its value. Keys must strings.
///
///
- /// A PowerShell instance with the items in added
+ /// A PowerShell instance with the items in added
/// to the parameter list of the last command.
///
///
@@ -1293,7 +1293,7 @@ namespace System.Management.Automation
/// The function was given a null argument.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1338,7 +1338,7 @@ namespace System.Management.Automation
/// PowerShell shell = PowerShell.Create("get-process").
/// AddCommand("select-object").AddParameter("name");
///
- ///
+ ///
/// This will add the value "name" to the positional parameter list of "select-object"
/// cmdlet. When the command is invoked, this value will get bound to positional parameter 0
/// of the "select-object" cmdlet which is "Property".
@@ -1347,7 +1347,7 @@ namespace System.Management.Automation
/// Value for the parameter.
///
///
- /// A PSCommand instance parameter value added
+ /// A PSCommand instance parameter value added
/// to the parameter list of the last command.
///
///
@@ -1370,12 +1370,12 @@ namespace System.Management.Automation
///
/// Adds an additional statement for execution
- ///
+ ///
/// For example,
///
/// Runspace rs = RunspaceFactory.CreateRunspace();
/// PowerShell ps = PowerShell.Create();
- ///
+ ///
/// ps.Runspace = rs;
/// ps.AddCommand("Get-Process").AddArgument("idle");
/// ps.AddStatement().AddCommand("Get-Service").AddArgument("audiosrv");
@@ -1383,7 +1383,7 @@ namespace System.Management.Automation
///
///
///
- /// A PowerShell instance with the items in added
+ /// A PowerShell instance with the items in added
/// to the parameter list of the last command.
///
public PowerShell AddStatement()
@@ -1416,7 +1416,7 @@ namespace System.Management.Automation
/// Cannot set to a null value.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1450,14 +1450,14 @@ namespace System.Management.Automation
public PSDataStreams Streams { get; }
///
- /// Gets or sets the error buffer. Powershell invocation writes
+ /// Gets or sets the error buffer. Powershell invocation writes
/// the error data into this buffer.
///
///
/// Cannot set to a null value.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1487,11 +1487,11 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the progress buffer. Powershell invocation writes
+ /// Gets or sets the progress buffer. Powershell invocation writes
/// the progress data into this buffer. Can be null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1520,11 +1520,11 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the verbose buffer. Powershell invocation writes
+ /// Gets or sets the verbose buffer. Powershell invocation writes
/// the verbose data into this buffer. Can be null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1553,11 +1553,11 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the debug buffer. Powershell invocation writes
+ /// Gets or sets the debug buffer. Powershell invocation writes
/// the debug data into this buffer. Can be null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1586,14 +1586,14 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the warning buffer. Powershell invocation writes
+ /// Gets or sets the warning buffer. Powershell invocation writes
/// the warning data into this buffer. Can be null.
///
///
/// Cannot set to a null value.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1622,14 +1622,14 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the information buffer. Powershell invocation writes
+ /// Gets or sets the information buffer. Powershell invocation writes
/// the information data into this buffer. Can be null.
///
///
/// Cannot set to a null value.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1663,16 +1663,16 @@ namespace System.Management.Automation
internal PSInformationalBuffers InformationalBuffers { get; }
///
- /// If this flag is true, the commands in this Pipeline will redirect
+ /// If this flag is true, the commands in this Pipeline will redirect
/// the global error output pipe to the command's error output pipe.
- ///
- /// (see the comment in Pipeline.RedirectShellErrorOutputPipe for an
+ ///
+ /// (see the comment in Pipeline.RedirectShellErrorOutputPipe for an
/// explanation of why this flag is needed)
///
internal bool RedirectShellErrorOutputPipe { get; set; } = true;
///
- /// Get unique id for this instance of runspace pool. It is primarily used
+ /// Get unique id for this instance of runspace pool. It is primarily used
/// for logging purposes.
///
public Guid InstanceId { get; private set; }
@@ -1691,11 +1691,11 @@ namespace System.Management.Automation
///
/// Gets the property which indicates if this PowerShell instance
/// is a child instance.
- ///
+ ///
/// IsChild flag makes it possible for the pipeline to differentiate between
/// a true v1 nested pipeline and the cmdlets calling cmdlets case. See bug
/// 211462.
- ///
+ ///
///
internal bool IsChild { get; private set; } = false;
@@ -1736,14 +1736,14 @@ namespace System.Management.Automation
///
/// Sets an associated Runspace for this PowerShell instance.
- /// This can be null in which case a new runspace is created
+ /// This can be null in which case a new runspace is created
/// whenever Invoke* method is called.
///
///
/// This property and RunspacePool are mutually exclusive; setting one of them resets the other to null
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1822,15 +1822,15 @@ namespace System.Management.Automation
/// Sets an associated RunspacePool for this PowerShell instance.
/// A Runspace from this pool is used whenever Invoke* method
/// is called.
- ///
- /// This can be null in which case a new runspace is created
+ ///
+ /// This can be null in which case a new runspace is created
/// whenever Invoke* method is called.
///
///
/// This property and Runspace are mutually exclusive; setting one of them resets the other to null
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -2003,7 +2003,7 @@ namespace System.Management.Automation
}
else
{
- // If this is not a reconstruct scenario then this must be a PowerShell object that was
+ // If this is not a reconstruct scenario then this must be a PowerShell object that was
// previously disconnected, and all state should be valid.
Dbg.Assert((_invokeAsyncResult != null && RemotePowerShell.Initialized),
"AsyncResult and RemotePowerShell objects must be valid here.");
@@ -2108,7 +2108,7 @@ namespace System.Management.Automation
#region Script Debugger Support
///
- /// This method allows the script debugger first crack at evaluating the
+ /// This method allows the script debugger first crack at evaluating the
/// command in case it is a debugger command, otherwise the command is
/// evaluated by PowerShell.
/// If the debugger evaluated a command then DebuggerCommand.ResumeAction
@@ -2163,7 +2163,7 @@ namespace System.Management.Automation
Commands.Commands[0].CommandText);
}
- // Remote PowerShell Invoke must always run Invoke so that the
+ // Remote PowerShell Invoke must always run Invoke so that the
// command can complete.
if (Commands.Commands.Count == 0 &&
invokeMustRun)
@@ -2200,7 +2200,7 @@ namespace System.Management.Automation
/// Object is disposed.
///
///
- /// Cannot perform the operation because the command is
+ /// Cannot perform the operation because the command is
/// already started.Stop the command and try the operation again.
/// (or)
/// No commands are specified.
@@ -2250,7 +2250,7 @@ namespace System.Management.Automation
///
/// Invoke the synchronously and return
- /// the output PSObject collection.
+ /// the output PSObject collection.
///
///
/// Input to the command
@@ -2262,7 +2262,7 @@ namespace System.Management.Automation
/// Object is disposed.
///
///
- /// Cannot perform the operation because the command is
+ /// Cannot perform the operation because the command is
/// already started.Stop the command and try the operation again.
/// (or)
/// No commands are specified.
@@ -2327,7 +2327,7 @@ namespace System.Management.Automation
/// Object is disposed.
///
///
- /// Cannot perform the operation because the command is
+ /// Cannot perform the operation because the command is
/// already started.Stop the command and try the operation again.
/// (or)
/// No commands are specified.
@@ -2380,7 +2380,7 @@ namespace System.Management.Automation
///
/// Invoke the synchronously and return
- /// the output.
+ /// the output.
///
///
/// Type of output object(s) expected from the command invocation.
@@ -2389,7 +2389,7 @@ namespace System.Management.Automation
/// Object is disposed.
///
///
- /// Cannot perform the operation because the command is
+ /// Cannot perform the operation because the command is
/// already started.Stop the command and try the operation again.
/// (or)
/// No commands are specified.
@@ -2434,7 +2434,7 @@ namespace System.Management.Automation
///
public Collection Invoke()
{
- // We should bind all the results to this instance except
+ // We should bind all the results to this instance except
// for output.
Collection result = new Collection();
Invoke(null, result, null);
@@ -2455,7 +2455,7 @@ namespace System.Management.Automation
/// Object is disposed.
///
///
- /// Cannot perform the operation because the command is
+ /// Cannot perform the operation because the command is
/// already started.Stop the command and try the operation again.
/// (or)
/// No commands are specified.
@@ -2522,7 +2522,7 @@ namespace System.Management.Automation
/// Object is disposed.
///
///
- /// Cannot perform the operation because the command is
+ /// Cannot perform the operation because the command is
/// already started.Stop the command and try the operation again.
/// (or)
/// No commands are specified.
@@ -2592,7 +2592,7 @@ namespace System.Management.Automation
/// Object is disposed.
///
///
- /// Cannot perform the operation because the command is
+ /// Cannot perform the operation because the command is
/// already started.Stop the command and try the operation again.
/// (or)
/// No commands are specified.
@@ -2803,21 +2803,21 @@ namespace System.Management.Automation
}
///
- /// Invoke the asynchronously.
+ /// Invoke the asynchronously.
/// Use EndInvoke() to obtain the output of the command.
///
///
/// When invoked using BeginInvoke, invocation doesn't
- /// finish until Input is closed. Caller of BeginInvoke must
+ /// finish until Input is closed. Caller of BeginInvoke must
/// close the input buffer after all input has been written to
- /// input buffer. Input buffer is closed by calling
+ /// input buffer. Input buffer is closed by calling
/// Close() method.
- ///
+ ///
/// If you want this command to execute as a standalone cmdlet
/// (that is, using command-line parameters only),
- /// be sure to call Close() before calling BeginInvoke(). Otherwise,
- /// the command will be executed as though it had external input.
- /// If you observe that the command isn't doing anything,
+ /// be sure to call Close() before calling BeginInvoke(). Otherwise,
+ /// the command will be executed as though it had external input.
+ /// If you observe that the command isn't doing anything,
/// this may be the reason.
///
///
@@ -2846,16 +2846,16 @@ namespace System.Management.Automation
///
///
/// When invoked using BeginInvoke, invocation doesn't
- /// finish until Input is closed. Caller of BeginInvoke must
+ /// finish until Input is closed. Caller of BeginInvoke must
/// close the input buffer after all input has been written to
- /// input buffer. Input buffer is closed by calling
+ /// input buffer. Input buffer is closed by calling
/// Close() method.
- ///
+ ///
/// If you want this command to execute as a standalone cmdlet
/// (that is, using command-line parameters only),
- /// be sure to call Close() before calling BeginInvoke(). Otherwise,
- /// the command will be executed as though it had external input.
- /// If you observe that the command isn't doing anything,
+ /// be sure to call Close() before calling BeginInvoke(). Otherwise,
+ /// the command will be executed as though it had external input.
+ /// If you observe that the command isn't doing anything,
/// this may be the reason.
///
///
@@ -2916,16 +2916,16 @@ namespace System.Management.Automation
///
///
/// When invoked using BeginInvoke, invocation doesn't
- /// finish until Input is closed. Caller of BeginInvoke must
+ /// finish until Input is closed. Caller of BeginInvoke must
/// close the input buffer after all input has been written to
- /// input buffer. Input buffer is closed by calling
+ /// input buffer. Input buffer is closed by calling
/// Close() method.
- ///
+ ///
/// If you want this command to execute as a standalone cmdlet
/// (that is, using command-line parameters only),
- /// be sure to call Close() before calling BeginInvoke(). Otherwise,
- /// the command will be executed as though it had external input.
- /// If you observe that the command isn't doing anything,
+ /// be sure to call Close() before calling BeginInvoke(). Otherwise,
+ /// the command will be executed as though it had external input.
+ /// If you observe that the command isn't doing anything,
/// this may be the reason.
///
///
@@ -2939,7 +2939,7 @@ namespace System.Management.Automation
///
///
/// A buffer supplied by the user where output is collected.
- ///
+ ///
///
/// Cannot perform the operation because the command is already started.
/// Stop the command and try the operation again.
@@ -2961,16 +2961,16 @@ namespace System.Management.Automation
///
///
/// When invoked using BeginInvoke, invocation doesn't
- /// finish until Input is closed. Caller of BeginInvoke must
+ /// finish until Input is closed. Caller of BeginInvoke must
/// close the input buffer after all input has been written to
- /// input buffer. Input buffer is closed by calling
+ /// input buffer. Input buffer is closed by calling
/// Close() method.
- ///
+ ///
/// If you want this command to execute as a standalone cmdlet
/// (that is, using command-line parameters only),
- /// be sure to call Close() before calling BeginInvoke(). Otherwise,
- /// the command will be executed as though it had external input.
- /// If you observe that the command isn't doing anything,
+ /// be sure to call Close() before calling BeginInvoke(). Otherwise,
+ /// the command will be executed as though it had external input.
+ /// If you observe that the command isn't doing anything,
/// this may be the reason.
///
///
@@ -3296,7 +3296,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
private void DetermineIsBatching()
{
@@ -3378,7 +3378,7 @@ namespace System.Management.Automation
}
///
- /// Waits for the pending asynchronous BeginInvoke to complete.
+ /// Waits for the pending asynchronous BeginInvoke to complete.
///
///
/// Instance of IAsyncResult returned by BeginInvoke.
@@ -3466,8 +3466,8 @@ namespace System.Management.Automation
/// Stop the currently running command asynchronously. If the command is not started,
/// the state of PowerShell instance is changed to Stopped and corresponding events
/// will be raised.
- ///
- /// The returned IAsyncResult object can be used to wait for the stop operation
+ ///
+ /// The returned IAsyncResult object can be used to wait for the stop operation
/// to complete.
///
///
@@ -3486,7 +3486,7 @@ namespace System.Management.Automation
}
///
- /// Waits for the pending asynchronous BeginStop to complete.
+ /// Waits for the pending asynchronous BeginStop to complete.
///
///
/// Instance of IAsyncResult returned by BeginStop.
@@ -3576,17 +3576,17 @@ namespace System.Management.Automation
///
/// This has been added as a work around for Windows8 bug 803461.
/// It should be used only for the PSJobProxy API.
- ///
+ ///
/// Resets the instance ID of the command to a new guid.
/// If this is not done, then there is a race condition on the server
/// in the following circumstances:
- ///
+ ///
/// ps.BeginInvoke(...);
/// ps.Stop()
/// ps.Commands.Clear();
/// ps.AddCommand("Foo");
/// ps.Invoke();
- ///
+ ///
/// In these conditions, stop returns before the server is done cleaning up.
/// The subsequent invoke will cause an error because the guid already
/// identifies a command in progress.
@@ -3763,7 +3763,7 @@ namespace System.Management.Automation
/// If changes are not allowed, throws an exception.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -3797,7 +3797,7 @@ namespace System.Management.Automation
}
///
- /// Release all the resources.
+ /// Release all the resources.
///
///
/// if true, release all the managed objects.
@@ -4050,8 +4050,8 @@ namespace System.Management.Automation
}
// Only raise the Disconnected state changed event if the PowerShell state
- // actually transitions to Disconnected from some other state. This condition
- // can happen when the corresponding runspace disconnects/connects multiple
+ // actually transitions to Disconnected from some other state. This condition
+ // can happen when the corresponding runspace disconnects/connects multiple
// times with the command remaining in Disconnected state.
if (previousState != PSInvocationState.Disconnected)
{
@@ -4094,7 +4094,7 @@ namespace System.Management.Automation
{
// If the previous state was disconnected and we are now running (reconnected),
// and we reconnected synchronously with pending input, then we need to close
- // the input buffer to allow the remote command to complete. Otherwise the
+ // the input buffer to allow the remote command to complete. Otherwise the
// synchronous Connect() method will wait indefinitely for the command to complete.
if (previousState == PSInvocationState.Disconnected &&
_commandInvokedSynchronously &&
@@ -4132,7 +4132,7 @@ namespace System.Management.Automation
}
///
- /// Performs the actual synchronous command invocation. The caller
+ /// Performs the actual synchronous command invocation. The caller
/// should check if it safe to call this method.
///
///
@@ -4460,7 +4460,7 @@ namespace System.Management.Automation
}
///
- /// Performs the actual asynchronous command invocation.
+ /// Performs the actual asynchronous command invocation.
///
/// Type of the input buffer
/// Type of the output buffer
@@ -4468,7 +4468,7 @@ namespace System.Management.Automation
/// input can be null
///
///
- ///
+ ///
///
/// A AsyncCallback to call once the BeginInvoke completes.
///
@@ -4485,7 +4485,7 @@ namespace System.Management.Automation
/// (or)
/// No command is added.
/// (or)
- /// BeginInvoke is called on nested powershell. Nested
+ /// BeginInvoke is called on nested powershell. Nested
/// Powershell cannot be executed Asynchronously.
///
///
@@ -4522,7 +4522,7 @@ namespace System.Management.Automation
lock (_syncObject)
{
- // for remoting case, when the state is set to
+ // for remoting case, when the state is set to
// Running, the message should have been sent
// to the server. In order to ensure the same
// all of the following are placed inside the
@@ -4531,7 +4531,7 @@ namespace System.Management.Automation
// 2. create remotePowerShell
// 3. Send message to server
- // set the execution state to running.. so changes
+ // set the execution state to running.. so changes
// to the current instance of powershell
// are blocked.
AssertExecutionNotStarted();
@@ -4673,7 +4673,7 @@ namespace System.Management.Automation
#endif
///
- ///
+ ///
///
/// Type for the input collection
/// Type for the output collection
@@ -4703,7 +4703,7 @@ namespace System.Management.Automation
if (shouldCreateWorker)
{
- // set the execution state to running.. so changes
+ // set the execution state to running.. so changes
// to the current instance of powershell
// are blocked.
InvocationStateInfo = new PSInvocationStateInfo(PSInvocationState.Running, null);
@@ -4822,7 +4822,7 @@ namespace System.Management.Automation
}
// If in the Disconnected state then stopping simply cuts loose the PowerShell object
- // so that a new one can be connected. The state is set to Failed since the command
+ // so that a new one can be connected. The state is set to Failed since the command
// cannot complete with this object.
if (isDisconnected)
{
@@ -4908,7 +4908,7 @@ namespace System.Management.Automation
Dbg.Assert(events != null,
"StopImplementation expects a Queue as parameter");
- // Raise the events outside of the lock..this way 3rd party callback
+ // Raise the events outside of the lock..this way 3rd party callback
// cannot hold our lock.
while (events.Count > 0)
{
@@ -5045,7 +5045,7 @@ namespace System.Management.Automation
private object _syncObject = new object();
///
- ///
+ ///
///
///
///
@@ -5065,7 +5065,7 @@ namespace System.Management.Automation
///
/// Sets the async result object that monitors a
- /// BeginGetRunspace async operation on the
+ /// BeginGetRunspace async operation on the
/// RunspacePool.
///
internal IAsyncResult GetRunspaceAsyncResult { get; set; }
@@ -5097,7 +5097,7 @@ namespace System.Management.Automation
/// false if InvokeAsync() should be used.
///
///
- /// All exceptions are caught and reported via a
+ /// All exceptions are caught and reported via a
/// PipelineStateChanged event.
///
internal void CreateRunspaceIfNeededAndDoWork(Runspace rsToUse, bool isSync)
@@ -5142,7 +5142,7 @@ namespace System.Management.Automation
{
// PipelineStateChangedEvent is not raised
// if there is an exception calling BeginInvoke
- // So raise the event here and notify the caller.
+ // So raise the event here and notify the caller.
lock (_syncObject)
{
if (_isNotActive)
@@ -5172,7 +5172,7 @@ namespace System.Management.Automation
/// AsyncResult object which monitors the asyncOperation.
///
///
- /// All exceptions are caught and reported via a
+ /// All exceptions are caught and reported via a
/// PipelineStateChanged event.
///
internal void RunspaceAvailableCallback(IAsyncResult asyncResult)
@@ -5213,8 +5213,8 @@ namespace System.Management.Automation
}
///
- /// Constructs a pipeline from the supplied runspace and invokes
- /// pipeline either synchronously or asynchronously identified by
+ /// Constructs a pipeline from the supplied runspace and invokes
+ /// pipeline either synchronously or asynchronously identified by
/// .
///
///
@@ -5225,7 +5225,7 @@ namespace System.Management.Automation
/// BeginInvoke() otherwise.
///
///
- /// 1.BeginInvoke is called on nested powershell. Nested
+ /// 1.BeginInvoke is called on nested powershell. Nested
/// Powershell cannot be executed Asynchronously.
///
///
@@ -5237,7 +5237,7 @@ namespace System.Management.Automation
Dbg.Assert(rs != null, "Runspace cannot be null in ConstructPipelineAndDoWork");
_shell.RunspaceAssigned.SafeInvoke(this, new PSEventArgs(rs));
- // lock is needed until a pipeline is created to
+ // lock is needed until a pipeline is created to
// make stop() cleanly release resources.
LocalRunspace lrs = rs as LocalRunspace;
@@ -5271,7 +5271,7 @@ namespace System.Management.Automation
CurrentlyRunningPipeline = localPipeline;
// register for pipeline state changed events within a lock...so that if
- // stop is called before invoke, we can listen to state transition and
+ // stop is called before invoke, we can listen to state transition and
// take appropriate action.
CurrentlyRunningPipeline.StateChanged += _shell.PipelineStateChanged;
}
@@ -5423,13 +5423,13 @@ namespace System.Management.Automation
#region Serialization / deserialization for remoting
///
- /// Creates a PowerShell object from a PSObject property bag.
+ /// Creates a PowerShell object from a PSObject property bag.
/// PSObject has to be in the format returned by ToPSObjectForRemoting method.
///
/// PSObject to rehydrate
///
/// PowerShell rehydrated from a PSObject property bag
- ///
+ ///
///
/// Thrown if the PSObject is null.
///
@@ -5630,7 +5630,7 @@ namespace System.Management.Automation
throw PSTraceSource.NewInvalidOperationException(PowerShellStrings.GetJobForCommandNotSupported);
}
- // check if the AsJob parameter has already
+ // check if the AsJob parameter has already
// been added. If not, add the same
bool found = false;
foreach (CommandParameter parameter in this.Commands.Commands[0].Parameters)
@@ -5723,14 +5723,14 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the error buffer. Powershell invocation writes
+ /// Gets or sets the error buffer. Powershell invocation writes
/// the error data into this buffer.
///
///
/// Cannot set to a null value.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -5751,11 +5751,11 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the progress buffer. Powershell invocation writes
+ /// Gets or sets the progress buffer. Powershell invocation writes
/// the progress data into this buffer. Can be null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -5776,11 +5776,11 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the verbose buffer. Powershell invocation writes
+ /// Gets or sets the verbose buffer. Powershell invocation writes
/// the verbose data into this buffer. Can be null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -5801,11 +5801,11 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the debug buffer. Powershell invocation writes
+ /// Gets or sets the debug buffer. Powershell invocation writes
/// the debug data into this buffer. Can be null.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -5826,14 +5826,14 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the warning buffer. Powershell invocation writes
+ /// Gets or sets the warning buffer. Powershell invocation writes
/// the warning data into this buffer. Can be null.
///
///
/// Cannot set to a null value.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -5854,14 +5854,14 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the information buffer. Powershell invocation writes
+ /// Gets or sets the information buffer. Powershell invocation writes
/// the warning data into this buffer. Can be null.
///
///
/// Cannot set to a null value.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
diff --git a/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs b/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
index c1aa0523c5..55947576c3 100644
--- a/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
+++ b/src/System.Management.Automation/engine/hostifaces/PowerShellProcessInstance.cs
@@ -13,7 +13,7 @@ using System.Diagnostics;
namespace System.Management.Automation.Runspaces
{
///
- ///
+ ///
///
public sealed class PowerShellProcessInstance : IDisposable
{
@@ -32,21 +32,21 @@ namespace System.Management.Automation.Runspaces
#region Constructors
///
- ///
+ ///
///
static PowerShellProcessInstance()
{
#if UNIX
s_PSExePath = Path.Combine(Utils.GetApplicationBase(Utils.DefaultPowerShellShellID),
"powershell");
-#else
+#else
s_PSExePath = Path.Combine(Utils.GetApplicationBase(Utils.DefaultPowerShellShellID),
"powershell.exe");
-#endif
+#endif
}
///
- ///
+ ///
///
///
///
@@ -78,9 +78,9 @@ namespace System.Management.Automation.Runspaces
#if CORECLR
string processArguments = " -s -NoLogo -NoProfile";
-#else
+#else
// Adding Version parameter to powershell.exe
- // Version parameter needs to go before all other parameters because the native layer looks for Version or
+ // Version parameter needs to go before all other parameters because the native layer looks for Version or
// PSConsoleFile parameters before parsing other parameters.
// The other parameters get parsed in the managed layer.
Version tempVersion = powerShellVersion ?? PSVersionInfo.PSVersion;
@@ -115,7 +115,7 @@ namespace System.Management.Automation.Runspaces
RedirectStandardOutput = true,
RedirectStandardError = true,
CreateNoWindow = true,
-#if !UNIX
+#if !UNIX
LoadUserProfile = true,
#endif
};
@@ -137,7 +137,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
public PowerShellProcessInstance() : this(null, null, null, false)
{
@@ -152,8 +152,8 @@ namespace System.Management.Automation.Runspaces
get
{
// When process is exited, there is some delay in receiving ProcessExited event and HasExited property on process object.
- // Using HasExited property on started process object to determine if powershell process has exited.
- //
+ // Using HasExited property on started process object to determine if powershell process has exited.
+ //
return _processExited || (_started && Process != null && Process.HasExited);
}
}
@@ -162,7 +162,7 @@ namespace System.Management.Automation.Runspaces
#region Dispose
///
- ///
+ ///
///
public void Dispose()
{
@@ -170,7 +170,7 @@ namespace System.Management.Automation.Runspaces
GC.SuppressFinalize(this);
}
///
- ///
+ ///
///
///
private void Dispose(bool disposing)
@@ -205,7 +205,7 @@ namespace System.Management.Automation.Runspaces
#region Public Properties
///
- ///
+ ///
///
public Process Process { get; }
diff --git a/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs b/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs
index d11aa891ed..fd413d18fd 100644
--- a/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs
+++ b/src/System.Management.Automation/engine/hostifaces/RunspaceInvoke.cs
@@ -44,7 +44,7 @@ namespace System.Management.Automation
///
///
/// Thrown when runspaceConfiguration is null
- ///
+ ///
public RunspaceInvoke(RunspaceConfiguration runspaceConfiguration)
{
if (runspaceConfiguration == null)
@@ -63,14 +63,14 @@ namespace System.Management.Automation
/// Creates a RunspaceInvoke for invoking commands. Underlying Runspace is created using the
/// specified console file.
///
- /// Console file used for creating the underlying
+ /// Console file used for creating the underlying
/// runspace.
///
/// Thrown when consoleFilePath is null
- ///
+ ///
///
/// Thrown when errors occurs in loading one or more PSSnapins.
- ///
+ ///
public RunspaceInvoke(string consoleFilePath)
{
if (consoleFilePath == null)
@@ -93,7 +93,7 @@ namespace System.Management.Automation
}
///
- /// Create RunspaceInvoke for invoking command in specified
+ /// Create RunspaceInvoke for invoking command in specified
/// runspace.
///
///
diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs
index 1a4f070999..10c3d54706 100644
--- a/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs
+++ b/src/System.Management.Automation/engine/hostifaces/RunspacePool.cs
@@ -19,9 +19,9 @@ namespace System.Management.Automation.Runspaces
{
#region Exceptions
///
- /// Exception thrown when state of the runspace pool is different from
+ /// Exception thrown when state of the runspace pool is different from
/// expected state of runspace pool.
- ///
+ ///
[Serializable]
public class InvalidRunspacePoolStateException : SystemException
{
@@ -51,7 +51,7 @@ namespace System.Management.Automation.Runspaces
/// Creates a new instance of InvalidRunspacePoolStateException class.
///
///
- /// The error message that explains the reason for the exception.
+ /// The error message that explains the reason for the exception.
///
///
/// The exception that is the cause of the current exception.
@@ -62,7 +62,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Initializes a new instance of the InvalidRunspacePoolStateException
+ /// Initializes a new instance of the InvalidRunspacePoolStateException
/// with a specified error message and current and expected state.
///
/// The message that describes the error.
@@ -91,11 +91,11 @@ namespace System.Management.Automation.Runspaces
/// class with serialized data.
///
///
- /// The that holds
+ /// The that holds
/// the serialized object data about the exception being thrown.
///
///
- /// The that contains
+ /// The that contains
/// contextual information about the source or destination.
///
protected
@@ -121,7 +121,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Expected state of runspace pool by the operation which has thrown
+ /// Expected state of runspace pool by the operation which has thrown
/// this exception.
///
public RunspacePoolState ExpectedState
@@ -266,7 +266,7 @@ namespace System.Management.Automation.Runspaces
}
///
- ///
+ ///
///
///
internal RunspacePoolStateChangedEventArgs(RunspacePoolStateInfo stateInfo)
@@ -301,7 +301,7 @@ namespace System.Management.Automation.Runspaces
#region Constructors
- ///
+ ///
///
///
internal RunspaceCreatedEventArgs(Runspace runspace)
@@ -338,8 +338,8 @@ namespace System.Management.Automation.Runspaces
Available = 1,
///
- /// RunspacePool on the server is connected to another
- /// client and is not available to this client for connection
+ /// RunspacePool on the server is connected to another
+ /// client and is not available to this client for connection
/// or running commands.
///
Busy = 2
@@ -505,7 +505,7 @@ namespace System.Management.Automation.Runspaces
#region RunspacePool
///
- /// Public interface which supports pooling PowerShell Runspaces.
+ /// Public interface which supports pooling PowerShell Runspaces.
///
public sealed class RunspacePool : IDisposable
{
@@ -522,7 +522,7 @@ namespace System.Management.Automation.Runspaces
#region Internal Constructor
///
- /// Constructor which creates a RunspacePool using the
+ /// Constructor which creates a RunspacePool using the
/// supplied ,
/// and
///
@@ -531,14 +531,14 @@ namespace System.Management.Automation.Runspaces
/// Should be greater than or equal to 1.
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
/// RunspaceConfiguration to use when creating a new Runspace.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// RunspaceConfiguration is null.
@@ -552,7 +552,7 @@ namespace System.Management.Automation.Runspaces
RunspaceConfiguration runspaceConfiguration, PSHost host)
{
// Currently we support only Local Runspace Pool..
- // this needs to be changed once remote runspace pool
+ // this needs to be changed once remote runspace pool
// is implemented
_internalPool = new RunspacePoolInternal(minRunspaces,
@@ -560,7 +560,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Constructor which creates a RunspacePool using the
+ /// Constructor which creates a RunspacePool using the
/// supplied ,
/// and
///
@@ -569,14 +569,14 @@ namespace System.Management.Automation.Runspaces
/// Should be greater than or equal to 1.
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
/// InitialSessionState object to use when creating a new Runspace.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// initialSessionState is null.
@@ -590,7 +590,7 @@ namespace System.Management.Automation.Runspaces
InitialSessionState initialSessionState, PSHost host)
{
// Currently we support only Local Runspace Pool..
- // this needs to be changed once remote runspace pool
+ // this needs to be changed once remote runspace pool
// is implemented
_internalPool = new RunspacePoolInternal(minRunspaces,
@@ -666,7 +666,7 @@ namespace System.Management.Automation.Runspaces
#region Public Properties
///
- /// Get unique id for this instance of runspace pool. It is primarily used
+ /// Get unique id for this instance of runspace pool. It is primarily used
/// for logging purposes.
///
public Guid InstanceId
@@ -741,11 +741,11 @@ namespace System.Management.Automation.Runspaces
#endregion
- #region events
+ #region events
///
/// Event raised when RunspacePoolState changes.
- ///
+ ///
public event EventHandler StateChanged
{
add
@@ -756,7 +756,7 @@ namespace System.Management.Automation.Runspaces
InternalStateChanged += value;
if (firstEntry)
{
- // call any event handlers on this object, replacing the
+ // call any event handlers on this object, replacing the
// internalPool sender with 'this' since receivers
// are expecting a RunspacePool.
_internalPool.StateChanged +=
@@ -797,7 +797,7 @@ namespace System.Management.Automation.Runspaces
}
}
- // call any event handlers on this, replacing the
+ // call any event handlers on this, replacing the
// internalPool sender with 'this' since receivers
// are expecting a RunspacePool
InternalStateChanged.SafeInvoke(this, args);
@@ -805,7 +805,7 @@ namespace System.Management.Automation.Runspaces
///
/// Event raised when one of the runspaces in the pool forwards an event to this instance
- ///
+ ///
internal event EventHandler ForwardEvent
{
add
@@ -871,7 +871,7 @@ namespace System.Management.Automation.Runspaces
InternalRunspaceCreated += value;
if (firstEntry)
{
- // call any event handlers on this object, replacing the
+ // call any event handlers on this object, replacing the
// internalPool sender with 'this' since receivers
// are expecting a RunspacePool.
_internalPool.RunspaceCreated += OnRunspaceCreated;
@@ -899,7 +899,7 @@ namespace System.Management.Automation.Runspaces
///
private void OnRunspaceCreated(object source, RunspaceCreatedEventArgs args)
{
- // call any event handlers on this, replacing the
+ // call any event handlers on this, replacing the
// internalPool sender with 'this' since receivers
// are expecting a RunspacePool
InternalRunspaceCreated.SafeInvoke(this, args);
@@ -1010,7 +1010,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Creates an array of PowerShell objects that are in the Disconnected state for
+ /// Creates an array of PowerShell objects that are in the Disconnected state for
/// all currently disconnected running commands associated with this runspace pool.
///
///
@@ -1034,7 +1034,7 @@ namespace System.Management.Automation.Runspaces
///
/// Sets the maximum number of Runspaces that can be active concurrently
- /// in the pool. All requests above that number remain queued until
+ /// in the pool. All requests above that number remain queued until
/// runspaces become available.
///
///
@@ -1044,7 +1044,7 @@ namespace System.Management.Automation.Runspaces
/// true if the change is successful; otherwise, false.
///
///
- /// You cannot set the number of runspaces to a number smaller than
+ /// You cannot set the number of runspaces to a number smaller than
/// the minimum runspaces.
///
public bool SetMaxRunspaces(int maxRunspaces)
@@ -1074,7 +1074,7 @@ namespace System.Management.Automation.Runspaces
/// true if the change is successful; otherwise, false.
///
///
- /// You cannot set the number of idle runspaces to a number smaller than
+ /// You cannot set the number of idle runspaces to a number smaller than
/// 1 or greater than maximum number of active runspaces.
///
public bool SetMinRunspaces(int minRunspaces)
@@ -1095,7 +1095,7 @@ namespace System.Management.Automation.Runspaces
///
/// Retrieves the number of runspaces available at the time of calling
- /// this method.
+ /// this method.
///
///
/// The number of available runspace in the pool.
@@ -1106,7 +1106,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Opens the runspacepool synchronously. RunspacePool must
+ /// Opens the runspacepool synchronously. RunspacePool must
/// be opened before it can be used.
///
///
@@ -1140,7 +1140,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Waits for the pending asynchronous BeginOpen to complete.
+ /// Waits for the pending asynchronous BeginOpen to complete.
///
///
/// asyncResult is a null reference.
@@ -1200,7 +1200,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Waits for the pending asynchronous BeginClose to complete.
+ /// Waits for the pending asynchronous BeginClose to complete.
///
///
/// asyncResult is a null reference.
@@ -1225,14 +1225,14 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Private data to be used by applications built on top of PowerShell.
- ///
+ /// Private data to be used by applications built on top of PowerShell.
+ ///
/// Local runspace pool is created with application private data set to an empty .
- ///
- /// Remote runspace pool gets its application private data from the server (when creating the remote runspace pool)
- /// Calling this method on a remote runspace pool will block until the data is received from the server.
+ ///
+ /// Remote runspace pool gets its application private data from the server (when creating the remote runspace pool)
+ /// Calling this method on a remote runspace pool will block until the data is received from the server.
/// The server will send application private data before reaching state.
- ///
+ ///
/// Runspaces that are part of a inherit application private data from the pool.
///
public PSPrimitiveDictionary GetApplicationPrivateData()
@@ -1331,7 +1331,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Waits for the pending asynchronous BeginGetRunspace to complete.
+ /// Waits for the pending asynchronous BeginGetRunspace to complete.
///
///
///
@@ -1361,7 +1361,7 @@ namespace System.Management.Automation.Runspaces
/// is null.
///
///
- /// Cannot release the runspace to this pool as the runspace
+ /// Cannot release the runspace to this pool as the runspace
/// doesn't belong to this pool.
///
///
diff --git a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs
index ce491952c1..bd43333cde 100644
--- a/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs
+++ b/src/System.Management.Automation/engine/hostifaces/RunspacePoolInternal.cs
@@ -14,7 +14,7 @@ using System.Collections.ObjectModel;
namespace System.Management.Automation.Runspaces.Internal
{
///
- /// Class which supports pooling local powerShell runspaces.
+ /// Class which supports pooling local powerShell runspaces.
///
internal class RunspacePoolInternal
{
@@ -49,14 +49,14 @@ namespace System.Management.Automation.Runspaces.Internal
///
/// Constructor which creates a RunspacePool using the
- /// supplied ,
+ /// supplied ,
/// and
///
///
/// RunspaceConfiguration to use when creating a new Runspace.
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
@@ -64,7 +64,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// Should be greater than or equal to 1.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// RunspaceConfiguration is null.
@@ -99,14 +99,14 @@ namespace System.Management.Automation.Runspaces.Internal
///
/// Constructor which creates a RunspacePool using the
- /// supplied ,
+ /// supplied ,
/// and
///
///
/// InitialSessionState to use when creating a new Runspace.
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
@@ -114,7 +114,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// Should be greater than or equal to 1.
///
///
- /// The explicit PSHost implementation.
+ /// The explicit PSHost implementation.
///
///
/// initialSessionState is null.
@@ -157,7 +157,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// this class and its derivatives
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
@@ -201,7 +201,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region Public Properties
///
- /// Get unique id for this instance of runspace pool. It is primarily used
+ /// Get unique id for this instance of runspace pool. It is primarily used
/// for logging purposes.
///
public Guid InstanceId
@@ -235,8 +235,8 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Private data to be used by applications built on top of PowerShell.
- ///
+ /// Private data to be used by applications built on top of PowerShell.
+ ///
/// Local runspace pool is created with application private data set to an empty .
///
internal virtual PSPrimitiveDictionary GetApplicationPrivateData()
@@ -331,12 +331,12 @@ namespace System.Management.Automation.Runspaces.Internal
///
/// Event raised when RunspacePoolState changes.
- ///
+ ///
public event EventHandler StateChanged;
///
/// Event raised when one of the runspaces in the pool forwards an event to this instance
- ///
+ ///
public event EventHandler ForwardEvent;
///
@@ -405,7 +405,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Creates an array of PowerShell objects that are in the Disconnected state for
+ /// Creates an array of PowerShell objects that are in the Disconnected state for
/// all currently disconnected running commands associated with this runspace pool.
///
///
@@ -440,7 +440,7 @@ namespace System.Management.Automation.Runspaces.Internal
///
/// Sets the maximum number of Runspaces that can be active concurrently
- /// in the pool. All requests above that number remain queued until
+ /// in the pool. All requests above that number remain queued until
/// runspaces become available.
///
///
@@ -450,7 +450,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// true if the change is successful; otherwise, false.
///
///
- /// You cannot set the number of runspaces to a number smaller than
+ /// You cannot set the number of runspaces to a number smaller than
/// the minimum runspaces.
///
internal virtual bool SetMaxRunspaces(int maxRunspaces)
@@ -515,7 +515,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// true if the change is successful; otherwise, false.
///
///
- /// You cannot set the number of idle runspaces to a number smaller than
+ /// You cannot set the number of idle runspaces to a number smaller than
/// 1 or greater than maximum number of active runspaces.
///
internal virtual bool SetMinRunspaces(int minRunspaces)
@@ -546,7 +546,7 @@ namespace System.Management.Automation.Runspaces.Internal
///
/// Retrieves the number of runspaces available at the time of calling
- /// this method.
+ /// this method.
///
///
/// If the RunspacePool failed or has been closed
@@ -590,7 +590,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Opens the runspacepool synchronously. RunspacePool must
+ /// Opens the runspacepool synchronously. RunspacePool must
/// be opened before it can be used.
///
///
@@ -624,7 +624,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Waits for the pending asynchronous BeginOpen to complete.
+ /// Waits for the pending asynchronous BeginOpen to complete.
///
///
/// asyncResult is a null reference.
@@ -697,7 +697,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Waits for the pending asynchronous BeginClose to complete.
+ /// Waits for the pending asynchronous BeginClose to complete.
///
///
/// asyncResult object was not created by calling BeginClose
@@ -737,7 +737,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// An opened Runspace.
///
///
- /// Cannot perform operation because RunspacePool is
+ /// Cannot perform operation because RunspacePool is
/// not in the opened state.
///
public Runspace GetRunspace()
@@ -772,7 +772,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// Runspool is not in Opened state.
///
///
- /// Cannot release the runspace to this pool as the runspace
+ /// Cannot release the runspace to this pool as the runspace
/// doesn't belong to this pool.
///
public void ReleaseRunspace(Runspace runspace)
@@ -864,7 +864,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region Internal Methods
///
- /// The value of this property is propagated to all the Runspaces in this pool;
+ /// The value of this property is propagated to all the Runspaces in this pool;
/// it determines whether a new thread is create when a pipeline is executed.
///
///
@@ -937,7 +937,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Waits for the pending asynchronous BeginGetRunspace to complete.
+ /// Waits for the pending asynchronous BeginGetRunspace to complete.
///
///
///
@@ -977,7 +977,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Opens the runspacepool synchronously / asynchronously.
+ /// Opens the runspacepool synchronously / asynchronously.
/// Runspace pool must be opened before it can be used.
///
///
@@ -991,7 +991,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// with.
///
///
- /// asyncResult object to monitor status of the async
+ /// asyncResult object to monitor status of the async
/// open operation. This is returned only if
/// is true.
///
@@ -1000,7 +1000,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// the BeforeOpen state.
///
///
- /// There is not enough memory available to start this asynchronously.
+ /// There is not enough memory available to start this asynchronously.
///
protected virtual IAsyncResult CoreOpen(bool isAsync, AsyncCallback callback,
object asyncState)
@@ -1030,7 +1030,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Creates a Runspace + opens it synchronously and
+ /// Creates a Runspace + opens it synchronously and
/// pushes it into the stack.
///
///
@@ -1043,7 +1043,7 @@ namespace System.Management.Automation.Runspaces.Internal
PSEtwLog.SetActivityIdForCurrentThread(this.InstanceId);
// Create a Runspace and store it in the pool
// for future use. This will validate whether
- // a runspace can be created + opened successfully
+ // a runspace can be created + opened successfully
Runspace rs = CreateRunspace();
pool.Push(rs);
}
@@ -1107,7 +1107,7 @@ namespace System.Management.Automation.Runspaces.Internal
{
Dbg.Assert(o is AsyncResult, "OpenThreadProc expects AsyncResult");
// Since this is an internal method, we can safely cast the
- // object to AsyncResult object.
+ // object to AsyncResult object.
AsyncResult asyncObject = (AsyncResult)o;
// variable to keep track of exceptions.
Exception exception = null;
@@ -1129,7 +1129,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Closes the runspacepool synchronously / asynchronously.
+ /// Closes the runspacepool synchronously / asynchronously.
///
///
/// true to close asynchronously
@@ -1142,7 +1142,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// with.
///
///
- /// asyncResult object to monitor status of the async
+ /// asyncResult object to monitor status of the async
/// open operation. This is returned only if
/// is true.
///
@@ -1204,7 +1204,7 @@ namespace System.Management.Automation.Runspaces.Internal
{
Dbg.Assert(o is AsyncResult, "CloseThreadProc expects AsyncResult");
// Since this is an internal method, we can safely cast the
- // object to AsyncResult object.
+ // object to AsyncResult object.
AsyncResult asyncObject = (AsyncResult)o;
// variable to keep track of exceptions.
Exception exception = null;
@@ -1245,7 +1245,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// If not throws an exception.
///
///
- /// Cannot perform operation because RunspacePool is
+ /// Cannot perform operation because RunspacePool is
/// not in the opened state.
///
internal void AssertPoolIsOpen()
@@ -1526,12 +1526,12 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Releases any readers in the reader queue waiting for
+ /// Releases any readers in the reader queue waiting for
/// Runspace.
///
///
/// This is of type object..because this method is called from a ThreadPool
- /// Thread.
+ /// Thread.
/// true, if calling thread should be used to assign a runspace.
///
protected void ServicePendingRequests(object useCallingThreadState)
@@ -1580,7 +1580,7 @@ namespace System.Management.Automation.Runspaces.Internal
{
// TODO: how to handle exceptions if runspace
// creation fails.
- // Create a new runspace..since the max limit is
+ // Create a new runspace..since the max limit is
// not reached.
result = CreateRunspace();
}
@@ -1588,7 +1588,7 @@ namespace System.Management.Automation.Runspaces.Internal
// Dequeue a runspace request
runspaceRequester = ultimateRequestQueue.Dequeue();
- // if the runspace is not active send the runspace back to
+ // if the runspace is not active send the runspace back to
// the pool and process other requests
if (!runspaceRequester.IsActive)
{
@@ -1603,10 +1603,10 @@ namespace System.Management.Automation.Runspaces.Internal
// release readers waiting for runspace on a thread pool
// thread.
runspaceRequester.Runspace = result;
- // release the async operation on a thread pool thread.
+ // release the async operation on a thread pool thread.
if (useCallingThread)
{
- // call DoComplete outside of the lock..as the
+ // call DoComplete outside of the lock..as the
// DoComplete handler may handle the runspace
// in the same thread thereby blocking future
// servicing requests.
@@ -1648,7 +1648,7 @@ namespace System.Management.Automation.Runspaces.Internal
if ((useCallingThread) && (null != runspaceRequester))
{
- // call DoComplete outside of the lock and finally..as the
+ // call DoComplete outside of the lock and finally..as the
// DoComplete handler may handle the runspace in the same
// thread thereby blocking future servicing requests.
runspaceRequester.DoComplete(null);
@@ -1663,7 +1663,7 @@ namespace System.Management.Automation.Runspaces.Internal
{
if (stateInfo.State != RunspacePoolState.BeforeOpen)
{
- //Call fails if RunspacePoolState is not BeforeOpen.
+ //Call fails if RunspacePoolState is not BeforeOpen.
InvalidRunspacePoolStateException e =
new InvalidRunspacePoolStateException
(
diff --git a/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs b/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs
index fab3f2ae76..898434aefc 100644
--- a/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs
+++ b/src/System.Management.Automation/engine/hostifaces/internalHostuserInterfacesecurity.cs
@@ -13,9 +13,9 @@ namespace System.Management.Automation.Internal.Host
class InternalHostUserInterface : PSHostUserInterface
{
///
- ///
+ ///
/// See base class
- ///
+ ///
///
public override
@@ -35,9 +35,9 @@ namespace System.Management.Automation.Internal.Host
}
///
- ///
+ ///
/// See base class
- ///
+ ///
///
public override
@@ -64,8 +64,8 @@ namespace System.Management.Automation.Internal.Host
}
catch (PipelineStoppedException)
{
- //PipelineStoppedException is thrown by host when it wants
- //to stop the pipeline.
+ //PipelineStoppedException is thrown by host when it wants
+ //to stop the pipeline.
LocalPipeline lpl = (LocalPipeline)((RunspaceBase)_parent.Context.CurrentRunspace).GetCurrentlyRunningPipeline();
if (lpl == null)
{
diff --git a/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs b/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs
index 378acf395b..d7ef5a74b7 100644
--- a/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs
+++ b/src/System.Management.Automation/engine/hostifaces/pipelinebase.cs
@@ -15,7 +15,7 @@ namespace System.Management.Automation.Runspaces
#pragma warning disable 1634, 1691 // Stops compiler from warning about unknown warnings
///
- /// This class has common base implementation for Pipeline class.
+ /// This class has common base implementation for Pipeline class.
/// LocalPipeline and RemotePipeline classes derives from it.
///
internal abstract class PipelineBase : Pipeline
@@ -53,7 +53,7 @@ namespace System.Management.Automation.Runspaces
///
/// The command to invoke.
///
- ///
+ ///
/// If true, add the command to history.
///
///
@@ -121,7 +121,7 @@ namespace System.Management.Automation.Runspaces
/// The copy constructor's intent is to support the scenario
/// where a host needs to run the same set of commands multiple
/// times. This is accomplished via creating a master pipeline
- /// then cloning it and executing the cloned copy.
+ /// then cloning it and executing the cloned copy.
///
protected PipelineBase(PipelineBase pipeline)
: this(pipeline.Runspace, null, false, pipeline.IsNested)
@@ -252,7 +252,7 @@ namespace System.Management.Automation.Runspaces
///
/// Is this pipeline a child pipeline?
- ///
+ ///
/// IsChild flag makes it possible for the pipeline to differentiate between
/// a true v1 nested pipeline and the cmdlets calling cmdlets case. See bug
/// 211462.
@@ -297,13 +297,13 @@ namespace System.Management.Automation.Runspaces
SetPipelineState(PipelineState.Stopped);
break;
- //If pipeline execution has failed or completed or
- //stoped, return silently.
+ //If pipeline execution has failed or completed or
+ //stoped, return silently.
case PipelineState.Stopped:
case PipelineState.Completed:
case PipelineState.Failed:
return;
- //If pipeline is in Stopping state, ignore the second
+ //If pipeline is in Stopping state, ignore the second
//stop.
case PipelineState.Stopping:
alreadyStopping = true;
@@ -337,9 +337,9 @@ namespace System.Management.Automation.Runspaces
{
if (PipelineState == PipelineState.Stopped)
{
- //Note:if we have reached here, Stopped state was set
+ //Note:if we have reached here, Stopped state was set
//in PipelineState.NotStarted case above. Only other
- //way Stopped can be set when this method calls
+ //way Stopped can be set when this method calls
//StopHelper below
return;
}
@@ -360,16 +360,16 @@ namespace System.Management.Automation.Runspaces
#region invoke
///
- /// Invoke the pipeline, synchronously, returning the results as an
+ /// Invoke the pipeline, synchronously, returning the results as an
/// array of objects.
///
/// an array of input objects to pass to the pipeline.
/// Array may be empty but may not be null
/// An array of zero or more result objects
/// Caller of synchronous exectute should not close
- /// input objectWriter. Synchronous invoke will always close the input
+ /// input objectWriter. Synchronous invoke will always close the input
/// objectWriter.
- ///
+ ///
/// On Synchronous Invoke if output is throttled and no one is reading from
/// output pipe, Execution will block after buffer is full.
///
@@ -433,11 +433,11 @@ namespace System.Management.Automation.Runspaces
protected bool SyncInvokeCall { get; private set; }
///
- /// Invoke the pipeline asynchronously with input.
+ /// Invoke the pipeline asynchronously with input.
///
- /// input to provide to pipeline. Input is
+ /// input to provide to pipeline. Input is
/// used only for synchronous execution
- /// True if this method is called from
+ /// True if this method is called from
/// synchronous invoke else false
///
/// Results are returned through the reader.
@@ -449,11 +449,11 @@ namespace System.Management.Automation.Runspaces
/// PipelineState is not NotStarted.
///
///
- /// 1) A pipeline is already executing. Pipeline cannot execute
+ /// 1) A pipeline is already executing. Pipeline cannot execute
/// concurrently.
- /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
+ /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
/// cannot be executed Asynchronously.
- /// 3) Attempt is made to invoke a nested pipeline directly. Nested
+ /// 3) Attempt is made to invoke a nested pipeline directly. Nested
/// pipeline must be invoked from a running pipeline.
///
///
@@ -495,10 +495,10 @@ namespace System.Management.Automation.Runspaces
//Method is called from synchronous invoke.
if (input != null)
{
- //TO-DO-Add a test make sure that ObjectDisposed
+ //TO-DO-Add a test make sure that ObjectDisposed
//exception is thrown
//Write input data in to inputStream and close the input
- //pipe. If Input stream is already closed an
+ //pipe. If Input stream is already closed an
//ObjectDisposed exception will be thrown
foreach (object temp in input)
{
@@ -511,17 +511,17 @@ namespace System.Management.Automation.Runspaces
SyncInvokeCall = syncCall;
//Create event which will be signalled when pipeline execution
- //is completed/failed/stoped.
+ //is completed/failed/stoped.
//Note:Runspace.Close waits for all the running pipeline
- //to finish. This Event must be created before pipeline is
+ //to finish. This Event must be created before pipeline is
//added to list of running pipelines. This avoids the race condition
- //where Close is called after pipeline is added to list of
+ //where Close is called after pipeline is added to list of
//running pipeline but before event is created.
PipelineFinishedEvent = new ManualResetEvent(false);
- //1) Do the check to ensure that pipeline no other
+ //1) Do the check to ensure that pipeline no other
// pipeline is running.
- //2) Runspace object maintains a list of pipelines in
+ //2) Runspace object maintains a list of pipelines in
//execution. Add this pipeline to the list.
RunspaceBase.DoConcurrentCheckAndAddToRunningPipelines(this, syncCall);
@@ -589,7 +589,7 @@ namespace System.Management.Automation.Runspaces
/// In case of LocalPipeline, this is the thread of execution
/// of LocalPipeline. In case of RemotePipeline, this is thread
/// on which EnterNestedPrompt is called.
- /// RemotePipeline proxy should set it on at the beginning of
+ /// RemotePipeline proxy should set it on at the beginning of
/// EnterNestedPrompt and clear it on return.
///
internal Thread NestedPipelineExecutionThread { get; set; }
@@ -604,11 +604,11 @@ namespace System.Management.Automation.Runspaces
/// The sync object on which the lock is acquired
/// True if the method is invoked in a critical section
///
- /// 1) A pipeline is already executing. Pipeline cannot execute
+ /// 1) A pipeline is already executing. Pipeline cannot execute
/// concurrently.
- /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
+ /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
/// cannot be executed Asynchronously.
- /// 3) Attempt is made to invoke a nested pipeline directly. Nested
+ /// 3) Attempt is made to invoke a nested pipeline directly. Nested
/// pipeline must be invoked from a running pipeline.
///
internal void DoConcurrentCheck(bool syncCall, object syncObject, bool isInLock)
@@ -758,7 +758,7 @@ namespace System.Management.Automation.Runspaces
///
/// This is queue of all the state change event which have occured for
- /// this pipeline. RaisePipelineStateEvents raises event for each
+ /// this pipeline. RaisePipelineStateEvents raises event for each
/// item in this queue. We don't raise the event with in SetPipelineState
/// because often SetPipelineState is called with in a lock.
/// Raising event in lock introduces chances of deadlock in GUI applications.
@@ -784,13 +784,13 @@ namespace System.Management.Automation.Runspaces
///
/// the new state
///
- /// An exception indicating that state change is the result of an error,
+ /// An exception indicating that state change is the result of an error,
/// otherwise; null.
///
///
/// Sets the internal execution state information member variable. It
/// also adds PipelineStateInfo to a queue. RaisePipelineStateEvents
- /// raises event for each item in this queue.
+ /// raises event for each item in this queue.
///
protected void SetPipelineState(PipelineState state, Exception reason)
{
@@ -800,10 +800,10 @@ namespace System.Management.Automation.Runspaces
{
_pipelineStateInfo = new PipelineStateInfo(state, reason);
- //Add _pipelineStateInfo to _executionEventQueue.
+ //Add _pipelineStateInfo to _executionEventQueue.
//RaisePipelineStateEvents will raise event for each item
//in this queue.
- //Note:We are doing clone here instead of passing the member
+ //Note:We are doing clone here instead of passing the member
//_pipelineStateInfo because we donot want outside
//to change pipeline state.
RunspaceAvailability previousAvailability = _runspace.RunspaceAvailability;
@@ -822,7 +822,7 @@ namespace System.Management.Automation.Runspaces
///
/// Set the new execution state
///
- /// the new state
+ /// the new state
protected void SetPipelineState(PipelineState state)
{
SetPipelineState(state, null);
@@ -849,8 +849,8 @@ namespace System.Management.Automation.Runspaces
}
else
{
- //Clear the events if there are no EventHandlers. This
- //ensures that events do not get called for state
+ //Clear the events if there are no EventHandlers. This
+ //ensures that events do not get called for state
//changes prior to their registration.
_executionEventQueue.Clear();
}
@@ -887,7 +887,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// ManualResetEvent which is signaled when pipeline execution is
+ /// ManualResetEvent which is signaled when pipeline execution is
/// completed/failed/stoped.
///
internal ManualResetEvent PipelineFinishedEvent { get; private set; }
@@ -908,7 +908,7 @@ namespace System.Management.Automation.Runspaces
/// ErrorStream from PipelineProcessor. Host will read on
/// ObjectReader of this stream. PipelineProcessor will write to
/// ObjectWriter of this stream.
- ///
+ ///
protected ObjectStreamBase ErrorStream
{
get
@@ -942,14 +942,14 @@ namespace System.Management.Automation.Runspaces
/// warning emanating from the command execution.
///
///
- /// Informational buffers are introduced after 1.0. This can be
+ /// Informational buffers are introduced after 1.0. This can be
/// null if executing command as part of 1.0 hosting interfaces.
///
protected PSInformationalBuffers InformationalBuffers { get; }
///
/// Stream for providing input to PipelineProcessor. Host will write on
- /// ObjectWriter of this stream. PipelineProcessor will read from
+ /// ObjectWriter of this stream. PipelineProcessor will read from
/// ObjectReader of this stream.
///
protected ObjectStreamBase InputStream { get; }
@@ -975,7 +975,7 @@ namespace System.Management.Automation.Runspaces
#endregion history
- #region misc
+ #region misc
///
/// Initialized the current pipeline instance with the supplied data.
diff --git a/src/System.Management.Automation/engine/interpreter/AddInstruction.cs b/src/System.Management.Automation/engine/interpreter/AddInstruction.cs
index ef9e74341b..65c0aa9499 100644
--- a/src/System.Management.Automation/engine/interpreter/AddInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/AddInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs b/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs
index cbf0560180..95d840499a 100644
--- a/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs
+++ b/src/System.Management.Automation/engine/interpreter/ArrayOperations.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/BranchLabel.cs b/src/System.Management.Automation/engine/interpreter/BranchLabel.cs
index ab04324bd2..240f157cf5 100644
--- a/src/System.Management.Automation/engine/interpreter/BranchLabel.cs
+++ b/src/System.Management.Automation/engine/interpreter/BranchLabel.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -48,7 +48,7 @@ namespace System.Management.Automation.Interpreter
internal int _stackDepth = UnknownDepth;
internal int _continuationStackDepth = UnknownDepth;
- // Offsets of forward branching instructions targeting this label
+ // Offsets of forward branching instructions targeting this label
// that need to be updated after we emit the label.
private List _forwardBranchFixups;
diff --git a/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs b/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs
index 7600835815..ee683db330 100644
--- a/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs
+++ b/src/System.Management.Automation/engine/interpreter/CallInstruction.Generated.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -82,13 +82,13 @@ namespace System.Management.Automation.Interpreter {
/// Fast creation works if we have a known primitive types for the entire
/// method signature. If we have any non-primitive types then FastCreate
/// falls back to SlowCreate which works for all types.
- ///
+ ///
/// Fast creation is fast because it avoids using reflection (MakeGenericType
/// and Activator.CreateInstance) to create the types. It does this through
/// calling a series of generic methods picking up each strong type of the
- /// signature along the way. When it runs out of types it news up the
+ /// signature along the way. When it runs out of types it news up the
/// appropriate CallInstruction with the strong-types that have been built up.
- ///
+ ///
/// One relaxation is that for return types which are non-primitive types
/// we can fallback to object due to relaxed delegates.
///
diff --git a/src/System.Management.Automation/engine/interpreter/CallInstruction.cs b/src/System.Management.Automation/engine/interpreter/CallInstruction.cs
index 4d5a7da586..7db083cd5a 100644
--- a/src/System.Management.Automation/engine/interpreter/CallInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/CallInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * ironpy@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -90,7 +90,7 @@ namespace System.Management.Automation.Interpreter
}
}
- // create it
+ // create it
try
{
if (argumentCount < MaxArgs)
@@ -113,9 +113,9 @@ namespace System.Management.Automation.Interpreter
}
catch (NotSupportedException)
{
- // if Delegate.CreateDelegate can't handle the method fallback to
- // the slow reflection version. For example this can happen w/
- // a generic method defined on an interface and implemented on a class or
+ // if Delegate.CreateDelegate can't handle the method fallback to
+ // the slow reflection version. For example this can happen w/
+ // a generic method defined on an interface and implemented on a class or
// a virtual generic method.
res = new MethodInfoCallInstruction(info, argumentCount);
}
diff --git a/src/System.Management.Automation/engine/interpreter/DivInstruction.cs b/src/System.Management.Automation/engine/interpreter/DivInstruction.cs
index 87dad37142..2bbf969122 100644
--- a/src/System.Management.Automation/engine/interpreter/DivInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/DivInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs b/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs
index 2bcc0cf7f9..cef2c0a5d7 100644
--- a/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs
+++ b/src/System.Management.Automation/engine/interpreter/DynamicInstructionN.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/DynamicInstructions.Generated.cs b/src/System.Management.Automation/engine/interpreter/DynamicInstructions.Generated.cs
index 6e971e8d25..4bac6393ce 100644
--- a/src/System.Management.Automation/engine/interpreter/DynamicInstructions.Generated.cs
+++ b/src/System.Management.Automation/engine/interpreter/DynamicInstructions.Generated.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -55,7 +55,7 @@ namespace System.Management.Automation.Interpreter {
default:
throw Assert.Unreachable;
}
-
+
return genericType.MakeGenericType(newArgTypes);
}
@@ -86,7 +86,7 @@ namespace System.Management.Automation.Interpreter {
// *** END GENERATED CODE ***
#endregion
-
+
default: return null;
}
}
diff --git a/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs b/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs
index 36d8011d94..d21e603754 100644
--- a/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/DynamicSplatInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs b/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs
index 486b372cf6..d60e843fea 100644
--- a/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/EqualInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/FieldOperations.cs b/src/System.Management.Automation/engine/interpreter/FieldOperations.cs
index 2eac254555..316e73f236 100644
--- a/src/System.Management.Automation/engine/interpreter/FieldOperations.cs
+++ b/src/System.Management.Automation/engine/interpreter/FieldOperations.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs b/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs
index 1da52ea81d..9e227b02a6 100644
--- a/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/GreaterThanInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs b/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs
index cb538e96c3..d144e06e4e 100644
--- a/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs
+++ b/src/System.Management.Automation/engine/interpreter/ILightCallSiteBinder.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/Instruction.cs b/src/System.Management.Automation/engine/interpreter/Instruction.cs
index c24f05f145..8c60656305 100644
--- a/src/System.Management.Automation/engine/interpreter/Instruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/Instruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs b/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs
index c3e35afc97..df68146b5b 100644
--- a/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs
+++ b/src/System.Management.Automation/engine/interpreter/InstructionFactory.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -55,7 +55,7 @@ namespace System.Management.Automation.Interpreter
#if !CLR2
{ typeof(BigInt), InstructionFactory.Factory },
#endif
- //{ typeof(BigInteger), InstructionFactory.Factory }
+ //{ typeof(BigInteger), InstructionFactory.Factory }
};
}
diff --git a/src/System.Management.Automation/engine/interpreter/InstructionList.cs b/src/System.Management.Automation/engine/interpreter/InstructionList.cs
index e022e93b35..bf55f7eb2f 100644
--- a/src/System.Management.Automation/engine/interpreter/InstructionList.cs
+++ b/src/System.Management.Automation/engine/interpreter/InstructionList.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs b/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs
index 8e5e5af308..537290d3e7 100644
--- a/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs
+++ b/src/System.Management.Automation/engine/interpreter/InterpretedFrame.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/Interpreter.cs b/src/System.Management.Automation/engine/interpreter/Interpreter.cs
index 6c0241d660..db44c2d9e6 100644
--- a/src/System.Management.Automation/engine/interpreter/Interpreter.cs
+++ b/src/System.Management.Automation/engine/interpreter/Interpreter.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -35,9 +35,9 @@ namespace System.Management.Automation.Interpreter
/// A simple forth-style stack machine for executing Expression trees
/// without the need to compile to IL and then invoke the JIT. This trades
/// off much faster compilation time for a slower execution performance.
- /// For code that is only run a small number of times this can be a
+ /// For code that is only run a small number of times this can be a
/// sweet spot.
- ///
+ ///
/// The core loop in the interpreter is the RunInstructions method.
///
internal sealed class Interpreter
@@ -100,8 +100,8 @@ namespace System.Management.Automation.Interpreter
/// Runs instructions within the given frame.
///
///
- /// Interpreted stack frames are linked via Parent reference so that each CLR frame of this method corresponds
- /// to an interpreted stack frame in the chain. It is therefore possible to combine CLR stack traces with
+ /// Interpreted stack frames are linked via Parent reference so that each CLR frame of this method corresponds
+ /// to an interpreted stack frame in the chain. It is therefore possible to combine CLR stack traces with
/// interpreted stack traces by aligning interpreted frames to the frames of this method.
/// Each group of subsequent frames of Run method corresponds to a single interpreted frame.
///
@@ -119,7 +119,7 @@ namespace System.Management.Automation.Interpreter
#if !CORECLR // Thread.Abort and ThreadAbortException are not in CoreCLR.
///
- /// To get to the current AbortReason object on Thread.CurrentThread
+ /// To get to the current AbortReason object on Thread.CurrentThread
/// we need to use ExceptionState property of any ThreadAbortException instance.
///
[ThreadStatic]
diff --git a/src/System.Management.Automation/engine/interpreter/LabelInfo.cs b/src/System.Management.Automation/engine/interpreter/LabelInfo.cs
index b3221b4627..4dbdbee149 100644
--- a/src/System.Management.Automation/engine/interpreter/LabelInfo.cs
+++ b/src/System.Management.Automation/engine/interpreter/LabelInfo.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -40,7 +40,7 @@ namespace System.Management.Automation.Interpreter
// The blocks where this label is defined. If it has more than one item,
// the blocks can't be jumped to except from a child block
// If there's only 1 block (the common case) it's stored here, if there's multiple blocks it's stored
- // as a HashSet
+ // as a HashSet
private object _definitions;
// Blocks that jump to this block
diff --git a/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs b/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs
index a9e357f62f..8fb24342f6 100644
--- a/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/LessThanInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/LightCompiler.cs b/src/System.Management.Automation/engine/interpreter/LightCompiler.cs
index 77e2dc8148..627602fee0 100644
--- a/src/System.Management.Automation/engine/interpreter/LightCompiler.cs
+++ b/src/System.Management.Automation/engine/interpreter/LightCompiler.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -896,7 +896,7 @@ namespace System.Management.Automation.Interpreter
return;
}
- // TODO: Conversions to a super-class or implemented interfaces are no-op.
+ // TODO: Conversions to a super-class or implemented interfaces are no-op.
// A conversion to a non-implemented interface or an unrelated class, etc. should fail.
return;
}
@@ -1207,7 +1207,7 @@ namespace System.Management.Automation.Interpreter
// Anything that is "statement-like" -- e.g. has no associated
// stack state can be jumped into, with the exception of try-blocks
// We indicate this by a "Block"
- //
+ //
// Otherwise, we push an "Expression" to indicate that it can't be
// jumped into
switch (node.NodeType)
@@ -1411,7 +1411,7 @@ namespace System.Management.Automation.Interpreter
_instructions.MarkLabel(gotoEnd);
_instructions.EmitGoto(end, hasValue, hasValue);
- // keep the result on the stack:
+ // keep the result on the stack:
if (node.Handlers.Count > 0)
{
exHandlers = new List();
diff --git a/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs b/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs
index 6f1057b260..4bd8a28b0a 100644
--- a/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs
+++ b/src/System.Management.Automation/engine/interpreter/LightDelegateCreator.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/LightLambda.Generated.cs b/src/System.Management.Automation/engine/interpreter/LightLambda.Generated.cs
index 59a40a26de..9ead1d5b6a 100644
--- a/src/System.Management.Automation/engine/interpreter/LightLambda.Generated.cs
+++ b/src/System.Management.Automation/engine/interpreter/LightLambda.Generated.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/LightLambda.cs b/src/System.Management.Automation/engine/interpreter/LightLambda.cs
index 8d934e72a0..f31d665a5a 100644
--- a/src/System.Management.Automation/engine/interpreter/LightLambda.cs
+++ b/src/System.Management.Automation/engine/interpreter/LightLambda.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs b/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs
index 81955fc8df..5524a99245 100644
--- a/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs
+++ b/src/System.Management.Automation/engine/interpreter/LightLambdaClosureVisitor.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -33,7 +33,7 @@ namespace System.Management.Automation.Interpreter
/// Visits a LambdaExpression, replacing the constants with direct accesses
/// to their StrongBox fields. This is very similar to what
/// ExpressionQuoter does for LambdaCompiler.
- ///
+ ///
/// Also inserts debug information tracking similar to what the interpreter
/// would do.
///
diff --git a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs
index 22ef50cc2b..e46024a709 100644
--- a/src/System.Management.Automation/engine/interpreter/LocalAccess.cs
+++ b/src/System.Management.Automation/engine/interpreter/LocalAccess.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/LocalVariables.cs b/src/System.Management.Automation/engine/interpreter/LocalVariables.cs
index 42c5597f24..7b8c376b6d 100644
--- a/src/System.Management.Automation/engine/interpreter/LocalVariables.cs
+++ b/src/System.Management.Automation/engine/interpreter/LocalVariables.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs b/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs
index 09a59aa157..0c338f8ff5 100644
--- a/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs
+++ b/src/System.Management.Automation/engine/interpreter/LoopCompiler.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
@@ -55,7 +55,7 @@ namespace System.Management.Automation.Interpreter
private readonly Dictionary _outerVariables, _closureVariables;
private readonly PowerShellLoopExpression _loop;
private List _temps;
- // tracks variables that flow in and flow out for initialization and
+ // tracks variables that flow in and flow out for initialization and
private readonly Dictionary _loopVariables;
// variables which are defined and used within the loop
private HashSet _loopLocals;
@@ -161,7 +161,7 @@ namespace System.Management.Automation.Interpreter
var target = node.Target;
var value = Visit(node.Value);
- // TODO: Is it possible for an inner reducible node of the loop to rely on nodes produced by reducing outer reducible nodes?
+ // TODO: Is it possible for an inner reducible node of the loop to rely on nodes produced by reducing outer reducible nodes?
// Unknown label => must be within the loop:
if (!_labelMapping.TryGetValue(target, out label))
@@ -188,8 +188,8 @@ namespace System.Management.Automation.Interpreter
#region Local Variables
// Gather all outer variables accessed in the loop.
- // Determines which ones are read from and written to.
- // We will consider a variable as "read" if it is read anywhere in the loop even though
+ // Determines which ones are read from and written to.
+ // We will consider a variable as "read" if it is read anywhere in the loop even though
// the first operation might actually always be "write". We could do better if we had CFG.
protected override Expression VisitBlock(BlockExpression node)
@@ -309,7 +309,7 @@ namespace System.Management.Automation.Interpreter
return base.VisitUnary(node);
}
- // TODO: if we supported ref/out parameter we would need to override
+ // TODO: if we supported ref/out parameter we would need to override
// MethodCallExpression, VisitDynamic and VisitNew
protected override Expression VisitParameter(ParameterExpression node)
diff --git a/src/System.Management.Automation/engine/interpreter/MulInstruction.cs b/src/System.Management.Automation/engine/interpreter/MulInstruction.cs
index 93ac3b9844..08d8fcbf05 100644
--- a/src/System.Management.Automation/engine/interpreter/MulInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/MulInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs b/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs
index 056e673207..558b5d17bb 100644
--- a/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/NotEqualInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs b/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs
index 5c541fbdfe..4071c5dca2 100644
--- a/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/NumericConvertInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs b/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs
index 5958127d4d..d2ae357979 100644
--- a/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs
+++ b/src/System.Management.Automation/engine/interpreter/PowerShellInstructions.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs b/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs
index 1c28c95a75..ef7dd7216c 100644
--- a/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs
+++ b/src/System.Management.Automation/engine/interpreter/RuntimeVariables.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/StackOperations.cs b/src/System.Management.Automation/engine/interpreter/StackOperations.cs
index c47ffdfd1b..ede7d34adc 100644
--- a/src/System.Management.Automation/engine/interpreter/StackOperations.cs
+++ b/src/System.Management.Automation/engine/interpreter/StackOperations.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/SubInstruction.cs b/src/System.Management.Automation/engine/interpreter/SubInstruction.cs
index 7145474bc4..be0f9b32c9 100644
--- a/src/System.Management.Automation/engine/interpreter/SubInstruction.cs
+++ b/src/System.Management.Automation/engine/interpreter/SubInstruction.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/TypeOperations.cs b/src/System.Management.Automation/engine/interpreter/TypeOperations.cs
index 2cfc450ac0..46b0151aae 100644
--- a/src/System.Management.Automation/engine/interpreter/TypeOperations.cs
+++ b/src/System.Management.Automation/engine/interpreter/TypeOperations.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Apache License, Version 2.0, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Apache License, Version 2.0. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Apache License, Version 2.0, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Apache License, Version 2.0.
*
* You must not remove this notice, or any other, from this software.
diff --git a/src/System.Management.Automation/engine/interpreter/Utilities.cs b/src/System.Management.Automation/engine/interpreter/Utilities.cs
index 4898554747..8894821d27 100644
--- a/src/System.Management.Automation/engine/interpreter/Utilities.cs
+++ b/src/System.Management.Automation/engine/interpreter/Utilities.cs
@@ -564,7 +564,7 @@ namespace System.Management.Automation.Interpreter
///
/// Provides a dictionary-like object used for caches which holds onto a maximum
/// number of elements specified at construction time.
- ///
+ ///
/// This class is not thread safe.
///
internal class CacheDict
@@ -683,7 +683,7 @@ namespace System.Management.Automation.Interpreter
///
/// True if the caller will guarantee that all cleanup happens as the thread
/// unwinds.
- ///
+ ///
/// This is typically used in a case where the thread local is surrounded by
/// a try/finally block. The try block pushes some state, the finally block
/// restores the previous state. Therefore when the thread exits the thread
@@ -809,8 +809,8 @@ namespace System.Management.Automation.Interpreter
}
///
- /// Called when the fast path storage lookup fails. if we encountered the Empty storage
- /// during the initial fast check then spin until we hit non-empty storage and try the fast
+ /// Called when the fast path storage lookup fails. if we encountered the Empty storage
+ /// during the initial fast check then spin until we hit non-empty storage and try the fast
/// path again.
///
private StorageInfo RetryOrCreateStorageInfo(StorageInfo[] curStorage)
@@ -847,7 +847,7 @@ namespace System.Management.Automation.Interpreter
StorageInfo newInfo = new StorageInfo(Thread.CurrentThread);
// set to updating while potentially resizing/mutating, then we'll
- // set back to the current value.
+ // set back to the current value.
while ((curStorage = Interlocked.Exchange(ref _stores, s_updating)) == s_updating)
{
// another thread is already updating...
diff --git a/src/System.Management.Automation/engine/lang/codegen.cs b/src/System.Management.Automation/engine/lang/codegen.cs
index bc77eb03e5..e8877c253c 100644
--- a/src/System.Management.Automation/engine/lang/codegen.cs
+++ b/src/System.Management.Automation/engine/lang/codegen.cs
@@ -84,7 +84,7 @@ namespace System.Management.Automation.Language
///
/// Escapes content so that it is safe for inclusion in a string that will later be used in a variable
/// name reference. This is only valid when used within PowerShell's curly brace naming syntax.
- ///
+ ///
/// For example: '${' + EscapeVariableName('value') + '}'
///
/// The content to be included as a variable name.
diff --git a/src/System.Management.Automation/engine/lang/interface/PSParseError.cs b/src/System.Management.Automation/engine/lang/interface/PSParseError.cs
index 9531055fd6..6a1961deac 100644
--- a/src/System.Management.Automation/engine/lang/interface/PSParseError.cs
+++ b/src/System.Management.Automation/engine/lang/interface/PSParseError.cs
@@ -4,7 +4,7 @@
Project: PowerShell
- Contents: PowerShell error interface for syntax editors
+ Contents: PowerShell error interface for syntax editors
Classes: System.Management.Automation.PSParseError
@@ -15,7 +15,7 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation
{
///
- /// This is a class that represents a syntax error from parsing.
+ /// This is a class that represents a syntax error from parsing.
///
public sealed class PSParseError
{
@@ -35,16 +35,16 @@ namespace System.Management.Automation
}
///
- /// The token that indicates the error location.
+ /// The token that indicates the error location.
///
///
/// This can either be the real token at which place the error happens or a position
- /// token indicating the location where error happens.
+ /// token indicating the location where error happens.
///
public PSToken Token { get; }
///
- /// Error message.
+ /// Error message.
///
public string Message { get; }
}
diff --git a/src/System.Management.Automation/engine/lang/interface/PSParser.cs b/src/System.Management.Automation/engine/lang/interface/PSParser.cs
index 8edc0a63ae..51ad659617 100644
--- a/src/System.Management.Automation/engine/lang/interface/PSParser.cs
+++ b/src/System.Management.Automation/engine/lang/interface/PSParser.cs
@@ -4,7 +4,7 @@
Project: PowerShell
- Contents: PowerShell parser interface for syntax editors
+ Contents: PowerShell parser interface for syntax editors
Classes: System.Management.Automation.PSParser
@@ -22,44 +22,44 @@ namespace System.Management.Automation
/// PSParser class
///
///
- /// This is a class providing the interface for parsing a script into a collection of
- /// tokens, which primarily can be used for syntax colorization.
- ///
- /// Classes provided for syntax colorization includes,
- ///
- /// 1. PSParser: this class provides the main interface to be used.
- /// 2. PSToken: this class provides a public representation of powershell tokens.
- /// 3. PSParseError: this class provides a public representation of syntax errors.
- ///
- /// These three classes are provided for exposing interfaces only. They
- /// should not be used in PowerShell engine code.
- ///
+ /// This is a class providing the interface for parsing a script into a collection of
+ /// tokens, which primarily can be used for syntax colorization.
+ ///
+ /// Classes provided for syntax colorization includes,
+ ///
+ /// 1. PSParser: this class provides the main interface to be used.
+ /// 2. PSToken: this class provides a public representation of powershell tokens.
+ /// 3. PSParseError: this class provides a public representation of syntax errors.
+ ///
+ /// These three classes are provided for exposing interfaces only. They
+ /// should not be used in PowerShell engine code.
+ ///
///
//
// 1. Design
- //
- // PSParser class is a public wrapper class of internal Parser class. It is mail goal
- // is to provide a public interface for parsing a script into a collection of tokens.
//
- // Design of this class is made up of two parts,
+ // PSParser class is a public wrapper class of internal Parser class. It is mail goal
+ // is to provide a public interface for parsing a script into a collection of tokens.
//
- // 1. interface part: which implement the static public interface for parsing a script.
- // 2. logic part: which implement the parsing logic for parsing.
+ // Design of this class is made up of two parts,
+ //
+ // 1. interface part: which implement the static public interface for parsing a script.
+ // 2. logic part: which implement the parsing logic for parsing.
//
// 2. Interface
- //
+ //
// The only public interface provided by this class is the static member
- //
+ //
// static Collection Parse(string script, out Collection errors)
//
// 3. Parsing Logic
- //
- // Script parsing is done through instances of PSParser object. Each PSParser object
- // wraps an internal Parser object. It is PSParser object's responsibility to
- // a. setup local runspace and retrieve internal Parser object from it.
+ //
+ // Script parsing is done through instances of PSParser object. Each PSParser object
+ // wraps an internal Parser object. It is PSParser object's responsibility to
+ // a. setup local runspace and retrieve internal Parser object from it.
// b. call internal parser for actual parsing
// c. translate parsing result from internal Token and RuntimeException type
- // into public PSToken and PSParseError type.
+ // into public PSToken and PSParseError type.
//
public sealed class PSParser
{
@@ -68,7 +68,7 @@ namespace System.Management.Automation
///
///
/// This constructor is made private intentionally. The only way to create an instance
- /// of PSParser object is from PSParser pool maintained in this class.
+ /// of PSParser object is from PSParser pool maintained in this class.
///
private PSParser()
{
@@ -92,7 +92,7 @@ namespace System.Management.Automation
}
///
- /// Return collection of tokens generated for recent parsing task.
+ /// Return collection of tokens generated for recent parsing task.
///
private Collection Tokens
{
@@ -111,7 +111,7 @@ namespace System.Management.Automation
}
///
- /// Return collection of errors happened for recent parsing task.
+ /// Return collection of errors happened for recent parsing task.
///
private Collection Errors
{
@@ -132,7 +132,7 @@ namespace System.Management.Automation
#region Public API
///
- /// Parse a script into a collection of tokens.
+ /// Parse a script into a collection of tokens.
///
/// script to parse
/// errors happened during parsing
@@ -159,7 +159,7 @@ namespace System.Management.Automation
}
///
- /// Parse a script into a collection of tokens.
+ /// Parse a script into a collection of tokens.
///
/// script to parse, as an array of lines
/// errors happened during parsing
diff --git a/src/System.Management.Automation/engine/lang/interface/PSToken.cs b/src/System.Management.Automation/engine/lang/interface/PSToken.cs
index 4eab32ff61..1c3a81a6d1 100644
--- a/src/System.Management.Automation/engine/lang/interface/PSToken.cs
+++ b/src/System.Management.Automation/engine/lang/interface/PSToken.cs
@@ -4,7 +4,7 @@
Project: PowerShell
- Contents: PowerShell token interface for syntax editors
+ Contents: PowerShell token interface for syntax editors
Classes: System.Management.Automation.PSToken
@@ -16,13 +16,13 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation
{
///
- /// This is public class for representing a powershell token.
+ /// This is public class for representing a powershell token.
///
///
- /// There is already an internal class Token for representing the token.
- ///
+ /// There is already an internal class Token for representing the token.
+ ///
/// This class wraps the internal Token class for providing limited information
- /// to syntax editor.
+ /// to syntax editor.
///
public sealed class PSToken
{
@@ -47,18 +47,18 @@ namespace System.Management.Automation
}
///
- /// Resulting text for the token.
+ /// Resulting text for the token.
///
///
- /// The text here represents the content of token. It can be the same as
- /// the text chunk within script resulting into this token, but usually is not
- /// the case.
- ///
- /// For example, -name in following command result into a parameter token.
- ///
+ /// The text here represents the content of token. It can be the same as
+ /// the text chunk within script resulting into this token, but usually is not
+ /// the case.
+ ///
+ /// For example, -name in following command result into a parameter token.
+ ///
/// get-process -name foo
- ///
- /// Text property in this case is 'name' instead of '-name'.
+ ///
+ /// Text property in this case is 'name' instead of '-name'.
///
public string Content
{
@@ -99,7 +99,7 @@ namespace System.Management.Automation
}
///
- /// Token type.
+ /// Token type.
///
public PSTokenType Type { get; }
@@ -302,14 +302,14 @@ namespace System.Management.Automation
/* LastToken */ PSTokenType.Unknown,
};
- #endregion
+ #endregion
#region Position Information
private readonly IScriptExtent _extent;
///
- /// Offset of token start in script buffer.
+ /// Offset of token start in script buffer.
///
public int Start
{
@@ -317,7 +317,7 @@ namespace System.Management.Automation
}
///
- /// Offset of token end in script buffer.
+ /// Offset of token end in script buffer.
///
public int Length
{
@@ -328,35 +328,35 @@ namespace System.Management.Automation
}
///
- /// Line number of token start.
+ /// Line number of token start.
///
///
- /// StartLine, StartColumn, EndLine, and EndColumn are 1-based,
- /// i.e., first line has a line number 1 and first character in
- /// a line has column number 1.
+ /// StartLine, StartColumn, EndLine, and EndColumn are 1-based,
+ /// i.e., first line has a line number 1 and first character in
+ /// a line has column number 1.
///
public int StartLine { get { return _extent.StartLineNumber; } }
///
- /// Position of token start in start line.
+ /// Position of token start in start line.
///
public int StartColumn { get { return _extent.StartColumnNumber; } }
///
- /// Line number of token end.
+ /// Line number of token end.
///
public int EndLine { get { return _extent.EndLineNumber; } }
///
- /// Position of token end in end line.
+ /// Position of token end in end line.
///
public int EndColumn { get { return _extent.EndColumnNumber; } }
- #endregion
+ #endregion
}
///
- /// PowerShell token types.
+ /// PowerShell token types.
///
public enum PSTokenType
{
@@ -371,10 +371,10 @@ namespace System.Management.Automation
/// Command
///
///
- /// For example, 'get-process' in
- ///
+ /// For example, 'get-process' in
+ ///
/// get-process -name foo
- ///
+ ///
///
Command,
@@ -382,10 +382,10 @@ namespace System.Management.Automation
/// Command Parameter
///
///
- /// For example, '-name' in
- ///
+ /// For example, '-name' in
+ ///
/// get-process -name foo
- ///
+ ///
///
CommandParameter,
@@ -393,10 +393,10 @@ namespace System.Management.Automation
/// Command Argument
///
///
- /// For example, 'foo' in
- ///
+ /// For example, 'foo' in
+ ///
/// get-process -name foo
- ///
+ ///
///
CommandArgument,
@@ -404,10 +404,10 @@ namespace System.Management.Automation
/// Number
///
///
- /// For example, 12 in
- ///
+ /// For example, 12 in
+ ///
/// $a=12
- ///
+ ///
///
Number,
@@ -415,10 +415,10 @@ namespace System.Management.Automation
/// String
///
///
- /// For example, "12" in
- ///
+ /// For example, "12" in
+ ///
/// $a="12"
- ///
+ ///
///
String,
@@ -426,10 +426,10 @@ namespace System.Management.Automation
/// Variable
///
///
- /// For example, $a in
- ///
+ /// For example, $a in
+ ///
/// $a="12"
- ///
+ ///
///
Variable,
@@ -437,10 +437,10 @@ namespace System.Management.Automation
/// Property name or method name
///
///
- /// For example, Name in
- ///
+ /// For example, Name in
+ ///
/// $a.Name
- ///
+ ///
///
Member,
@@ -448,14 +448,14 @@ namespace System.Management.Automation
/// Loop label
///
///
- /// For example, :loop in
- ///
+ /// For example, :loop in
+ ///
/// :loop
/// foreach($a in $b)
/// {
/// $a
/// }
- ///
+ ///
///
LoopLabel,
@@ -463,10 +463,10 @@ namespace System.Management.Automation
/// Attributes
///
///
- /// For example, Mandatory in
- ///
+ /// For example, Mandatory in
+ ///
/// param([Mandatory] $a)
- ///
+ ///
///
Attribute,
@@ -474,10 +474,10 @@ namespace System.Management.Automation
/// Types
///
///
- /// For example, [string] in
- ///
+ /// For example, [string] in
+ ///
/// $a = [string] 12
- ///
+ ///
///
Type,
@@ -485,10 +485,10 @@ namespace System.Management.Automation
/// Operators
///
///
- /// For example, + in
- ///
+ /// For example, + in
+ ///
/// $a = 1 + 2
- ///
+ ///
///
Operator,
@@ -496,13 +496,13 @@ namespace System.Management.Automation
/// Group Starter
///
///
- /// For example, { in
- ///
+ /// For example, { in
+ ///
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
///
GroupStart,
@@ -510,13 +510,13 @@ namespace System.Management.Automation
/// Group Ender
///
///
- /// For example, } in
- ///
+ /// For example, } in
+ ///
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
///
GroupEnd,
@@ -524,13 +524,13 @@ namespace System.Management.Automation
/// Keyword
///
///
- /// For example, if in
- ///
+ /// For example, if in
+ ///
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
///
Keyword,
@@ -538,14 +538,14 @@ namespace System.Management.Automation
/// Comment
///
///
- /// For example, #here in
- ///
+ /// For example, #here in
+ ///
/// #here
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
///
Comment,
@@ -553,14 +553,14 @@ namespace System.Management.Automation
/// Statement separator. This is ';'
///
///
- /// For example, ; in
- ///
+ /// For example, ; in
+ ///
/// #here
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
///
StatementSeparator,
@@ -568,14 +568,14 @@ namespace System.Management.Automation
/// New line. This is '\n'
///
///
- /// For example, \n in
- ///
+ /// For example, \n in
+ ///
/// #here
/// if ($a -gt 4)
/// {
/// $a++;
/// }
- ///
+ ///
///
NewLine,
@@ -583,11 +583,11 @@ namespace System.Management.Automation
/// Line continuation
///
///
- /// For example, ` in
- ///
+ /// For example, ` in
+ ///
/// get-command -name `
/// foo
- ///
+ ///
///
LineContinuation,
@@ -595,8 +595,8 @@ namespace System.Management.Automation
/// Position token
///
///
- /// Position token are bogus tokens generated for identifying a location
- /// in the script.
+ /// Position token are bogus tokens generated for identifying a location
+ /// in the script.
///
Position
}
diff --git a/src/System.Management.Automation/engine/lang/parserutils.cs b/src/System.Management.Automation/engine/lang/parserutils.cs
index 7aed9fc214..c2b71e2f0e 100644
--- a/src/System.Management.Automation/engine/lang/parserutils.cs
+++ b/src/System.Management.Automation/engine/lang/parserutils.cs
@@ -37,10 +37,10 @@ namespace System.Management.Automation
public const char emDash = (char)0x2014;
public const char horizontalBar = (char)0x2015;
- public const char quoteSingleLeft = (char)0x2018; // left single quotation mark
- public const char quoteSingleRight = (char)0x2019; // right single quotation mark
+ public const char quoteSingleLeft = (char)0x2018; // left single quotation mark
+ public const char quoteSingleRight = (char)0x2019; // right single quotation mark
public const char quoteSingleBase = (char)0x201a; // single low-9 quotation mark
- public const char quoteReversed = (char)0x201b; // single high-reversed-9 quotation mark
+ public const char quoteReversed = (char)0x201b; // single high-reversed-9 quotation mark
public const char quoteDoubleLeft = (char)0x201c; // left double quotation mark
public const char quoteDoubleRight = (char)0x201d; // right double quotation mark
public const char quoteLowDoubleLeft = (char)0x201E;// low double left quote used in german.
@@ -404,9 +404,9 @@ namespace System.Management.Automation
}
///
- /// This is a helper function for converting an object to a particular type.
- ///
- /// It will throw exception with information about token representing the object.
+ /// This is a helper function for converting an object to a particular type.
+ ///
+ /// It will throw exception with information about token representing the object.
///
internal static T ConvertTo(object obj, IScriptExtent errorPosition)
{
@@ -1026,8 +1026,8 @@ namespace System.Management.Automation
Regex r = PSObject.Base(rval) as Regex;
if (r == null)
{
- // In this situation, creation of Regex should not fail. We are not
- // processing ArgumentException in this case.
+ // In this situation, creation of Regex should not fail. We are not
+ // processing ArgumentException in this case.
r = NewRegex(PSObject.ToStringParser(context, rval), reOptions);
}
@@ -1326,7 +1326,7 @@ namespace System.Management.Automation
///
- /// Launch a method on an object. This will handle .NET native methods, COM
+ /// Launch a method on an object. This will handle .NET native methods, COM
/// methods and ScriptBlock notes. Native methods currently take precedence over notes...
///
/// The position to use for error reporting.
@@ -1337,7 +1337,7 @@ namespace System.Management.Automation
/// Set to true if you want to call a static method.
/// If not automation null, then this must be a settable property
/// Wraps the exception returned from the method call
- /// Internal exception from a flow control statement
+ /// Internal exception from a flow control statement
///
internal static object CallMethod(
IScriptExtent errorPosition,
diff --git a/src/System.Management.Automation/engine/lang/scriptblock.cs b/src/System.Management.Automation/engine/lang/scriptblock.cs
index c919c9c35c..e04d32f594 100644
--- a/src/System.Management.Automation/engine/lang/scriptblock.cs
+++ b/src/System.Management.Automation/engine/lang/scriptblock.cs
@@ -30,18 +30,18 @@ namespace System.Management.Automation
/// An object representing a pre-compiled block of powershell script.
///
///
- ///
+ ///
/// This class track a block of script in a compiled form. It is also
- /// used for direct invocation of the script block.
- ///
+ /// used for direct invocation of the script block.
+ ///
/// 1. Overview
- ///
- /// Script block comes in two forms,
- ///
+ ///
+ /// Script block comes in two forms,
+ ///
/// a. Full form (cmdlet form)
- ///
+ ///
/// This comes in following format
- ///
+ ///
/// {
/// begin
/// {
@@ -56,42 +56,42 @@ namespace System.Management.Automation
/// statementlist;
/// }
/// }
- ///
- /// This form is used for running the script in a pipeline like
- /// a cmdlet.
- ///
- /// b. Simple form
- ///
+ ///
+ /// This form is used for running the script in a pipeline like
+ /// a cmdlet.
+ ///
+ /// b. Simple form
+ ///
/// This comes in following format
- ///
+ ///
/// {
/// statementlist;
/// }
- ///
+ ///
/// 2. Script block execution
- ///
+ ///
/// For the full form (or cmdlet form) of script block, the script
/// block itself is part of a pipeline. Its execution is handled through
/// ScriptCommandProcessor, which involves execution of begin/process/end
- /// blocks like a cmdlet. If a scriptblock in simple form is used in
+ /// blocks like a cmdlet. If a scriptblock in simple form is used in
/// a pipeline, its execution is done through ScriptCommandProcessor
- /// also, with some of begin/process/end blocks default to be empty.
- ///
- /// A script block in simple form can be directly invoked (outside
- /// of a pipeline context). For example,
- ///
+ /// also, with some of begin/process/end blocks default to be empty.
+ ///
+ /// A script block in simple form can be directly invoked (outside
+ /// of a pipeline context). For example,
+ ///
/// {"text"}.Invoke()
- ///
+ ///
/// A scriptblock can be directly invoked internally or externally through
- /// runspace API.
- ///
- /// This class will handle the logic for direct invocation of script blocks.
- ///
+ /// runspace API.
+ ///
+ /// This class will handle the logic for direct invocation of script blocks.
+ ///
///
public partial class ScriptBlock
{
///
- /// Create a script block object based on a script string to be parsed immediately.
+ /// Create a script block object based on a script string to be parsed immediately.
///
/// Engine context for this script block
/// The string to compile.
@@ -106,8 +106,8 @@ namespace System.Management.Automation
}
///
- /// Create a script block based on a script to be parsed when execution
- /// context is provided.
+ /// Create a script block based on a script to be parsed when execution
+ /// context is provided.
///
/// The string to compile.
public static ScriptBlock Create(string script)
@@ -138,14 +138,14 @@ namespace System.Management.Automation
///
/// Some ScriptBlocks are too complicated to be converted into a PowerShell object.
/// For those ScriptBlocks a is thrown.
- ///
+ ///
/// ScriptBlock cannot be converted into a PowerShell object if
/// - It contains more than one statement
/// - It references variables undeclared in param(...) block
/// - It uses redirection to a file
/// - It uses dot sourcing
/// - Command names can't be resolved (i.e. if an element of a pipeline is another scriptblock)
- ///
+ ///
/// Declaration of variables in a param(...) block is enforced,
/// because undeclared variables are assumed to be variables from a remoting server.
/// Since we need to fully evaluate parameters of commands of a PowerShell object's
@@ -373,7 +373,7 @@ namespace System.Management.Automation
/// Execute this node with the specified arguments. The arguments show
/// up in the script as $args with $_ being the first argument.
///
- ///
+ ///
/// The arguments to this script.
/// The object(s) generated during the execution of
/// the script block returned as a collection of PSObjects
@@ -388,7 +388,7 @@ namespace System.Management.Automation
/// A method that allows a scriptblock to be invoked with additional context in the form of a
/// set of local functions and variables to be defined in the scriptblock's scope. The list of
/// variables may include the special variables $input, $_ and $this.
- ///
+ ///
/// This overload of the function takes a hashtable and converts it to the
/// required dictionary which makes the API easier to use from within a PowerShell script.
///
@@ -496,7 +496,7 @@ namespace System.Management.Automation
/// so it can be more efficient.
///
/// The arguments to pass to this scriptblock.
- /// The object(s) generated during the execution of the
+ /// The object(s) generated during the execution of the
/// script block. They may or may not be wrapped in PSObject. It's up to the caller to check.
/// Thrown if a script runtime exceptionexception occurred
/// An internal (non-public) exception from a flow control statement
@@ -563,7 +563,7 @@ namespace System.Management.Automation
}
///
- /// Get/set whether this scriptblock is a filter.
+ /// Get/set whether this scriptblock is a filter.
///
public bool IsFilter
{
@@ -572,7 +572,7 @@ namespace System.Management.Automation
}
///
- /// Get/set whether this scriptblock is a Configuration.
+ /// Get/set whether this scriptblock is a Configuration.
///
public bool IsConfiguration
{
@@ -634,10 +634,10 @@ namespace System.Management.Automation
}
///
- /// This is a helper function to process script invocation result.
+ /// This is a helper function to process script invocation result.
///
///
- /// This does normal array reduction in the case of a one-element array.
+ /// This does normal array reduction in the case of a one-element array.
///
internal static object GetRawResult(List result)
{
@@ -711,7 +711,7 @@ namespace System.Management.Automation
}
///
- /// Get the delegate method as a call back.
+ /// Get the delegate method as a call back.
///
internal Delegate CreateDelegate(Type delegateType)
{
@@ -817,17 +817,17 @@ namespace System.Management.Automation
/// Execute this node with the specified arguments. The arguments show
/// up in the script as $args with $_ being the first argument.
///
- ///
+ ///
///
/// The value of the $_ variable for the script block. If AutomationNull.Value,
/// the $_ variable is not created.
///
- ///
+ ///
///
/// The value of the $input variable for the script block. If AutomationNull.Value,
/// the $input variable is not created.
///
- ///
+ ///
/// The arguments to this script.
/// The object(s) generated during the execution of
/// the script block returned as a collection of PSObjects
@@ -850,7 +850,7 @@ namespace System.Management.Automation
///
/// This is a helper function to wrap script execution results
- /// in PSObjects.
+ /// in PSObjects.
///
///
///
@@ -874,7 +874,7 @@ namespace System.Management.Automation
/// Execute this node with the specified arguments. The arguments show
/// up in the script as $args with $_ being the first argument.
///
- ///
+ ///
///
///
///
@@ -887,7 +887,7 @@ namespace System.Management.Automation
///
///
/// The arguments to this script.
- ///
+ ///
/// The object(s) generated during the execution of
/// the script block returned as a collection of PSObjects
/// A script exception occurred
@@ -1096,7 +1096,7 @@ namespace System.Management.Automation
_context.PushPipelineProcessor(_pipeline);
_expectInput = expectInput;
- // Start the pipeline, if the command calling this pipeline is
+ // Start the pipeline, if the command calling this pipeline is
// not expecting input (as indicated by it's position in the pipeline
// then neither should we.
MshCommandRuntime crt = commandRuntime as MshCommandRuntime;
@@ -1386,7 +1386,7 @@ namespace System.Management.Automation
internal object[] Args { get; set; }
///
- /// Holds the exception thrown during scriptblock invocation.
+ /// Holds the exception thrown during scriptblock invocation.
///
internal ExceptionDispatchInfo Exception { get; set; }
}
diff --git a/src/System.Management.Automation/engine/parser/AstVisitor.cs b/src/System.Management.Automation/engine/parser/AstVisitor.cs
index ebe62123b2..1b19c6392c 100644
--- a/src/System.Management.Automation/engine/parser/AstVisitor.cs
+++ b/src/System.Management.Automation/engine/parser/AstVisitor.cs
@@ -11,7 +11,7 @@ using System.Reflection.Emit;
namespace System.Management.Automation.Language
{
///
- ///
+ ///
///
public interface ICustomAstVisitor
{
diff --git a/src/System.Management.Automation/engine/parser/CharTraits.cs b/src/System.Management.Automation/engine/parser/CharTraits.cs
index efb5f5d615..accbc81e7a 100644
--- a/src/System.Management.Automation/engine/parser/CharTraits.cs
+++ b/src/System.Management.Automation/engine/parser/CharTraits.cs
@@ -16,10 +16,10 @@ namespace System.Management.Automation.Language
internal const char HorizontalBar = (char)0x2015;
// Special quotes
- internal const char QuoteSingleLeft = (char)0x2018; // left single quotation mark
- internal const char QuoteSingleRight = (char)0x2019; // right single quotation mark
+ internal const char QuoteSingleLeft = (char)0x2018; // left single quotation mark
+ internal const char QuoteSingleRight = (char)0x2019; // right single quotation mark
internal const char QuoteSingleBase = (char)0x201a; // single low-9 quotation mark
- internal const char QuoteReversed = (char)0x201b; // single high-reversed-9 quotation mark
+ internal const char QuoteReversed = (char)0x201b; // single high-reversed-9 quotation mark
internal const char QuoteDoubleLeft = (char)0x201c; // left double quotation mark
internal const char QuoteDoubleRight = (char)0x201d; // right double quotation mark
internal const char QuoteLowDoubleLeft = (char)0x201E; // low double left quote used in german.
diff --git a/src/System.Management.Automation/engine/parser/Compiler.cs b/src/System.Management.Automation/engine/parser/Compiler.cs
index afabbace6c..91244543e3 100644
--- a/src/System.Management.Automation/engine/parser/Compiler.cs
+++ b/src/System.Management.Automation/engine/parser/Compiler.cs
@@ -627,7 +627,7 @@ namespace System.Management.Automation.Language
return Expression.Convert(expr, type);
}
-#if ENABLE_BINDER_DEBUG_LOGGING
+#if ENABLE_BINDER_DEBUG_LOGGING
internal static string ToDebugString(this Expression expr)
{
using (var writer = new StringWriter(CultureInfo.InvariantCulture))
@@ -2237,7 +2237,7 @@ namespace System.Management.Automation.Language
}
///
- /// Bake types and creates a dynamic assembly.
+ /// Bake types and creates a dynamic assembly.
/// This method should be called only for rootAsts (i.e. script file root ScriptBlockAst).
///
///
@@ -2245,7 +2245,7 @@ namespace System.Management.Automation.Language
/// Assembly with defined types
internal static Assembly DefinePowerShellTypes(Ast rootForDefiningTypes, TypeDefinitionAst[] typeAsts)
{
- // TODO(sevoroby): this Diagnostic is conceptually right.
+ // TODO(sevoroby): this Diagnostic is conceptually right.
// BUT It triggers, when we define type in an InitialSessionState and use it later in two different PowerShell instances.
// Diagnostics.Assert(typeAsts[0].Type == null, "We must not call DefinePowerShellTypes twice for the same TypeDefinitionAsts");
@@ -2803,7 +2803,7 @@ namespace System.Management.Automation.Language
(pipeAst != null && pipeAst.PipelineElements.Count == 1 &&
pipeAst.PipelineElements[0] is CommandExpressionAst))
{
- // If the RHS of the assign was an expression,
+ // If the RHS of the assign was an expression,
exprList.Add(s_setDollarQuestionToTrue);
}
}
@@ -3130,7 +3130,7 @@ namespace System.Management.Automation.Language
// funcContext._outputPipe = oldPipe;
// }
//
- // In the above psuedo-code, any of {outputFileRedirection, nonOutputFileRedirection, mergingRedirection} may
+ // In the above psuedo-code, any of {outputFileRedirection, nonOutputFileRedirection, mergingRedirection} may
// not exist, but the order is preserved, so that file redirections go before merging redirections (so that
// funcContext._outputPipe has the correct value when setting up merging.)
@@ -3262,8 +3262,8 @@ namespace System.Management.Automation.Language
if (oldPipe != null)
{
- // If a temporary pipe was created at the beginning, we should restore the original pipe in the
- // very end of the finally block. Otherwise, _getCurrentPipe may be messed up by the following
+ // If a temporary pipe was created at the beginning, we should restore the original pipe in the
+ // very end of the finally block. Otherwise, _getCurrentPipe may be messed up by the following
// file redirection unbind operation.
// For example:
// function foo
@@ -5219,7 +5219,7 @@ namespace System.Management.Automation.Language
// SubExpression and ParenExpression are two special cases for handling the partial output while exception
// is thrown. For example, the output of $(1; throw 2) should be 1 and the error record with message '2';
- // but the output of $(1; throw 2).Length should just be the error record with message '2'.
+ // but the output of $(1; throw 2).Length should just be the error record with message '2'.
bool shouldPreserveResultInCaseofException = subExpressionAst.ShouldPreserveOutputInCaseOfException();
return CaptureAstResults(subExpressionAst.SubExpression,
shouldPreserveResultInCaseofException
@@ -5551,7 +5551,7 @@ namespace System.Management.Automation.Language
// SubExpression and ParenExpression are two special cases for handling the partial output while exception
// is thrown. For example, function bar { 1; throw 2 }, the output of (bar) should be 1 and the error record with message '2';
- // but the output of (bar).Length should just be the error record with message '2'.
+ // but the output of (bar).Length should just be the error record with message '2'.
bool shouldPreserveOutputInCaseOfException = parenExpressionAst.ShouldPreserveOutputInCaseOfException();
return CaptureStatementResults(pipe,
shouldPreserveOutputInCaseOfException
diff --git a/src/System.Management.Automation/engine/parser/DebugViewWriter.cs b/src/System.Management.Automation/engine/parser/DebugViewWriter.cs
index 42c60c38a4..b0ded1dc38 100644
--- a/src/System.Management.Automation/engine/parser/DebugViewWriter.cs
+++ b/src/System.Management.Automation/engine/parser/DebugViewWriter.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Microsoft Public License. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Microsoft Public License, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Microsoft Public License. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Microsoft Public License, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Microsoft Public License.
*
* You must not remove this notice, or any other, from this software.
@@ -14,7 +14,7 @@
* ***************************************************************************/
-#if ENABLE_BINDER_DEBUG_LOGGING
+#if ENABLE_BINDER_DEBUG_LOGGING
using System.Linq.Expressions;
using System.Collections.Generic;
@@ -23,7 +23,7 @@ using System.Runtime.CompilerServices;
using System.Reflection;
using System.Globalization;
using System.Diagnostics;
-using System.Dynamic;
+using System.Dynamic;
namespace System.Management.Automation.Language {
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Maintainability", "CA1506:AvoidExcessiveClassCoupling")]
@@ -603,7 +603,7 @@ namespace System.Management.Automation.Language {
// 3) Parent op is -, / or %, and the child is the left operand.
// In this case, if left and right operand are the same, we don't
// remove parenthesis, e.g. (x + y) - (x + y)
- //
+ //
switch (parent.NodeType) {
case ExpressionType.AndAlso:
case ExpressionType.OrElse:
diff --git a/src/System.Management.Automation/engine/parser/FusionAssemblyIdentity.cs b/src/System.Management.Automation/engine/parser/FusionAssemblyIdentity.cs
index 415309ca47..5a0de0c3a4 100644
--- a/src/System.Management.Automation/engine/parser/FusionAssemblyIdentity.cs
+++ b/src/System.Management.Automation/engine/parser/FusionAssemblyIdentity.cs
@@ -258,7 +258,7 @@ namespace Microsoft.CodeAnalysis
///
/// Selects the candidate assembly with the largest version number. Uses culture as a tie-breaker if it is provided.
- /// All candidates are assumed to have the same name and must include versions and cultures.
+ /// All candidates are assumed to have the same name and must include versions and cultures.
///
internal static IAssemblyName GetBestMatch(IEnumerable candidates, string preferredCultureOpt)
{
@@ -292,7 +292,7 @@ namespace Microsoft.CodeAnalysis
Debug.Assert(bestCulture != null);
}
- // we have exactly the preferred culture or
+ // we have exactly the preferred culture or
// we have neutral culture and the best candidate's culture isn't the preferred one:
if (StringComparer.OrdinalIgnoreCase.Equals(candidateCulture, preferredCultureOpt) ||
candidateCulture.Length == 0 && !StringComparer.OrdinalIgnoreCase.Equals(bestCulture, preferredCultureOpt))
diff --git a/src/System.Management.Automation/engine/parser/GlobalAssemblyCache.cs b/src/System.Management.Automation/engine/parser/GlobalAssemblyCache.cs
index 9db972d357..254d37b7cc 100644
--- a/src/System.Management.Automation/engine/parser/GlobalAssemblyCache.cs
+++ b/src/System.Management.Automation/engine/parser/GlobalAssemblyCache.cs
@@ -9,7 +9,7 @@ using System.Linq;
using System.Reflection;
using System.Runtime.InteropServices;
-#if !CORECLR // Only enable/port what is needed by CORE CLR.
+#if !CORECLR // Only enable/port what is needed by CORE CLR.
namespace Microsoft.CodeAnalysis
{
///
diff --git a/src/System.Management.Automation/engine/parser/PSType.cs b/src/System.Management.Automation/engine/parser/PSType.cs
index 61c1006082..7144ad1530 100644
--- a/src/System.Management.Automation/engine/parser/PSType.cs
+++ b/src/System.Management.Automation/engine/parser/PSType.cs
@@ -447,7 +447,7 @@ namespace System.Management.Automation.Language
}
}
- // inside ctor we put logic to capture session state from execution context,
+ // inside ctor we put logic to capture session state from execution context,
// we cannot delegate default ctor creation to _typeBuilder, if we have any methods.
// If there are only static methods, we still want to capture context to allow static method calls on instances in the right context.
if (hasAnyMethods)
@@ -556,7 +556,7 @@ namespace System.Management.Automation.Language
}
}
- // The last argument of DefineProperty is null, because the property has no parameters.
+ // The last argument of DefineProperty is null, because the property has no parameters.
PropertyBuilder property = _typeBuilder.DefineProperty(propertyMemberAst.Name, Reflection.PropertyAttributes.None, type, null);
// Define the "get" accessor method.
@@ -607,8 +607,8 @@ namespace System.Management.Automation.Language
}
setIlGen.Emit(OpCodes.Ret);
- // Map the two methods created above to our PropertyBuilder to
- // their corresponding behaviors, "get" and "set" respectively.
+ // Map the two methods created above to our PropertyBuilder to
+ // their corresponding behaviors, "get" and "set" respectively.
property.SetGetMethod(getMethod);
property.SetSetMethod(setMethod);
diff --git a/src/System.Management.Automation/engine/parser/Parser.cs b/src/System.Management.Automation/engine/parser/Parser.cs
index f3842ca7fe..92b0cc253f 100644
--- a/src/System.Management.Automation/engine/parser/Parser.cs
+++ b/src/System.Management.Automation/engine/parser/Parser.cs
@@ -810,7 +810,7 @@ namespace System.Management.Automation.Language
result = new List();
}
var usingStatement = statement as UsingStatementAst;
- // otherwise returned statement is ErrorStatementAst.
+ // otherwise returned statement is ErrorStatementAst.
// We ignore it here, because error already reported to the parser.
if (usingStatement != null)
{
@@ -3015,7 +3015,7 @@ namespace System.Management.Automation.Language
System.Management.Automation.Language.DynamicKeyword.Reset();
}
- // Finally resync the tokenizer at the current position
+ // Finally resync the tokenizer at the current position
// this will flush any cached dynamic keyword tokens.
var restorePoint = _tokenizer.GetRestorePoint();
Resync(restorePoint);
@@ -3054,7 +3054,7 @@ namespace System.Management.Automation.Language
{
//G foreach-statement:
//G 'foreach' new-lines:opt foreach-parameters:opt new-lines:opt '('
- //G new-lines:opt variable new-lines:opt 'in' new-lines:opt pipeline
+ //G new-lines:opt variable new-lines:opt 'in' new-lines:opt pipeline
//G new-lines:opt ')' statement-block
//G foreach-parameters:
//G foreach-parameter
@@ -3367,7 +3367,7 @@ namespace System.Management.Automation.Language
/// keyword [parameters] [name] { a=1; b=2; } # constructor with properties
/// or
/// keyword [parameters] [name] { ... } # constructor with a simple body.
- /// or keywordcommand parameters
+ /// or keywordcommand parameters
/// This custom keyword does not introduce a new AST node type. Instead it generates a
/// CommandAst that calls a PowerShell command to implement the keyword's logic.
/// This command has one of two signatures:
@@ -3808,7 +3808,7 @@ namespace System.Management.Automation.Language
//G
//G class-name:
//G simple-name
- //G
+ //G
//G base-type-list:
//G new-lines:opt type-name new-lines:opt
//G base-class-list ',' new-lines:opt type-name new-lines:opt
@@ -4541,8 +4541,8 @@ namespace System.Management.Automation.Language
{
// We are in REPL, or Invoke-Expression, or ScriptBlock.Create, etc.
// It's legal to use '.\foo.dll', and we should do lookup in $pwd.
- // We resolving it in parse time to avoid difference in script behavior,
- // when script execution is delayed from parsing, i.e.
+ // We resolving it in parse time to avoid difference in script behavior,
+ // when script execution is delayed from parsing, i.e.
// $script = [scriptblock]::Create('using assembly .\foo.dll; [Foo].foo()')
// # using assembly behavior should be the same in these two cases:
// cd A; $script.Invoke()
@@ -6675,7 +6675,7 @@ namespace System.Management.Automation.Language
//G target-expression member-name invoke-param-list
//G invoke-param-list:
//G '(' invoke-param-paren-list
- //G script-block
+ //G script-block
IScriptExtent lastExtent = null;
@@ -6954,7 +6954,7 @@ namespace System.Management.Automation.Language
#region Error related classes
///
- ///
+ ///
///
public class ParseError
{
@@ -6982,7 +6982,7 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
///
public override string ToString()
@@ -6991,22 +6991,22 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
public IScriptExtent Extent { get; }
///
- ///
+ ///
///
public string ErrorId { get; }
///
- ///
+ ///
///
public string Message { get; }
///
- ///
+ ///
///
public bool IncompleteInput { get; }
}
diff --git a/src/System.Management.Automation/engine/parser/Position.cs b/src/System.Management.Automation/engine/parser/Position.cs
index b1ebf3f51d..0b2bcdb4b0 100644
--- a/src/System.Management.Automation/engine/parser/Position.cs
+++ b/src/System.Management.Automation/engine/parser/Position.cs
@@ -710,7 +710,7 @@ namespace System.Management.Automation.Language
///
/// The script text that the extent includes.
- ///
+ ///
public string Text
{
get
diff --git a/src/System.Management.Automation/engine/parser/SafeValues.cs b/src/System.Management.Automation/engine/parser/SafeValues.cs
index 469615da9f..9835d52c77 100644
--- a/src/System.Management.Automation/engine/parser/SafeValues.cs
+++ b/src/System.Management.Automation/engine/parser/SafeValues.cs
@@ -8,12 +8,12 @@ using System.Linq;
using System.Management.Automation.Internal;
/*
- *
+ *
* This visitor makes a determination as to whether an operation is safe in a GetPowerShell API Context.
- * It is modeled on the ConstantValueVisitor with changes which allow those
+ * It is modeled on the ConstantValueVisitor with changes which allow those
* operations which are deemed safe, rather than constant. The following are differences from
* ConstantValueVisitor:
- * o Because we are going to call for values in ScriptBlockToPowerShell, the
+ * o Because we are going to call for values in ScriptBlockToPowerShell, the
* Get*ValueVisitor class is removed
* o IsGetPowerShellSafeValueVisitor only needs to determine whether it is safe, we won't return
* anything but that determination (vs actually returning a value in the out constantValue parameter
@@ -23,7 +23,7 @@ using System.Management.Automation.Internal;
* o VisitIndexExpression may be safe under the proper circumstances
* o VisitStatementBlock is safe if its component statements are safe
* o VisitBinaryExpression is not safe as it allows for a DOS attack
- * o VisitVariableExpression is generally safe, there are checks outside of this code for ensuring variables actually
+ * o VisitVariableExpression is generally safe, there are checks outside of this code for ensuring variables actually
* have provided references. Those other checks ensure that the variable isn't something like $PID or $HOME, etc.,
* otherwise it's a safe operation, such as reference to a variable such as $true, or passed parameters.
* o VisitTypeExpression is not safe as it enables determining what types are available on the system which
@@ -32,7 +32,7 @@ using System.Management.Automation.Internal;
* o VisitArrayExpression may be safe if its components are safe
* o VisitArrayLiteral may be safe if its components are safe
* o VisitHashtable may be safe if its components are safe
- *
+ *
*/
namespace System.Management.Automation.Language
@@ -54,7 +54,7 @@ namespace System.Management.Automation.Language
_safeValueContext = safeValueContext;
}
- // This is a check of the number of visits
+ // This is a check of the number of visits
private int _visitCount = 0;
private const int MaxVisitCount = 5000;
private const int MaxHashtableKeyCount = 500;
@@ -216,7 +216,7 @@ namespace System.Management.Automation.Language
// GetPowerShell does its own validation of allowed variables in the
// context of the entire script block, and then supplies this visitor
// with the CommandExpressionAst directly. This
- // prevents us from evaluating variable safety in this visitor,
+ // prevents us from evaluating variable safety in this visitor,
// so we rely on GetPowerShell's implementation.
return true;
}
@@ -234,7 +234,7 @@ namespace System.Management.Automation.Language
public object VisitTypeExpression(TypeExpressionAst typeExpressionAst)
{
- // Type expressions are not safe as they allow fingerprinting by providing
+ // Type expressions are not safe as they allow fingerprinting by providing
// a set of types, you can inspect the types in the AppDomain implying which assemblies are in use
// and their version
return false;
@@ -384,7 +384,7 @@ namespace System.Management.Automation.Language
{
return targetHashtable[index];
}
- // The actual exception doesn't really matter because the caller in ScriptBlockToPowerShell
+ // The actual exception doesn't really matter because the caller in ScriptBlockToPowerShell
// will present the user with the offending script segment
throw new Exception();
}
@@ -424,18 +424,18 @@ namespace System.Management.Automation.Language
for (int offset = 0; offset < safeValues.Length; offset++)
{
var result = expandableStringExpressionAst.NestedExpressions[offset].Accept(this);
- // depending on the nested expression we may retrieve a variable, or even need to
+ // depending on the nested expression we may retrieve a variable, or even need to
// execute a sub-expression. The result of which may be returned
// as a scalar, array or nested array. If the unwrap of first array doesn't contain a nested
// array we can then pass it to String.Join. If it *does* contain an array,
// we need to unwrap the inner array and pass *that* to String.Join.
- //
+ //
// This means we get the same answer with GetPowerShell() as in the command-line
- // { echo "abc $true $(1) $(2,3) def" }.Invoke() gives the same answer as
+ // { echo "abc $true $(1) $(2,3) def" }.Invoke() gives the same answer as
// { echo "abc $true $(1) $(2,3) def" }.GetPowerShell().Invoke()
// abc True 1 2 3 def
// as does { echo "abc $true $(1) $(@(1,2),@(3,4)) def"
- // which is
+ // which is
// abc True 1 System.Object[] System.Object[] def
// fortunately, at this point, we're dealing with strings, so whatever the result
// from the ToString method of the array (or scalar) elements, that's symmetrical with
@@ -538,7 +538,7 @@ namespace System.Management.Automation.Language
public object VisitConvertExpression(ConvertExpressionAst convertExpressionAst)
{
- // at this point, we know we're safe because we checked both the type and the child,
+ // at this point, we know we're safe because we checked both the type and the child,
// so now we can just call the compiler and indicate that it's trusted (at this point)
if (s_context != null)
{
@@ -608,7 +608,7 @@ namespace System.Management.Automation.Language
public object VisitTypeExpression(TypeExpressionAst typeExpressionAst)
{
- // Type expressions are not safe as they allow fingerprinting by providing
+ // Type expressions are not safe as they allow fingerprinting by providing
// a set of types, you can inspect the types in the AppDomain implying which assemblies are in use
// and their version
throw PSTraceSource.NewArgumentException("ast");
diff --git a/src/System.Management.Automation/engine/parser/SemanticChecks.cs b/src/System.Management.Automation/engine/parser/SemanticChecks.cs
index b224d921aa..2e81c7b3dc 100644
--- a/src/System.Management.Automation/engine/parser/SemanticChecks.cs
+++ b/src/System.Management.Automation/engine/parser/SemanticChecks.cs
@@ -558,7 +558,7 @@ namespace System.Management.Automation.Language
/// Check that flow doesn't leave finally.
///
///
- /// If label is null, either it's a break/continue to an unknown label
+ /// If label is null, either it's a break/continue to an unknown label
/// (and unknown does not mean not specified, it means it's an expression we can't evaluate) or we have a return statement.
///
private void CheckForFlowOutOfFinally(Ast ast, string label)
@@ -1578,7 +1578,7 @@ namespace System.Management.Automation.Language
if (allowedVariables != null)
{
- // A single '*' allows any variable to be used. The use of a single '*' aligns with the
+ // A single '*' allows any variable to be used. The use of a single '*' aligns with the
// way SessionState.Applications and SessionState.Scripts lists work.
var allowedVariablesList = allowedVariables as IList ?? allowedVariables.ToList();
if (allowedVariablesList.Count == 1 && allowedVariablesList.Contains("*"))
@@ -1999,7 +1999,7 @@ namespace System.Management.Automation.Language
if (_allowEnvironmentVariables)
{
- // Allow access to environment when processing module manifests
+ // Allow access to environment when processing module manifests
if (varPath.IsDriveQualified && varPath.DriveName.Equals("env", StringComparison.OrdinalIgnoreCase))
return AstVisitAction.Continue;
}
diff --git a/src/System.Management.Automation/engine/parser/SymbolResolver.cs b/src/System.Management.Automation/engine/parser/SymbolResolver.cs
index 73b11d443b..fae20a066f 100644
--- a/src/System.Management.Automation/engine/parser/SymbolResolver.cs
+++ b/src/System.Management.Automation/engine/parser/SymbolResolver.cs
@@ -429,7 +429,7 @@ namespace System.Management.Automation.Language
/// using statement
/// If exception happens, return exception object.
///
- /// True if in the module name uses wildcardCharacter.
+ /// True if in the module name uses wildcardCharacter.
/// We don't want to resolve any wild-cards in using module.
///
/// True if module hashtable contains constant value (it's our requirement).
diff --git a/src/System.Management.Automation/engine/parser/TypeResolver.cs b/src/System.Management.Automation/engine/parser/TypeResolver.cs
index 7ea3839d8b..bacfa4782d 100644
--- a/src/System.Management.Automation/engine/parser/TypeResolver.cs
+++ b/src/System.Management.Automation/engine/parser/TypeResolver.cs
@@ -258,9 +258,9 @@ namespace System.Management.Automation.Language
// * Search scope table (includes 'using type x = ...' aliases)
// * Built in type accelerators (implicit 'using type x = ...' aliases that are effectively in global scope
// * typeResolutionState.assemblies, which contains:
- // - Assemblies with PS types, added by 'using module'
+ // - Assemblies with PS types, added by 'using module'
// - Assemblies added by 'using assembly'.
- // For this case, we REPORT ambiguity, since user explicitly specifies the set of assemblies.
+ // For this case, we REPORT ambiguity, since user explicitly specifies the set of assemblies.
// * All other loaded assemblies (excluding dynamic assemblies created for PS defined types).
// IGNORE ambiguity. It mimics PS v4. There are two reasons:
// 1) If we report ambiguity, we need to fix our caching logic accordingly.
@@ -269,19 +269,19 @@ namespace System.Management.Automation.Language
// Add-Type 'public class Q { }' # get error about the same name
// [Q] # we would get error about ambiguous type, because we added assembly with duplicated type
// # before we can report TYPE_ALREADY_EXISTS error.
- //
+ //
// Add-Type 'public class Q2 {}' # ok
// [Q2] # caching Q2 type
// Add-Type 'public class Q2 { }' # get error about the same name
// [Q2] # we don't get an error about ambiguous type, because it's cached already
- // 2) NuGet (VS Package Management console) uses MEF extensibility model.
- // Different assemblies includes same interface (i.e. NuGet.VisualStudio.IVsPackageInstallerServices),
+ // 2) NuGet (VS Package Management console) uses MEF extensibility model.
+ // Different assemblies includes same interface (i.e. NuGet.VisualStudio.IVsPackageInstallerServices),
// where they include only methods that they are interested in the interface declaration (result interfaces are different!).
// Then, at runtime VS provides an instance. Everything work as far as instance has compatible API.
// So [NuGet.VisualStudio.IVsPackageInstallerServices] can be resolved to several different assemblies and it's ok.
// * User defined type accelerators (rare - interface was never public)
//
- // If nothing is found, we search again, this time applying any 'using namespace ...' declarations including the implicit 'using namespace System'.
+ // If nothing is found, we search again, this time applying any 'using namespace ...' declarations including the implicit 'using namespace System'.
// We must search all using aliases and REPORT an error if there is an ambiguity.
var assemList = assemblies ?? ClrFacade.GetAssemblies(typeResolutionState, typeName);
@@ -325,7 +325,7 @@ namespace System.Management.Automation.Language
#if CORECLR
if (assemblies == null)
{
- // We called 'ClrFacade.GetAssemblies' to get assemblies. That means the assemblies to search from
+ // We called 'ClrFacade.GetAssemblies' to get assemblies. That means the assemblies to search from
// are not pre-defined, and thus we have to refetch assembly again based on the new type name.
assemList = ClrFacade.GetAssemblies(typeResolutionState, newTypeName);
}
@@ -434,14 +434,14 @@ namespace System.Management.Automation.Language
}
///
- /// The idea behind this class is: I should be able to re-use expensive
+ /// The idea behind this class is: I should be able to re-use expensive
/// type resolution operation result in the same context.
/// Hence, this class is a key for TypeCache dictionary.
- ///
- /// Every SessionStateScope has TypeResolutionState.
+ ///
+ /// Every SessionStateScope has TypeResolutionState.
/// typesDefined contains PowerShell types names defined in the current scope and all scopes above.
/// Same for namespaces.
- ///
+ ///
/// If TypeResolutionState doesn't add anything new compare to it's parent, we represent it as null.
/// So, when we do lookup, we need to find first non-null TypeResolutionState.
///
diff --git a/src/System.Management.Automation/engine/parser/VariableAnalysis.cs b/src/System.Management.Automation/engine/parser/VariableAnalysis.cs
index 86b4a75d72..7e6fa1734c 100644
--- a/src/System.Management.Automation/engine/parser/VariableAnalysis.cs
+++ b/src/System.Management.Automation/engine/parser/VariableAnalysis.cs
@@ -318,11 +318,11 @@ namespace System.Management.Automation.Language
internal const int Unanalyzed = -1;
// In some cases, we want to force a variable to not be allocated in the tuple, but instead use the variable
- // table along with a PSVariable instance. For example,
+ // table along with a PSVariable instance. For example,
// 1. if a variable's type might change in the same scope;
- // 2. if there might be any validation attributes or more than one argument conversion
+ // 2. if there might be any validation attributes or more than one argument conversion
// 3. if there is one argument conversion but the conversion type cannot be resolved at compile time (it's
- // possible that the assembly containing the type would be loaded during runtime)
+ // possible that the assembly containing the type would be loaded during runtime)
// in these cases, we rely on the setter PSVariable.Value to handle those attributes.
internal const int ForceDynamic = -2;
@@ -697,8 +697,8 @@ namespace System.Management.Automation.Language
// However, $? is not a real automatic variable from 'SpecialVariables.AutomaticVariables'
// even though it's marked as so, and thus we need to exclude it.
var orderedLocals = (from details in _variables.Values
- where (details.LocalTupleIndex >= 0 || (details.LocalTupleIndex == ForceDynamic &&
- details.Automatic &&
+ where (details.LocalTupleIndex >= 0 || (details.LocalTupleIndex == ForceDynamic &&
+ details.Automatic &&
details.Name != SpecialVariables.Question))
orderby details.LocalTupleIndex
select details).ToArray();
diff --git a/src/System.Management.Automation/engine/parser/ast.cs b/src/System.Management.Automation/engine/parser/ast.cs
index ec583e553c..4488daf92e 100644
--- a/src/System.Management.Automation/engine/parser/ast.cs
+++ b/src/System.Management.Automation/engine/parser/ast.cs
@@ -185,7 +185,7 @@ namespace System.Management.Automation.Language
public abstract Ast Copy();
///
- /// Constructs the resultant object from the AST and returns it if it is safe.
+ /// Constructs the resultant object from the AST and returns it if it is safe.
///
/// The object represented by the AST as a safe object
///
@@ -698,7 +698,7 @@ namespace System.Management.Automation.Language
#region Script Blocks
///
- ///
+ ///
///
public class ScriptRequirements
{
@@ -2617,7 +2617,7 @@ namespace System.Management.Automation.Language
}
set
{
- // The assert may seem a little bit confusing.
+ // The assert may seem a little bit confusing.
// It's because RuntimeType is not a public class and I don't want to use Name string in assert.
// The basic idea is that Type field should go thru 3 stages:
// 1. null
@@ -4616,7 +4616,7 @@ namespace System.Management.Automation.Language
///
Parallel = 0x20,
- // If any flags are added that influence evaluation of switch elements,
+ // If any flags are added that influence evaluation of switch elements,
// then the caching strategy in SwitchClauseEvalBinder needs to be updated,
// and possibly its _binderCache.
}
@@ -5596,7 +5596,7 @@ namespace System.Management.Automation.Language
///
/// The ast that represents a parameter to a command, e.g. dir -Path a*, this class represent '-Path', and
/// in dir -Path:a*, this class represents '-Path:a*'.
- ///
+ ///
/// In the first case, the argument 'a*' is not represented by this class because the parser can't know until runtime
/// if the argument is positional or if -Path accepts an argument. In the later case, the argument 'a*' always
/// belongs to the parameter -Path.
@@ -5790,9 +5790,9 @@ namespace System.Management.Automation.Language
///
/// Returns the name of the command invoked by this ast.
- ///
+ ///
/// This command name may not be known statically, in which case null is returned.
- ///
+ ///
///
/// For example, if the command name is in a variable: & $foo, then the parser cannot know which command is executed.
/// Similarly, if the command is being invoked in a module: & (gmo SomeModule) Bar, then the parser does not know the
@@ -6589,7 +6589,7 @@ namespace System.Management.Automation.Language
// [string]
// $InstanceName = "" # THe name of the configuration instance being created.
// [boolean]
- // $IsMetaConfig = $false # the configuration to generated is a meta configuration
+ // $IsMetaConfig = $false # the configuration to generated is a meta configuration
// )
// }
var cea = new Collection
@@ -6714,7 +6714,7 @@ namespace System.Management.Automation.Language
#region static fields/methods
///
- ///
+ ///
///
///
/// Item1 - ResourceName, Item2 - ModuleName, Item3 - ModuleVersion
@@ -6748,7 +6748,7 @@ namespace System.Management.Automation.Language
resourceNames = paramValue;
}
// Since both parameters -ModuleName and -ModuleVersion has same start string i.e. Module so we will try to resolve it to -ModuleName
- // if user specifies like -Module
+ // if user specifies like -Module
if ((paramName.Length <= moduleNameParam.Length) && (paramName.Equals(moduleNameParam.Substring(0, paramName.Length), StringComparison.OrdinalIgnoreCase)))
{
moduleNames = paramValue;
@@ -6817,7 +6817,7 @@ namespace System.Management.Automation.Language
[string[]]
$DependsOn,
[PSCredential]
- $PsDscRunAsCredential,
+ $PsDscRunAsCredential,
[string]
$OutputPath,
[hashtable]
@@ -6942,7 +6942,7 @@ namespace System.Management.Automation.Language
}
///
- /// A non-empty collection of command elements represent the content of the
+ /// A non-empty collection of command elements represent the content of the
/// DynamicKeyword.
/// It may represents a command, such as “Import-DSCResource”,
/// or DSC resources, then CommandElements includes:
@@ -7555,7 +7555,7 @@ namespace System.Management.Automation.Language
public class BlockStatementAst : StatementAst
{
///
- /// Construct a keyword block expression
+ /// Construct a keyword block expression
///
///
///
@@ -8246,13 +8246,13 @@ namespace System.Management.Automation.Language
/// Construct an instance of a base ctor invocation expression.
///
///
- /// The extent of the base keyword, i.e. for
+ /// The extent of the base keyword, i.e. for
/// class B : A { B() : base(100) {} }
/// it will be "base".
/// Can be empty extent (i.e. for implicit base ctor call).
///
///
- /// The extent of the base ctor call expression, i.e. for
+ /// The extent of the base ctor call expression, i.e. for
/// class B : A { B() : base(100) {} }
/// it will be "base(100)"
/// Can be empty extent (i.e. for implicit base ctor call).
diff --git a/src/System.Management.Automation/engine/parser/token.cs b/src/System.Management.Automation/engine/parser/token.cs
index 02849b7dec..dfe2d52701 100644
--- a/src/System.Management.Automation/engine/parser/token.cs
+++ b/src/System.Management.Automation/engine/parser/token.cs
@@ -1422,7 +1422,7 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
public class LabelToken : Token
{
@@ -1433,7 +1433,7 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
public string LabelText { get; }
}
diff --git a/src/System.Management.Automation/engine/parser/tokenizer.cs b/src/System.Management.Automation/engine/parser/tokenizer.cs
index a9e59c3702..765353a259 100644
--- a/src/System.Management.Automation/engine/parser/tokenizer.cs
+++ b/src/System.Management.Automation/engine/parser/tokenizer.cs
@@ -27,7 +27,7 @@ namespace System.Management.Automation.Language
///
NoName = 0,
///
- /// Name must be present and simple non-empty bare word
+ /// Name must be present and simple non-empty bare word
///
SimpleNameRequired = 1,
///
@@ -65,7 +65,7 @@ namespace System.Management.Automation.Language
///
/// Defines the schema/behaviour for a dynamic keyword.
- /// a constrained
+ /// a constrained
///
public class DynamicKeyword
{
@@ -127,7 +127,7 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
///
///
@@ -148,7 +148,7 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
///
///
@@ -164,7 +164,7 @@ namespace System.Management.Automation.Language
}
///
- ///
+ ///
///
///
public static void AddKeyword(DynamicKeyword keywordToAdd)
@@ -290,7 +290,7 @@ namespace System.Management.Automation.Language
/// rewrite the node as a simple direct function call.
/// If NameMode is other than NoName, then the name of the instance
/// will be passed as the parameter -InstanceName.
- ///
+ ///
///
public bool DirectCall { get; set; }
@@ -559,15 +559,15 @@ namespace System.Management.Automation.Language
};
internal static readonly string[] _operatorText = new string[] {
- /*1*/ "bnot", "not", "eq", "ieq", /*1*/
- /*2*/ "ceq", "ne", "ine", "cne", /*2*/
- /*3*/ "ge", "ige", "cge", "gt", /*3*/
- /*4*/ "igt", "cgt", "lt", "ilt", /*4*/
- /*5*/ "clt", "le", "ile", "cle", /*5*/
- /*6*/ "like", "ilike", "clike", "notlike", /*6*/
- /*7*/ "inotlike", "cnotlike", "match", "imatch", /*7*/
- /*8*/ "cmatch", "notmatch", "inotmatch", "cnotmatch", /*8*/
- /*9*/ "replace", "ireplace", "creplace", "contains", /*9*/
+ /*1*/ "bnot", "not", "eq", "ieq", /*1*/
+ /*2*/ "ceq", "ne", "ine", "cne", /*2*/
+ /*3*/ "ge", "ige", "cge", "gt", /*3*/
+ /*4*/ "igt", "cgt", "lt", "ilt", /*4*/
+ /*5*/ "clt", "le", "ile", "cle", /*5*/
+ /*6*/ "like", "ilike", "clike", "notlike", /*6*/
+ /*7*/ "inotlike", "cnotlike", "match", "imatch", /*7*/
+ /*8*/ "cmatch", "notmatch", "inotmatch", "cnotmatch", /*8*/
+ /*9*/ "replace", "ireplace", "creplace", "contains", /*9*/
/*10*/ "icontains", "ccontains", "notcontains", "inotcontains", /*10*/
/*11*/ "cnotcontains", "in", "iin", "cin", /*11*/
/*12*/ "notin", "inotin", "cnotin", "split", /*12*/
@@ -578,15 +578,15 @@ namespace System.Management.Automation.Language
};
private static readonly TokenKind[] s_operatorTokenKind = new TokenKind[] {
- /*1*/ TokenKind.Bnot, TokenKind.Not, TokenKind.Ieq, TokenKind.Ieq, /*1*/
- /*2*/ TokenKind.Ceq, TokenKind.Ine, TokenKind.Ine, TokenKind.Cne, /*2*/
- /*3*/ TokenKind.Ige, TokenKind.Ige, TokenKind.Cge, TokenKind.Igt, /*3*/
- /*4*/ TokenKind.Igt, TokenKind.Cgt, TokenKind.Ilt, TokenKind.Ilt, /*4*/
- /*5*/ TokenKind.Clt, TokenKind.Ile, TokenKind.Ile, TokenKind.Cle, /*5*/
- /*6*/ TokenKind.Ilike, TokenKind.Ilike, TokenKind.Clike, TokenKind.Inotlike, /*6*/
- /*7*/ TokenKind.Inotlike, TokenKind.Cnotlike, TokenKind.Imatch, TokenKind.Imatch, /*7*/
- /*8*/ TokenKind.Cmatch, TokenKind.Inotmatch, TokenKind.Inotmatch, TokenKind.Cnotmatch, /*8*/
- /*9*/ TokenKind.Ireplace, TokenKind.Ireplace, TokenKind.Creplace, TokenKind.Icontains, /*9*/
+ /*1*/ TokenKind.Bnot, TokenKind.Not, TokenKind.Ieq, TokenKind.Ieq, /*1*/
+ /*2*/ TokenKind.Ceq, TokenKind.Ine, TokenKind.Ine, TokenKind.Cne, /*2*/
+ /*3*/ TokenKind.Ige, TokenKind.Ige, TokenKind.Cge, TokenKind.Igt, /*3*/
+ /*4*/ TokenKind.Igt, TokenKind.Cgt, TokenKind.Ilt, TokenKind.Ilt, /*4*/
+ /*5*/ TokenKind.Clt, TokenKind.Ile, TokenKind.Ile, TokenKind.Cle, /*5*/
+ /*6*/ TokenKind.Ilike, TokenKind.Ilike, TokenKind.Clike, TokenKind.Inotlike, /*6*/
+ /*7*/ TokenKind.Inotlike, TokenKind.Cnotlike, TokenKind.Imatch, TokenKind.Imatch, /*7*/
+ /*8*/ TokenKind.Cmatch, TokenKind.Inotmatch, TokenKind.Inotmatch, TokenKind.Cnotmatch, /*8*/
+ /*9*/ TokenKind.Ireplace, TokenKind.Ireplace, TokenKind.Creplace, TokenKind.Icontains, /*9*/
/*10*/ TokenKind.Icontains, TokenKind.Ccontains, TokenKind.Inotcontains, TokenKind.Inotcontains, /*10*/
/*11*/ TokenKind.Cnotcontains, TokenKind.Iin, TokenKind.Iin, TokenKind.Cin, /*11*/
/*12*/ TokenKind.Inotin, TokenKind.Inotin, TokenKind.Cnotin, TokenKind.Isplit, /*12*/
@@ -1366,7 +1366,7 @@ namespace System.Management.Automation.Language
//
// The average script is 14% comments and parses in about 5.05 ms with this algorithm,
// about 4.45 ms with the more simplistic algorithm.
- //
+ //
string commentLineComparison = commentLine.ToString().ToLowerInvariant();
int sawBeginTokenSimilarity = GetStringSimilarity(commentLineComparison, beginSignatureTextNoSpace);
@@ -4072,7 +4072,7 @@ namespace System.Management.Automation.Language
// check if the next token is actually a number
string strNum = ScanNumberHelper(c, out hex, out real, out suffix, out multiplier);
- // rescan characters after the check
+ // rescan characters after the check
_currentIndex = _tokenStart;
c = GetChar();
diff --git a/src/System.Management.Automation/engine/pipeline.cs b/src/System.Management.Automation/engine/pipeline.cs
index 250b77047e..dbbb5d52ef 100644
--- a/src/System.Management.Automation/engine/pipeline.cs
+++ b/src/System.Management.Automation/engine/pipeline.cs
@@ -60,7 +60,7 @@ namespace System.Management.Automation.Internal
///
/// This is only public because it implements an interface method.
/// The class itself is internal.
- ///
+ ///
/// We use the standard IDispose pattern.
///
public void Dispose()
@@ -1159,7 +1159,7 @@ namespace System.Management.Automation.Internal
} // private void Inject
///
- /// Retrieve results from the pipeline.
+ /// Retrieve results from the pipeline.
///
///
/// Results from last pipeline stage. This will be empty if
@@ -1539,7 +1539,7 @@ namespace System.Management.Automation.Internal
///
/// The scope the pipeline should execute in.
///
- ///
+ ///
internal SessionStateScope ExecutionScope
{
get { return _executionScope; }
diff --git a/src/System.Management.Automation/engine/regex.cs b/src/System.Management.Automation/engine/regex.cs
index 8d2806faf0..a2bb71565e 100644
--- a/src/System.Management.Automation/engine/regex.cs
+++ b/src/System.Management.Automation/engine/regex.cs
@@ -22,7 +22,7 @@ using Microsoft.PowerShell.CoreClr.Stubs;
namespace System.Management.Automation
{
///
- /// Provides enumerated values to use to set wildcard pattern
+ /// Provides enumerated values to use to set wildcard pattern
/// matching options.
///
[Flags]
@@ -34,7 +34,7 @@ namespace System.Management.Automation
None = 0,
///
- /// Specifies that the wildcard pattern is compiled to an assembly.
+ /// Specifies that the wildcard pattern is compiled to an assembly.
/// This yields faster execution but increases startup time.
///
Compiled = 1,
@@ -72,7 +72,7 @@ namespace System.Management.Automation
//
// options that control match behavior
- //
+ //
internal WildcardOptions Options { get; } = WildcardOptions.None;
///
@@ -88,7 +88,7 @@ namespace System.Management.Automation
}
///
- /// Initializes and instance of the WildcardPattern class
+ /// Initializes and instance of the WildcardPattern class
/// for the specified wildcard pattern.
///
/// The wildcard pattern to match
@@ -105,8 +105,8 @@ namespace System.Management.Automation
}
///
- /// Initializes an instance of the WildcardPattern class for
- /// the specified wildcard pattern expression, with options
+ /// Initializes an instance of the WildcardPattern class for
+ /// the specified wildcard pattern expression, with options
/// that modify the pattern.
///
/// The wildcard pattern to match.
@@ -291,10 +291,10 @@ namespace System.Management.Automation
/// Unescapes any escaped characters in the input string.
///
///
- /// The input string containing the text to convert.
+ /// The input string containing the text to convert.
///
///
- /// A string of characters with any escaped characters
+ /// A string of characters with any escaped characters
/// converted to their unescaped form.
///
///
@@ -371,7 +371,7 @@ namespace System.Management.Automation
///
/// Converts this wildcard to a string that can be used as a right-hand-side operand of the LIKE operator of WQL.
- /// For example: "a*" will be converted to "a%".
+ /// For example: "a*" will be converted to "a%".
///
///
public string ToWql()
@@ -402,7 +402,7 @@ namespace System.Management.Automation
public class WildcardPatternException : RuntimeException
{
///
- /// Constructor for class WildcardPatternException that takes
+ /// Constructor for class WildcardPatternException that takes
/// an ErrorRecord to use in constructing this exception.
///
/// This is the recommended constructor to use for this exception.
@@ -468,13 +468,13 @@ namespace System.Management.Automation
internal abstract class WildcardPatternParser
{
///
- /// Called from method to indicate
+ /// Called from method to indicate
/// the beginning of the wildcard pattern.
/// Default implementation simply returns.
///
///
- /// object that includes both
- /// the text of the pattern ()
+ /// object that includes both
+ /// the text of the pattern ()
/// and the pattern options ()
///
protected virtual void BeginWildcardPattern(WildcardPattern pattern)
@@ -483,22 +483,22 @@ namespace System.Management.Automation
///
/// Called from method to indicate that the next
- /// part of the pattern should match
+ /// part of the pattern should match
/// a literal character .
///
protected abstract void AppendLiteralCharacter(char c);
///
/// Called from method to indicate that the next
- /// part of the pattern should match
+ /// part of the pattern should match
/// any string, including an empty string.
///
protected abstract void AppendAsterix();
///
/// Called from method to indicate that the next
- /// part of the pattern should match
- /// any single character.
+ /// part of the pattern should match
+ /// any single character.
///
protected abstract void AppendQuestionMark();
@@ -511,16 +511,16 @@ namespace System.Management.Automation
}
///
- /// Called from method to indicate
+ /// Called from method to indicate
/// the beginning of a bracket expression.
///
///
- /// Bracket expressions of are
- /// a greatly simplified version of bracket expressions of POSIX wildcards
+ /// Bracket expressions of are
+ /// a greatly simplified version of bracket expressions of POSIX wildcards
/// (http://www.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html).
- /// Only literal characters and character ranges are supported.
- /// Negation (with either '!' or '^' characters),
- /// character classes ([:alpha:])
+ /// Only literal characters and character ranges are supported.
+ /// Negation (with either '!' or '^' characters),
+ /// character classes ([:alpha:])
/// and other advanced features are not supported.
///
protected abstract void BeginBracketExpression();
@@ -533,8 +533,8 @@ namespace System.Management.Automation
///
/// Called from method to indicate that the bracket expression
- /// should include all characters from character range
- /// starting at
+ /// should include all characters from character range
+ /// starting at
/// and ending at
///
protected abstract void AppendCharacterRangeToBracketExpression(
@@ -548,7 +548,7 @@ namespace System.Management.Automation
///
/// PowerShell v1 and v2 treats all characters inside
- /// as literal characters,
+ /// as literal characters,
/// except '-' sign which denotes a range. In particular it means that
/// '^', '[', ']' are escaped within the bracket expression and don't
/// have their regex-y meaning.
@@ -591,7 +591,7 @@ namespace System.Management.Automation
}
///
- /// Parses , calling appropriate overloads
+ /// Parses , calling appropriate overloads
/// in
///
/// Pattern to parse
@@ -613,7 +613,7 @@ namespace System.Management.Automation
{
// An unescaped closing square bracket closes the character set. In other
// words, there are no nested square bracket expressions
- // This is different than the POSIX spec
+ // This is different than the POSIX spec
// (at http://www.opengroup.org/onlinepubs/9699919799/functions/fnmatch.html),
// but we are keeping this behavior for back-compatibility.
@@ -897,13 +897,13 @@ namespace System.Management.Automation
// - each state of NFA is represented by (patternPosition, stringPosition) tuple
// - state transitions are documented in
// ProcessStringCharacter and ProcessEndOfString methods
- // - the algorithm below tries to see if there is a path
+ // - the algorithm below tries to see if there is a path
// from (0, 0) to (lengthOfPattern, lengthOfString)
// - this is a regular graph traversal
- // - there are O(1) edges per node (at most 2 edges)
+ // - there are O(1) edges per node (at most 2 edges)
// so the whole graph traversal takes O(number of nodes in the graph) =
// = O(lengthOfPattern * lengthOfString) time
- // - for efficient remembering which states have already been visited,
+ // - for efficient remembering which states have already been visited,
// the traversal goes methodically from beginning to end of the string
// therefore requiring only O(lengthOfPattern) memory for remembering
// which states have been already visited
@@ -935,7 +935,7 @@ namespace System.Management.Automation
patternPositionsForNextStringPosition);
}
- // swap patternPositionsForCurrentStringPosition
+ // swap patternPositionsForCurrentStringPosition
// with patternPositionsForNextStringPosition
var tmp = patternPositionsForCurrentStringPosition;
patternPositionsForCurrentStringPosition = patternPositionsForNextStringPosition;
@@ -1015,8 +1015,8 @@ namespace System.Management.Automation
}
}
- // non-virtual MoveNext is more performant
- // than implementing IEnumerable / virtual MoveNext
+ // non-virtual MoveNext is more performant
+ // than implementing IEnumerable / virtual MoveNext
public bool MoveNext(out int patternPosition)
{
Dbg.Assert(
diff --git a/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs b/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs
index 043c6571de..b3c89a4f80 100644
--- a/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs
+++ b/src/System.Management.Automation/engine/remoting/client/ClientRemotePowerShell.cs
@@ -27,7 +27,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region Constructors
///
- /// Constructor which creates a client remote powershell
+ /// Constructor which creates a client remote powershell
///
/// powershell instance
/// The runspace pool associated with
@@ -201,7 +201,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- ///
+ ///
///
internal void SendInput()
{
@@ -222,7 +222,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// data needs to be written to
/// informational buffers
/// which will hold debug, verbose and warning messages
- /// settings based on which this powershell
+ /// settings based on which this powershell
/// needs to be executed
/// output stream to which data
/// needs to be written to
@@ -290,7 +290,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- ///
+ ///
///
///
///
@@ -310,7 +310,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Attempts to reconnect or connect to a running command on a remote server,
+ /// Attempts to reconnect or connect to a running command on a remote server,
/// which will resume events and data collection from the server.
/// If connectCmdInfo parameter is null then a reconnection is attempted and
/// it is assumed that the current client state is unchanged since disconnection.
@@ -358,7 +358,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region Private Methods
///
- /// An error record is received from the powershell at the
+ /// An error record is received from the powershell at the
/// server side. It is added to the error collection of the
/// client powershell
///
@@ -410,7 +410,7 @@ namespace System.Management.Automation.Runspaces.Internal
{
PSInvocationStateInfo stateInfo = eventArgs.Data;
- // we should not receive any transient state from
+ // we should not receive any transient state from
// the server
Dbg.Assert(!(stateInfo.State == PSInvocationState.Running ||
stateInfo.State == PSInvocationState.Stopping),
@@ -435,8 +435,8 @@ namespace System.Management.Automation.Runspaces.Internal
(remotingTransportException.ErrorCode == System.Management.Automation.Remoting.Client.WSManNativeApi.ERROR_WSMAN_TARGETSESSION_DOESNOTEXIST);
}
- // if state is completed or failed or stopped,
- // then the collections need to be closed as
+ // if state is completed or failed or stopped,
+ // then the collections need to be closed as
// well, else the enumerator will block
UnblockCollections();
@@ -452,7 +452,7 @@ namespace System.Management.Automation.Runspaces.Internal
stateInfo.Reason));
// If the stop call failed due to network problems then close the runspace
- // since it is now unusable.
+ // since it is now unusable.
CheckAndCloseRunspaceAfterStop(stateInfo.Reason);
}
else
@@ -561,7 +561,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- ///
+ ///
///
///
///
@@ -629,13 +629,13 @@ namespace System.Management.Automation.Runspaces.Internal
///
private void HandleCloseCompleted(object sender, EventArgs args)
{
- // if state is completed or failed or stopped,
- // then the collections need to be closed as
+ // if state is completed or failed or stopped,
+ // then the collections need to be closed as
// well, else the enumerator will block
UnblockCollections();
- // close the transport manager when CreateCloseAckPacket is received
- // otherwise may have race conditions in Server.OutOfProcessMediator
+ // close the transport manager when CreateCloseAckPacket is received
+ // otherwise may have race conditions in Server.OutOfProcessMediator
dataStructureHandler.RaiseRemoveAssociationEvent();
if (_stateInfoQueue.Count == 0)
@@ -645,7 +645,7 @@ namespace System.Management.Automation.Runspaces.Internal
// in which case transition state to failed.
if (!IsFinished(shell.InvocationStateInfo.State))
{
- // If RemoteSessionStateEventArgs are provided then use them to set the
+ // If RemoteSessionStateEventArgs are provided then use them to set the
// session close reason when setting finished state.
RemoteSessionStateEventArgs sessionEventArgs = args as RemoteSessionStateEventArgs;
Exception closeReason = (sessionEventArgs != null) ? sessionEventArgs.SessionStateInfo.Reason : null;
@@ -696,7 +696,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- ///
+ ///
///
///
///
@@ -706,8 +706,8 @@ namespace System.Management.Automation.Runspaces.Internal
// RunspacePool is closed...so going to set the state of PowerShell
// to stopped here.
- // if state is completed or failed or stopped,
- // then the collections need to be closed as
+ // if state is completed or failed or stopped,
+ // then the collections need to be closed as
// well, else the enumerator will block
UnblockCollections();
@@ -739,8 +739,8 @@ namespace System.Management.Automation.Runspaces.Internal
// RunspacePool is closed...so going to set the state of PowerShell
// to stopped here.
- // if state is completed or failed or stopped,
- // then the collections need to be closed as
+ // if state is completed or failed or stopped,
+ // then the collections need to be closed as
// well, else the enumerator will block
UnblockCollections();
diff --git a/src/System.Management.Automation/engine/remoting/client/Job.cs b/src/System.Management.Automation/engine/remoting/client/Job.cs
index bb50cf9a60..86e859d85f 100644
--- a/src/System.Management.Automation/engine/remoting/client/Job.cs
+++ b/src/System.Management.Automation/engine/remoting/client/Job.cs
@@ -24,7 +24,7 @@ using Microsoft.PowerShell.CoreClr.Stubs;
#endif
// Stops compiler from warning about unknown warnings
-#pragma warning disable 1634, 1691
+#pragma warning disable 1634, 1691
namespace System.Management.Automation
{
@@ -45,7 +45,7 @@ namespace System.Management.Automation
Running = 1,
///
- /// execution of command completed in all
+ /// execution of command completed in all
/// computernames/runspaces
///
Completed = 2,
@@ -94,7 +94,7 @@ namespace System.Management.Automation
}
///
- /// Defines exception which is thrown when state of the PSJob is different
+ /// Defines exception which is thrown when state of the PSJob is different
/// from the expected state.
///
[Serializable]
@@ -129,7 +129,7 @@ namespace System.Management.Automation
/// Creates a new instance of InvalidPSJobStateException class.
///
///
- /// The error message that explains the reason for the exception.
+ /// The error message that explains the reason for the exception.
///
///
/// The exception that is the cause of the current exception.
@@ -162,7 +162,7 @@ namespace System.Management.Automation
}
///
- /// Initializes a new instance of the InvalidPSJobStateException and defines value of
+ /// Initializes a new instance of the InvalidPSJobStateException and defines value of
/// CurrentState.
///
/// Current state of powershell
@@ -188,11 +188,11 @@ namespace System.Management.Automation
/// class with serialized data.
///
///
- /// The that holds the serialized object
+ /// The that holds the serialized object
/// data about the exception being thrown.
///
///
- /// The that contains contextual information
+ /// The that contains contextual information
/// about the source or destination.
///
protected
@@ -222,7 +222,7 @@ namespace System.Management.Automation
}
///
- /// Type which has information about JobState and Exception
+ /// Type which has information about JobState and Exception
/// ,if any, associated with JobState
///
public sealed class JobStateInfo
@@ -242,7 +242,7 @@ namespace System.Management.Automation
/// Constructor for state changes with an optional error.
///
/// The new state.
- /// A non-null exception if the state change was
+ /// A non-null exception if the state change was
/// caused by an error,otherwise; null.
///
public JobStateInfo(JobState state, Exception reason)
@@ -281,8 +281,8 @@ namespace System.Management.Automation
/// The reason for the state change, if caused by an error.
///
///
- /// The value of this property is non-null if the state
- /// changed due to an error. Otherwise, the value of this
+ /// The value of this property is non-null if the state
+ /// changed due to an error. Otherwise, the value of this
/// property is null.
///
public Exception Reason { get; }
@@ -563,7 +563,7 @@ namespace System.Management.Automation
public string Command { get; }
///
- /// Status of the command execution.
+ /// Status of the command execution.
///
public JobStateInfo JobStateInfo { get; private set; } = new JobStateInfo(JobState.NotStarted);
@@ -601,7 +601,7 @@ namespace System.Management.Automation
public Guid InstanceId { get; } = Guid.NewGuid();
///
- /// Short identifier for this result which will be
+ /// Short identifier for this result which will be
/// recycled and used within a process
///
public Int32 Id { get; }
@@ -644,13 +644,13 @@ namespace System.Management.Automation
}
///
- /// Success status of the command execution.
+ /// Success status of the command execution.
///
public abstract String StatusMessage { get; }
///
/// Indicates that more data is available in this
- /// result object for reading.
+ /// result object for reading.
///
public abstract bool HasMoreData { get; }
@@ -679,8 +679,8 @@ namespace System.Management.Automation
#region results
///
- /// Result objects from this job. If this object is not a
- /// leaf node (with no children), then this will
+ /// Result objects from this job. If this object is not a
+ /// leaf node (with no children), then this will
/// aggregate the results from all child jobs
///
internal PSDataCollection Results
@@ -987,7 +987,7 @@ namespace System.Management.Automation
///
/// This method is introduce for delaying the loading of streams
- /// for a particular job.
+ /// for a particular job.
///
protected virtual void DoLoadJobStreams()
{
@@ -1227,12 +1227,12 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the warning buffer. Warnings of job are written to
+ /// Gets or sets the warning buffer. Warnings of job are written to
/// this buffer
///
///
/// Cannot set to a null value.
- ///
+ ///
///
/// Object is disposed.
///
@@ -1261,12 +1261,12 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the information buffer. Information records of job are written to
+ /// Gets or sets the information buffer. Information records of job are written to
/// this buffer
///
///
/// Cannot set to a null value.
- ///
+ ///
///
/// Object is disposed.
///
@@ -1305,7 +1305,7 @@ namespace System.Management.Automation
///
/// Returns boolean indicating whether the underlying
- /// transport for the job (or child jobs) supports
+ /// transport for the job (or child jobs) supports
/// connect/disconnect semantics.
///
internal virtual bool CanDisconnect
@@ -1421,7 +1421,7 @@ namespace System.Management.Automation
tracer.TraceException(exception);
}
- // finished needs to be set after StateChanged event
+ // finished needs to be set after StateChanged event
// has been raised
if (alldone)
{
@@ -1453,7 +1453,7 @@ namespace System.Management.Automation
///
/// Returns the items in results collection
- /// after clearing up all the internal
+ /// after clearing up all the internal
/// structures
///
/// collection of stream objects
@@ -1496,7 +1496,7 @@ namespace System.Management.Automation
/// If changes are not allowed, throws an exception.
///
///
- /// Powershell instance cannot be changed in its
+ /// Powershell instance cannot be changed in its
/// current state.
///
///
@@ -1520,7 +1520,7 @@ namespace System.Management.Automation
///
/// auto generated job name
/// Since the user can script/program against the
- /// job name, the auto generated name will not be
+ /// job name, the auto generated name will not be
/// localizable
protected String AutoGenerateJobName()
{
@@ -1594,7 +1594,7 @@ namespace System.Management.Automation
}
///
- /// Release all the resources.
+ /// Release all the resources.
///
///
/// if true, release all the managed objects.
@@ -1687,12 +1687,12 @@ namespace System.Management.Automation
#region Internal Constructors
///
- /// Internal constructor for initializing PSRemotingJob using
+ /// Internal constructor for initializing PSRemotingJob using
/// computer names
///
/// names of computers for
/// which the job object is being created
- /// list of helper objects
+ /// list of helper objects
/// corresponding to the computer names
///
/// remote command corresponding to this
@@ -1712,7 +1712,7 @@ namespace System.Management.Automation
///
/// array of runspace info
/// objects on which the remote command is executed
- /// List of helper objects for the
+ /// List of helper objects for the
/// runspaces
/// remote command corresponding to this
/// job object
@@ -1726,12 +1726,12 @@ namespace System.Management.Automation
///
- /// Internal constructor for initializing PSRemotingJob using
+ /// Internal constructor for initializing PSRemotingJob using
/// computer names
///
/// names of computers for
/// which the result object is being created
- /// list of helper objects
+ /// list of helper objects
/// corresponding to the computer names
///
/// remote command corresponding to this
@@ -1765,7 +1765,7 @@ namespace System.Management.Automation
///
/// array of runspace info
/// objects on which the remote command is executed
- /// List of helper objects for the
+ /// List of helper objects for the
/// runspaces
/// remote command corresponding to this
/// result object
@@ -1808,7 +1808,7 @@ namespace System.Management.Automation
: base(string.Empty, name)
{
// All pipeline objects must be in "disconnected" state and associated to running
- // remote commands. Once the jobs are connected they can be stopped using the
+ // remote commands. Once the jobs are connected they can be stopped using the
// ExecutionCmdletHelperRunspace object and ThrottleManager.
foreach (ExecutionCmdletHelper helper in helpers)
{
@@ -1861,7 +1861,7 @@ namespace System.Management.Automation
///
/// Get entity result for the specified computer
///
- /// computername for which entity
+ /// computername for which entity
/// result is required
/// entity result
internal List GetJobsForComputer(String computerName)
@@ -1885,7 +1885,7 @@ namespace System.Management.Automation
///
/// Get entity result for the specified runspace
///
- /// runspace for which entity
+ /// runspace for which entity
/// result is required
/// entity result
internal List GetJobsForRunspace(PSSession runspace)
@@ -1907,7 +1907,7 @@ namespace System.Management.Automation
///
/// Get entity result for the specified helper object
///
- /// helper for which entity
+ /// helper for which entity
/// result is required
/// entity result
internal List GetJobsForOperation(IThrottleOperation operation)
@@ -2084,7 +2084,7 @@ namespace System.Management.Automation
}
///
- /// Finds the disconnected child job associated with this runspace and returns
+ /// Finds the disconnected child job associated with this runspace and returns
/// the PowerShell object that is remotely executing the command.
///
/// Runspace instance Id.
@@ -2102,7 +2102,7 @@ namespace System.Management.Automation
}
///
- /// Helper method to find a disconnected child job associated with
+ /// Helper method to find a disconnected child job associated with
/// a given runspace.
///
/// Runspace Id.
@@ -2163,9 +2163,9 @@ namespace System.Management.Automation
{
get
{
- // moreData is initially set to true, and it
- // will remain so until the async result
- // object has completed execution.
+ // moreData is initially set to true, and it
+ // will remain so until the async result
+ // object has completed execution.
if (_moreData && IsFinishedState(JobStateInfo.State))
{
@@ -2190,7 +2190,7 @@ namespace System.Management.Automation
private bool _stopIsCalled = false;
///
- /// Stop Job
+ /// Stop Job
///
public override void StopJob()
{
@@ -2474,7 +2474,7 @@ namespace System.Management.Automation
if ((newState == JobState.Running) && (JobStateInfo.State == JobState.Disconnected))
{
- // Note that SetJobState() takes a lock so it is unnecessary to do
+ // Note that SetJobState() takes a lock so it is unnecessary to do
// this under a lock here.
SetJobState(JobState.Running, null);
}
@@ -2485,7 +2485,7 @@ namespace System.Management.Automation
#endregion finish logic
///
- /// Release all the resources.
+ /// Release all the resources.
///
///
/// if true, release all the managed objects.
@@ -2560,7 +2560,7 @@ namespace System.Management.Automation
///
/// Returns boolean indicating whether the underlying
- /// transport for the job (or child jobs) supports
+ /// transport for the job (or child jobs) supports
/// connect/disconnect semantics.
///
internal override bool CanDisconnect
@@ -2620,7 +2620,7 @@ namespace System.Management.Automation
private ThrottleManager _throttleManager = new ThrottleManager();
- private readonly object _syncObject = new object(); // sync object
+ private readonly object _syncObject = new object(); // sync object
#endregion Private Members
}
@@ -2696,7 +2696,7 @@ namespace System.Management.Automation
///
/// Class for RemotingChildJob object. This job object invokes command
- /// on one remote machine.
+ /// on one remote machine.
///
///
/// TODO: I am not sure whether to change this internal to just RemotingChildJob.
@@ -2712,7 +2712,7 @@ namespace System.Management.Automation
/// Creates an instance of PSRemotingChildJob
///
/// command invoked by this job object
- ///
+ ///
///
///
internal PSRemotingChildJob(string remoteCommand, ExecutionCmdletHelper helper, ThrottleManager throttleManager)
@@ -2742,7 +2742,7 @@ namespace System.Management.Automation
///
/// Constructs a disconnected child job that is able to connect to a remote
/// runspace/command on a server. The ExecutionCmdletHelperRunspace must
- /// contain a remote pipeline object in a disconnected state. In addition
+ /// contain a remote pipeline object in a disconnected state. In addition
/// the pipeline runspace must be associated with a valid running remote
/// command that can be connected to.
///
@@ -2888,7 +2888,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
public Runspace Runspace { get; }
@@ -2929,7 +2929,7 @@ namespace System.Management.Automation
///
/// Returns boolean indicating whether the underlying
- /// transport for the job (or child jobs) supports
+ /// transport for the job (or child jobs) supports
/// connect/disconnect semantics.
///
internal override bool CanDisconnect
@@ -3004,7 +3004,7 @@ namespace System.Management.Automation
if (dataObject != null)
{
// if the server has already added some properties, which we do not
- // want to trust, we simply replace them with the server's
+ // want to trust, we simply replace them with the server's
// identity we know of
if (dataObject.Properties[RemotingConstants.ComputerNameNoteProperty] != null)
@@ -3037,7 +3037,7 @@ namespace System.Management.Automation
/// pipeline. The error records are queued on to the
/// internal stream
///
- /// the pipeline reader which raised
+ /// the pipeline reader which raised
/// this event
/// information describing the ready event
private void HandleErrorReady(object sender, EventArgs eventArgs)
@@ -3058,7 +3058,7 @@ namespace System.Management.Automation
new RemotingErrorRecord(er, originInfo);
errorRecord.PreserveInvocationInfoOnce = true;
- //ISSUE: Add an Assert for ErrorRecord.
+ //ISSUE: Add an Assert for ErrorRecord.
//Add to the PSRemotingChild jobs streams
this.WriteError(errorRecord);
}
@@ -3189,9 +3189,9 @@ namespace System.Management.Automation
{
//Question: Why do we register for HandleThrottleComplete when we have already
//registered for PipelineStateChangedEvent?
- //Answer: Because ThrottleManager at a given time can have some pipelines which are
+ //Answer: Because ThrottleManager at a given time can have some pipelines which are
//still not started. If TM.Stop() is called, then it simply discards those pipelines and
- //PipelineStateChangedEvent is not called for them. For such jobs, we depend on
+ //PipelineStateChangedEvent is not called for them. For such jobs, we depend on
//HandleThrottleComplete to mark the finish of job.
//Question: So it is possible in some cases DoFinish can be called twice.
@@ -3208,7 +3208,7 @@ namespace System.Management.Automation
/// operation complete event args
protected virtual void HandleOperationComplete(object sender, OperationStateEventArgs stateEventArgs)
{
- //Question:Why are we registering for OperationComplete if we already
+ //Question:Why are we registering for OperationComplete if we already
//registering for StateChangedEvent and ThrottleComplete event
//Answer:Because in case of computer, if Runspace.Open it self fails,
//no pipeline is created and no pipeline state changed event is raised.
@@ -3223,7 +3223,7 @@ namespace System.Management.Automation
private bool _doFinishCalled = false;
///
- /// This method marks the completion state for Job. Also if job failed, it processes the
+ /// This method marks the completion state for Job. Also if job failed, it processes the
/// reason of failure.
///
protected virtual void DoFinish()
@@ -3271,14 +3271,14 @@ namespace System.Management.Automation
out ErrorRecord failureErrorRecord)
{
// There are three errors possible
- // 1. The remote runspace is in (or went into) a
+ // 1. The remote runspace is in (or went into) a
// broken state. This information is available
// in the runspace state information
// 2. The remote pipeline failed because of an
// exception. This information is available
// in the pipeline state information
// 3. Runspace.OpenAsync or Pipeline.InvokeAsync threw exception
- // They are in Helper.InternalException
+ // They are in Helper.InternalException
Dbg.Assert(helper != null, "helper is null");
@@ -3382,9 +3382,9 @@ namespace System.Management.Automation
else
{
// at this point, there may be no failure reason available in
- // the runspace because the remoting protocol
+ // the runspace because the remoting protocol
// layer may not have yet assigned it to the runspace
- // in such a case, the remoting protocol layer would have
+ // in such a case, the remoting protocol layer would have
// assigned an exception in the client end to the pipeline
// create an error record from it and write it out
errorRecord = new ErrorRecord(pipeline.PipelineStateInfo.Reason,
@@ -3399,11 +3399,11 @@ namespace System.Management.Automation
failureErrorRecord = new RemotingErrorRecord(errorRecord, originInfo);
} // if (exception != null...
- } // if (pipeline...
+ } // if (pipeline...
}
///
- /// Release all the resources.
+ /// Release all the resources.
///
///
/// if true, release all the managed objects.
@@ -3481,7 +3481,7 @@ namespace System.Management.Automation
pipeline.Error.DataReady += new EventHandler(HandleErrorReady);
pipeline.StateChanged += new EventHandler(HandlePipelineStateChanged);
- // Register handler for method executor object stream.
+ // Register handler for method executor object stream.
Dbg.Assert(pipeline is RemotePipeline, "pipeline is RemotePipeline");
RemotePipeline remotePipeline = pipeline as RemotePipeline;
remotePipeline.MethodExecutorStream.DataReady += new EventHandler(HandleHostCalls);
@@ -3496,7 +3496,7 @@ namespace System.Management.Automation
remotePipeline.PowerShell.Streams.Information.DataAdded +=
new EventHandler(HandleInformationAdded);
- // Enable method executor stream so that host methods are queued up
+ // Enable method executor stream so that host methods are queued up
// on it instead of being executed asynchronously when they arrive.
remotePipeline.IsMethodExecutorStreamEnabled = true;
@@ -3776,7 +3776,7 @@ namespace System.Management.Automation
}
///
- /// Monitor runspace availability and if it goes to RemoteDebug then set
+ /// Monitor runspace availability and if it goes to RemoteDebug then set
/// job state to Debug. Set back to Running when availability goes back to
/// Busy (indicating the script/command is running again).
///
@@ -3827,7 +3827,7 @@ namespace System.Management.Automation
}
///
- /// This is a debugger wrapper class used to allow debugging of
+ /// This is a debugger wrapper class used to allow debugging of
/// remoting jobs that implement the IJobDebugger interface.
///
internal sealed class RemotingJobDebugger : Debugger
@@ -3879,7 +3879,7 @@ namespace System.Management.Automation
#region Debugger overrides
///
- /// Evaluates provided command either as a debugger specific command
+ /// Evaluates provided command either as a debugger specific command
/// or a PowerShell command.
///
/// PowerShell command
@@ -4186,7 +4186,7 @@ namespace System.Management.Automation
}
///
- /// release all resources
+ /// release all resources
///
/// true if called by Dispose()
protected override void Dispose(bool disposing)
@@ -4241,8 +4241,8 @@ namespace System.Management.Automation
}
///
- /// Checks for a condition where all pipelines are either finished
- /// or disconnected and at least one pipeline is disconnected.
+ /// Checks for a condition where all pipelines are either finished
+ /// or disconnected and at least one pipeline is disconnected.
/// In this case the Job state is set to Disconnected.
///
private void CheckForAndSetDisconnectedState(PipelineState pipelineState)
@@ -4274,7 +4274,7 @@ namespace System.Management.Automation
if (setJobStateToDisconnected)
{
- // Job cannot finish with pipelines in disconnected state.
+ // Job cannot finish with pipelines in disconnected state.
// Set Job state to Disconnected.
SetJobState(JobState.Disconnected);
}
@@ -4291,7 +4291,7 @@ namespace System.Management.Automation
private bool _doFinishCalled = false;
///
- /// This method marks the completion state for Job. Also if job failed, it processes the
+ /// This method marks the completion state for Job. Also if job failed, it processes the
/// reason of failure.
///
protected override void DoFinish()
diff --git a/src/System.Management.Automation/engine/remoting/client/Job2.cs b/src/System.Management.Automation/engine/remoting/client/Job2.cs
index 86e45d4389..e6b251df2a 100644
--- a/src/System.Management.Automation/engine/remoting/client/Job2.cs
+++ b/src/System.Management.Automation/engine/remoting/client/Job2.cs
@@ -33,7 +33,7 @@ namespace System.Management.Automation
/// implementations of the same, it is required to have a
/// new class that will have the extended functionality. This
/// is to ensure that backwards compatibility is maintained
- ///
+ ///
/// However, this class will derive from the existing Job
/// class. The option of deprecating the existing class was
/// considered as well. In order to maintain backwards
@@ -48,7 +48,7 @@ namespace System.Management.Automation
/// asynchronous support can be provided:
/// 1. Classical pattern (Begin and End)
/// 2. Event based pattern
- ///
+ ///
/// Although the PowerShell API uses the classical pattern
/// and we would like the Job API and PowerShell API to be
/// as close as possible, the classical pattern is inherently
@@ -58,7 +58,7 @@ namespace System.Management.Automation
#region Private Members
///
- /// These are the parameters that can be used by a job
+ /// These are the parameters that can be used by a job
/// implementation when they want to specify parameters
/// to start a job
///
@@ -82,7 +82,7 @@ namespace System.Management.Automation
#region Properties
///
- /// Parameters to be used to start a job.
+ /// Parameters to be used to start a job.
/// This is a property because CommandParameterCollection
/// does not have a public constructor. Hence the
/// infrastructure creates an instance and provides
@@ -121,7 +121,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
protected object SyncRoot
{
@@ -227,13 +227,13 @@ namespace System.Management.Automation
///
/// Event to be raise when the start job activity is completed.
- /// This event should not be raised for
+ /// This event should not be raised for
/// synchronous operation
///
public event EventHandler StartJobCompleted;
///
- /// Method which can be extended or called by derived
+ /// Method which can be extended or called by derived
/// classes to raise the event when start of
/// the job is completed
///
@@ -246,7 +246,7 @@ namespace System.Management.Automation
///
/// Method which can be extended or called by derived
- /// classes to raise the event when stopping a
+ /// classes to raise the event when stopping a
/// job is completed
///
/// argument describing
@@ -257,8 +257,8 @@ namespace System.Management.Automation
}
///
- /// Method which can be extended or called by derived
- /// classes to raise the event when suspending a
+ /// Method which can be extended or called by derived
+ /// classes to raise the event when suspending a
/// job is completed
///
/// argument describing
@@ -282,7 +282,7 @@ namespace System.Management.Automation
///
/// Method which can be extended or called by derived
- /// classes to raise the event when unblocking a
+ /// classes to raise the event when unblocking a
/// blocked job is completed
///
/// argument describing
@@ -293,10 +293,10 @@ namespace System.Management.Automation
}
///
- /// Raises the appropriate event based on the operation
+ /// Raises the appropriate event based on the operation
/// and the associated event arguments
///
- /// operation for which the event
+ /// operation for which the event
/// needs to be raised
///
private void RaiseCompletedHandler(int operation, AsyncCompletedEventArgs eventArgs)
@@ -362,8 +362,8 @@ namespace System.Management.Automation
public abstract void StopJobAsync();
///
- /// Event to be raised when the asynchronous stopping of a job
- /// is completed.This event should not be raised for
+ /// Event to be raised when the asynchronous stopping of a job
+ /// is completed.This event should not be raised for
/// synchronous operation
///
public event EventHandler StopJobCompleted;
@@ -380,7 +380,7 @@ namespace System.Management.Automation
///
/// This event should be raised whenever the asynchronous suspend of
- /// a job is completed. This event should not be raised for
+ /// a job is completed. This event should not be raised for
/// synchronous operation
///
public event EventHandler SuspendJobCompleted;
@@ -396,8 +396,8 @@ namespace System.Management.Automation
public abstract void ResumeJobAsync();
///
- /// This event should be raised whenever the asynchronous resume of
- /// a suspended job is completed. This event should not be raised for
+ /// This event should be raised whenever the asynchronous resume of
+ /// a suspended job is completed. This event should not be raised for
/// synchronous operation
///
public event EventHandler ResumeJobCompleted;
@@ -442,7 +442,7 @@ namespace System.Management.Automation
///
/// This event should be raised whenever the asynchronous unblock
- /// of a blocked job is completed. This event should not be raised for
+ /// of a blocked job is completed. This event should not be raised for
/// synchronous operation
///
public event EventHandler UnblockJobCompleted;
@@ -468,7 +468,7 @@ namespace System.Management.Automation
UseThreadPoolThread = 1,
///
- /// Create a new thread everything and reuse
+ /// Create a new thread everything and reuse
///
UseNewThread = 2,
}
@@ -672,7 +672,7 @@ namespace System.Management.Automation
}
///
- /// Create a container parent job with the specified command, name,
+ /// Create a container parent job with the specified command, name,
/// job type strings.
///
/// Command string
@@ -728,9 +728,9 @@ namespace System.Management.Automation
{
get
{
- // moreData is initially set to true, and it
- // will remain so until the async result
- // object has completed execution.
+ // moreData is initially set to true, and it
+ // will remain so until the async result
+ // object has completed execution.
if (_moreData && IsFinishedState(JobStateInfo.State))
{
bool atleastOneChildHasMoreData = false;
@@ -853,7 +853,7 @@ namespace System.Management.Automation
_tracer.WriteMessage(TraceClassName, "StartJob", Guid.Empty, this,
"Child job asynchronously, child InstanceId: {0}", job.InstanceId.ToString());
- // This child job is created to run synchronously and so can be debugged. Set
+ // This child job is created to run synchronously and so can be debugged. Set
// the IJobDebugger.IsAsync accordingly.
ScriptDebugger.SetDebugJobAsync(job as IJobDebugger, false);
job.StartJobAsync();
@@ -870,7 +870,7 @@ namespace System.Management.Automation
if (ExecutionError.Count > 0)
{
// Check to see expected behavior if one child job fails to start.
- }
+ }
if (ExecutionError.Count == 1)
{
@@ -1888,7 +1888,7 @@ namespace System.Management.Automation
// Ignore state changes which are not resulting in state change to finished.
- // State will be Running once at least one child is running.
+ // State will be Running once at least one child is running.
if ((e.JobStateInfo.State != JobState.Completed && e.JobStateInfo.State != JobState.Failed) && e.JobStateInfo.State != JobState.Stopped)
{
if (e.JobStateInfo.State == JobState.Running)
@@ -1905,7 +1905,7 @@ namespace System.Management.Automation
if (e.JobStateInfo.State == JobState.Failed)
{
// If any of the child job failed, we set status to failed
- // we can set it right now and
+ // we can set it right now and
Interlocked.Increment(ref failedChildJobsCount);
}
@@ -1972,7 +1972,7 @@ namespace System.Management.Automation
#endregion finish logic
///
- /// Release all the resources.
+ /// Release all the resources.
///
///
/// if true, release all the managed objects.
diff --git a/src/System.Management.Automation/engine/remoting/client/JobManager.cs b/src/System.Management.Automation/engine/remoting/client/JobManager.cs
index 8219b00f53..242c284f84 100644
--- a/src/System.Management.Automation/engine/remoting/client/JobManager.cs
+++ b/src/System.Management.Automation/engine/remoting/client/JobManager.cs
@@ -520,7 +520,7 @@ namespace System.Management.Automation
///
///
///
- /// Collection of jobs that match the
+ /// Collection of jobs that match the
/// specified criteria.
/// If cmdlet parameter is null, throws exception on error from
/// JobSourceAdapter implementation.
@@ -626,7 +626,7 @@ namespace System.Management.Automation
}
///
- /// Compare sourceAdapter name with the provided source adapter type
+ /// Compare sourceAdapter name with the provided source adapter type
/// name list.
///
///
@@ -788,8 +788,8 @@ namespace System.Management.Automation
}
///
- /// Gets or creates a Job2 object with the given definition name, path
- /// and definition type if specified, that can be run via the StartJob()
+ /// Gets or creates a Job2 object with the given definition name, path
+ /// and definition type if specified, that can be run via the StartJob()
/// method.
///
/// Job definition name.
diff --git a/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs b/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs
index 07e7d4ea78..24aed35947 100644
--- a/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs
+++ b/src/System.Management.Automation/engine/remoting/client/JobSourceAdapter.cs
@@ -21,7 +21,7 @@ using Microsoft.PowerShell.CoreClr.Stubs;
namespace System.Management.Automation
{
///
- /// Contains the definition of a job which is defined in a
+ /// Contains the definition of a job which is defined in a
/// job store
///
/// The actual implementation of this class will
@@ -144,7 +144,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -154,7 +154,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -165,16 +165,16 @@ namespace System.Management.Automation
}
///
- /// Class that helps define the parameters to
+ /// Class that helps define the parameters to
/// be passed to a job so that the job can be
/// instantiated without having to specify
- /// the parameters explicitly. Helps in
+ /// the parameters explicitly. Helps in
/// passing job parameters to disk
///
/// This class is not required if
/// CommandParameterCollection adds a public
- /// constructor.The actual implementation of
- /// this class will happen in M2
+ /// constructor.The actual implementation of
+ /// this class will happen in M2
[Serializable]
public class JobInvocationInfo : ISerializable
{
@@ -308,7 +308,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -319,7 +319,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -334,7 +334,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -344,7 +344,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -373,7 +373,7 @@ namespace System.Management.Automation
}
///
- /// Abstract class for a job store which will
+ /// Abstract class for a job store which will
/// contain the jobs of a specific type.
///
public abstract class JobSourceAdapter
@@ -450,9 +450,9 @@ namespace System.Management.Automation
}
///
- /// Creates a new job with the definition as specified by
+ /// Creates a new job with the definition as specified by
/// the provided definition name and path. If path is null
- /// then a default location will be used to find the job
+ /// then a default location will be used to find the job
/// definition by name.
///
/// Job definition name
@@ -528,12 +528,12 @@ namespace System.Management.Automation
/// dictionary containing name value
/// pairs for adapter specific filters
///
- /// collection of jobs that match the
+ /// collection of jobs that match the
/// specified criteria
public abstract IList GetJobsByFilter(Dictionary filter, bool recurse);
///
- /// Remove a job from the store
+ /// Remove a job from the store
///
/// job object to remove
public abstract void RemoveJob(Job2 job);
diff --git a/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs b/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs
index 48249c69c8..72fddf14c8 100644
--- a/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs
+++ b/src/System.Management.Automation/engine/remoting/client/PSProxyJob.cs
@@ -50,7 +50,7 @@ namespace System.Management.Automation
#region Overrides of Job
///
- /// Success status of the command execution.
+ /// Success status of the command execution.
///
public override string StatusMessage
{
@@ -59,15 +59,15 @@ namespace System.Management.Automation
///
/// Indicates that more data is available in this
- /// result object for reading.
+ /// result object for reading.
///
public override bool HasMoreData
{
get
{
- // moreData is initially set to true, and it
- // will remain so until the async result
- // object has completed execution.
+ // moreData is initially set to true, and it
+ // will remain so until the async result
+ // object has completed execution.
if (_moreData && IsFinishedState(JobStateInfo.State))
{
@@ -118,7 +118,7 @@ namespace System.Management.Automation
///
/// Start a job asynchronously
///
- /// When a job is started all the data in the
+ /// When a job is started all the data in the
/// job streams from a previous invocation will be cleared
public override void StartJobAsync()
{
@@ -359,7 +359,7 @@ namespace System.Management.Automation
///
/// Start execution of the job with the
- /// specified input. This input will serve as
+ /// specified input. This input will serve as
/// input to the underlying pipeline
///
///
@@ -533,7 +533,7 @@ namespace System.Management.Automation
public event EventHandler RemoveJobCompleted;
///
- /// Method to raise the event when removing a
+ /// Method to raise the event when removing a
/// server side job is completed
///
/// argument describing
@@ -595,7 +595,7 @@ namespace System.Management.Automation
///
/// Runspace in which this job will be executed
///
- /// At any point of time only a runspace or a
+ /// At any point of time only a runspace or a
/// runspacepool may be specified
public Runspace Runspace
{
@@ -1026,7 +1026,7 @@ namespace System.Management.Automation
var container = new AsyncCompleteContainer { EventArgs = eventArgs, Action = action };
- // End the task. The asyncOp object is responsible
+ // End the task. The asyncOp object is responsible
// for marshaling the call.
asyncOp.PostOperationCompleted(JobActionAsyncCompleted, container);
}
@@ -1322,7 +1322,7 @@ namespace System.Management.Automation
RemoveComplete.Reset();
}
- // _receivePowerShell will never be null and so
+ // _receivePowerShell will never be null and so
// there is no need to do a null check
Dbg.Assert(_receivePowerShell != null, "ReceivePowerShell should not be null");
@@ -1344,7 +1344,7 @@ namespace System.Management.Automation
using (PowerShell powershell = PowerShell.Create())
{
// Either the runspace or runspace pool will be
- // not null at this point. This is because of
+ // not null at this point. This is because of
// the following:
// 1. The job state is running
// 2. The job was started using either a runspace
@@ -1786,7 +1786,7 @@ namespace System.Management.Automation
"storing job state to {0}", computedJobState.ToString());
// we need to store the state and set it only when invocation
// state changed for _receivePowerShell is received. This is to
- // enable consumers from disposing the proxy job on its state
+ // enable consumers from disposing the proxy job on its state
// changed handler
_computedJobState = computedJobState;
}
@@ -1909,7 +1909,7 @@ namespace System.Management.Automation
///
/// Thrown if
/// the object has already been disposed
- /// Method is not thread-safe. Caller has to
+ /// Method is not thread-safe. Caller has to
/// ensure thread safety
private new void AssertNotDisposed()
{
diff --git a/src/System.Management.Automation/engine/remoting/client/PowerShellStreams.cs b/src/System.Management.Automation/engine/remoting/client/PowerShellStreams.cs
index 20b611fbba..7dbcddf2f3 100644
--- a/src/System.Management.Automation/engine/remoting/client/PowerShellStreams.cs
+++ b/src/System.Management.Automation/engine/remoting/client/PowerShellStreams.cs
@@ -226,7 +226,7 @@ namespace System.Management.Automation
}
///
- /// Marking all the streams as completed so that no further data can be added and
+ /// Marking all the streams as completed so that no further data can be added and
/// jobs will know that there is no more data coming in.
///
public void CloseAll()
diff --git a/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs b/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs
index 3c71b29e87..78a48486b9 100644
--- a/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs
+++ b/src/System.Management.Automation/engine/remoting/client/RemoteRunspacePoolInternal.cs
@@ -26,11 +26,11 @@ namespace System.Management.Automation.Runspaces.Internal
///
/// Constructor which creates a RunspacePool using the
- /// supplied ,
+ /// supplied ,
/// and
///
///
- /// The maximum number of Runspaces that can exist in this pool.
+ /// The maximum number of Runspaces that can exist in this pool.
/// Should be greater than or equal to 1.
///
///
@@ -217,7 +217,7 @@ namespace System.Management.Automation.Runspaces.Internal
internal ClientRunspacePoolDataStructureHandler DataStructureHandler { get; private set; }
///
- /// List of CommandConnectInfo objects for each remote running command
+ /// List of CommandConnectInfo objects for each remote running command
/// associated with this remote runspace pool.
///
internal ConnectCommandInfo[] ConnectCommands { get; set; } = null;
@@ -318,7 +318,7 @@ namespace System.Management.Automation.Runspaces.Internal
///
/// Sets the maximum number of Runspaces that can be active concurrently
- /// in the pool. All requests above that number remain queued until
+ /// in the pool. All requests above that number remain queued until
/// runspaces become available.
///
///
@@ -328,7 +328,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// true if the change is successful; otherwise, false.
///
///
- /// You cannot set the number of runspaces to a number smaller than
+ /// You cannot set the number of runspaces to a number smaller than
/// the minimum runspaces.
///
internal override bool SetMaxRunspaces(int maxRunspaces)
@@ -345,7 +345,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
// if the runspace pool is not opened as yet, or is in Disconnected state.
- // just change the value locally. No need to
+ // just change the value locally. No need to
// send a message
if (stateInfo.State == RunspacePoolState.BeforeOpen ||
stateInfo.State == RunspacePoolState.Disconnected)
@@ -390,7 +390,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// true if the change is successful; otherwise, false.
///
///
- /// You cannot set the number of idle runspaces to a number smaller than
+ /// You cannot set the number of idle runspaces to a number smaller than
/// 1 or greater than maximum number of active runspaces.
///
internal override bool SetMinRunspaces(int minRunspaces)
@@ -408,7 +408,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
// if the runspace pool is not opened as yet, or is in Disconnected state.
- // just change the value locally. No need to
+ // just change the value locally. No need to
// send a message
if (stateInfo.State == RunspacePoolState.BeforeOpen ||
stateInfo.State == RunspacePoolState.Disconnected)
@@ -454,7 +454,7 @@ namespace System.Management.Automation.Runspaces.Internal
lock (syncObject)
{
- // if the runspace pool is opened we need to
+ // if the runspace pool is opened we need to
// get the value from the server, else
// return maxrunspaces
if (stateInfo.State == RunspacePoolState.Opened)
@@ -552,7 +552,7 @@ namespace System.Management.Automation.Runspaces.Internal
if (raiseEvents)
{
- // this needs to be done outside the lock to avoid a
+ // this needs to be done outside the lock to avoid a
// deadlock scenario
RaiseStateChangeEvent(stateInfo);
SetOpenAsCompleted();
@@ -597,7 +597,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// A host call has been proxied from the server which needs to
+ /// A host call has been proxied from the server which needs to
/// be executed
///
/// sender of this event
@@ -639,9 +639,9 @@ namespace System.Management.Automation.Runspaces.Internal
internal PSPrimitiveDictionary ApplicationArguments { get; }
///
- /// Private data to be used by applications built on top of PowerShell.
- ///
- /// Remote runspace pool gets its application private data from the server (when creating the remote runspace pool)
+ /// Private data to be used by applications built on top of PowerShell.
+ ///
+ /// Remote runspace pool gets its application private data from the server (when creating the remote runspace pool)
/// - calling this method on a remote runspace will block until the data is received from the server.
/// - unless the runspace is disconnected and data hasn't been received in which case it returns null immediately.
///
@@ -705,7 +705,7 @@ namespace System.Management.Automation.Runspaces.Internal
internal event EventHandler SessionCreateCompleted;
///
- ///
+ ///
///
///
internal void CreatePowerShellOnServerAndInvoke(ClientRemotePowerShell shell)
@@ -818,7 +818,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region Protected Methods
///
- /// Opens the runspacepool synchronously / asynchronously.
+ /// Opens the runspacepool synchronously / asynchronously.
/// Runspace pool must be opened before it can be used.
///
///
@@ -832,7 +832,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// with.
///
///
- /// asyncResult object to monitor status of the async
+ /// asyncResult object to monitor status of the async
/// open operation. This is returned only if
/// is true.
///
@@ -841,7 +841,7 @@ namespace System.Management.Automation.Runspaces.Internal
/// the BeforeOpen state.
///
///
- /// There is not enough memory available to start this asynchronously.
+ /// There is not enough memory available to start this asynchronously.
///
protected override IAsyncResult CoreOpen(bool isAsync, AsyncCallback callback,
object asyncState)
@@ -882,7 +882,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region Public Methods
///
- /// Synchronous open
+ /// Synchronous open
///
public override void Open()
{
@@ -1195,7 +1195,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Creates an array of PowerShell objects that are in the Disconnected state for
+ /// Creates an array of PowerShell objects that are in the Disconnected state for
/// all currently disconnected running commands associated with this runspace pool.
///
/// Array of PowerShell objects.
@@ -1332,7 +1332,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
// At this point we don't know if the runspace pool we want to connect to has just one runspace
- // (a RemoteRunspace/PSSession) or multiple runspaces in its pool. We do have an array of
+ // (a RemoteRunspace/PSSession) or multiple runspaces in its pool. We do have an array of
// running command information which will indicate a runspace pool if the count is gt one.
RunspacePool runspacePool = new RunspacePool(isDisconnected, shellId, strName,
connectCmdInfos.ToArray(), wsmanConnectionInfo, host, typeTable);
@@ -1575,8 +1575,8 @@ namespace System.Management.Automation.Runspaces.Internal
stateChange = true;
}
- // Set boolean indicating this object has previous connection state and so
- // can be reconnected as opposed to the alternative where the connection
+ // Set boolean indicating this object has previous connection state and so
+ // can be reconnected as opposed to the alternative where the connection
// state has to be reconstructed then connected.
_canReconnect = true;
}
@@ -1691,7 +1691,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
// Check if we have either an existing disconnect or connect async object
- // and if so make sure they are set to completed since this is a
+ // and if so make sure they are set to completed since this is a
// final state for the runspace pool.
SetDisconnectAsCompleted();
SetReconnectAsCompleted();
@@ -1729,7 +1729,7 @@ namespace System.Management.Automation.Runspaces.Internal
// Ensure that openAsyncResult is completed and that
// any error is thrown on the calling thread.
- // The session can be closed at any time, including
+ // The session can be closed at any time, including
// during Open processing.
SetOpenAsCompleted();
@@ -1742,7 +1742,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// When a response to a SetMaxRunspaces or SetMinRunspaces is received,
+ /// When a response to a SetMaxRunspaces or SetMinRunspaces is received,
/// from the server, this method sets the response and thereby unblocks
/// corresponding call
///
@@ -1844,7 +1844,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
///
- /// Waits for application private data from server before raising
+ /// Waits for application private data from server before raising
/// event: Connecting->Opened state changed event.
///
///
@@ -1877,7 +1877,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region Private Members
- private RunspaceConnectionInfo _connectionInfo; // connection info with which this
+ private RunspaceConnectionInfo _connectionInfo; // connection info with which this
// runspace is created
// data structure handler handling
private RunspacePoolAsyncResult _openAsyncResult;// async result object generated on
@@ -1963,7 +1963,7 @@ namespace System.Management.Automation.Runspaces.Internal
#region RemoteRunspacePoolEnumeration class
///
- /// Enumerates remote runspacepools (Shells) and running commands
+ /// Enumerates remote runspacepools (Shells) and running commands
/// using Get-WSManInstance cmdlet.
///
internal static class RemoteRunspacePoolEnumeration
@@ -2098,7 +2098,7 @@ namespace System.Management.Automation.Runspaces.Internal
}
}
- // New-WSManSessionOption uses the SPNPort number here to enable SPN
+ // New-WSManSessionOption uses the SPNPort number here to enable SPN
// server authentication. It looks like any value > 0 will enable
// this. Since the Port property always returns a valid port value (>0)
// just pass the WSManConnectionInfo port parameter.
diff --git a/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs b/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs
index c54121d886..cc5841d236 100644
--- a/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs
+++ b/src/System.Management.Automation/engine/remoting/client/RemotingErrorRecord.cs
@@ -283,15 +283,15 @@ namespace System.Management.Automation.Remoting
///
/// This class should only be used when
/// defining origin information for error records.
- /// In case of output objects, the information
- /// should directly be added to the object as
+ /// In case of output objects, the information
+ /// should directly be added to the object as
/// properties
[Serializable]
[DataContract()]
public class OriginInfo
{
///
- /// The HostEntry information for the machine on
+ /// The HostEntry information for the machine on
/// which this information originated
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "PSIP")]
@@ -306,7 +306,7 @@ namespace System.Management.Automation.Remoting
private String _computerName;
///
- /// Runspace instance ID
+ /// Runspace instance ID
///
[SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "ID")]
public Guid RunspaceID
diff --git a/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs b/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs
index 36f4628a6c..22fa7f254f 100644
--- a/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs
+++ b/src/System.Management.Automation/engine/remoting/client/RemotingProtocol2.cs
@@ -61,7 +61,7 @@ namespace System.Management.Automation.Internal
#region Data Structure Handler Methods
///
- /// Create a runspace pool asynchronously (and opens) it
+ /// Create a runspace pool asynchronously (and opens) it
/// on the server
///
internal void CreateRunspacePoolAndOpenAsync()
@@ -218,7 +218,7 @@ namespace System.Management.Automation.Internal
}
///
- /// Creates a PowerShell instances on the server, associates it
+ /// Creates a PowerShell instances on the server, associates it
/// with this runspace pool and invokes
///
/// the client remote powershell
@@ -273,7 +273,7 @@ namespace System.Management.Automation.Internal
ClientPowerShellDataStructureHandler dsHandler =
GetAssociatedPowerShellDataStructureHandler(rcvdData.PowerShellId);
- // if a data structure handler does not exist it means
+ // if a data structure handler does not exist it means
// the association has been removed -
// discard messages
if (dsHandler != null)
@@ -321,7 +321,7 @@ namespace System.Management.Automation.Internal
/// Send a message to modify the min runspaces of the runspace pool
///
/// new minrunspaces to set
- /// call id on which the calling method will
+ /// call id on which the calling method will
/// be blocked on
internal void SendSetMinRunspacesToServer(int minRunspaces, long callId)
{
@@ -357,7 +357,7 @@ namespace System.Management.Automation.Internal
///
/// Event raised when RunspacePoolInitInfo is received. This is the first runspace pool message expected
- /// after connecting to an existing remote runspace pool. RemoteRunspacePoolInternal should use this
+ /// after connecting to an existing remote runspace pool. RemoteRunspacePoolInternal should use this
/// notification to set the state of a reconstructed runspace to "Opened State" and use the
/// minRunspace and MaxRunspaces information to set its state
///
@@ -379,12 +379,12 @@ namespace System.Management.Automation.Internal
internal event EventHandler> SessionClosed;
///
- ///
+ ///
///
internal event EventHandler> SessionDisconnected;
///
- ///
+ ///
///
internal event EventHandler> SessionReconnected;
@@ -431,7 +431,7 @@ namespace System.Management.Automation.Internal
}
///
- /// Send the data asynchronously to runspace pool driver on remote
+ /// Send the data asynchronously to runspace pool driver on remote
/// session with the specified priority
///
///
@@ -443,7 +443,7 @@ namespace System.Management.Automation.Internal
}
///
- /// Send the data asynchronously to runspace pool driver on remote
+ /// Send the data asynchronously to runspace pool driver on remote
/// session with the specified priority
///
/// data object to send
@@ -490,7 +490,7 @@ namespace System.Management.Automation.Internal
lock (_syncObject)
{
- //We are doing this check because Established event
+ //We are doing this check because Established event
//is raised more than once
if (_createRunspaceCalled)
{
@@ -565,7 +565,7 @@ namespace System.Management.Automation.Internal
}
else if (e.SessionStateInfo.State == RemoteSessionState.Connected)
{
- // write a transfer event here
+ // write a transfer event here
PSEtwLog.ReplaceActivityIdForCurrentThread(_clientRunspacePoolId, PSEventId.OperationalTransferEventRunspacePool,
PSEventId.AnalyticTransferEventRunspacePool, PSKeyword.Runspace, PSTask.CreateRunspace);
}
@@ -742,7 +742,7 @@ namespace System.Management.Automation.Internal
}
else
{
- // Start preparation for disconnect. The HandleReadyForDisconnect callback will be
+ // Start preparation for disconnect. The HandleReadyForDisconnect callback will be
// called when a transportManager is ready for disconnect.
List dsHandlers;
lock (_associationSyncObject)
@@ -807,8 +807,8 @@ namespace System.Management.Automation.Internal
_preparingForDisconnectList = null;
// Start the asynchronous disconnect on a worker thread because we don't know
- // what thread this callback is made from. If it was made from a transport
- // callback event then a deadlock may occur when DisconnectAsync is called on
+ // what thread this callback is made from. If it was made from a transport
+ // callback event then a deadlock may occur when DisconnectAsync is called on
// that same thread.
ThreadPool.QueueUserWorkItem(new WaitCallback(StartDisconnectAsync), RemoteSession);
}
@@ -924,7 +924,7 @@ namespace System.Management.Automation.Internal
}
///
- /// Indicates whether the currently connected runspace endpoint supports
+ /// Indicates whether the currently connected runspace endpoint supports
/// disconnect/connect semantics.
///
internal bool EndpointSupportsDisconnect
@@ -979,7 +979,7 @@ namespace System.Management.Automation.Internal
///
/// this event is raised when the state of associated
- /// powershell is terminal and the runspace pool has
+ /// powershell is terminal and the runspace pool has
/// to detach the association
///
internal event EventHandler RemoveAssociation;
@@ -1004,7 +1004,7 @@ namespace System.Management.Automation.Internal
///
/// This event is raised when an informational message -
- /// debug, verbose, warning, progress is received from
+ /// debug, verbose, warning, progress is received from
/// the server
///
internal event EventHandler> InformationalMessageReceived;
@@ -1016,9 +1016,9 @@ namespace System.Management.Automation.Internal
internal event EventHandler> HostCallReceived;
///
- /// This event is raised when a runspace pool data structure handler notifies an
+ /// This event is raised when a runspace pool data structure handler notifies an
/// associated powershell data structure handler that its closed
- ///
+ ///
internal event EventHandler> ClosedNotificationFromRunspacePool;
///
@@ -1027,7 +1027,7 @@ namespace System.Management.Automation.Internal
/// connection, the event handler should complete processing as fast as possible.
/// Importantly the event handler should not generate any call that results in a
/// user request like host.ReadLine().
- ///
+ ///
/// Errors (occurred during connection attempt) are reported through WSManTransportErrorOccured
/// event.
///
@@ -1118,7 +1118,7 @@ namespace System.Management.Automation.Internal
}
///
- /// Event that gets raised when stop signal is completed.
+ /// Event that gets raised when stop signal is completed.
///
///
///
@@ -1195,7 +1195,7 @@ namespace System.Management.Automation.Internal
/// data received
internal void ProcessReceivedData(RemoteDataObject receivedData)
{
- // verify if this data structure handler is the intended recipient
+ // verify if this data structure handler is the intended recipient
if (receivedData.PowerShellId != clientPowerShellId)
{
throw new PSRemotingDataStructureException(RemotingErrorIdStrings.PipelineIdsDoNotMatch,
@@ -1244,7 +1244,7 @@ namespace System.Management.Automation.Internal
// since it is possible that powershell can have
// strongly typed output, origin information will
- // not be added for output. Therefore, origin
+ // not be added for output. Therefore, origin
// information will not be added for error records
// as well. If a remoting cmdlet
// is using PowerShell, then it should take care
@@ -1324,10 +1324,10 @@ namespace System.Management.Automation.Internal
///
/// Set the state of the associated powershell to stopped
///
- /// reason why this state change
+ /// reason why this state change
/// should occur
/// This method is called by the associated
- /// runspace pool data structure handler when the server runspace pool
+ /// runspace pool data structure handler when the server runspace pool
/// goes into a closed or broken state
internal void SetStateToFailed(Exception reason)
{
@@ -1427,7 +1427,7 @@ namespace System.Management.Automation.Internal
TransportManager.ReconnectAsync();
}
- //Called from session DSHandler. Connects to a remote powershell instance.
+ //Called from session DSHandler. Connects to a remote powershell instance.
internal void ConnectAsync()
{
Int32 currentState = Interlocked.CompareExchange(ref _connectionState, (Int32)connectionStates.Connecting, (Int32)connectionStates.Disconnected);
@@ -1485,7 +1485,7 @@ namespace System.Management.Automation.Internal
#region Internal Methods
///
- /// Client PowerShell Id of the powershell this
+ /// Client PowerShell Id of the powershell this
/// data structure handler is associated with
///
internal Guid PowerShellId
@@ -1534,7 +1534,7 @@ namespace System.Management.Automation.Internal
}
///
- ///
+ ///
///
/// This method doesn't lock and its the responsibility
/// of the caller to actually do the locking
@@ -1551,7 +1551,7 @@ namespace System.Management.Automation.Internal
if (!inputstream.IsOpen)
{
- //Write any data written after the NonBlockingRead call above.
+ //Write any data written after the NonBlockingRead call above.
inputObjects = inputstream.ObjectReader.NonBlockingRead(Int32.MaxValue);
foreach (object inputObject in inputObjects)
@@ -1599,7 +1599,7 @@ namespace System.Management.Automation.Internal
private Int32 _connectionState = (Int32)connectionStates.Connected;
- // Contains the associated session closed reason exception if any,
+ // Contains the associated session closed reason exception if any,
// otherwise is null.
private Exception _sessionClosedReason;
diff --git a/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs b/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs
index 59e8dbd869..f58f1d57c2 100644
--- a/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs
+++ b/src/System.Management.Automation/engine/remoting/client/RunspaceRef.cs
@@ -346,7 +346,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs b/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs
index 7b65fb4fa9..676f3df910 100644
--- a/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs
+++ b/src/System.Management.Automation/engine/remoting/client/ThrottlingJob.cs
@@ -182,9 +182,9 @@ namespace System.Management.Automation
None = 0,
///
- /// Child job can call method
- /// or
- /// or
+ /// Child job can call method
+ /// or
+ /// or
/// method
/// of the instance it belongs to.
///
@@ -260,8 +260,8 @@ namespace System.Management.Automation
///
/// true if this is used from a cmdlet invoked without -AsJob switch.
/// false if this is used from a cmdlet invoked with -AsJob switch.
- ///
- /// If is true, then
+ ///
+ /// If is true, then
/// memory can be managed more aggressively (for example ChildJobs can be discarded as soon as they complete)
/// because the is not exposed to the end user.
///
@@ -828,11 +828,11 @@ namespace System.Management.Automation
private class ForwardingHelper : IDisposable
{
- // This is higher than 1000 used in
- // RxExtensionMethods+ToEnumerableObserver.BlockingCollectionCapacity
- // and in
+ // This is higher than 1000 used in
+ // RxExtensionMethods+ToEnumerableObserver.BlockingCollectionCapacity
+ // and in
// RemoteDiscoveryHelper.BlockingCollectionCapacity
- // It needs to be higher, because the high value is used as an attempt to workaround the fact that
+ // It needs to be higher, because the high value is used as an attempt to workaround the fact that
// WSMan will timeout if an OnNext call blocks for more than X minutes.
// This is a static field (instead of a constant) to make it possible to set through tests (and/or by customers if needed for a workaround)
diff --git a/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs b/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs
index e31fb105c2..bdd4f62fa1 100644
--- a/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs
+++ b/src/System.Management.Automation/engine/remoting/client/clientremotesession.cs
@@ -44,7 +44,7 @@ namespace System.Management.Automation.Remoting
///
/// This is the shellName which identifies the PowerShell configuration to launch
- /// on remote machine.
+ /// on remote machine.
///
internal string ShellName { get; set; }
@@ -81,7 +81,7 @@ namespace System.Management.Automation.Remoting
public abstract void CloseAsync();
///
- /// Disconnects the remote session in an asynchronous manner
+ /// Disconnects the remote session in an asynchronous manner
///
public abstract void DisconnectAsync();
@@ -149,7 +149,7 @@ namespace System.Management.Automation.Remoting
}
set
{
- Dbg.Assert(_remoteRunspacePool == null, @"RunspacePool should be
+ Dbg.Assert(_remoteRunspacePool == null, @"RunspacePool should be
attached only once to the session");
_remoteRunspacePool = value;
}
@@ -313,7 +313,7 @@ namespace System.Management.Automation.Remoting
if (arg.SessionStateInfo.State == RemoteSessionState.ClosingConnection)
{
- // when the connection is being closed we need to
+ // when the connection is being closed we need to
// complete the key exchange process to release
// the lock under which the key exchange is happening
// if we fail to release the lock, then when
@@ -356,7 +356,7 @@ namespace System.Management.Automation.Remoting
if (!ret)
{
- // we need to complete the key exchange
+ // we need to complete the key exchange
// since the crypto helper will be waiting on it
CompleteKeyExchange();
@@ -489,12 +489,12 @@ namespace System.Management.Automation.Remoting
///
/// Capabilities of remote session
///
- ///
+ ///
/// The method returns true if the capability negotiation is successful.
/// Otherwise, it returns false.
///
///
- /// 1. PowerShell client does not support the PSVersion {1} negotiated by the server.
+ /// 1. PowerShell client does not support the PSVersion {1} negotiated by the server.
/// Make sure the server is compatible with the build {2} of PowerShell.
/// 2. PowerShell client does not support the SerializationVersion {1} negotiated by the server.
/// Make sure the server is compatible with the build {2} of PowerShell.
diff --git a/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs b/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs
index ce2d085ecd..c538e221e9 100644
--- a/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs
+++ b/src/System.Management.Automation/engine/remoting/client/clientremotesessionprotocolstatemachine.cs
@@ -11,19 +11,19 @@ namespace System.Management.Automation.Remoting
///
/// This class implements a Finite State Machine (FSM) to control the remote connection on the client side.
/// There is a similar but not identical FSM on the server side for this connection.
- ///
- /// The FSM's states and events are defined to be the same for both the client FSM and the server FSM.
+ ///
+ /// The FSM's states and events are defined to be the same for both the client FSM and the server FSM.
/// This design allows the client and server FSM's to
/// be as similar as possible, so that the complexity of maintaining them is minimized.
- ///
+ ///
/// This FSM only controls the remote connection state. States related to runspace and pipeline are managed by runspace
/// pipeline themselves.
- ///
+ ///
/// This FSM defines an event handling matrix, which is filled by the event handlers.
- /// The state transitions can only be performed by these event handlers, which are private
+ /// The state transitions can only be performed by these event handlers, which are private
/// to this class. The event handling is done by a single thread, which makes this
/// implementation solid and thread safe.
- ///
+ ///
/// This implementation of the FSM does not allow the remote session to be reused for a connection
/// after it is been closed. This design decision is made to simplify the implementation.
/// However, the design can be easily modified to allow the reuse of the remote session
@@ -80,7 +80,7 @@ namespace System.Management.Automation.Remoting
private bool _pendingDisconnect = false;
///
- /// processes events in the queue. If there are no
+ /// processes events in the queue. If there are no
/// more events to process, then sets eventsInProcess
/// variable to false. This will ensure that another
/// thread which raises an event can then take control
@@ -141,7 +141,7 @@ namespace System.Management.Automation.Remoting
///
/// Raises the StateChanged events which are queued
/// All StateChanged events will be raised once the
- /// processing of the State Machine events are
+ /// processing of the State Machine events are
/// complete
///
private void RaiseStateMachineEvents()
@@ -165,7 +165,7 @@ namespace System.Management.Automation.Remoting
///
/// Handler to be used in cases, where setting the state is the
/// only task being performed. This method also asserts
- /// if the specified event is valid for the current state of
+ /// if the specified event is valid for the current state of
/// the state machine
///
/// sender of this event
@@ -337,7 +337,7 @@ namespace System.Management.Automation.Remoting
} // SetStateHandler
///
- /// Handler to be used in cases, where raising an event to
+ /// Handler to be used in cases, where raising an event to
/// the state needs to be performed. This method also
/// asserts if the specified event is valid for
/// the current state of the state machine
@@ -442,7 +442,7 @@ namespace System.Management.Automation.Remoting
_stateMachineHandle[(int)RemoteSessionState.EstablishedAndKeyRequested, (int)RemoteSessionEvent.KeySendFailed] += SetStateToClosedHandler;
- //TODO: All these are potential unexpected state transitions.. should have a way to track these calls..
+ //TODO: All these are potential unexpected state transitions.. should have a way to track these calls..
// should atleast put a dbg assert in this handler
for (int i = 0; i < _stateMachineHandle.GetLength(0); i++)
{
@@ -498,7 +498,7 @@ namespace System.Management.Automation.Remoting
///
/// optional bool indicating whether to clear currently queued events
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -527,7 +527,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// This is the private version of raising a FSM event.
+ /// This is the private version of raising a FSM event.
/// It can only be called by the dedicated thread that processes the event queue.
/// It calls the event handler
/// in the right position of the event handling matrix.
@@ -535,7 +535,7 @@ namespace System.Management.Automation.Remoting
///
/// The parameter contains the actual FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -585,7 +585,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -620,7 +620,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -633,7 +633,7 @@ namespace System.Management.Automation.Remoting
if (State == RemoteSessionState.Idle)
{
- //We need to send negotiation and connect algorithm related info
+ //We need to send negotiation and connect algorithm related info
//Change state to let other DSHandlers add appropriate messages to be piggybacked on transport's Create payload
RemoteSessionStateMachineEventArgs sendingArg = new RemoteSessionStateMachineEventArgs(RemoteSessionEvent.NegotiationSendingOnConnect);
RaiseEvent(sendingArg);
@@ -642,7 +642,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// This is the handler for NegotiationSending event.
+ /// This is the handler for NegotiationSending event.
/// It sets the new state to be NegotiationSending and
/// calls data structure handler to send the negotiation packet.
///
@@ -650,7 +650,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -696,13 +696,13 @@ namespace System.Management.Automation.Remoting
}
///
- /// This is the handler for Close event.
+ /// This is the handler for Close event.
///
///
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -774,7 +774,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// Sets the state of the state machine. Since only
+ /// Sets the state of the state machine. Since only
/// one thread can be manipulating the state at a time
/// the state is not synchronized
///
diff --git a/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs b/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs
index bd941bab21..73629a3f62 100644
--- a/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs
+++ b/src/System.Management.Automation/engine/remoting/client/remotepipeline.cs
@@ -36,7 +36,7 @@ namespace System.Management.Automation
///
/// This is queue of all the state change event which have occured for
- /// this pipeline. RaisePipelineStateEvents raises event for each
+ /// this pipeline. RaisePipelineStateEvents raises event for each
/// item in this queue. We don't raise the event with in SetPipelineState
/// because often SetPipelineState is called with in a lock.
/// Raising event in lock introduces chances of deadlock in GUI applications.
@@ -96,11 +96,11 @@ namespace System.Management.Automation
SetCommandCollection(_commands);
//Create event which will be signalled when pipeline execution
- //is completed/failed/stoped.
+ //is completed/failed/stoped.
//Note:Runspace.Close waits for all the running pipeline
- //to finish. This Event must be created before pipeline is
+ //to finish. This Event must be created before pipeline is
//added to list of running pipelines. This avoids the race condition
- //where Close is called after pipeline is added to list of
+ //where Close is called after pipeline is added to list of
//running pipeline but before event is created.
PipelineFinishedEvent = new ManualResetEvent(false);
}
@@ -370,7 +370,7 @@ namespace System.Management.Automation
///
/// Stream for providing input to PipelineProcessor. Host will write on
- /// ObjectWriter of this stream. PipelineProcessor will read from
+ /// ObjectWriter of this stream. PipelineProcessor will read from
/// ObjectReader of this stream.
///
protected PSDataCollectionStream InputStream
@@ -409,16 +409,16 @@ namespace System.Management.Automation
}
///
- /// Invoke the pipeline, synchronously, returning the results as an
+ /// Invoke the pipeline, synchronously, returning the results as an
/// array of objects.
///
/// an array of input objects to pass to the pipeline.
/// Array may be empty but may not be null
/// An array of zero or more result objects
/// Caller of synchronous exectute should not close
- /// input objectWriter. Synchronous invoke will always close the input
+ /// input objectWriter. Synchronous invoke will always close the input
/// objectWriter.
- ///
+ ///
/// On Synchronous Invoke if output is throttled and no one is reading from
/// output pipe, Execution will block after buffer is full.
///
@@ -483,7 +483,7 @@ namespace System.Management.Automation
throw e;
}
- // PowerShell object will return empty results if it was provided an alternative object to
+ // PowerShell object will return empty results if it was provided an alternative object to
// collect output in. Check to see if the output was collected in a member variable.
if (results.Count == 0)
{
@@ -554,7 +554,7 @@ namespace System.Management.Automation
}
///
- /// Stop the pipeline asynchronously.
+ /// Stop the pipeline asynchronously.
/// This method calls the BeginStop on the underlying
/// powershell and so any exception will be
/// thrown on the same thread.
@@ -594,14 +594,14 @@ namespace System.Management.Automation
returnResult = false;
break;
- //If pipeline execution has failed or completed or
- //stoped, return silently.
+ //If pipeline execution has failed or completed or
+ //stoped, return silently.
case PipelineState.Stopped:
case PipelineState.Completed:
case PipelineState.Failed:
return false;
- //If pipeline is in Stopping state, ignore the second
+ //If pipeline is in Stopping state, ignore the second
//stop.
case PipelineState.Stopping:
isAlreadyStopping = true;
@@ -636,7 +636,7 @@ namespace System.Management.Automation
///
/// Disposes the pipeline
///
- /// true, when called on Dispose()
+ /// true, when called on Dispose()
protected override void Dispose(bool disposing)
{
try
@@ -719,13 +719,13 @@ namespace System.Management.Automation
///
/// the new state
///
- /// An exception indicating that state change is the result of an error,
+ /// An exception indicating that state change is the result of an error,
/// otherwise; null.
///
///
/// Sets the internal execution state information member variable. It
/// also adds PipelineStateInfo to a queue. RaisePipelineStateEvents
- /// raises event for each item in this queue.
+ /// raises event for each item in this queue.
///
private void SetPipelineState(PipelineState state, Exception reason)
{
@@ -765,10 +765,10 @@ namespace System.Management.Automation
_pipelineStateInfo = new PipelineStateInfo(copyState, reason);
copyStateInfo = _pipelineStateInfo;
- //Add _pipelineStateInfo to _executionEventQueue.
+ //Add _pipelineStateInfo to _executionEventQueue.
//RaisePipelineStateEvents will raise event for each item
//in this queue.
- //Note:We are doing clone here instead of passing the member
+ //Note:We are doing clone here instead of passing the member
//_pipelineStateInfo because we donot want outside
//to change pipeline state.
RunspaceAvailability previousAvailability = _runspace.RunspaceAvailability;
@@ -783,9 +783,9 @@ namespace System.Management.Automation
_runspace.RunspaceAvailability));
} // lock...
- // using the copyStateInfo here as this piece of code is
+ // using the copyStateInfo here as this piece of code is
// outside of lock and _pipelineStateInfo might get changed
- // by two threads running concurrently..so its value is
+ // by two threads running concurrently..so its value is
// not guaranteed to be the same for this entire method call.
// copyStateInfo is a local variable.
if (copyStateInfo.State == PipelineState.Completed ||
@@ -817,8 +817,8 @@ namespace System.Management.Automation
}
else
{
- //Clear the events if there are no EventHandlers. This
- //ensures that events do not get called for state
+ //Clear the events if there are no EventHandlers. This
+ //ensures that events do not get called for state
//changes prior to their registration.
_executionEventQueue.Clear();
}
@@ -854,8 +854,8 @@ namespace System.Management.Automation
///
/// Initializes the underlying PowerShell object after verifying
/// if the pipeline is in a state where it can be invoked.
- /// If invokeAndDisconnect is true then the remote PowerShell
- /// command will be immediately disconnected after it begins
+ /// If invokeAndDisconnect is true then the remote PowerShell
+ /// command will be immediately disconnected after it begins
/// running.
///
/// true if called from a sync call
@@ -906,8 +906,8 @@ namespace System.Management.Automation
PipelineState.Disconnected);
}
- // The connect may be from the same Pipeline that disconnected and in this case
- // the Pipeline state already exists. Or this could be a new Pipeline object
+ // The connect may be from the same Pipeline that disconnected and in this case
+ // the Pipeline state already exists. Or this could be a new Pipeline object
// (connect reconstruction case) and new state is created.
// Check to see if this pipeline already exists in the runspace.
@@ -1013,7 +1013,7 @@ namespace System.Management.Automation
#region Internal Methods/Properties
///
- /// ManualResetEvent which is signaled when pipeline execution is
+ /// ManualResetEvent which is signaled when pipeline execution is
/// completed/failed/stoped.
///
internal ManualResetEvent PipelineFinishedEvent { get; }
@@ -1036,11 +1036,11 @@ namespace System.Management.Automation
/// True if method is called from Invoke, false
/// if called from InvokeAsync
///
- /// 1) A pipeline is already executing. Pipeline cannot execute
+ /// 1) A pipeline is already executing. Pipeline cannot execute
/// concurrently.
- /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
+ /// 2) InvokeAsync is called on nested pipeline. Nested pipeline
/// cannot be executed Asynchronously.
- /// 3) Attempt is made to invoke a nested pipeline directly. Nested
+ /// 3) Attempt is made to invoke a nested pipeline directly. Nested
/// pipeline must be invoked from a running pipeline.
///
internal void DoConcurrentCheck(bool syncCall)
@@ -1054,7 +1054,7 @@ namespace System.Management.Automation
((RemoteRunspace)_runspace).RunspaceAvailability != RunspaceAvailability.Busy &&
((RemoteRunspace)_runspace).RunspaceAvailability != RunspaceAvailability.RemoteDebug)
{
- // We can add a new pipeline to the runspace only if it is
+ // We can add a new pipeline to the runspace only if it is
// available (not busy).
return;
}
@@ -1112,7 +1112,7 @@ namespace System.Management.Automation
}
///
- /// The underlying powershell object on which this remote pipeline
+ /// The underlying powershell object on which this remote pipeline
/// is created
///
internal PowerShell PowerShell
diff --git a/src/System.Management.Automation/engine/remoting/client/remoterunspace.cs b/src/System.Management.Automation/engine/remoting/client/remoterunspace.cs
index c281548ead..0a3c8b0598 100644
--- a/src/System.Management.Automation/engine/remoting/client/remoterunspace.cs
+++ b/src/System.Management.Automation/engine/remoting/client/remoterunspace.cs
@@ -47,10 +47,10 @@ namespace System.Management.Automation
///
/// This is queue of all the state change event which have occured for
- /// this runspace. RaiseRunspaceStateEvents raises event for each
+ /// this runspace. RaiseRunspaceStateEvents raises event for each
/// item in this queue. We don't raise events from with SetRunspaceState
/// because SetRunspaceState is often called from with in the a lock.
- /// Raising event with in a lock introduces chances of deadlock in GUI
+ /// Raising event with in a lock introduces chances of deadlock in GUI
/// applications.
///
private Queue _runspaceEventQueue = new Queue();
@@ -70,17 +70,17 @@ namespace System.Management.Automation
}
///
- /// In RemoteRunspace, it is required to invoke pipeline
+ /// In RemoteRunspace, it is required to invoke pipeline
/// as part of open call (i.e. while state is Opening).
- /// If this property is true, runspace state check is
+ /// If this property is true, runspace state check is
/// not performed in AddToRunningPipelineList call.
///
private bool _bypassRunspaceStateCheck;
///
- /// In RemoteRunspace, it is required to invoke pipeline
+ /// In RemoteRunspace, it is required to invoke pipeline
/// as part of open call (i.e. while state is Opening).
- /// If this property is true, runspace state check is
+ /// If this property is true, runspace state check is
/// not performed in AddToRunningPipelineList call.
///
protected bool ByPassRunspaceStateCheck
@@ -176,7 +176,7 @@ namespace System.Management.Automation
SetRunspaceState(RunspaceState.Disconnected, null);
// Normal Availability for a disconnected runspace is "None", which means it can be connected.
- // However, we can also have disconnected runspace objects that are *not* available for
+ // However, we can also have disconnected runspace objects that are *not* available for
// connection and in this case the Availability is set to "Busy".
_runspaceAvailability = RunspacePool.RemoteRunspacePoolInternal.AvailableForConnection ?
Runspaces.RunspaceAvailability.None : Runspaces.RunspaceAvailability.Busy;
@@ -437,8 +437,8 @@ namespace System.Management.Automation
/// runspace
///
/// This member is actually not required
- /// for the product code. However, there are
- /// existing transport manager tests which depend on
+ /// for the product code. However, there are
+ /// existing transport manager tests which depend on
/// the same. Once transport manager is modified,
/// this needs to be removed
internal ClientRemoteSession ClientRemoteSession
@@ -603,7 +603,7 @@ namespace System.Management.Automation
WaitForFinishofPipelines();
- // It is possible for the result ASyncResult object to be null if the runspace
+ // It is possible for the result ASyncResult object to be null if the runspace
// pool is already being closed from a server initiated close event.
if (result != null)
{
@@ -647,9 +647,9 @@ namespace System.Management.Automation
}
catch (PSRemotingTransportException)
{
- //
+ //
// If the WinRM listener has been removed before the runspace is closed, then calling
- // Close() will cause a PSRemotingTransportException. We don't want this exception
+ // Close() will cause a PSRemotingTransportException. We don't want this exception
// surfaced. Most developers don't expect an exception from calling Dispose.
// See [Windows 8 Bugs] 968184.
//
@@ -754,8 +754,8 @@ namespace System.Management.Automation
List runspaces = new List();
RunspacePool[] runspacePools = RemoteRunspacePoolInternal.GetRemoteRunspacePools(connectionInfo, host, typeTable);
- // We don't yet know how many runspaces there are in these runspace pool objects. This information isn't updated
- // until a Connect() is performed. But we can use the ConnectCommands list to prune runspace pool objects that
+ // We don't yet know how many runspaces there are in these runspace pool objects. This information isn't updated
+ // until a Connect() is performed. But we can use the ConnectCommands list to prune runspace pool objects that
// clearly have more than one command/runspace.
foreach (RunspacePool runspacePool in runspacePools)
{
@@ -794,12 +794,12 @@ namespace System.Management.Automation
/// Disconnects the runspace synchronously.
///
///
- /// Disconnects the remote runspace and any running command from the server
+ /// Disconnects the remote runspace and any running command from the server
/// machine. Any data generated by the running command on the server is
/// cached on the server machine. This runspace object goes to the disconnected
- /// state. This object can be reconnected to the server by calling the
+ /// state. This object can be reconnected to the server by calling the
/// Connect() method.
- /// If the remote runspace on the server remains disconnected for the IdleTimeout
+ /// If the remote runspace on the server remains disconnected for the IdleTimeout
/// value (as defined in the WSManConnectionInfo object) then it is closed and
/// torn down on the server.
///
@@ -829,12 +829,12 @@ namespace System.Management.Automation
/// Disconnects the runspace asynchronously.
///
///
- /// Disconnects the remote runspace and any running command from the server
+ /// Disconnects the remote runspace and any running command from the server
/// machine. Any data generated by the running command on the server is
/// cached on the server machine. This runspace object goes to the disconnected
- /// state. This object can be reconnected to the server by calling the
+ /// state. This object can be reconnected to the server by calling the
/// Connect() method.
- /// If the remote runspace on the server remains disconnected for the IdleTimeout
+ /// If the remote runspace on the server remains disconnected for the IdleTimeout
/// value (as defined in the WSManConnectionInfo object) then it is closed and
/// torn down on the server.
///
@@ -923,8 +923,8 @@ namespace System.Management.Automation
}
///
- /// Creates a PipeLine object in the disconnected state for the currently disconnected
- /// remote running command associated with this runspace.
+ /// Creates a PipeLine object in the disconnected state for the currently disconnected
+ /// remote running command associated with this runspace.
///
/// Pipeline object in disconnected state.
public override Pipeline CreateDisconnectedPipeline()
@@ -1077,7 +1077,7 @@ namespace System.Management.Automation
}
///
- /// Creates a nested pipeline.
+ /// Creates a nested pipeline.
///
///
/// Nested pipelines are needed for nested prompt scenario. Nested
@@ -1092,7 +1092,7 @@ namespace System.Management.Automation
}
///
- /// Creates a nested pipeline.
+ /// Creates a nested pipeline.
///
/// A valid command string
/// if true command is added to history
@@ -1118,15 +1118,15 @@ namespace System.Management.Automation
///
/// Add the pipeline to list of pipelines in execution.
///
- /// Pipeline to add to the
- /// list of pipelines in execution
- ///
+ /// Pipeline to add to the
+ /// list of pipelines in execution
+ ///
///
/// Thrown if the runspace is not in the Opened state.
/// .
///
- ///
- /// Thrown if
+ ///
+ /// Thrown if
/// is null.
///
internal void AddToRunningPipelineList(RemotePipeline pipeline)
@@ -1165,12 +1165,12 @@ namespace System.Management.Automation
///
/// Remove the pipeline from list of pipelines in execution.
///
- /// Pipeline to remove from the
- /// list of pipelines in execution
- ///
+ /// Pipeline to remove from the
+ /// list of pipelines in execution
+ ///
///
/// Thrown if is null.
- ///
+ ///
internal void RemoveFromRunningPipelineList(RemotePipeline pipeline)
{
Dbg.Assert(pipeline != null, "caller should validate the parameter");
@@ -1197,7 +1197,7 @@ namespace System.Management.Automation
/// a synchronous method call
internal void DoConcurrentCheckAndAddToRunningPipelines(RemotePipeline pipeline, bool syncCall)
{
- //Concurrency check should be done under runspace lock
+ //Concurrency check should be done under runspace lock
lock (_syncRoot)
{
if (_bSessionStateProxyCallInProgress == true)
@@ -1244,7 +1244,7 @@ namespace System.Management.Automation
switch (prevState)
{
case RunspaceState.Opening:
- // For newly opened remote runspaces, set the debug mode based on the
+ // For newly opened remote runspaces, set the debug mode based on the
// associated host. This involves running a remote command and is Ok
// since this event is called on a worker thread and not a WinRM callback.
SetDebugModeOnOpen();
@@ -1254,7 +1254,7 @@ namespace System.Management.Automation
UpdateDisconnectExpiresOn();
// Application private data containing server debug state is updated on
- // a *reconstruct* connect operation when _applicationPrivateData is null.
+ // a *reconstruct* connect operation when _applicationPrivateData is null.
// Pass new information to the debugger.
if (_applicationPrivateData == null)
{
@@ -1358,7 +1358,7 @@ namespace System.Management.Automation
if (debugMode != null)
{
- // Server supports remote debugging. Create Debugger object for
+ // Server supports remote debugging. Create Debugger object for
// this remote runspace.
Dbg.Assert(_remoteDebugger == null, "Remote runspace should not have a debugger yet.");
_remoteDebugger = new RemoteDebugger(this);
@@ -1379,7 +1379,7 @@ namespace System.Management.Automation
{
lock (_syncRoot)
{
- //Call fails if RunspaceState is not BeforeOpen.
+ //Call fails if RunspaceState is not BeforeOpen.
if (_runspaceStateInfo.State != RunspaceState.BeforeOpen)
{
InvalidRunspaceStateException e =
@@ -1400,13 +1400,13 @@ namespace System.Management.Automation
/// Set the new runspace state.
///
/// the new state
- /// An exception indicating the state change is the
+ /// An exception indicating the state change is the
/// result of an error, otherwise; null.
///
/// Previous runspace state
///
- /// Sets the internal runspace state information member variable. It also
- /// adds RunspaceStateInfo to a queue.
+ /// Sets the internal runspace state information member variable. It also
+ /// adds RunspaceStateInfo to a queue.
/// RaiseRunspaceStateEvents raises event for each item in this queue.
///
private RunspaceState SetRunspaceState(RunspaceState state, Exception reason)
@@ -1420,10 +1420,10 @@ namespace System.Management.Automation
{
_runspaceStateInfo = new RunspaceStateInfo(state, reason);
- //Add _runspaceStateInfo to _runspaceEventQueue.
+ //Add _runspaceStateInfo to _runspaceEventQueue.
//RaiseRunspaceStateEvents will raise event for each item
//in this queue.
- //Note:We are doing clone here instead of passing the member
+ //Note:We are doing clone here instead of passing the member
//_runspaceStateInfo because we donot want outside
//to change our runspace state.
RunspaceAvailability previousAvailability = _runspaceAvailability;
@@ -1466,8 +1466,8 @@ namespace System.Management.Automation
}
else
{
- //Clear the events if there are no EventHandlers. This
- //ensures that events do not get called for state
+ //Clear the events if there are no EventHandlers. This
+ //ensures that events do not get called for state
//changes prior to their registration.
_runspaceEventQueue.Clear();
}
@@ -1501,7 +1501,7 @@ namespace System.Management.Automation
}
///
- /// Creates a pipeline
+ /// Creates a pipeline
///
///
///
@@ -1513,7 +1513,7 @@ namespace System.Management.Automation
}
///
- /// Waits till all the pipelines running in the runspace have
+ /// Waits till all the pipelines running in the runspace have
/// finished execution.
///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Finishof")]
@@ -1551,7 +1551,7 @@ namespace System.Management.Automation
}
///
- /// Gets the currently executing pipeline.
+ /// Gets the currently executing pipeline.
///
/// Internal because it is needed by invoke-history
internal override Pipeline GetCurrentlyRunningPipeline()
@@ -1715,7 +1715,7 @@ namespace System.Management.Automation
}
///
- /// Keeps track of the current invoke command executing
+ /// Keeps track of the current invoke command executing
/// within the current local pipeline
///
/// reference to invoke command
@@ -1776,11 +1776,11 @@ namespace System.Management.Automation
#region Application private data
///
- /// Private data to be used by applications built on top of PowerShell.
- ///
- /// Remote runspace gets its application private data from the server (when creating the remote runspace pool)
+ /// Private data to be used by applications built on top of PowerShell.
+ ///
+ /// Remote runspace gets its application private data from the server (when creating the remote runspace pool)
/// - calling this method on a remote runspace will block until the data is received from the server.
- ///
+ ///
/// Runspaces that are part of a inherit application private data from the pool.
///
public override PSPrimitiveDictionary GetApplicationPrivateData()
@@ -2073,7 +2073,7 @@ namespace System.Management.Automation
{
CheckForValidateState();
- // Only set debug mode on server if no commands are currently
+ // Only set debug mode on server if no commands are currently
// running on remote runspace.
if ((_runspace.GetCurrentlyRunningPipeline() != null) ||
(_runspace.RemoteCommand != null))
@@ -2167,9 +2167,9 @@ namespace System.Management.Automation
///
/// Sets how the debugger deals with breakpoint events that are not handled.
- /// Ignore - This is the default behavior and ignores any breakpoint event
+ /// Ignore - This is the default behavior and ignores any breakpoint event
/// if there is no handler. Releases any preserved event.
- /// Wait - This mode preserves a breakpoint event until a handler is
+ /// Wait - This mode preserves a breakpoint event until a handler is
/// subscribed.
///
internal override UnhandledBreakpointProcessingMode UnhandledBreakpointMode
@@ -2443,7 +2443,7 @@ namespace System.Management.Automation
}
else
{
- // If no debugger is subscribed to the DebuggerStop event then we
+ // If no debugger is subscribed to the DebuggerStop event then we
// allow the server side script execution to remain blocked in debug
// stop mode. The runspace Availability reflects this and the client
// must take action (attach debugger or release remote debugger stop
@@ -2506,7 +2506,7 @@ namespace System.Management.Automation
if (!_remoteDebugSupported)
{
throw new PSInvalidOperationException(
- // The remote session to which you are connected does not support remote debugging.
+ // The remote session to which you are connected does not support remote debugging.
// You must connect to a remote computer that is running Windows PowerShell {0} or greater.
StringUtil.Format(RemotingErrorIdStrings.RemoteDebuggingEndpointVersionError, PSVersionInfo.PSV4Version),
null,
@@ -2614,23 +2614,23 @@ namespace System.Management.Automation
///
/// Set a variable in session state.
///
- ///
+ ///
///
/// The name of the item to set.
///
- ///
+ ///
///
/// The new value of the item being set.
///
- ///
+ ///
///
/// name is null
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2676,25 +2676,25 @@ namespace System.Management.Automation
}
///
- /// Get a variable out of session state.
+ /// Get a variable out of session state.
///
- ///
+ ///
///
/// name of variable to look up
///
- ///
+ ///
///
/// The value of the specified variable.
///
- ///
+ ///
///
/// name is null
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2754,11 +2754,11 @@ namespace System.Management.Automation
///
/// Get the list of applications out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2801,11 +2801,11 @@ namespace System.Management.Automation
///
/// Get the list of scripts out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2848,11 +2848,11 @@ namespace System.Management.Automation
///
/// Get the APIs to access drives out of session state
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2867,11 +2867,11 @@ namespace System.Management.Automation
///
/// Get/Set the language mode out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2916,11 +2916,11 @@ namespace System.Management.Automation
///
/// Get the module info out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2935,11 +2935,11 @@ namespace System.Management.Automation
///
/// Get the APIs to access paths and locations out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2954,11 +2954,11 @@ namespace System.Management.Automation
///
/// Get the APIs to access a provider out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2973,11 +2973,11 @@ namespace System.Management.Automation
///
/// Get the APIs to access variables out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
@@ -2992,14 +2992,14 @@ namespace System.Management.Automation
///
/// Get the APIs to build script blocks and execute script out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
- ///
+ ///
public override CommandInvocationIntrinsics InvokeCommand
{
get
@@ -3011,11 +3011,11 @@ namespace System.Management.Automation
///
/// Gets the instance of the provider interface APIs out of session state.
///
- ///
+ ///
///
/// Runspace is not open.
///
- ///
+ ///
///
/// Another SessionStateProxy call or another pipeline is in progress.
///
diff --git a/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs b/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs
index 688f370d07..0228bac686 100644
--- a/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs
+++ b/src/System.Management.Automation/engine/remoting/client/remoterunspaceinfo.cs
@@ -31,7 +31,7 @@ namespace System.Management.Automation.Runspaces
///
/// Class that exposes read only properties and which conveys information
- /// about a remote runspace object to the user. The class serves the
+ /// about a remote runspace object to the user. The class serves the
/// following purpose:
/// 1. Exposes useful information to the user as properties
/// 2. Shields the remote runspace object from directly being exposed
@@ -143,8 +143,8 @@ namespace System.Management.Automation.Runspaces
}
///
- /// SessionId of this runspace. This is unique only across
- /// a session
+ /// SessionId of this runspace. This is unique only across
+ /// a session
///
public int Id { get; }
@@ -166,7 +166,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Private data to be used by applications built on top of PowerShell.
+ /// Private data to be used by applications built on top of PowerShell.
/// Optionally sent by the remote server when creating a new session / runspace.
///
public PSPrimitiveDictionary ApplicationPrivateData
@@ -239,7 +239,7 @@ namespace System.Management.Automation.Runspaces
/// This constructor will be used to created a remote runspace info
/// object with a auto generated name
///
- /// Remote runspace object for which
+ /// Remote runspace object for which
/// the info object need to be created
internal PSSession(RemoteRunspace remoteRunspace)
{
diff --git a/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs b/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs
index 2bc0e888f5..7ace574f9a 100644
--- a/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs
+++ b/src/System.Management.Automation/engine/remoting/client/remotingprotocolimplementation.cs
@@ -97,7 +97,7 @@ namespace System.Management.Automation.Remoting
{
// only WSMan transport supports redirection
- // store the uri redirection handler and authmechanism
+ // store the uri redirection handler and authmechanism
// for uri redirection.
_uriRedirectionHandler = uriRedirectionHandler;
_maxUriRedirectionCount = wsmanConnectionInfo.MaximumConnectionRedirectionCount;
@@ -136,7 +136,7 @@ namespace System.Management.Automation.Remoting
{
//No-OP. Once the negotiation messages are exchanged and the session gets into established state,
//it will take care of spawning the receive operation on the connected session
- // There is however a caveat.
+ // There is however a caveat.
// A rouge remote server if it does not send the required negotiation data in the Connect Response,
// then the state machine can never get into the established state and the runspace can never get into a opened state
// Living with this for now.
@@ -241,7 +241,7 @@ namespace System.Management.Automation.Remoting
internal override void SendNegotiationAsync(RemoteSessionState sessionState)
{
// This state change is made before the call to CreateAsync to ensure the state machine
- // is prepared for a NegotiationReceived response. Otherwise a race condition can
+ // is prepared for a NegotiationReceived response. Otherwise a race condition can
// occur when the transport NegotiationReceived arrives too soon, breaking the session.
// This race condition was observed for OutOfProc transport when reusing the OutOfProc process.
//this will change StateMachine to NegotiationSent.
@@ -370,7 +370,7 @@ namespace System.Management.Automation.Remoting
/// newURIString is a null reference.
///
///
- /// uriString is empty.
+ /// uriString is empty.
/// The scheme specified in uriString is invalid.
/// uriString contains too many slashes.
/// The password specified in uriString is invalid.
@@ -395,7 +395,7 @@ namespace System.Management.Automation.Remoting
// perform other steps only after transport manager is closed.
_transportManager.CloseCompleted += HandleTransportCloseCompleteForRedirection;
- // Handle errors happened while redirecting differently..We need to reset the
+ // Handle errors happened while redirecting differently..We need to reset the
// original handlers in this case.
_transportManager.WSManTransportErrorOccured += HandleTransportErrorForRedirection;
@@ -572,7 +572,7 @@ namespace System.Management.Automation.Remoting
case RemotingTargetInterface.RunspacePool:
case RemotingTargetInterface.PowerShell:
- //Non Session messages do not change the state of the statemachine.
+ //Non Session messages do not change the state of the statemachine.
//However instead of forwarding them to Runspace/pipeline here, an
//event is raised in state machine which verified that state is
//suitable for accepting these messages. if state is suitable statemachine
@@ -599,7 +599,7 @@ namespace System.Management.Automation.Remoting
// internal override event EventHandler DataReceived;
///
- /// This processes the object received from transport which are
+ /// This processes the object received from transport which are
/// targeted for session
///
///
@@ -670,7 +670,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// This processes the object received from transport which are
+ /// This processes the object received from transport which are
/// not targeted for session
///
///
@@ -710,7 +710,7 @@ namespace System.Management.Automation.Remoting
{
// The runspace pool may have been removed on the client side,
// so, we should just ignore the message.
- s_trace.WriteLine(@"Client received data for Runspace (id: {0}),
+ s_trace.WriteLine(@"Client received data for Runspace (id: {0}),
but the Runspace cannot be found", clientRunspacePoolId);
}
@@ -778,7 +778,7 @@ namespace System.Management.Automation.Remoting
/// Raise the public key received event
///
/// received data
- /// This method is a hook to be called
+ /// This method is a hook to be called
/// from the transport manager
internal override void RaiseKeyExchangeMessageReceived(RemoteDataObject receivedData)
{
diff --git a/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs b/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs
index a24789b5f3..cdb3cc2aeb 100644
--- a/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/ConnectPSSession.cs
@@ -24,26 +24,26 @@ namespace Microsoft.PowerShell.Commands
/// be specified and in this case all disconnected remote runspaces found on the
/// remote computer will be be connected and PSSession objects created on the local
/// machine.
- ///
+ ///
/// The cmdlet can be used in the following ways:
- ///
+ ///
/// Connect a PS session object:
/// > $session = New-PSSession serverName
/// > Disconnect-PSSession $session
/// > Connect-PSSession $session
- ///
+ ///
/// Connect a PS session by name:
/// > Connect-PSSession $session.Name
- ///
+ ///
/// Connect a PS session by Id:
/// > Connect-PSSession $session.Id
- ///
+ ///
/// Connect a collection of PS session:
/// > Get-PSSession | Connect-PSSession
- ///
+ ///
/// Connect all disconnected PS sessions on a remote computer
/// > Connect-PSSession serverName
- ///
+ ///
///
[SuppressMessage("Microsoft.PowerShell", "PS1012:CallShouldProcessOnlyIfDeclaringSupport")]
[Cmdlet(VerbsCommunications.Connect, "PSSession", SupportsShouldProcess = true, DefaultParameterSetName = ConnectPSSessionCommand.NameParameterSet,
@@ -103,7 +103,7 @@ namespace Microsoft.PowerShell.Commands
///
/// If this parameter is not specified then the value specified in
- /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
+ /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
/// this is not set as well, then Microsoft.PowerShell is used.
///
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -125,7 +125,7 @@ namespace Microsoft.PowerShell.Commands
private String _shell;
///
- /// A complete URI(s) specified for the remote computer and shell to
+ /// A complete URI(s) specified for the remote computer and shell to
/// connect to and create a runspace for.
///
[Parameter(Position = 0, Mandatory = true,
@@ -184,8 +184,8 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Specifies the credentials of the user to impersonate in the
- /// remote machine. If this parameter is not specified then the
+ /// Specifies the credentials of the user to impersonate in the
+ /// remote machine. If this parameter is not specified then the
/// credentials of the current user process will be assumed.
///
[Parameter(ParameterSetName = ConnectPSSessionCommand.ComputerNameParameterSet)]
@@ -226,7 +226,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Specifies the certificate thumbprint to be used to impersonate the user on the
+ /// Specifies the certificate thumbprint to be used to impersonate the user on the
/// remote machine.
///
[Parameter(ParameterSetName = ConnectPSSessionCommand.ComputerNameParameterSet)]
@@ -247,7 +247,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Port specifies the alternate port to be used in case the
+ /// Port specifies the alternate port to be used in case the
/// default ports are not used for the transport mechanism
/// (port 80 for http and port 443 for useSSL)
///
@@ -410,7 +410,7 @@ namespace Microsoft.PowerShell.Commands
// Wait for all connect operations to complete.
_operationsComplete.WaitOne();
- // If there are failed connect operations due to stale
+ // If there are failed connect operations due to stale
// session state then perform the query retry here.
if (_failedSessions.Count > 0)
{
@@ -449,7 +449,7 @@ namespace Microsoft.PowerShell.Commands
// Stop any remote server queries that may be running.
_queryRunspaces.StopAllOperations();
- // Signal the ThrottleManager to stop any further
+ // Signal the ThrottleManager to stop any further
// PSSession connect processing.
_throttleManager.StopAllOperations();
@@ -611,7 +611,7 @@ namespace Microsoft.PowerShell.Commands
}
else
{
- // Check to see if failure is due to stale PSSession error and
+ // Check to see if failure is due to stale PSSession error and
// add to retry list if this is the case.
bool writeError = true;
if (_queryRunspaces == null)
@@ -655,7 +655,7 @@ namespace Microsoft.PowerShell.Commands
private void WriteConnectedPSSession()
{
- // Use temporary variable because we need to preserve _session class variable
+ // Use temporary variable because we need to preserve _session class variable
// for later clean up.
PSSession outSession = _session;
if (_queryRunspaces != null)
@@ -850,7 +850,7 @@ namespace Microsoft.PowerShell.Commands
else if (psSession.Runspace.RunspaceStateInfo.State == RunspaceState.Disconnected &&
psSession.Runspace.RunspaceAvailability == RunspaceAvailability.None)
{
- // Can only connect sessions that are in Disconnected state.
+ // Can only connect sessions that are in Disconnected state.
// Update session connection information based on cmdlet parameters.
UpdateConnectionInfo(psSession.Runspace.ConnectionInfo as WSManConnectionInfo);
@@ -1036,7 +1036,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Dispose method of IDisposable. Gets called in the following cases:
/// 1. Pipeline explicitly calls dispose on cmdlets
- /// 2. Called by the garbage collector
+ /// 2. Called by the garbage collector
///
public void Dispose()
{
@@ -1049,7 +1049,7 @@ namespace Microsoft.PowerShell.Commands
/// Internal dispose method which does the actual
/// dispose operations and finalize suppressions
///
- /// Whether method is called
+ /// Whether method is called
/// from Dispose or destructor
private void Dispose(bool disposing)
{
@@ -1146,7 +1146,7 @@ namespace Microsoft.PowerShell.Commands
{
// The Get-WSManInstance cmdlet used to query remote computers for runspaces will throw
// an Invalid Operation (inner) exception if the connectInfo object is invalid, including
- // invalid computer names.
+ // invalid computer names.
// We don't want to propagate the exception so just write error here.
if (stream.ObjectWriter != null && stream.ObjectWriter.IsOpen)
{
@@ -1196,7 +1196,7 @@ namespace Microsoft.PowerShell.Commands
}
// Check the repository for an existing viable PSSession for
- // this runspace (based on instanceId). Use the existing
+ // this runspace (based on instanceId). Use the existing
// local runspace instead of the one returned from the server
// query.
PSSession existingPSSession = null;
@@ -1328,7 +1328,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Returns Exception message. If message is WSMan Xml then
+ /// Returns Exception message. If message is WSMan Xml then
/// the WSMan message and error code is extracted and returned.
///
/// Exception
diff --git a/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs b/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs
index 2a79d55ce2..939d45bd85 100644
--- a/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/CustomShellCommands.cs
@@ -30,7 +30,7 @@ using System.Security.Principal;
#if CORECLR
// Some APIs are missing from System.Environment. We use System.Management.Automation.Environment as a proxy type:
// - for missing APIs, System.Management.Automation.Environment has extension implementation.
-// - for existing APIs, System.Management.Automation.Environment redirect the call to System.Environment.
+// - for existing APIs, System.Management.Automation.Environment redirect the call to System.Environment.
using Environment = System.Management.Automation.Environment;
#endif
@@ -53,7 +53,7 @@ namespace Microsoft.PowerShell.Commands
function Register-PSSessionConfiguration
{{
[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact=""Medium"")]
- param(
+ param(
[string] $filepath,
[string] $pluginName,
[bool] $shouldShowUI,
@@ -86,7 +86,7 @@ function Register-PSSessionConfiguration
{{
$sddl = $_.psobject.members[""SecurityDescriptorSddl""].Value
}}
-
+
if($sddl)
{{
# See if it has 'Disable Network Access'
@@ -95,7 +95,7 @@ function Register-PSSessionConfiguration
$sd.DiscretionaryAcl | % {{
if (($_.acequalifier -eq ""accessdenied"") -and ($_.securityidentifier -match $networkSID) -and ($_.AccessMask -eq 268435456))
{{
- $disableNetworkExists = $true
+ $disableNetworkExists = $true
}}
}}
@@ -123,7 +123,7 @@ function Register-PSSessionConfiguration
new-item -path WSMan:\localhost\Plugin -file ""$filepath"" -name ""$pluginName""
# $? is to make sure the last operation is succeeded
- if ($? -and $runAsUserName)
+ if ($? -and $runAsUserName)
{{
try {{
$runAsCredential = new-object system.management.automation.PSCredential($runAsUserName, $runAsPassword)
@@ -173,7 +173,7 @@ function Register-PSSessionConfiguration
# Construct SID for network users
[system.security.principal.wellknownsidtype]$evst = ""NetworkSid""
$networkSID = new-object system.security.principal.securityidentifier $evst,$null
-
+
$sd = new-object system.security.accesscontrol.commonsecuritydescriptor $false,$false,$curSDDL
$haveDisableACE = $false
$securityIdentifierToPurge = $null
@@ -248,7 +248,7 @@ function Register-PSSessionConfiguration
if ($?){{
try{{
$s = New-PSSession -ComputerName localhost -ConfigurationName $pluginName -ErrorAction Stop
- # session is ok, no need to restart WinRM service
+ # session is ok, no need to restart WinRM service
Remove-PSSession $s -Confirm:$false
}}catch{{
# session is NOT ok, we need to restart winrm if -Force was specified, otherwise show a warning
@@ -280,9 +280,9 @@ else
Filename='%windir%\system32\{1}'
SDKVersion='{12}'
XmlRenderingType='text' {2} {6} {7} {8} {9} {10}>
-
+
{3}
-
+
{5}
@@ -376,7 +376,7 @@ else
#region Cmdlet Overrides
///
- ///
+ ///
///
///
/// 1. Either both "AssemblyName" and "ConfigurationTypeName" must be specified
@@ -486,7 +486,7 @@ else
}
///
- /// For each record, execute it, and push the results into the
+ /// For each record, execute it, and push the results into the
/// success stream.
///
protected override void ProcessRecord()
@@ -553,7 +553,7 @@ else
// gather -WhatIf, -Confirm parameter data and pass it to the script block
bool whatIf = false;
- // confirm is always true to start with
+ // confirm is always true to start with
bool confirm = true;
PSSessionConfigurationCommandUtilities.CollectShouldProcessParameters(this, out whatIf, out confirm);
// gather -ErrorAction parameter data and pass it to the script block. if -ErrorAction is not set, pass $null in
@@ -608,7 +608,7 @@ else
DeleteFile(file);
}
- // If the file no longer exists then re-copy the configuration file to the dest location after
+ // If the file no longer exists then re-copy the configuration file to the dest location after
// newPluginSb script is run the file no longer exists.
if ((srcConfigFilePath != null) && (destConfigFilePath != null) &&
!File.Exists(destConfigFilePath))
@@ -693,7 +693,7 @@ else
///
///
/// 1. Cannot delete temporary file {0}. Try again. Reason for failure: {1}.
- /// 2. Cannot write shell configuration data into temporary file {0}. Try again.
+ /// 2. Cannot write shell configuration data into temporary file {0}. Try again.
/// Reason for failure: {1}.
///
private string ConstructTemporaryFile(string pluginContent)
@@ -1284,7 +1284,7 @@ else
/// if true, then the user will not be prompted.
///
///
- /// if true, we dont attempt to restart winrm service ie. this will be a no-op.
+ /// if true, we dont attempt to restart winrm service ie. this will be a no-op.
///
internal static void RestartWinRMService(PSCmdlet cmdlet, bool isErrorReported, bool force, bool noServiceRestart)
{
@@ -1345,7 +1345,7 @@ else
{
// gather -WhatIf, -Confirm parameter data and pass it to the script block
whatIf = false;
- // confirm is always true to start with
+ // confirm is always true to start with
confirm = false;
MshCommandRuntime cmdRuntime = cmdlet.CommandRuntime as MshCommandRuntime;
if (null != cmdRuntime)
@@ -1674,7 +1674,7 @@ else
// Building new conditional ACE
sb.Append(OpenParenChar);
- // Prepend the 'X' character
+ // Prepend the 'X' character
var accessType = ConditionalACEPrefix + components[0];
sb.Append(accessType + ACESeparator);
for (int i = 1; i < 6; i++)
@@ -1698,7 +1698,7 @@ else
out string epilogue)
{
//
- // The format of the sddl is expected to be:
+ // The format of the sddl is expected to be:
// owner (O:), primary group (G:), DACL (D:), and SACL (S:).
// (https://msdn.microsoft.com/en-us/library/windows/desktop/aa379570(v=vs.85).aspx)
// e.g.
@@ -2217,7 +2217,7 @@ else
internal bool isMaxObjectSizeMBSpecified;
///
- /// This enables the user to specify an SDDL on the shell.
+ /// This enables the user to specify an SDDL on the shell.
/// The default SDDL is the default used by Wsman.
///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Sddl")]
@@ -2483,23 +2483,23 @@ function Unregister-PSSessionConfiguration
$pluginFileName = get-item -literalpath ""$pluginFileNamePath""
if ((!$pluginFileName) -or ($pluginFileName.Value -notmatch '{0}'))
{{
- return
+ return
}}
-
+
$shellsFound++
$shouldProcessTargetString = $targetTemplate -f $_.Name
$DISCConfigFilePath = [System.IO.Path]::Combine($_.PSPath, ""InitializationParameters"")
$DISCConfigFile = get-childitem -literalpath ""$DISCConfigFilePath"" | ? {{$_.Name -like ""configFilePath""}}
-
+
if($DISCConfigFile -ne $null)
{{
- if(test-path -LiteralPath ""$($DISCConfigFile.Value)"") {{
+ if(test-path -LiteralPath ""$($DISCConfigFile.Value)"") {{
remove-item -literalpath ""$($DISCConfigFile.Value)"" -recurse -force -confirm:$false
}}
}}
-
+
if($force -or $pscmdlet.ShouldProcess($shouldProcessTargetString, $action))
{{
remove-item -literalpath ""$($_.pspath)"" -recurse -force -confirm:$false
@@ -2509,7 +2509,7 @@ function Unregister-PSSessionConfiguration
if (!$shellsFound)
{{
$errMsg = $shellNotErrMsgFormat -f $filter
- Write-Error $errMsg
+ Write-Error $errMsg
}}
}} # end of Process block
}}
@@ -2617,7 +2617,7 @@ else
// gather -WhatIf, -Confirm parameter data and pass it to the script block
bool whatIf = false;
- // confirm is always true to start with
+ // confirm is always true to start with
bool confirm = true;
PSSessionConfigurationCommandUtilities.CollectShouldProcessParameters(this, out whatIf, out confirm);
// gather -ErrorAction parameter data and pass it to the script block. if -ErrorAction is not set, pass $null in
@@ -2681,7 +2681,7 @@ else
// To Escape " -- ""
private const string getPluginSbFormat = @"
-function ExtractPluginProperties([string]$pluginDir, $objectToWriteTo)
+function ExtractPluginProperties([string]$pluginDir, $objectToWriteTo)
{{
function Unescape-Xml($s) {{
if ($s) {{
@@ -2691,13 +2691,13 @@ function ExtractPluginProperties([string]$pluginDir, $objectToWriteTo)
$s = $s.Replace(""'"", ""'"");
$s = $s.Replace(""'"", ""'"");
$s = $s.Replace(""&"", ""&"");
- }}
+ }}
return $s;
}}
# The default comparer is case insensitive and it is supported on Core CLR.
$h = new-object system.collections.hashtable
-
+
function Get-Details([string]$path, [hashtable]$h) {{
foreach ($o in (get-childitem -LiteralPath $path)) {{
if ($o.PSIsContainer) {{
@@ -2707,19 +2707,19 @@ function ExtractPluginProperties([string]$pluginDir, $objectToWriteTo)
}}
}}
}}
-
+
Get-Details $pluginDir $h
-
+
if ($h[""AssemblyName""] -eq ""Microsoft.PowerShell.Workflow.ServiceCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"") {{
-
+
$serviceCore = [Reflection.Assembly]::Load(""Microsoft.Powershell.Workflow.ServiceCore, Version=3.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL"")
-
+
if ($serviceCore -ne $null) {{
$ci = new-Object system.management.automation.cmdletinfo ""New-PSWorkflowExecutionOptions"", ([Microsoft.PowerShell.Commands.NewPSWorkflowExecutionOptionCommand])
$wf = [powershell]::Create(""currentrunspace"").AddCommand($ci).Invoke()
-
- if($wf -ne $null -and $wf.Count -ne 0) {{
+
+ if($wf -ne $null -and $wf.Count -ne 0) {{
$wf = $wf[0]
foreach ($o in $wf.GetType().GetProperties()) {{
@@ -2751,7 +2751,7 @@ function ExtractPluginProperties([string]$pluginDir, $objectToWriteTo)
$DISCFileContent = get-content $DISCFilePath | out-string
$DISCHash = invoke-expression $DISCFileContent
- foreach ($o in $DISCHash.Keys) {{
+ foreach ($o in $DISCHash.Keys) {{
if ($o -ne ""PowerShellVersion"") {{
$objectToWriteTo = $objectToWriteTo | add-member -membertype noteproperty -name $o -value $DISCHash[$o] -force -passthru
}}
@@ -2778,7 +2778,7 @@ $args[0] | foreach {{
$shellsFound = 0;
$filter = $_
Get-ChildItem 'WSMan:\localhost\Plugin\' -Force:$force | ? {{ $_.name -like ""$filter"" }} | foreach {{
- $customPluginObject = new-object object
+ $customPluginObject = new-object object
$customPluginObject.pstypenames.Insert(0, '{0}')
ExtractPluginProperties ""$($_.PSPath)"" $customPluginObject
# this is powershell based custom shell only if its plugin dll is pwrshplugin.dll
@@ -2788,12 +2788,12 @@ $args[0] | foreach {{
$customPluginObject
}}
}} # end of foreach
-
+
if (!$shellsFound -and !([System.Management.Automation.WildcardPattern]::ContainsWildcardCharacters($_)))
{{
$errMsg = $shellNotErrMsgFormat -f $_
- Write-Error $errMsg
- }}
+ Write-Error $errMsg
+ }}
}}
";
@@ -2941,7 +2941,7 @@ Set-SessionConfigurationData $args[0]
private const string setSessionConfigurationQuotaSbFormat = @"
function Set-SessionPluginQuota([hashtable] $quotas) {{
foreach($v in $quotas.GetEnumerator()) {{
- $name = $v.Name;
+ $name = $v.Name;
$value = $v.Value;
if (!$value) {{
$value = [string]::empty;
@@ -2975,7 +2975,7 @@ function Set-SessionPluginOptions([hashtable] $options) {{
$options.Remove(""UseSharedProcess"");
}}
foreach($v in $options.GetEnumerator()) {{
- $name = $v.Name;
+ $name = $v.Name;
$value = $v.Value
if (!$value) {{
@@ -3002,7 +3002,7 @@ Set-RunAsCredential $args[0] $args[1]
";
private const string setPluginSbFormat = @"
-function Set-PSSessionConfiguration([PSObject]$customShellObject,
+function Set-PSSessionConfiguration([PSObject]$customShellObject,
[Array]$initParametersMap,
[bool]$force,
[string]$sddl,
@@ -3023,7 +3023,7 @@ function Set-PSSessionConfiguration([PSObject]$customShellObject,
return
}}
- # check if the plugin is a PowerShell plugin
+ # check if the plugin is a PowerShell plugin
$pluginFileNamePath = Join-Path ""$pluginDir"" 'FileName'
if (!(test-path ""$pluginFileNamePath""))
{{
@@ -3039,9 +3039,9 @@ function Set-PSSessionConfiguration([PSObject]$customShellObject,
}}
# set Initialization Parameters
- $initParametersPath = Join-Path ""$pluginDir"" 'InitializationParameters'
+ $initParametersPath = Join-Path ""$pluginDir"" 'InitializationParameters'
foreach($initParameterName in $initParametersMap)
- {{
+ {{
if ($customShellObject | get-member $initParameterName)
{{
$parampath = Join-Path ""$initParametersPath"" $initParameterName
@@ -3050,7 +3050,7 @@ function Set-PSSessionConfiguration([PSObject]$customShellObject,
{{
remove-item -path ""$parampath""
}}
-
+
# 0 is an accepted value for MaximumReceivedDataSizePerCommandMB and MaximumReceivedObjectSizeMB
if (($customShellObject.$initParameterName) -or ($customShellObject.$initParameterName -eq 0))
{{
@@ -3112,7 +3112,7 @@ function Set-PSSessionConfiguration([PSObject]$customShellObject,
$curSDDL = (get-item -path $sddlPath).value
$sd = new-object system.security.accesscontrol.commonsecuritydescriptor $false,$false,$curSDDL
$newSDDL = $null
-
+
$disableNetworkExists = $false
$securityIdentifierToPurge = $null
$sd.DiscretionaryAcl | % {{
@@ -3231,7 +3231,7 @@ Set-PSSessionConfiguration $args[0] $args[1] $args[2] $args[3] $args[4] $args[5]
#region Cmdlet overrides
///
- ///
+ ///
///
///
/// 1. Either both "AssemblyName" and "ConfigurationTypeName" must be specified
@@ -3348,7 +3348,7 @@ Set-PSSessionConfiguration $args[0] $args[1] $args[2] $args[3] $args[4] $args[5]
}
///
- ///
+ ///
///
protected override void ProcessRecord()
{
@@ -3580,7 +3580,7 @@ Set-PSSessionConfiguration $args[0] $args[1] $args[2] $args[3] $args[4] $args[5]
int? currentIdleTimeoutms = WSManConfigurationOption.DefaultIdleTimeout;
// Get the current IdleTimeOut quota value
- //
+ //
using (System.Management.Automation.PowerShell ps = System.Management.Automation.PowerShell.Create())
{
ps.AddScript(string.Format(CultureInfo.InvariantCulture, getCurrentIdleTimeoutmsFormat, CodeGeneration.EscapeSingleQuotedStringContent(Name)));
@@ -3613,7 +3613,7 @@ Set-PSSessionConfiguration $args[0] $args[1] $args[2] $args[3] $args[4] $args[5]
args: new object[] { maxIdleTimeOut, idleTimeOut, setMaxIdleTimeoutFirst });
// Remove Idle timeout values as we have set them above
- //
+ //
quotas.Remove(WSManConfigurationOption.AttribMaxIdleTimeout);
quotas.Remove(WSManConfigurationOption.AttribIdleTimeout);
}
@@ -3715,7 +3715,7 @@ Set-PSSessionConfiguration $args[0] $args[1] $args[2] $args[3] $args[4] $args[5]
}
}
- // If the ModulesToImport parameter is not specified, or it is specified, but modulePathParameter turns out to be an empty string,
+ // If the ModulesToImport parameter is not specified, or it is specified, but modulePathParameter turns out to be an empty string,
// we use the original module path
if (!unsetModulePath && string.IsNullOrEmpty(modulePathParameter))
{
@@ -3876,8 +3876,8 @@ Set-PSSessionConfiguration $args[0] $args[1] $args[2] $args[3] $args[4] $args[5]
// We add MaxPSVersion to the result irrespective of whether the string is empty or not.
// This is done to cover the following scenario
- // Register-PSSessionConfiguration -Name "blah" -PSVersion 2
- // followed by a
+ // Register-PSSessionConfiguration -Name "blah" -PSVersion 2
+ // followed by a
// Set-PSSessionConfiguration -Name "blah" -PSVersion 3
// If you create an end point with version 2 and then update it to 3, then the MaxPsVersion parameter should be removed from config xml
// So, we create a MaxPSVersion property with no value.
@@ -4078,7 +4078,7 @@ function Test-WinRMQuickConfigNeeded
else{{
if (Get-Command Get-NetFirewallRule -ErrorAction SilentlyContinue){{
$winrmFirewall = Get-NetFirewallRule -Name 'WINRM-HTTP-In-TCP' -ErrorAction SilentlyContinue
- if (!$winrmFirewall -or $winrmFirewall.Enabled -ne $true){{
+ if (!$winrmFirewall -or $winrmFirewall.Enabled -ne $true){{
$winrmQuickConfigNeeded = $true
}}
}}
@@ -4101,27 +4101,27 @@ param(
[Parameter()]
[bool]
$Force,
-
+
[Parameter()]
[string]
$sddl,
-
+
[Parameter()]
[bool]
$isSDDLSpecified,
-
+
[Parameter()]
[string]
$queryForSet,
-
+
[Parameter()]
[string]
$captionForSet,
-
+
[Parameter()]
[string]
$queryForQC,
-
+
[Parameter()]
[string]
$captionForQC,
@@ -4141,12 +4141,12 @@ param(
[Parameter()]
[bool]
$skipNetworkProfileCheck,
-
+
[Parameter()]
[bool]
$noServiceRestart
)
-
+
begin
{{
$winrmQuickConfigNeeded = Test-WinRMQuickConfigNeeded
@@ -4169,8 +4169,8 @@ param(
Restart-Service winrm -force -confirm:$false
}}
}}
- }} #end of Begin block
-
+ }} #end of Begin block
+
process
{{
Get-PSSessionConfiguration $name -Force:$Force | % {{
@@ -4195,15 +4195,15 @@ param(
# construct SID for ""EveryOne""
[system.security.principal.wellknownsidtype]$evst = ""worldsid""
$everyOneSID = new-object system.security.principal.securityidentifier $evst,$null
-
- $sd = new-object system.security.accesscontrol.commonsecuritydescriptor $false,$false,$sddlTemp
+
+ $sd = new-object system.security.accesscontrol.commonsecuritydescriptor $false,$false,$sddlTemp
$sd.DiscretionaryAcl | % {{
if (($_.acequalifier -eq ""accessdenied"") -and ($_.securityidentifier -match $everyOneSID))
{{
$securityIdentifierToPurge = $_.securityidentifier
}}
}}
-
+
if ($securityIdentifierToPurge)
{{
$sd.discretionaryacl.purge($securityIdentifierToPurge)
@@ -4232,8 +4232,8 @@ param(
$sddl = $sd.GetSddlForm(""all"")
}}
}} # if ($sddlTemp)
- }} # if (!$isSDDLSpecified)
-
+ }} # if (!$isSDDLSpecified)
+
$qMessage = $queryForSet -f $_.name,$sddl
if (($sddl -or $isSDDLSpecified) -and ($force -or $pscmdlet.ShouldProcess($qMessage, $captionForSet)))
{{
@@ -4247,7 +4247,7 @@ param(
}}
}}
-$_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecified $args[2] -queryForSet $args[3] -captionForSet $args[4] -queryForQC $args[5] -captionForQC $args[6] -whatif:$args[7] -confirm:$args[8] -shouldProcessDescForQC $args[9] -setEnabledTarget $args[10] -setEnabledAction $args[11] -skipNetworkProfileCheck $args[12] -noServiceRestart $args[13]
+$_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecified $args[2] -queryForSet $args[3] -captionForSet $args[4] -queryForQC $args[5] -captionForQC $args[6] -whatif:$args[7] -confirm:$args[8] -shouldProcessDescForQC $args[9] -setEnabledTarget $args[10] -setEnabledAction $args[11] -skipNetworkProfileCheck $args[12] -noServiceRestart $args[13]
";
private static ScriptBlock s_enablePluginSb;
@@ -4334,7 +4334,7 @@ $_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecifi
internal bool isSddlSpecified;
///
- /// Property that will allow configuring WinRM with Public
+ /// Property that will allow configuring WinRM with Public
/// profile exception enabled.
///
[Parameter()]
@@ -4363,7 +4363,7 @@ $_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecifi
#region Cmdlet Overrides
///
- ///
+ ///
///
///
/// 1. Either both "AssemblyName" and "ConfigurationTypeName" must be specified
@@ -4377,7 +4377,7 @@ $_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecifi
}
///
- ///
+ ///
///
protected override void ProcessRecord()
{
@@ -4391,7 +4391,7 @@ $_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecifi
}
///
- ///
+ ///
///
protected override void EndProcessing()
{
@@ -4405,7 +4405,7 @@ $_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecifi
// gather -WhatIf, -Confirm parameter data and pass it to the script block
bool whatIf = false;
- // confirm is always true to start with
+ // confirm is always true to start with
bool confirm = true;
PSSessionConfigurationCommandUtilities.CollectShouldProcessParameters(this, out whatIf, out confirm);
@@ -4462,7 +4462,7 @@ $_ | Enable-PSSessionConfiguration -force $args[0] -sddl $args[1] -isSDDLSpecifi
}
///
- ///
+ ///
///
[Cmdlet(VerbsLifecycle.Disable, RemotingConstants.PSSessionConfigurationNoun,
SupportsShouldProcess = true, ConfirmImpact = ConfirmImpact.Low, HelpUri = "https://go.microsoft.com/fwlink/?LinkID=144299")]
@@ -4502,7 +4502,7 @@ param(
[bool]
$noServiceRestart
)
-
+
begin
{{
if ($force -or $pscmdlet.ShouldProcess($restartWinRMMessage))
@@ -4512,13 +4512,13 @@ param(
{{
Restart-Service winrm -force -confirm:$false
}}
- }}
- }} #end of Begin block
+ }}
+ }} #end of Begin block
process
{{
Get-PSSessionConfiguration $name -Force:$Force | % {{
-
+
if ($_.Enabled -and ($force -or $pscmdlet.ShouldProcess($setEnabledTarget, $setEnabledAction)))
{{
Set-Item -WarningAction SilentlyContinue -Path ""WSMan:\localhost\Plugin\$name\Enabled"" -Value $false -Force -Confirm:$false
@@ -4602,7 +4602,7 @@ $_ | Disable-PSSessionConfiguration -force $args[0] -whatif:$args[1] -confirm:$a
#region Cmdlet Overrides
///
- ///
+ ///
///
///
/// 1. Either both "AssemblyName" and "ConfigurationTypeName" must be specified
@@ -4616,7 +4616,7 @@ $_ | Disable-PSSessionConfiguration -force $args[0] -whatif:$args[1] -confirm:$a
}
///
- ///
+ ///
///
protected override void ProcessRecord()
{
@@ -4630,7 +4630,7 @@ $_ | Disable-PSSessionConfiguration -force $args[0] -whatif:$args[1] -confirm:$a
}
///
- ///
+ ///
///
protected override void EndProcessing()
{
@@ -4645,7 +4645,7 @@ $_ | Disable-PSSessionConfiguration -force $args[0] -whatif:$args[1] -confirm:$a
// gather -WhatIf, -Confirm parameter data and pass it to the script block
bool whatIf = false;
- // confirm is always true to start with
+ // confirm is always true to start with
bool confirm = true;
PSSessionConfigurationCommandUtilities.CollectShouldProcessParameters(this, out whatIf, out confirm);
@@ -4694,7 +4694,7 @@ $_ | Disable-PSSessionConfiguration -force $args[0] -whatif:$args[1] -confirm:$a
#region Enable-PSRemoting
///
- ///
+ ///
///
#if !CORECLR
[Cmdlet(VerbsLifecycle.Enable, RemotingConstants.PSRemotingNoun,
@@ -4715,9 +4715,9 @@ function Enable-PSRemoting
[CmdletBinding(SupportsShouldProcess=$true, ConfirmImpact=""Medium"")]
param(
[Parameter()] [bool] $Force,
- [Parameter()] [string] $queryForRegisterDefault,
+ [Parameter()] [string] $queryForRegisterDefault,
[Parameter()] [string] $captionForRegisterDefault,
- [Parameter()] [string] $queryForSet,
+ [Parameter()] [string] $queryForSet,
[Parameter()] [string] $captionForSet,
[Parameter()] [bool] $skipNetworkProfileCheck
)
@@ -4726,20 +4726,20 @@ param(
{{
# Enable all Session Configurations
try {{
- $null = $PSBoundParameters.Remove(""queryForRegisterDefault"")
- $null = $PSBoundParameters.Remove(""captionForRegisterDefault"")
- $null = $PSBoundParameters.Remove(""queryForSet"")
- $null = $PSBoundParameters.Remove(""captionForSet"")
+ $null = $PSBoundParameters.Remove(""queryForRegisterDefault"")
+ $null = $PSBoundParameters.Remove(""captionForRegisterDefault"")
+ $null = $PSBoundParameters.Remove(""queryForSet"")
+ $null = $PSBoundParameters.Remove(""captionForSet"")
$PSBoundParameters.Add(""Name"",""*"")
# first try to enable all the sessions
Enable-PSSessionConfiguration @PSBoundParameters
- # make sure default powershell end points exist
+ # make sure default powershell end points exist
# ie., Microsoft.PowerShell
# and Microsoft.PowerShell32 (wow64)
-
+
$errorCount = $error.Count
$endPoint = Get-PSSessionConfiguration {0} -Force:$Force -ErrorAction silentlycontinue 2>&1
$newErrorCount = $error.Count
@@ -4751,14 +4751,14 @@ param(
}}
$qMessage = $queryForRegisterDefault -f ""{0}"",""Register-PSSessionConfiguration {0} -force""
- if ((!$endpoint) -and
+ if ((!$endpoint) -and
($force -or $pscmdlet.ShouldProcess($qMessage, $captionForRegisterDefault)))
{{
$null = Register-PSSessionConfiguration {0} -force
set-item -WarningAction SilentlyContinue wsman:\localhost\plugin\{0}\Quotas\MaxShellsPerUser -value ""25"" -confirm:$false
set-item -WarningAction SilentlyContinue wsman:\localhost\plugin\{0}\Quotas\MaxIdleTimeoutms -value {4} -confirm:$false
restart-service winrm -confirm:$false
- }}
+ }}
# Check Microsoft.PowerShell.Workflow endpoint
$errorCount = $error.Count
@@ -4804,7 +4804,7 @@ param(
}}
$qMessage = $queryForRegisterDefault -f ""{0}32"",""Register-PSSessionConfiguration {0}32 -processorarchitecture x86 -force""
- if ((!$endpoint) -and
+ if ((!$endpoint) -and
($force -or $pscmdlet.ShouldProcess($qMessage, $captionForRegisterDefault)))
{{
$null = Register-PSSessionConfiguration {0}32 -processorarchitecture x86 -force
@@ -4827,7 +4827,7 @@ param(
# Construct SID for network users
[system.security.principal.wellknownsidtype]$evst = ""NetworkSid""
$networkSID = new-object system.security.principal.securityidentifier $evst,$null
-
+
$securityIdentifierToPurge = $null
$sd = new-object system.security.accesscontrol.commonsecuritydescriptor $false,$false,$sddl
$sd.DiscretionaryAcl | % {{
@@ -4873,10 +4873,10 @@ param(
$null = Set-PSSessionConfiguration -Name $_.Name -SecurityDescriptorSddl $sddl -NoServiceRestart -force -WarningAction 0
}}
}} ## end of foreach-object
- }}
+ }}
catch {{
throw
- }} # end of catch
+ }} # end of catch
}} # end of end block
}} # end of Enable-PSRemoting
@@ -4910,11 +4910,11 @@ Enable-PSRemoting -force $args[0] -queryForRegisterDefault $args[1] -captionForR
</SessionConfigurationData>
'
/>
-
+
-
+
@@ -4970,7 +4970,7 @@ Enable-PSRemoting -force $args[0] -queryForRegisterDefault $args[1] -captionForR
private bool _force;
///
- /// Property that will allow configuring WinRM with Public
+ /// Property that will allow configuring WinRM with Public
/// profile exception enabled.
///
[Parameter()]
@@ -4986,7 +4986,7 @@ Enable-PSRemoting -force $args[0] -queryForRegisterDefault $args[1] -captionForR
#region Cmdlet Overrides
///
- ///
+ ///
///
///
/// 1. Either both "AssemblyName" and "ConfigurationTypeName" must be specified
@@ -5000,13 +5000,13 @@ Enable-PSRemoting -force $args[0] -queryForRegisterDefault $args[1] -captionForR
}
///
- ///
+ ///
///
protected override void EndProcessing()
{
// gather -WhatIf, -Confirm parameter data and pass it to the script block
bool whatIf = false;
- // confirm is always true to start with
+ // confirm is always true to start with
bool confirm = true;
PSSessionConfigurationCommandUtilities.CollectShouldProcessParameters(this, out whatIf, out confirm);
@@ -5069,7 +5069,7 @@ param(
[Parameter()]
[string]
$queryForSet,
-
+
[Parameter()]
[string]
$captionForSet,
@@ -5095,7 +5095,7 @@ param(
{{
# Disable the network for all Session Configurations
Get-PSSessionConfiguration -Force:$force | % {{
-
+
if ($_.Enabled)
{{
$sddl = $null
@@ -5114,14 +5114,14 @@ param(
# Construct SID for network users
[system.security.principal.wellknownsidtype]$evst = ""NetworkSid""
$networkSID = new-object system.security.principal.securityidentifier $evst,$null
-
+
# Add disable network to the existing sddl
$sd = new-object system.security.accesscontrol.commonsecuritydescriptor $false,$false,$sddl
$disableNetworkExists = $false
$sd.DiscretionaryAcl | % {{
if (($_.acequalifier -eq ""accessdenied"") -and ($_.securityidentifier -match $networkSID) -and ($_.AccessMask -eq 268435456))
{{
- $disableNetworkExists = $true
+ $disableNetworkExists = $true
}}
}}
@@ -5211,7 +5211,7 @@ Disable-PSRemoting -force:$args[0] -queryForSet $args[1] -captionForSet $args[2]
// gather -WhatIf, -Confirm parameter data and pass it to the script block
bool whatIf = false;
- // confirm is always true to start with
+ // confirm is always true to start with
bool confirm = true;
PSSessionConfigurationCommandUtilities.CollectShouldProcessParameters(this, out whatIf, out confirm);
diff --git a/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs b/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs
index 96d12eaf56..d2a7efddf4 100644
--- a/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/DebugJob.cs
@@ -16,14 +16,14 @@ namespace Microsoft.PowerShell.Commands
/// This cmdlet takes a Job object and checks to see if it is debuggable. If it
/// is debuggable then it breaks into the job debugger in step mode. If it is not
/// debuggable then it is treated as a parent job and each child job is checked if
- /// it is debuggable and if it is will break into its job debugger in step mode.
- /// For multiple debuggable child jobs, each job execution will be halted and the
+ /// it is debuggable and if it is will break into its job debugger in step mode.
+ /// For multiple debuggable child jobs, each job execution will be halted and the
/// debugger will step to each job execution point sequentially.
- ///
- /// When a job is debugged its output data is written to host and the executing job
- /// script will break into the host debugger, in step mode, at the next stoppable
+ ///
+ /// When a job is debugged its output data is written to host and the executing job
+ /// script will break into the host debugger, in step mode, at the next stoppable
/// execution point.
- ///
+ ///
///
[SuppressMessage("Microsoft.PowerShell", "PS1012:CallShouldProcessOnlyIfDeclaringSupport")]
[Cmdlet(VerbsDiagnostic.Debug, "Job", SupportsShouldProcess = true, DefaultParameterSetName = DebugJobCommand.JobParameterSet,
diff --git a/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs b/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs
index 4ee0c08667..13cd3bd98d 100644
--- a/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/DisconnectPSSession.cs
@@ -17,26 +17,26 @@ namespace Microsoft.PowerShell.Commands
{
///
/// This cmdlet disconnects PS sessions (RemoteRunspaces) that are in the Opened state
- /// and returns the PS session objects in the Disconnected state. While the PS
+ /// and returns the PS session objects in the Disconnected state. While the PS
/// sessions are in the disconnected state no commands can be invoked on them and
/// any existing remote running commands will not return any data.
- /// The PS sessions can be reconnected by using the Connect-PSSession cmdlet.
- ///
+ /// The PS sessions can be reconnected by using the Connect-PSSession cmdlet.
+ ///
/// The cmdlet can be used in the following ways:
- ///
+ ///
/// Disconnect a PS session object:
/// > $session = New-PSSession serverName
/// > Disconnect-PSSession $session
- ///
+ ///
/// Disconnect a PS session by name:
/// > Disconnect-PSSession -Name $session.Name
- ///
+ ///
/// Disconnect a PS session by Id:
/// > Disconnect-PSSession -Id $session.Id
- ///
+ ///
/// Disconnect a collection of PS sessions:
/// > Get-PSSession | Disconnect-PSSession
- ///
+ ///
///
[SuppressMessage("Microsoft.PowerShell", "PS1012:CallShouldProcessOnlyIfDeclaringSupport")]
[Cmdlet(VerbsCommunications.Disconnect, "PSSession", SupportsShouldProcess = true, DefaultParameterSetName = DisconnectPSSessionCommand.SessionParameterSet,
@@ -190,8 +190,8 @@ namespace Microsoft.PowerShell.Commands
psSessions = GetMatchingRunspaces(false, true);
}
- // Look for local sessions that have the EnableNetworkAccess property set and
- // return a string containing all of the session names. Emit a warning for
+ // Look for local sessions that have the EnableNetworkAccess property set and
+ // return a string containing all of the session names. Emit a warning for
// these sessions.
string cnNames = GetLocalhostWithNetworkAccessEnabled(psSessions);
if (!string.IsNullOrEmpty(cnNames))
@@ -519,7 +519,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Dispose method of IDisposable. Gets called in the following cases:
/// 1. Pipeline explicitly calls dispose on cmdlets
- /// 2. Called by the garbage collector
+ /// 2. Called by the garbage collector
///
public void Dispose()
{
@@ -532,7 +532,7 @@ namespace Microsoft.PowerShell.Commands
/// Internal dispose method which does the actual
/// dispose operations and finalize suppressions
///
- /// Whether method is called
+ /// Whether method is called
/// from Dispose or destructor
private void Dispose(bool disposing)
{
diff --git a/src/System.Management.Automation/engine/remoting/commands/EnterPSHostProcessCommand.cs b/src/System.Management.Automation/engine/remoting/commands/EnterPSHostProcessCommand.cs
index a93ab3926f..8fc706ab0b 100644
--- a/src/System.Management.Automation/engine/remoting/commands/EnterPSHostProcessCommand.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/EnterPSHostProcessCommand.cs
@@ -148,7 +148,7 @@ namespace Microsoft.PowerShell.Commands
// Create named pipe runspace for selected process and open.
Runspace namedPipeRunspace = CreateNamedPipeRunspace(Process.Id, AppDomainName);
- // Set runspace prompt. The runspace is closed on pop so we don't
+ // Set runspace prompt. The runspace is closed on pop so we don't
// have to reverse this change.
PrepareRunspace(namedPipeRunspace);
@@ -381,8 +381,8 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// This cmdlet returns a collection of PSHostProcessInfo objects containing
- /// process and AppDomain name information for processes that have PowerShell loaded.
+ /// This cmdlet returns a collection of PSHostProcessInfo objects containing
+ /// process and AppDomain name information for processes that have PowerShell loaded.
///
[Cmdlet(VerbsCommon.Get, "PSHostProcessInfo", DefaultParameterSetName = GetPSHostProcessInfoCommand.ProcessNameParameterSet,
HelpUri = "https://go.microsoft.com/fwlink/?LinkId=517012")]
diff --git a/src/System.Management.Automation/engine/remoting/commands/GetJob.cs b/src/System.Management.Automation/engine/remoting/commands/GetJob.cs
index e656ec203b..fa0d3efdbb 100644
--- a/src/System.Management.Automation/engine/remoting/commands/GetJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/GetJob.cs
@@ -104,7 +104,7 @@ namespace Microsoft.PowerShell.Commands
#region Overrides
///
- /// Extract result objects corresponding to the specified
+ /// Extract result objects corresponding to the specified
/// names or expressions
///
protected override void ProcessRecord()
@@ -192,7 +192,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Filter jobs based on HasMoreData
///
- ///
+ ///
///
/// return the list of jobs after applying HasMoreData filter
private List ApplyHasMoreDataFiltering(List jobList)
@@ -220,7 +220,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Find the all child jobs with specified ChildJobState in the job list
///
- ///
+ ///
///
/// returns job list including all child jobs with ChildJobState or all if IncludeChildJob is specified
private List FindChildJobs(List jobList)
diff --git a/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs b/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs
index df4945c53a..41420e9b95 100644
--- a/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/InvokeCommandCommand.cs
@@ -29,97 +29,97 @@ namespace Microsoft.PowerShell.Commands
/// object before transmitting it to the remote end
/// so that it can be run on constrained runspaces in
/// the no language mode
- ///
- /// In general, the command script block is executed as if
- /// the user had typed it at the command line. The output of the
- /// command is the output of the cmdlet. However, since
+ ///
+ /// In general, the command script block is executed as if
+ /// the user had typed it at the command line. The output of the
+ /// command is the output of the cmdlet. However, since
/// invoke-command is a cmdlet, it will unravel its output:
/// - if the command outputs an empty array, invoke-command
/// will output $null
/// - if the command outputs a single-element array, invoke-command
/// will output that single element.
- ///
+ ///
/// Additionally, the command will be run on a remote system.
- ///
+ ///
/// This cmdlet can be called in the following different ways:
- ///
- /// Execute a command in a remote machine by specifying the command
+ ///
+ /// Execute a command in a remote machine by specifying the command
/// and machine name
/// invoke-command -Command {get-process} -computername "server1"
- ///
- /// Execute a command in a set of remote machines by specifying the
+ ///
+ /// Execute a command in a set of remote machines by specifying the
/// command and the list of machines
/// $servers = 1..10 | %{"Server${_}"}
/// invoke-command -command {get-process} -computername $servers
- ///
+ ///
/// Create a new runspace and use it to execute a command on a remote machine
/// $runspace = New-PSSession -computername "Server1"
/// $credential = get-credential "user01"
/// invoke-command -command {get-process} -Session $runspace -credential $credential
- ///
+ ///
/// Execute a command in a set of remote machines by specifying the
/// complete uri for the machines
/// $uri = "http://hostedservices.microsoft.com/someservice"
/// invoke-command -command { get-mail } - uri $uri
- ///
- /// Create a collection of runspaces and use it to execute a command on a set
+ ///
+ /// Create a collection of runspaces and use it to execute a command on a set
/// of remote machines
- ///
+ ///
/// $serveruris = 1..8 | %{"http://Server${_}/"}
/// $runspaces = New-PSSession -URI $serveruris
/// invoke-command -command {get-process} -Session $runspaces
- ///
- /// The cmdlet can also be invoked in the asynchronous mode.
- ///
+ ///
+ /// The cmdlet can also be invoked in the asynchronous mode.
+ ///
/// invoke-command -command {get-process} -computername $servers -asjob
- ///
+ ///
/// When the -AsJob switch is used, the cmdlet will emit an PSJob Object.
/// The user can then use the other job cmdlets to work with this object
- ///
- /// Note there are two types of errors:
- /// 1. Remote invocation errors
- /// 2. Local errors.
- ///
- /// Both types of errors will be available when the user invokes
+ ///
+ /// Note there are two types of errors:
+ /// 1. Remote invocation errors
+ /// 2. Local errors.
+ ///
+ /// Both types of errors will be available when the user invokes
/// a receive operation.
- ///
- /// The PSJob object has its own throttling mechanism.
- /// The result object will be stored in a global cache. If a user wants to
- /// retrieve data from the result object the user should be able to do so
+ ///
+ /// The PSJob object has its own throttling mechanism.
+ /// The result object will be stored in a global cache. If a user wants to
+ /// retrieve data from the result object the user should be able to do so
/// using the Receive-PSJob cmdlet
- ///
- /// The following needs to be noted about exception/error reporting in this
+ ///
+ /// The following needs to be noted about exception/error reporting in this
/// cmdlet:
- /// The exception objects that are thrown by underlying layers will be
+ /// The exception objects that are thrown by underlying layers will be
/// written as errors, to avoid stopping the entire cmdlet in case of
- /// multi-computername or multi-Session usage (for consistency, this
+ /// multi-computername or multi-Session usage (for consistency, this
/// is true even when done using one computername or runspace)
- ///
+ ///
/// Only one expression may be executed at a time in any single runspace.
- /// Attempts to invoke an expression on a runspace that is already executing
- /// an expression shall return an error with ErrorCategory ResourceNotAvailable
+ /// Attempts to invoke an expression on a runspace that is already executing
+ /// an expression shall return an error with ErrorCategory ResourceNotAvailable
/// and notify the user that the runspace is currently busy.
- ///
+ ///
/// Some additional notes:
- /// - invoke-command issues a single scriptblock to the computer or
- /// runspace. If a runspace is specified and a command is already running
+ /// - invoke-command issues a single scriptblock to the computer or
+ /// runspace. If a runspace is specified and a command is already running
/// in that runspace, then the second command will fail
- /// - The files necessary to execute the command (cmdlets, scripts, data
- /// files, etc) must be present on the remote system; the cmdlet is not
+ /// - The files necessary to execute the command (cmdlets, scripts, data
+ /// files, etc) must be present on the remote system; the cmdlet is not
/// responsible for copying them over
/// - The entire input stream is collected and sent to the remote system
/// before execution of the command begins (no input streaming)
- /// - Input shall be available as $input. Remote Runspaces must reference
+ /// - Input shall be available as $input. Remote Runspaces must reference
/// $input explicitly (input will not automatically be available)
- /// - Output from the command streams back to the client as it is
+ /// - Output from the command streams back to the client as it is
/// available
/// - Ctrl-C and pause/resume are supported; the client will send a
- /// message to the remote powershell instance.
+ /// message to the remote powershell instance.
/// - By default if no -credential is specified, the host will impersonate
/// the current user on the client when executing the command
- /// - The standard output of invoke-command is the output of the
+ /// - The standard output of invoke-command is the output of the
/// last element of the remote pipeline, with some extra properties added
- /// - If -Shell is not specified, then the value of the environment
+ /// - If -Shell is not specified, then the value of the environment
/// variable DEFAULTREMOTESHELLNAME is used. If this is not set, then
/// "Microsoft.PowerShell" is used.
///
@@ -153,10 +153,10 @@ namespace Microsoft.PowerShell.Commands
///
/// This parameter represents the address(es) of the remote
/// computer(s). The following formats are supported:
- /// (a) Computer name
+ /// (a) Computer name
/// (b) IPv4 address : 132.3.4.5
/// (c) IPv6 address: 3ffe:8311:ffff:f70f:0:5efe:172.30.162.18
- ///
+ ///
///
[Parameter(Position = 0,
ParameterSetName = InvokeCommandCommand.ComputerNameParameterSet)]
@@ -177,10 +177,10 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Specifies the credentials of the user to impersonate in the
- /// remote machine. If this parameter is not specified then the
+ /// Specifies the credentials of the user to impersonate in the
+ /// remote machine. If this parameter is not specified then the
/// credentials of the current user process will be assumed.
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = InvokeCommandCommand.ComputerNameParameterSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -211,7 +211,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Port specifies the alternate port to be used in case the
+ /// Port specifies the alternate port to be used in case the
/// default ports are not used for the transport mechanism
/// (port 80 for http and port 443 for useSSL)
///
@@ -261,12 +261,12 @@ namespace Microsoft.PowerShell.Commands
///
/// For WSMan session:
/// If this parameter is not specified then the value specified in
- /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
+ /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
/// this is not set as well, then Microsoft.PowerShell is used.
///
/// For VM/Container sessions:
/// If this parameter is not specified then no configuration is used.
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = InvokeCommandCommand.ComputerNameParameterSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -351,7 +351,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// A complete URI(s) specified for the remote computer and shell to
+ /// A complete URI(s) specified for the remote computer and shell to
/// connect to and create runspace for
///
[Parameter(Position = 0,
@@ -489,7 +489,7 @@ namespace Microsoft.PowerShell.Commands
private String _name = String.Empty;
///
- /// The script block that the user has specified in the
+ /// The script block that the user has specified in the
/// cmdlet. This will be converted to a powershell before
/// its actually sent to the remote end
///
@@ -539,7 +539,7 @@ namespace Microsoft.PowerShell.Commands
public SwitchParameter NoNewScope { get; set; }
///
- /// The script block that the user has specified in the
+ /// The script block that the user has specified in the
/// cmdlet. This will be converted to a powershell before
/// its actually sent to the remote end
///
@@ -598,7 +598,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Extended Session Options for controlling the session creation. Use
+ /// Extended Session Options for controlling the session creation. Use
/// "New-WSManSessionOption" cmdlet to supply value for this parameter.
///
[Parameter(ParameterSetName = InvokeCommandCommand.ComputerNameParameterSet)]
@@ -638,8 +638,8 @@ namespace Microsoft.PowerShell.Commands
///
/// When set and in loopback scenario (localhost) this enables creation of WSMan
- /// host process with the user interactive token, allowing PowerShell script network access,
- /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
+ /// host process with the user interactive token, allowing PowerShell script network access,
+ /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
/// reconnection is allowed only if reconnecting from a PowerShell session on the same box.
///
[Parameter(ParameterSetName = InvokeCommandCommand.ComputerNameParameterSet)]
@@ -905,7 +905,7 @@ namespace Microsoft.PowerShell.Commands
// Win8 Bug:898011 - We are restricting remote steppable pipeline because
// of this bug in Win8 where hangs can occur during data piping.
// We are reverting to Win7 behavior for {icm | icm} and {proxycommand | proxycommand}
- // cases. For ICM | % ICM case, we are using remote steppable pipeline.
+ // cases. For ICM | % ICM case, we are using remote steppable pipeline.
if ((MyInvocation != null) && (MyInvocation.PipelinePosition == 1) && (MyInvocation.ExpectingInput == false))
{
PSPrimitiveDictionary table = (object)runspaceInfo.ApplicationPrivateData[PSVersionInfo.PSVersionTableName] as PSPrimitiveDictionary;
@@ -1056,7 +1056,7 @@ namespace Microsoft.PowerShell.Commands
}
break;
} // switch ...
- } // else ...
+ } // else ...
}
} // if (!pipelineinvoked...
@@ -1086,11 +1086,11 @@ namespace Microsoft.PowerShell.Commands
///
/// InvokeAsync would have been called in ProcessRecord. Wait here
- /// for all the results to become available.
+ /// for all the results to become available.
///
protected override void EndProcessing()
{
- // close the input stream on all the pipelines
+ // close the input stream on all the pipelines
if (!_needToCollect)
{
CloseAllInputStreams();
@@ -1152,8 +1152,8 @@ namespace Microsoft.PowerShell.Commands
if (_needToCollect && ParameterSetName.Equals(InvokeCommandCommand.SessionParameterSet))
{
// if job was null, then its because the invoke-command
- // was collecting or ProcessRecord() was not called.
- // If we are collecting, then
+ // was collecting or ProcessRecord() was not called.
+ // If we are collecting, then
// we would have collected until this point
// so now start the execution with the collected
// input
@@ -1198,13 +1198,13 @@ namespace Microsoft.PowerShell.Commands
} // EndProcessing
///
- /// This method is called when the user sends a stop signal to the
+ /// This method is called when the user sends a stop signal to the
/// cmdlet. The cmdlet will not exit until it has completed
/// executing the command on all the runspaces. However, when a stop
/// signal is sent, execution needs to be stopped on the pipelines
/// corresponding to these runspaces
///
- /// This is called from a separate thread so need to worry
+ /// This is called from a separate thread so need to worry
/// about concurrency issues
///
protected override void StopProcessing()
@@ -1248,7 +1248,7 @@ namespace Microsoft.PowerShell.Commands
#region Private Methods
///
- /// Handle event from the throttle manager indicating that all
+ /// Handle event from the throttle manager indicating that all
/// operations are complete
///
///
@@ -1551,7 +1551,7 @@ namespace Microsoft.PowerShell.Commands
{
if (!nonblocking)
{
- // we need to wait until results arrive
+ // we need to wait until results arrive
// before we attempt to read. This will
// ensure that the thread blocks. Else
// the thread will spin leading to a CPU
@@ -1678,7 +1678,7 @@ namespace Microsoft.PowerShell.Commands
else if (ParameterSetName == InvokeCommandCommand.ComputerNameParameterSet ||
ParameterSetName == InvokeCommandCommand.FilePathComputerNameParameterSet)
{
- // Create disconnected sessions for each PowerShell in job that was disconnected,
+ // Create disconnected sessions for each PowerShell in job that was disconnected,
// and add them to the local repository.
List discSessions = GetDisconnectedSessions(_job);
foreach (PSSession session in discSessions)
@@ -1802,20 +1802,20 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Determine if we have to throw for a
+ /// Determine if we have to throw for a
/// "throw" statement from scripts
/// This means that the local pipeline will be terminated as well
///
///
- /// This is valid when only one pipeline is
+ /// This is valid when only one pipeline is
/// existing. Which means, there can be only one of the following:
/// 1. A single computer name
/// 2. A single session
/// 3. A single uri
- ///
+ ///
/// It can be used in conjunction with a filepath or a script block parameter
- ///
- /// It doesn't take effect with the -AsJob parameter
+ ///
+ /// It doesn't take effect with the -AsJob parameter
///
private void DetermineThrowStatementBehavior()
{
@@ -1888,8 +1888,8 @@ namespace Microsoft.PowerShell.Commands
// throttle manager for handling all throttling operations
private ManualResetEvent _operationsComplete = new ManualResetEvent(true);
private ManualResetEvent _disconnectComplete;
- // the initial state is true because when no
- // operations actually take place as in case of a
+ // the initial state is true because when no
+ // operations actually take place as in case of a
// parameter binding exception, then Dispose is
// called. Since Dispose waits on this handler
// it is set to true initially and is Reset() in
diff --git a/src/System.Management.Automation/engine/remoting/commands/JobRepository.cs b/src/System.Management.Automation/engine/remoting/commands/JobRepository.cs
index fae2ca38dd..8d8c57f5a1 100644
--- a/src/System.Management.Automation/engine/remoting/commands/JobRepository.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/JobRepository.cs
@@ -65,7 +65,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
public List GetItems()
diff --git a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs
index a6d1eff814..74c394ddb6 100644
--- a/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/NewPSSessionConfigurationFile.cs
@@ -21,7 +21,7 @@ namespace Microsoft.PowerShell.Commands
{
///
/// New-PSSessionConfigurationFile command implementation
- ///
+ ///
/// See Declarative Initial Session State (DISC)
///
[Cmdlet(VerbsCommon.New, "PSSessionConfigurationFile", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=217036")]
@@ -199,7 +199,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Creates a User PSDrive in the session.
- /// The User drive is used with Copy-Item for file transfer when the FileSystem provider is
+ /// The User drive is used with Copy-Item for file transfer when the FileSystem provider is
/// not visible in the session.
///
[Parameter()]
@@ -1071,7 +1071,7 @@ namespace Microsoft.PowerShell.Commands
///
/// New-PSRoleCapabilityFile command implementation
- ///
+ ///
/// Creates a role capability file suitable for use in a Role Capability (which can be referenced in a Session Configuration file)
///
[Cmdlet(VerbsCommon.New, "PSRoleCapabilityFile", HelpUri = "https://go.microsoft.com/fwlink/?LinkId=623708")]
@@ -1440,7 +1440,7 @@ namespace Microsoft.PowerShell.Commands
#region Overrides
///
- ///
+ ///
///
protected override void ProcessRecord()
{
diff --git a/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs b/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs
index f8ec2b44aa..772c337520 100644
--- a/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/PSRemotingCmdlet.cs
@@ -19,8 +19,8 @@ namespace Microsoft.PowerShell.Commands
{
///
/// This class defines most of the common functionality used
- /// across remoting cmdlets.
- ///
+ /// across remoting cmdlets.
+ ///
/// It contains tons of utility functions which are used all
/// across the remoting cmdlets
///
@@ -53,7 +53,7 @@ namespace Microsoft.PowerShell.Commands
}// WriteStreamObject
///
- /// Resolve all the machine names provided. Basically, if a machine
+ /// Resolve all the machine names provided. Basically, if a machine
/// name is '.' assume localhost
///
/// array of computer names to resolve
@@ -105,7 +105,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Load the resource corresponding to the specified errorId and
+ /// Load the resource corresponding to the specified errorId and
/// return the message as a string
///
/// resource String which holds the message
@@ -119,7 +119,7 @@ namespace Microsoft.PowerShell.Commands
}// GetMessage
///
- ///
+ ///
///
///
///
@@ -217,7 +217,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines the shellname to use based on the following order:
/// 1. ShellName parameter specified
- /// 2. DEFAULTREMOTESHELLNAME variable set
+ /// 2. DEFAULTREMOTESHELLNAME variable set
/// 3. PowerShell
///
/// The shell to launch in the remote machine
@@ -291,7 +291,7 @@ namespace Microsoft.PowerShell.Commands
#region Enums
///
- /// State of virtual machine. This is the same as VMState in
+ /// State of virtual machine. This is the same as VMState in
/// \vm\ux\powershell\objects\common\Types.cs
///
internal enum VMState
@@ -456,10 +456,10 @@ namespace Microsoft.PowerShell.Commands
///
/// This parameter represents the address(es) of the remote
/// computer(s). The following formats are supported:
- /// (a) Computer name
+ /// (a) Computer name
/// (b) IPv4 address : 132.3.4.5
/// (c) IPv6 address: 3ffe:8311:ffff:f70f:0:5efe:172.30.162.18
- ///
+ ///
///
[Parameter(Position = 0,
ValueFromPipelineByPropertyName = true,
@@ -501,10 +501,10 @@ namespace Microsoft.PowerShell.Commands
public virtual string[] VMName { get; set; }
///
- /// Specifies the credentials of the user to impersonate in the
- /// remote machine. If this parameter is not specified then the
+ /// Specifies the credentials of the user to impersonate in the
+ /// remote machine. If this parameter is not specified then the
/// credentials of the current user process will be assumed.
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = PSRemotingBaseCmdlet.ComputerNameParameterSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -550,7 +550,7 @@ namespace Microsoft.PowerShell.Commands
public virtual SwitchParameter RunAsAdministrator { get; set; }
///
- /// Port specifies the alternate port to be used in case the
+ /// Port specifies the alternate port to be used in case the
/// default ports are not used for the transport mechanism
/// (port 80 for http and port 443 for useSSL)
///
@@ -611,7 +611,7 @@ namespace Microsoft.PowerShell.Commands
public virtual Int32 ThrottleLimit { set; get; } = 0;
///
- /// A complete URI(s) specified for the remote computer and shell to
+ /// A complete URI(s) specified for the remote computer and shell to
/// connect to and create runspace for
///
[Parameter(Position = 0, Mandatory = true,
@@ -633,7 +633,7 @@ namespace Microsoft.PowerShell.Commands
private bool _allowRedirection = false;
///
- /// Extended Session Options for controlling the session creation. Use
+ /// Extended Session Options for controlling the session creation. Use
/// "New-WSManSessionOption" cmdlet to supply value for this parameter.
///
[Parameter(ParameterSetName = PSRemotingBaseCmdlet.ComputerNameParameterSet)]
@@ -681,8 +681,8 @@ namespace Microsoft.PowerShell.Commands
private AuthenticationMechanism _authMechanism = AuthenticationMechanism.Default;
///
- /// Specifies the certificate thumbprint to be used to impersonate the user on the
- /// remote machine.
+ /// Specifies the certificate thumbprint to be used to impersonate the user on the
+ /// remote machine.
///
[Parameter(ParameterSetName = NewPSSessionCommand.ComputerNameParameterSet)]
[Parameter(ParameterSetName = NewPSSessionCommand.UriParameterSet)]
@@ -773,7 +773,7 @@ namespace Microsoft.PowerShell.Commands
/// User has the following options:
/// 1. AuthMechanism + Credential
/// 2. CertificateThumbPrint
- ///
+ ///
/// All the above are mutually exclusive.
///
///
@@ -894,8 +894,8 @@ namespace Microsoft.PowerShell.Commands
#region Private Methods
///
- /// Validate the PSSession objects specified and write
- /// appropriate error records.
+ /// Validate the PSSession objects specified and write
+ /// appropriate error records.
///
/// This function will lead in terminating errors when any of
/// the validations fail
@@ -1020,7 +1020,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Base class for any cmdlet which has to execute a pipeline. The
+ /// Base class for any cmdlet which has to execute a pipeline. The
/// following cmdlets currently fall under this category:
/// 1. Invoke-Expression
/// 2. Start-PSJob
@@ -1060,7 +1060,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Input object which gets assigned to $input when executed
- /// on the remote machine. This is the only parameter in
+ /// on the remote machine. This is the only parameter in
/// this cmdlet which will bind with a ValueFromPipeline=true
///
[Parameter(ValueFromPipeline = true)]
@@ -1068,7 +1068,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Command to execute specified as a string. This can be a single
- /// cmdlet, an expression or anything that can be internally
+ /// cmdlet, an expression or anything that can be internally
/// converted into a ScriptBlock
///
public virtual ScriptBlock ScriptBlock
@@ -1085,7 +1085,7 @@ namespace Microsoft.PowerShell.Commands
private ScriptBlock _scriptBlock;
///
- /// The file containing the script that the user has specified in the
+ /// The file containing the script that the user has specified in the
/// cmdlet. This will be converted to a powershell before
/// its actually sent to the remote end
///
@@ -1138,7 +1138,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Indicates that if a job/command is invoked remotely the connection should be severed
+ /// Indicates that if a job/command is invoked remotely the connection should be severed
/// right have invocation of job/command.
///
///
@@ -1152,8 +1152,8 @@ namespace Microsoft.PowerShell.Commands
///
/// When set and in loopback scenario (localhost) this enables creation of WSMan
- /// host process with the user interactive token, allowing PowerShell script network access,
- /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
+ /// host process with the user interactive token, allowing PowerShell script network access,
+ /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
/// reconnection is allowed only if reconnecting from a PowerShell session on the same box.
///
public virtual SwitchParameter EnableNetworkAccess { get; set; }
@@ -1204,12 +1204,12 @@ namespace Microsoft.PowerShell.Commands
///
/// For WSMan session:
/// If this parameter is not specified then the value specified in
- /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
+ /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
/// this is not set as well, then Microsoft.PowerShell is used.
///
/// For VM/Container sessions:
/// If this parameter is not specified then no configuration is used.
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = InvokeCommandCommand.ComputerNameParameterSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -1272,7 +1272,7 @@ namespace Microsoft.PowerShell.Commands
connectionInfo.EnableNetworkAccess = EnableNetworkAccess;
- // Use the provided session name or create one for this remote runspace so that
+ // Use the provided session name or create one for this remote runspace so that
// it can be easily identified if it becomes disconnected and is queried on the server.
int rsId = PSSession.GenerateRunspaceId();
string rsName = (DisconnectedSessionName != null && DisconnectedSessionName.Length > i) ?
@@ -1345,7 +1345,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Creates helper objects with the specified command for
+ /// Creates helper objects with the specified command for
/// the specified remote runspaceinfo objects
///
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Runspaces")]
@@ -1363,7 +1363,7 @@ namespace Microsoft.PowerShell.Commands
remoteRunspaces[i] = (RemoteRunspace)Session[i].Runspace;
}
- // create the set of pipelines from the RemoteRunspace objects and
+ // create the set of pipelines from the RemoteRunspace objects and
// create IREHelperRunspace helper class to create operations
pipelines = new Pipeline[length];
@@ -1722,8 +1722,8 @@ namespace Microsoft.PowerShell.Commands
/// a pipeline
internal Pipeline CreatePipeline(RemoteRunspace remoteRunspace)
{
- // The fix to WinBlue#475223 changed how UsingExpression is handled on the client/server sides, if the remote end is PSv5
- // or later, we send the dictionary-form using values to the remote end. If the remote end is PSv3 or PSv4, then we send
+ // The fix to WinBlue#475223 changed how UsingExpression is handled on the client/server sides, if the remote end is PSv5
+ // or later, we send the dictionary-form using values to the remote end. If the remote end is PSv3 or PSv4, then we send
// the array-form using values if all UsingExpressions are in the same scope, otherwise, we handle the UsingExpression as
// if the remote end is PSv2.
string serverPsVersion = GetRemoteServerPsVersion(remoteRunspace);
@@ -1746,7 +1746,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Check the powershell version of the remote server
+ /// Check the powershell version of the remote server
///
private string GetRemoteServerPsVersion(RemoteRunspace remoteRunspace)
{
@@ -1759,8 +1759,8 @@ namespace Microsoft.PowerShell.Commands
PSPrimitiveDictionary psApplicationPrivateData = remoteRunspace.GetApplicationPrivateData();
if (psApplicationPrivateData == null)
{
- // The remote runspace is not opened yet, or it's disconnected before the private data is retrieved.
- // In this case we cannot validate if the remote server is running PSv5 or later, so for safety purpose,
+ // The remote runspace is not opened yet, or it's disconnected before the private data is retrieved.
+ // In this case we cannot validate if the remote server is running PSv5 or later, so for safety purpose,
// we will handle the $using expressions as if the remote server is PSv2.
return PSv2;
}
@@ -2017,9 +2017,9 @@ namespace Microsoft.PowerShell.Commands
/// error, the error message will show the altered script, and that could be confusing to the user. So if the remote
/// server is PSv3 or later version, we will use a different approach to handle UsingExpression so that we can keep
/// the script unchanged.
- ///
+ ///
/// However, on PSv3 and PSv4 remote server, it's not well supported if UsingExpressions are used in different scopes (fixed in PSv5).
- /// If the remote end is PSv3 or PSv4, and there are UsingExpressions in different scopes, then we have to revert back to the approach
+ /// If the remote end is PSv3 or PSv4, and there are UsingExpressions in different scopes, then we have to revert back to the approach
/// used for PSv2 remote server.
///
///
@@ -2076,17 +2076,17 @@ namespace Microsoft.PowerShell.Commands
///
///
/// In PSv3 and PSv4, if the remote server is PSv3 or later, we generate an object array that contains the value of each using expression in
- /// the parsing order, and then pass the array to the remote end as a special argument. On the remote end, the using expressions will be indexed
+ /// the parsing order, and then pass the array to the remote end as a special argument. On the remote end, the using expressions will be indexed
/// in the same parsing order during the variable analysis process, and the index is used to get the value of the corresponding using expression
- /// from the special array. There is a limitation in that approach -- $using cannot be used in different scopes with Invoke-Command/Start-Job
- /// (see WinBlue#475223), because the variable analysis process can only index using expressions within the same scope (this is by design), and a
+ /// from the special array. There is a limitation in that approach -- $using cannot be used in different scopes with Invoke-Command/Start-Job
+ /// (see WinBlue#475223), because the variable analysis process can only index using expressions within the same scope (this is by design), and a
/// using expression from a different scope may be assigned with an index that conflicts with other using expressions.
- ///
+ ///
/// To fix the limitation described above, we changed to pass a dictionary with key/value pairs for the using expressions on the client side. The key
- /// is an unique base64 encoded string generated based on the text of the using expression. On the remote end, it can always get the unique key of a
- /// using expression because the text passed to the server side is the same, and thus the value of the using expression can be retrieved from the special
+ /// is an unique base64 encoded string generated based on the text of the using expression. On the remote end, it can always get the unique key of a
+ /// using expression because the text passed to the server side is the same, and thus the value of the using expression can be retrieved from the special
/// dictionary. With this approach, $using in different scopes can be supported for Invoke-Command/Start-Job.
- ///
+ ///
/// This fix involved changes on the server side, so the fix will work only if the remote end is PSv5 or later. In order to avoid possible breaking
/// change in 'PSv5 client - PSv3 server' and 'PSv5 client - PSv4 server' scenarios, we should keep sending the array-form using values if the remote
/// end is PSv3 or PSv4 as long as no UsingExpression is in a different scope. If the remote end is PSv3 or PSv4 and we do have UsingExpressions
@@ -2121,7 +2121,7 @@ namespace Microsoft.PowerShell.Commands
usingValuesInArray = ScriptBlockToPowerShellConverter.GetUsingValuesAsArray(_scriptBlock, allowUsingExpressions, Context, null);
if (usingValuesInArray == null)
{
- // 'usingValuesInArray' will be null only if there are UsingExpressions used in different scopes.
+ // 'usingValuesInArray' will be null only if there are UsingExpressions used in different scopes.
// PSv3 and PSv4 remote server cannot handle this, so we revert back to the approach we use for PSv2 remote end.
return GetPowerShellForPSv2();
}
@@ -2305,7 +2305,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Base class for any cmdlet which operates on a runspace. The
+ /// Base class for any cmdlet which operates on a runspace. The
/// following cmdlets currently fall under this category:
/// 1. Get-PSSession
/// 2. Remove-PSSession
@@ -2830,7 +2830,7 @@ namespace Microsoft.PowerShell.Commands
Dictionary matches = new Dictionary();
List remoteRunspaceInfos = this.RunspaceRepository.Runspaces;
- // vm name support wild characters, while container id does not.
+ // vm name support wild characters, while container id does not.
// vm id does not apply in this method, which does not support wild characters either.
if (isContainer)
{
@@ -2897,7 +2897,7 @@ namespace Microsoft.PowerShell.Commands
Dictionary matches = new Dictionary();
List remoteRunspaceInfos = this.RunspaceRepository.Runspaces;
- // vm name support wild characters, while container id does not.
+ // vm name support wild characters, while container id does not.
// vm id does not apply in this method, which does not support wild characters either.
if (isContainer)
{
@@ -3019,7 +3019,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The matching runspaces
/// if true write the object down the pipeline. Otherwise, add to the list
- /// The list we add the matching runspaces to
+ /// The list we add the matching runspaces to
private void WriteOrAddMatches(List matchingRunspaceInfos,
bool writeobject,
ref Dictionary matches)
@@ -3126,7 +3126,7 @@ namespace Microsoft.PowerShell.Commands
/// The handler sends a StopComplete message in OperationComplete
/// for both the functions. This is because, there is only a
/// single state of the pipeline which raises an event on
- /// a method call. There are no separate events raised as
+ /// a method call. There are no separate events raised as
/// part of method calls
///
internal class ExecutionCmdletHelperRunspace : ExecutionCmdletHelper
@@ -3191,7 +3191,7 @@ namespace Microsoft.PowerShell.Commands
// If the pipeline state has reached Complete/Failed/Stopped
// by the time control reaches here, then this operation
// becomes a no-op. However, an OperationComplete would have
- // already been raised from the handler
+ // already been raised from the handler
pipeline.StopAsync();
}
else
@@ -3266,10 +3266,10 @@ namespace Microsoft.PowerShell.Commands
} // ExecutionCmdletHelperRunspace
///
- /// This helper class contains a runspace and
+ /// This helper class contains a runspace and
/// an associated pipeline. On StartOperation it calls
/// OpenAsync on the runspace. In the handler for runspace,
- /// when the runspace is successfully opened it calls
+ /// when the runspace is successfully opened it calls
/// InvokeAsync on the pipeline. StartOperation
/// is assumed complete when both the operations complete.
/// StopOperation will call StopAsync first on the pipeline
@@ -3340,7 +3340,7 @@ namespace Microsoft.PowerShell.Commands
///
internal override void StopOperation()
{
- bool needToStop = false; // indicates whether to call StopAsync
+ bool needToStop = false; // indicates whether to call StopAsync
if (pipeline.PipelineStateInfo.State == PipelineState.Running ||
pipeline.PipelineStateInfo.State == PipelineState.NotStarted)
@@ -3353,7 +3353,7 @@ namespace Microsoft.PowerShell.Commands
// If the pipeline state has reached Complete/Failed/Stopped
// by the time control reaches here, then this operation
// becomes a no-op. However, an OperationComplete would have
- // already been raised from the handler
+ // already been raised from the handler
pipeline.StopAsync();
}
else
@@ -3419,7 +3419,7 @@ namespace Microsoft.PowerShell.Commands
case RunspaceState.Closed:
{
// raise a OperationComplete event with
- // StopComplete message
+ // StopComplete message
if (stateEventArgs.RunspaceStateInfo.Reason != null)
{
RaiseOperationCompleteEvent(stateEventArgs);
@@ -3535,27 +3535,27 @@ namespace Microsoft.PowerShell.Commands
///
/// Resolves the specified path to PathInfo objects
///
- ///
+ ///
///
/// The path to be resolved. Each path may contain glob characters.
///
- ///
+ ///
///
/// True if wildcard expansion should be suppressed for pathToResolve.
///
- ///
+ ///
///
/// If true, resolves the path even if it doesn't exist.
///
- ///
+ ///
///
/// Calling cmdlet
///
- ///
+ ///
///
/// A string representing the resolved path.
///
- ///
+ ///
private static PathInfo ResolvePath(
string pathToResolve,
bool isLiteralPath,
diff --git a/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs b/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs
index c1c81cea93..7b74e59ff8 100644
--- a/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/PushRunspaceCommand.cs
@@ -110,8 +110,8 @@ namespace Microsoft.PowerShell.Commands
///
/// When set and in loopback scenario (localhost) this enables creation of WSMan
- /// host process with the user interactive token, allowing PowerShell script network access,
- /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
+ /// host process with the user interactive token, allowing PowerShell script network access,
+ /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
/// reconnection is allowed only if reconnecting from a PowerShell session on the same box.
///
[Parameter(ParameterSetName = ComputerNameParameterSet)]
@@ -136,8 +136,8 @@ namespace Microsoft.PowerShell.Commands
public new string VMName { get; set; }
///
- /// Specifies the credentials of the user to impersonate in the
- /// virtual machine. If this parameter is not specified then the
+ /// Specifies the credentials of the user to impersonate in the
+ /// virtual machine. If this parameter is not specified then the
/// credentials of the current user process will be assumed.
///
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -166,12 +166,12 @@ namespace Microsoft.PowerShell.Commands
///
/// For WSMan sessions:
/// If this parameter is not specified then the value specified in
- /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
+ /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
/// this is not set as well, then Microsoft.PowerShell is used.
///
/// For VM/Container sessions:
/// If this parameter is not specified then no configuration is used.
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = EnterPSSessionCommand.ComputerNameParameterSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -530,7 +530,7 @@ namespace Microsoft.PowerShell.Commands
}// EndProcessing()
///
- ///
+ ///
///
protected override void StopProcessing()
{
diff --git a/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs b/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs
index 8a64c8670d..385e493fab 100644
--- a/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/ReceiveJob.cs
@@ -22,37 +22,37 @@ using System.Management.Automation.Internal;
namespace Microsoft.PowerShell.Commands
{
///
- /// Cmdlet used for receiving results from job object.
+ /// Cmdlet used for receiving results from job object.
/// This cmdlet is intended to have a slightly different behavior
/// in the following two cases:
/// 1. The job object to receive results from is a PSRemotingJob
- /// In this case, the cmdlet can use two additional
+ /// In this case, the cmdlet can use two additional
/// parameters to filter results - ComputerName and Runspace
/// The parameters help filter out results for a specified
/// computer or runspace from the job object
- ///
- /// $job = Start-PSJob -Command 'get-process' -ComputerName server1, server2
+ ///
+ /// $job = Start-PSJob -Command 'get-process' -ComputerName server1, server2
/// Receive-PSJob -Job $job -ComputerName server1
- ///
+ ///
/// $job = Start-PSJob -Command 'get-process' -Session $r1, $r2
/// Receive-PSJob -Job $job -Session $r1
- ///
- /// 2. The job object to receive results is a PSJob (or derivative
+ ///
+ /// 2. The job object to receive results is a PSJob (or derivative
/// other than PSRemotingJob)
/// In this case, the user cannot will use the location parameter
/// to do any filtering and will not have ComputerName and Runspace
/// parameters
- ///
+ ///
/// $job = Get-WMIObject '....' -AsJob
/// Receive-PSJob -Job $job -Location "Server2"
- ///
+ ///
/// The following will result in an error:
- ///
+ ///
/// $job = Get-WMIObject '....' -AsJob
/// Receive-PSJob -Job $job -ComputerName "Server2"
/// The parameter ComputerName cannot be used with jobs which are
/// not PSRemotingJob
- ///
+ ///
///
[Cmdlet(VerbsCommunications.Receive, "Job", DefaultParameterSetName = ReceiveJobCommand.LocationParameterSet,
HelpUri = "https://go.microsoft.com/fwlink/?LinkID=113372", RemotingCapability = RemotingCapability.SupportedByCommand)]
@@ -61,7 +61,7 @@ namespace Microsoft.PowerShell.Commands
#region Properties
///
- /// Job object from which specific results need to
+ /// Job object from which specific results need to
/// be extracted
///
[Parameter(Position = 0,
@@ -180,7 +180,7 @@ namespace Microsoft.PowerShell.Commands
private bool _flush = true;
///
- ///
+ ///
///
[Parameter()]
public SwitchParameter NoRecurse
@@ -197,14 +197,14 @@ namespace Microsoft.PowerShell.Commands
private bool _recurse = true;
///
- ///
+ ///
///
[Parameter()]
public SwitchParameter Force
{ get; set; }
///
- ///
+ ///
///
public override JobState State
{
@@ -215,7 +215,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
public override Hashtable Filter
{
@@ -223,7 +223,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
public override string[] Command
{
@@ -234,12 +234,12 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
protected const string LocationParameterSet = "Location";
///
- ///
+ ///
///
[Parameter()]
public SwitchParameter Wait
@@ -256,7 +256,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
[Parameter()]
public SwitchParameter AutoRemoveJob
@@ -272,7 +272,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
[Parameter()]
public SwitchParameter WriteEvents
@@ -285,7 +285,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
[Parameter()]
public SwitchParameter WriteJobInResults
@@ -321,7 +321,7 @@ namespace Microsoft.PowerShell.Commands
#region Overrides
///
- ///
+ ///
///
protected override void BeginProcessing()
{
@@ -333,7 +333,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Retrieve the results for the specified computers or
- /// runspaces
+ /// runspaces
///
protected override void ProcessRecord()
{
@@ -369,7 +369,7 @@ namespace Microsoft.PowerShell.Commands
//WriteResultsForJobsInCollection(childJobs, false);
} // foreach(RemoteRunspaceInfo...
- } // foreach ...
+ } // foreach ...
}
break;
@@ -404,7 +404,7 @@ namespace Microsoft.PowerShell.Commands
//WriteResultsForJobsInCollection(childJobs, false);
} // foreach (String...
- } // foreach ...
+ } // foreach ...
}
break;
@@ -613,7 +613,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
public void Dispose()
{
@@ -622,7 +622,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
protected void Dispose(bool disposing)
@@ -717,7 +717,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Job object from which to write the results from
///
- ///
+ ///
private void WriteJobResults(Job job)
{
if (job == null) return;
@@ -735,7 +735,7 @@ namespace Microsoft.PowerShell.Commands
// check if the state of the job is blocked, if so unblock it
// Skip disconnected jobs that were in Blocked state before
- // the disconnect, since we cannot process host data until the
+ // the disconnect, since we cannot process host data until the
// job is re-connected.
if (job.JobStateInfo.State == JobState.Disconnected)
{
@@ -752,11 +752,11 @@ namespace Microsoft.PowerShell.Commands
DoUnblockJob(job);
}
- // for the jobs that PowerShell writes, there is a
+ // for the jobs that PowerShell writes, there is a
// results collection internally used. This collection
// can be used to write results. For all other jobs
// results need to be written from the other collections
- // available.
+ // available.
// There is a bug in V2 that only remoting jobs work
// with Receive-Job. This is being fixed
@@ -931,10 +931,10 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Write the results from this Job object. It also writes the
+ /// Write the results from this Job object. It also writes the
/// results from its child objects recursively.
///
- ///
+ ///
/// Hashtable used for duplicate detection
/// Job whose results are written
///
@@ -978,7 +978,7 @@ namespace Microsoft.PowerShell.Commands
/// Writes the job objects if required by the cmdlet
///
/// collection of jobs to write
- /// this method is intended to be called only from
+ /// this method is intended to be called only from
/// ProcessRecord. When any changes are made ensure that this
/// contract is not broken
private void WriteJobsIfRequired(IEnumerable jobsToWrite)
@@ -993,10 +993,10 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
- /// this method should always be called before
+ /// this method should always be called before
/// writeExistingData is set in ProcessRecord
private void AggregateResultsFromJob(Job job)
{
@@ -1326,7 +1326,7 @@ namespace Microsoft.PowerShell.Commands
Dbg.Assert(data.Count == 1, "DataAdded should be raised for each object added");
return data[0];
}
- // it is possible that when there was a wait
+ // it is possible that when there was a wait
// the data got written
return default(T);
}
@@ -1426,10 +1426,10 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Write the results from this Job object. It also writes the
+ /// Write the results from this Job object. It also writes the
/// results from its child objects recursively.
///
- ///
+ ///
/// Job whose results are written
///
private void WriteJobResultsRecursively(Job job, bool registerInsteadOfWrite)
@@ -1440,7 +1440,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs b/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs
index 45cb4c29a1..30502cfd4c 100644
--- a/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/ReceivePSSession.cs
@@ -19,49 +19,49 @@ namespace Microsoft.PowerShell.Commands
///
/// This cmdlet connects a running command associated with a PS session and then
/// directs the command output either:
- /// a) To Host. This is the synchronous mode of the cmdlet which won't return
- /// until the running command completes and all output data is received on
+ /// a) To Host. This is the synchronous mode of the cmdlet which won't return
+ /// until the running command completes and all output data is received on
/// the client.
/// b) To a job object. This is the asynchronous mode of the cmdlet which will
- /// return immediately providing the job object that is collecting the
+ /// return immediately providing the job object that is collecting the
/// running command output data.
- ///
- /// The running command becomes disconnected when the associated runspace is
+ ///
+ /// The running command becomes disconnected when the associated runspace is
/// disconnected (via the Disconnect-PSSession cmdlet).
- ///
+ ///
/// The associated runspace object must be in the Opened state (connected) before
/// the running command can be connected. If the associated runspace object is
/// in the disconnected state, it will first be connected before the running
/// command is connected.
- ///
+ ///
/// The user can specify how command output data is returned by using the public
/// OutTarget enumeration (Host, Job).
/// The default actions of this cmdlet is to always direct ouput to host unless
/// a job object already exists on the client that is associated with the running
/// command. In this case the existing job object is connected to the running
/// command and returned.
- ///
+ ///
/// The cmdlet can be used in the following ways:
- ///
+ ///
/// Receive PS session data by session object
/// > $session = New-PSSession serverName
/// > $job1 = Invoke-Command $session { [script] } -asjob
/// > Disconnect-PSSession $session
/// > Connect-PSSession $session
/// > Receive-PSSession $session // command output continues collecting at job object.
- ///
+ ///
/// Receive PS session data by session Id
/// > Receive-PSSession $session.Id
- ///
+ ///
/// Receive PS session data by session instance Id
/// > Receive-PSSession $session.InstanceId
- ///
+ ///
/// Receive PS session data by session Name. Direct output to job
/// > Receive-PSSession $session.Name
- ///
+ ///
/// Receive a running command from a computer.
/// > $job = Receive-PSSession -ComputerName ServerOne -Name SessionName -OutTarget Job
- ///
+ ///
///
[SuppressMessage("Microsoft.PowerShell", "PS1012:CallShouldProcessOnlyIfDeclaringSupport")]
[Cmdlet(VerbsCommunications.Receive, "PSSession", SupportsShouldProcess = true, DefaultParameterSetName = ReceivePSSessionCommand.SessionParameterSet,
@@ -137,7 +137,7 @@ namespace Microsoft.PowerShell.Commands
///
/// If this parameter is not specified then the value specified in
- /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
+ /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
/// this is not set as well, then Microsoft.PowerShell is used.
///
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -159,7 +159,7 @@ namespace Microsoft.PowerShell.Commands
private String _shell;
///
- /// A complete URI(s) specified for the remote computer and shell to
+ /// A complete URI(s) specified for the remote computer and shell to
/// connect to and create a runspace for.
///
[Parameter(Position = 0, Mandatory = true,
@@ -245,8 +245,8 @@ namespace Microsoft.PowerShell.Commands
///
- /// Specifies the credentials of the user to impersonate in the
- /// remote machine. If this parameter is not specified then the
+ /// Specifies the credentials of the user to impersonate in the
+ /// remote machine. If this parameter is not specified then the
/// credentials of the current user process will be assumed.
///
[Parameter(ParameterSetName = ReceivePSSessionCommand.ComputerInstanceIdParameterSet)]
@@ -288,7 +288,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Specifies the certificate thumbprint to be used to impersonate the user on the
+ /// Specifies the certificate thumbprint to be used to impersonate the user on the
/// remote machine.
///
[Parameter(ParameterSetName = ReceivePSSessionCommand.ComputerInstanceIdParameterSet)]
@@ -309,7 +309,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Port specifies the alternate port to be used in case the
+ /// Port specifies the alternate port to be used in case the
/// default ports are not used for the transport mechanism
/// (port 80 for http and port 443 for useSSL)
///
@@ -481,7 +481,7 @@ namespace Microsoft.PowerShell.Commands
// Check the local repository for an existing viable session.
PSSession locSession = this.RunspaceRepository.GetItem(runspace.InstanceId);
- // Connect the session here. If it fails (connectedSession == null) revert to the
+ // Connect the session here. If it fails (connectedSession == null) revert to the
// reconstruct method.
Exception ex;
PSSession connectedSession = ConnectSession(locSession, out ex);
@@ -690,7 +690,7 @@ namespace Microsoft.PowerShell.Commands
if (ConnectSession(session, out ex) == null)
{
// Unable to connect runspace. If this was a *reconnect* runspace then try
- // obtaining a connectable runspace directly from the server and do a
+ // obtaining a connectable runspace directly from the server and do a
// *reconstruct* connect.
PSSession oldSession = session;
session = TryGetSessionFromServer(oldSession);
@@ -742,8 +742,8 @@ namespace Microsoft.PowerShell.Commands
}
}
- // Make sure that if this session is successfully connected that it is included
- // in the PSSession repository. If it already exists then replace it because we
+ // Make sure that if this session is successfully connected that it is included
+ // in the PSSession repository. If it already exists then replace it because we
// want the latest/connected session in the repository.
if (session.Runspace.RunspaceStateInfo.State != RunspaceState.Disconnected)
{
@@ -873,7 +873,7 @@ namespace Microsoft.PowerShell.Commands
return;
}
- // Otherwise this must be a new disconnected session object that has a running command
+ // Otherwise this must be a new disconnected session object that has a running command
// associated with it.
if (remoteRunspace.RemoteCommand == null)
{
@@ -1096,7 +1096,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Helper method to connect the runspace. If the session/runspace can't
- /// be connected or fails to be connected then a null PSSessionobject is
+ /// be connected or fails to be connected then a null PSSessionobject is
/// returned.
///
/// Session to connect.
@@ -1303,7 +1303,7 @@ namespace Microsoft.PowerShell.Commands
public enum OutTarget
{
///
- /// Default mode. If
+ /// Default mode. If
///
Default = 0,
diff --git a/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs b/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs
index df75150e73..ba30e53a1d 100644
--- a/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/RemoveJob.cs
@@ -44,9 +44,9 @@ namespace Microsoft.PowerShell.Commands
#region Job Matches
///
- /// Find the jobs in repository which match matching the specified names
+ /// Find the jobs in repository which match matching the specified names
///
- ///
+ ///
/// if true, method writes the object instead of returning it
/// in list (an empty list is returned).
/// write error if no match is found
@@ -177,9 +177,9 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Find the jobs in repository which match the specified instanceid
+ /// Find the jobs in repository which match the specified instanceid
///
- ///
+ ///
/// if true, method writes the object instead of returning it
/// in list (an empty list is returned).
/// write error if no match is found
@@ -234,7 +234,7 @@ namespace Microsoft.PowerShell.Commands
{
bool jobFound = false;
- // Most likely users will ask for top level jobs.
+ // Most likely users will ask for top level jobs.
// So in order to be more efficient, first look
// into the top level jobs and only if a match is
// not found in the top level jobs, recurse. This
@@ -293,9 +293,9 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Find the jobs in repository which match the specified session ids
+ /// Find the jobs in repository which match the specified session ids
///
- ///
+ ///
/// if true, method writes the object instead of returning it
/// in list (an empty list is returned).
/// write error if no match is found
@@ -344,7 +344,7 @@ namespace Microsoft.PowerShell.Commands
{
bool jobFound = false;
- // Most likely users will ask for top level jobs.
+ // Most likely users will ask for top level jobs.
// So in order to be more efficient, first look
// into the top level jobs and only if a match is
// not found in the top level jobs, recurse. This
@@ -368,7 +368,7 @@ namespace Microsoft.PowerShell.Commands
matches.Add(job);
}
- // session id will be unique for every session, so
+ // session id will be unique for every session, so
// can break after the first match
break;
}
@@ -399,7 +399,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Find the jobs in repository which match the specified command
///
- ///
+ ///
/// if true, method writes the object instead of returning it
/// in list (an empty list is returned).
/// list of matching jobs
@@ -452,7 +452,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Find the jobs in repository which match the specified state
///
- ///
+ ///
/// if true, method writes the object instead of returning it
/// in list (an empty list is returned).
/// list of matching jobs
@@ -546,7 +546,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Copies the jobs to list.
+ /// Copies the jobs to list.
///
///
/// if true, method writes the object instead of returning it
@@ -618,7 +618,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
private String[] _names;
@@ -643,7 +643,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
private Guid[] _instanceIds;
@@ -669,7 +669,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
private int[] _sessionIds;
@@ -692,7 +692,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
private JobState _jobstate;
@@ -715,7 +715,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
private String[] _commands;
@@ -759,7 +759,7 @@ namespace Microsoft.PowerShell.Commands
///
/// This cmdlet removes the Job object from the runspace
/// wide Job repository.
- ///
+ ///
/// Once the Job object is removed, it will not be available
/// through get-psjob command.
///
@@ -1008,7 +1008,7 @@ namespace Microsoft.PowerShell.Commands
#region Dispose
///
- ///
+ ///
///
public void Dispose()
{
@@ -1017,7 +1017,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
protected void Dispose(bool disposing)
diff --git a/src/System.Management.Automation/engine/remoting/commands/ResumeJob.cs b/src/System.Management.Automation/engine/remoting/commands/ResumeJob.cs
index 519970f06f..1f45100ac6 100644
--- a/src/System.Management.Automation/engine/remoting/commands/ResumeJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/ResumeJob.cs
@@ -50,7 +50,7 @@ namespace Microsoft.PowerShell.Commands
private Job[] _jobs;
///
- ///
+ ///
///
public override String[] Command
{
@@ -237,7 +237,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
protected override void StopProcessing()
{
@@ -249,7 +249,7 @@ namespace Microsoft.PowerShell.Commands
#region Dispose
///
- ///
+ ///
///
public void Dispose()
{
@@ -258,7 +258,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
protected void Dispose(bool disposing)
diff --git a/src/System.Management.Automation/engine/remoting/commands/StartJob.cs b/src/System.Management.Automation/engine/remoting/commands/StartJob.cs
index fb52844b32..1931a8d61a 100644
--- a/src/System.Management.Automation/engine/remoting/commands/StartJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/StartJob.cs
@@ -98,10 +98,10 @@ namespace Microsoft.PowerShell.Commands
///
/// Command to execute specified as a string. This can be a single
- /// cmdlet, an expression or anything that can be internally
+ /// cmdlet, an expression or anything that can be internally
/// converted into a ScriptBlock
///
- /// This is used in the in process case with a
+ /// This is used in the in process case with a
/// "ValueFromPipelineProperty" enabled in order to maintain
/// compatibility with v1.0
[Parameter(Position = 0,
@@ -336,7 +336,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Overriding to suppress this parameter
+ /// Overriding to suppress this parameter
///
public override string CertificateThumbprint
{
@@ -406,7 +406,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Extended Session Options for controlling the session creation. Use
+ /// Extended Session Options for controlling the session creation. Use
/// "New-WSManSessionOption" cmdlet to supply value for this parameter.
///
///
@@ -533,7 +533,7 @@ namespace Microsoft.PowerShell.Commands
} // CoreBeginProcessing
///
- /// Create a throttle operation using NewProcessConnectionInfo
+ /// Create a throttle operation using NewProcessConnectionInfo
/// ie., Out-Of-Process runspace.
///
protected override void CreateHelpersForSpecifiedComputerNames()
@@ -677,11 +677,11 @@ namespace Microsoft.PowerShell.Commands
///
/// InvokeAsync would have been called in ProcessRecord. Wait here
- /// for all the results to become available.
+ /// for all the results to become available.
///
protected override void EndProcessing()
{
- // close the input stream on all the pipelines
+ // close the input stream on all the pipelines
CloseAllInputStreams();
} // EndProcessing
diff --git a/src/System.Management.Automation/engine/remoting/commands/StopJob.cs b/src/System.Management.Automation/engine/remoting/commands/StopJob.cs
index 6a9fceb368..7cf6cb8c99 100644
--- a/src/System.Management.Automation/engine/remoting/commands/StopJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/StopJob.cs
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Commands
private bool _passThru;
///
- ///
+ ///
///
public override String[] Command
{
@@ -201,7 +201,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
protected override void StopProcessing()
{
@@ -269,7 +269,7 @@ namespace Microsoft.PowerShell.Commands
#region Dispose
///
- ///
+ ///
///
public void Dispose()
{
@@ -278,7 +278,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
protected void Dispose(bool disposing)
diff --git a/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs b/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs
index d68447a180..282acfb6e2 100644
--- a/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/SuspendJob.cs
@@ -50,7 +50,7 @@ namespace Microsoft.PowerShell.Commands
private Job[] _jobs;
///
- ///
+ ///
///
public override String[] Command
{
@@ -84,7 +84,7 @@ namespace Microsoft.PowerShell.Commands
private bool _force = false;
///
- ///
+ ///
///
[Parameter()]
public SwitchParameter Wait
@@ -201,7 +201,7 @@ namespace Microsoft.PowerShell.Commands
}
}
- // there could be possibility that the job gets completed before or after the
+ // there could be possibility that the job gets completed before or after the
// subscribing to nowait_job2_statechanged event so checking it again.
if (!_wait && (job2.IsFinishedState(job2.JobStateInfo.State) || job2.JobStateInfo.State == JobState.Suspending || job2.JobStateInfo.State == JobState.Suspended))
{
@@ -329,7 +329,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
protected override void StopProcessing()
{
@@ -341,7 +341,7 @@ namespace Microsoft.PowerShell.Commands
#region Dispose
///
- ///
+ ///
///
public void Dispose()
{
@@ -350,7 +350,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- ///
+ ///
///
///
protected void Dispose(bool disposing)
diff --git a/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs b/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs
index 19b811f194..a33978d613 100644
--- a/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/TestPSSessionConfigurationFile.cs
@@ -14,7 +14,7 @@ namespace Microsoft.PowerShell.Commands
{
///
/// Test-PSSessionConfigurationFile command implementation
- ///
+ ///
/// See Declarative Initial Session Config (DISC)
///
[Cmdlet(VerbsDiagnostic.Test, "PSSessionConfigurationFile", HelpUri = "https://go.microsoft.com/fwlink/?LinkID=217039")]
@@ -39,7 +39,7 @@ namespace Microsoft.PowerShell.Commands
#region Overrides
///
- ///
+ ///
///
protected override void ProcessRecord()
{
diff --git a/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs b/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs
index 5c1a843aea..b08528e117 100644
--- a/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/WaitJob.cs
@@ -68,7 +68,7 @@ namespace Microsoft.PowerShell.Commands
public SwitchParameter Force { get; set; }
///
- ///
+ ///
///
public override string[] Command { get; set; }
#endregion Parameters
@@ -405,7 +405,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Release all the resources.
+ /// Release all the resources.
///
///
/// if true, release all the managed objects.
diff --git a/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs
index b049f69d51..7351dcbc1e 100644
--- a/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/getrunspacecommand.cs
@@ -17,30 +17,30 @@ namespace Microsoft.PowerShell.Commands
/// This cmdlet is used to retrieve runspaces from the global cache
/// and write it to the pipeline. The runspaces are wrapped and
/// returned as PSSession objects.
- ///
+ ///
/// The cmdlet can be used in the following ways:
- ///
+ ///
/// List all the available runspaces
/// get-pssession
- ///
+ ///
/// Get the PSSession from session name
/// get-pssession -Name sessionName
- ///
+ ///
/// Get the PSSession for the specified ID
/// get-pssession -Id sessionId
- ///
+ ///
/// Get the PSSession for the specified instance Guid
/// get-pssession -InstanceId sessionGuid
- ///
+ ///
/// Get PSSessions from remote computer. Optionally filter on state, session instanceid or session name.
/// get-psession -ComputerName computerName -StateFilter Disconnected
- ///
+ ///
/// Get PSSessions from virtual machine. Optionally filter on state, session instanceid or session name.
/// get-psession -VMName vmName -Name sessionName
- ///
+ ///
/// Get PSSessions from container. Optionally filter on state, session instanceid or session name.
/// get-psession -ContainerId containerId -InstanceId instanceId
- ///
+ ///
///
[Cmdlet(VerbsCommon.Get, "PSSession", DefaultParameterSetName = PSRunspaceCmdlet.NameParameterSet,
HelpUri = "https://go.microsoft.com/fwlink/?LinkID=135219", RemotingCapability = RemotingCapability.OwnedByCommand)]
@@ -88,7 +88,7 @@ namespace Microsoft.PowerShell.Commands
private String _appName;
///
- /// A complete URI(s) specified for the remote computer and shell to
+ /// A complete URI(s) specified for the remote computer and shell to
/// connect to and create a runspace for.
///
[Parameter(Position = 0, Mandatory = true,
@@ -105,7 +105,7 @@ namespace Microsoft.PowerShell.Commands
///
/// For WSMan sessions:
/// If this parameter is not specified then the value specified in
- /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
+ /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
/// this is not set as well, then Microsoft.PowerShell is used.
///
/// For VM/Container sessions:
@@ -186,8 +186,8 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Specifies the credentials of the user to impersonate in the
- /// remote machine. If this parameter is not specified then the
+ /// Specifies the credentials of the user to impersonate in the
+ /// remote machine. If this parameter is not specified then the
/// credentials of the current user process will be assumed.
///
[Parameter(ParameterSetName = GetPSSessionCommand.ComputerNameParameterSet)]
@@ -229,7 +229,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Specifies the certificate thumbprint to be used to impersonate the user on the
+ /// Specifies the certificate thumbprint to be used to impersonate the user on the
/// remote machine.
///
[Parameter(ParameterSetName = GetPSSessionCommand.ComputerNameParameterSet)]
@@ -250,7 +250,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Port specifies the alternate port to be used in case the
+ /// Port specifies the alternate port to be used in case the
/// default ports are not used for the transport mechanism
/// (port 80 for http and port 443 for useSSL)
///
@@ -384,7 +384,7 @@ namespace Microsoft.PowerShell.Commands
///
private void QueryForRemoteSessions()
{
- // Get collection of connection objects for each computer name or
+ // Get collection of connection objects for each computer name or
// connection uri.
Collection connectionInfos = GetConnectionObjects();
diff --git a/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs
index 386e320541..12ca75b0a3 100644
--- a/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/newrunspacecommand.cs
@@ -20,11 +20,11 @@ namespace Microsoft.PowerShell.Commands
{
///
/// This cmdlet establishes a new Runspace either on the local machine or
- /// on the specified remote machine(s). The runspace established can be used
+ /// on the specified remote machine(s). The runspace established can be used
/// to invoke expressions remotely.
///
/// The cmdlet can be used in the following ways:
- ///
+ ///
/// Open a local runspace
/// $rs = New-PSSession
///
@@ -36,23 +36,23 @@ namespace Microsoft.PowerShell.Commands
///
/// Create a collection of runspaces
/// $runspaces = New-PSSession -Machine PowerShellWorld,PowerShellPublish,PowerShellRepo
- ///
- /// Create a set of Runspaces using the Secure Socket Layer by specifying the URI form.
- /// This assumes that an shell by the name of E12 exists on the remote server.
+ ///
+ /// Create a set of Runspaces using the Secure Socket Layer by specifying the URI form.
+ /// This assumes that an shell by the name of E12 exists on the remote server.
/// $serverURIs = 1..8 | %{ "SSL://server${_}:443/E12" }
/// $rs = New-PSSession -URI $serverURIs
- ///
+ ///
/// Create a runspace by connecting to port 8081 on servers s1, s2 and s3
/// $rs = New-PSSession -computername s1,s2,s3 -port 8081
- ///
+ ///
/// Create a runspace by connecting to port 443 using ssl on servers s1, s2 and s3
/// $rs = New-PSSession -computername s1,s2,s3 -port 443 -useSSL
- ///
+ ///
/// Create a runspace by connecting to port 8081 on server s1 and run shell named E12.
/// This assumes that a shell by the name E12 exists on the remote server
/// $rs = New-PSSession -computername s1 -port 8061 -ShellName E12
///
- ///
+ ///
[Cmdlet(VerbsCommon.New, "PSSession", DefaultParameterSetName = "ComputerName",
HelpUri = "https://go.microsoft.com/fwlink/?LinkID=135237", RemotingCapability = RemotingCapability.OwnedByCommand)]
[OutputType(typeof(PSSession))]
@@ -63,10 +63,10 @@ namespace Microsoft.PowerShell.Commands
///
/// This parameter represents the address(es) of the remote
/// computer(s). The following formats are supported:
- /// (a) Computer name
+ /// (a) Computer name
/// (b) IPv4 address : 132.3.4.5
/// (c) IPv6 address: 3ffe:8311:ffff:f70f:0:5efe:172.30.162.18
- ///
+ ///
///
[Parameter(Position = 0,
ValueFromPipeline = true,
@@ -77,10 +77,10 @@ namespace Microsoft.PowerShell.Commands
public override String[] ComputerName { get; set; }
///
- /// Specifies the credentials of the user to impersonate in the
- /// remote machine. If this parameter is not specified then the
+ /// Specifies the credentials of the user to impersonate in the
+ /// remote machine. If this parameter is not specified then the
/// credentials of the current user process will be assumed.
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = PSRemotingBaseCmdlet.ComputerNameParameterSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -132,8 +132,8 @@ namespace Microsoft.PowerShell.Commands
///
/// When set and in loopback scenario (localhost) this enables creation of WSMan
- /// host process with the user interactive token, allowing PowerShell script network access,
- /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
+ /// host process with the user interactive token, allowing PowerShell script network access,
+ /// i.e., allows going off box. When this property is true and a PSSession is disconnected,
/// reconnection is allowed only if reconnecting from a PowerShell session on the same box.
///
[Parameter(ParameterSetName = NewPSSessionCommand.ComputerNameParameterSet)]
@@ -144,12 +144,12 @@ namespace Microsoft.PowerShell.Commands
///
/// For WSMan sessions:
/// If this parameter is not specified then the value specified in
- /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
+ /// the environment variable DEFAULTREMOTESHELLNAME will be used. If
/// this is not set as well, then Microsoft.PowerShell is used.
///
/// For VM/Container sessions:
/// If this parameter is not specified then no configuration is used.
- ///
+ ///
[Parameter(ValueFromPipelineByPropertyName = true,
ParameterSetName = NewPSSessionCommand.ComputerNameParameterSet)]
[Parameter(ValueFromPipelineByPropertyName = true,
@@ -167,7 +167,7 @@ namespace Microsoft.PowerShell.Commands
#region Cmdlet Overrides
///
- /// The throttle limit will be set here as it needs to be done
+ /// The throttle limit will be set here as it needs to be done
/// only once per cmdlet and not for every call
///
protected override void BeginProcessing()
@@ -195,9 +195,9 @@ namespace Microsoft.PowerShell.Commands
} // BeginProcessing
///
- /// The runspace objects will be created using OpenAsync.
+ /// The runspace objects will be created using OpenAsync.
/// At the end, the method will check if any runspace
- /// opened has already become available. If so, then it
+ /// opened has already become available. If so, then it
/// will be written to the pipeline
///
protected override void ProcessRecord()
@@ -278,7 +278,7 @@ namespace Microsoft.PowerShell.Commands
// Add to list for clean up.
_allOperations.Add(operations);
- // If there are any runspaces opened asynchronously
+ // If there are any runspaces opened asynchronously
// that are ready now, check their status and do
// necessary action. If there are any error records
// or verbose messages write them as well
@@ -319,14 +319,14 @@ namespace Microsoft.PowerShell.Commands
}// EndProcessing()
///
- /// This method is called when the user sends a stop signal to the
+ /// This method is called when the user sends a stop signal to the
/// cmdlet. The cmdlet will not exit until it has completed
/// creating all the runspaces (basically the runspaces its
/// waiting on OpenAsync is made available). However, when a stop
/// signal is sent, CloseAsyn needs to be called to close all the
/// pending runspaces
///
- /// This is called from a separate thread so need to worry
+ /// This is called from a separate thread so need to worry
/// about concurrency issues
///
protected override void StopProcessing()
@@ -347,7 +347,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Dispose method of IDisposable. Gets called in the following cases:
/// 1. Pipeline explicitly calls dispose on cmdlets
- /// 2. Called by the garbage collector
+ /// 2. Called by the garbage collector
///
public void Dispose()
{
@@ -425,7 +425,7 @@ namespace Microsoft.PowerShell.Commands
case RunspaceState.Opened:
{
// Indicates that runspace is successfully opened
- // Write it to PipelineWriter to be handled in
+ // Write it to PipelineWriter to be handled in
// HandleRemoteRunspace
PSSession remoteRunspaceInfo = new PSSession(remoteRunspace);
@@ -577,7 +577,7 @@ namespace Microsoft.PowerShell.Commands
}
// runspace may not have been opened in certain cases
- // like when the max memory is set to 25MB, in such
+ // like when the max memory is set to 25MB, in such
// cases write an error record
if (reason != null)
{
@@ -600,7 +600,7 @@ namespace Microsoft.PowerShell.Commands
} // HandleRunspaceStateChanged
///
- /// Creates the remote runspace objects when PSSession
+ /// Creates the remote runspace objects when PSSession
/// parameter is specified
/// It now supports PSSession based on VM/container connection info as well.
///
@@ -1131,7 +1131,7 @@ namespace Microsoft.PowerShell.Commands
/// Internal dispose method which does the actual
/// dispose operations and finalize suppressions
///
- /// Whether method is called
+ /// Whether method is called
/// from Dispose or destructor
protected void Dispose(bool disposing)
{
@@ -1208,11 +1208,11 @@ namespace Microsoft.PowerShell.Commands
private ThrottleManager _throttleManager = new ThrottleManager();
private ObjectStream _stream = new ObjectStream();
- // event that signals that all operations are
+ // event that signals that all operations are
// complete (including closing if any)
private ManualResetEvent _operationsComplete = new ManualResetEvent(true);
- // the initial state is true because when no
- // operations actually take place as in case of a
+ // the initial state is true because when no
+ // operations actually take place as in case of a
// parameter binding exception, then Dispose is
// called. Since Dispose waits on this handler
// it is set to true initially and is Reset() in
@@ -1270,7 +1270,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Closes the runspace already opened asynchronously
- ///
+ ///
internal override void StopOperation()
{
OperationStateEventArgs operationStateEventArgs = null;
@@ -1302,11 +1302,11 @@ namespace Microsoft.PowerShell.Commands
}
}
- // OperationComplete event handler uses an internal collection of event handler
+ // OperationComplete event handler uses an internal collection of event handler
// callbacks for two reasons:
// a) To ensure callbacks are made in list order (first added, first called).
- // b) To ensure all callbacks are fired by manually invoking callbacks and handling
- // any exceptions thrown on this thread. (ThrottleManager will hang if it doesn't
+ // b) To ensure all callbacks are fired by manually invoking callbacks and handling
+ // any exceptions thrown on this thread. (ThrottleManager will hang if it doesn't
// get a start/stop complete callback).
private List> _internalCallbacks = new List>();
internal override event EventHandler OperationComplete
@@ -1330,8 +1330,8 @@ namespace Microsoft.PowerShell.Commands
///
/// Handler for handling runspace state changed events. This method will be
/// registered in the StartOperation and StopOperation methods. This handler
- /// will in turn invoke the OperationComplete event for all events that are
- /// necessary - Opened, Closed, Disconnected, Broken. It will ignore all other state
+ /// will in turn invoke the OperationComplete event for all events that are
+ /// necessary - Opened, Closed, Disconnected, Broken. It will ignore all other state
/// changes.
///
///
diff --git a/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs b/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs
index 5e42e601ce..65165ebd98 100644
--- a/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/remotingcommandutil.cs
@@ -27,13 +27,13 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// This is a static utility class that performs some of the common chore work for the
+ /// This is a static utility class that performs some of the common chore work for the
/// the remoting cmdlets.
///
internal static class RemotingCommandUtil
{
///
- /// The existence of the following registry confirms that the host machine is a WinPE
+ /// The existence of the following registry confirms that the host machine is a WinPE
/// HKLM\System\CurrentControlSet\Control\MiniNT
///
internal static string WinPEIdentificationRegKey = @"System\CurrentControlSet\Control\MiniNT";
@@ -153,8 +153,8 @@ namespace Microsoft.PowerShell.Commands
/// PowerShell remoting is supported on all Windows SQU's except WinPE.
///
///
- /// When PowerShell is hosted on a WinPE machine, the execution
- /// of this API would result in an InvalidOperationException being
+ /// When PowerShell is hosted on a WinPE machine, the execution
+ /// of this API would result in an InvalidOperationException being
/// thrown, indicating that remoting is not supported on a WinPE machine.
///
internal static void CheckHostRemotingPrerequisites()
diff --git a/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs b/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs
index 56f564ea8a..91aac9d251 100644
--- a/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs
+++ b/src/System.Management.Automation/engine/remoting/commands/removerunspacecommand.cs
@@ -19,13 +19,13 @@ namespace Microsoft.PowerShell.Commands
/// This cmdlet stops the runspace and frees the resources associated with
/// that runspace. If any execution is in process in that runspace, it is
/// stopped. Also, the runspace is removed from the global cache.
- ///
+ ///
/// This cmdlet can be used in the following ways:
- ///
+ ///
/// Remove the runspace specified
/// $runspace = New-PSSession
/// Remove-PSSession -remoterunspaceinfo $runspace
- ///
+ ///
/// Remove the runspace specified (no need for a parameter name)
/// $runspace = New-PSSession
/// Remove-PSSession $runspace
diff --git a/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs b/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs
index ad6b81ca07..ed1c8bb784 100644
--- a/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs
+++ b/src/System.Management.Automation/engine/remoting/common/PSSessionConfigurationTypeOption.cs
@@ -81,7 +81,7 @@ namespace System.Management.Automation
///
/// Returns all the quota related options in the form of a hashtable.
///
- ///
+ ///
internal virtual Hashtable ConstructQuotasAsHashtable()
{
throw new NotImplementedException();
@@ -94,7 +94,7 @@ namespace System.Management.Automation
///
/// Sets all the values to default values.
- /// If keepAssigned is true only those values are set
+ /// If keepAssigned is true only those values are set
/// which are unassigned.
///
///
diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs
index 855dc958b4..45041208c6 100644
--- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs
+++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionHyperVSocket.cs
@@ -197,7 +197,7 @@ namespace System.Management.Automation.Remoting
//
// Create named pipe client.
//
- using (clientPipeStream = new NamedPipeClientStream(".",
+ using (clientPipeStream = new NamedPipeClientStream(".",
"PS_VMSession",
PipeDirection.InOut,
PipeOptions.None,
@@ -207,29 +207,29 @@ namespace System.Management.Automation.Remoting
// Connect to named pipe server.
//
clientPipeStream.Connect(10*1000);
-
+
//
// Read LPWSAPROTOCOL_INFO.
//
bytesRead = clientPipeStream.Read(buffer, 0, 1000);
}
}
-
+
//
// Create duplicate socket.
//
byte[] protocolInfo = new byte[bytesRead];
Array.Copy(buffer, protocolInfo, bytesRead);
-
+
SocketInformation sockInfo = new SocketInformation();
sockInfo.ProtocolInformation = protocolInfo;
sockInfo.Options = SocketInformationOptions.Connected;
-
+
socket = new Socket(sockInfo);
if (socket == null)
{
Dbg.Assert(false, "Unexpected error in RemoteSessionHyperVSocketServer.");
-
+
tracer.WriteMessage("RemoteSessionHyperVSocketServer", "RemoteSessionHyperVSocketServer", Guid.Empty,
"Unexpected error in constructor: {0}", "socket duplication failure");
}
@@ -253,9 +253,9 @@ namespace System.Management.Automation.Remoting
TextWriter.AutoFlush = true;
//
- // listenSocket is not closed when it goes out of scope here. Sometimes it is
+ // listenSocket is not closed when it goes out of scope here. Sometimes it is
// closed later in this thread, while other times it is not closed at all. This will
- // cause problem when we set up a second PowerShell Direct session. Let's
+ // cause problem when we set up a second PowerShell Direct session. Let's
// explicitly close listenSocket here for safe.
//
if (listenSocket != null)
@@ -413,7 +413,7 @@ namespace System.Management.Automation.Remoting
//
// We need to call SetSocketOption() in order to set up Hyper-V socket connection between container host and Hyper-V container.
- // Here is the scenario: the Hyper-V container is inside a utility vm, which is inside the container host
+ // Here is the scenario: the Hyper-V container is inside a utility vm, which is inside the container host
//
if (isContainer)
{
@@ -481,12 +481,12 @@ namespace System.Management.Automation.Remoting
#region Public Methods
///
- /// Connect to Hyper-V socket server. This is a blocking call until a
+ /// Connect to Hyper-V socket server. This is a blocking call until a
/// connection occurs or the timeout time has elapsed.
///
/// The credential used for authentication
/// The configuration name of the PS session
- /// Whether this is the first connection
+ /// Whether this is the first connection
public bool Connect(
NetworkCredential networkCredential,
string configurationName,
diff --git a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs
index 50d97e0ae1..ad967129d7 100644
--- a/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs
+++ b/src/System.Management.Automation/engine/remoting/common/RemoteSessionNamedPipe.cs
@@ -306,7 +306,7 @@ namespace System.Management.Automation.Remoting
///
/// Light wrapper class for BCL NamedPipeServerStream class, that
- /// creates the named pipe server with process named pipe name,
+ /// creates the named pipe server with process named pipe name,
/// having correct access restrictions, and provides a listener
/// thread loop.
///
@@ -956,7 +956,7 @@ namespace System.Management.Automation.Remoting
#region Methods
///
- /// Connect to named pipe server. This is a blocking call until a
+ /// Connect to named pipe server. This is a blocking call until a
/// connection occurs or the timeout time has elapsed.
///
/// Connection attempt timeout in milliseconds
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs
index dfe08ba5aa..cd59f6fd3b 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/EncodeAndDecode.cs
@@ -29,7 +29,7 @@ namespace System.Management.Automation
#region Constructors
///
- ///
+ ///
///
public RemotingEncodingException()
: base()
@@ -37,7 +37,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
public RemotingEncodingException(string message)
@@ -46,7 +46,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -56,7 +56,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -83,7 +83,7 @@ namespace System.Management.Automation
internal static readonly Version ProtocolVersionWin8RTM = new Version(2, 2);
internal static readonly Version ProtocolVersionWin10RTM = new Version(2, 3);
- // Minor will be incremented for each change in PSRP client/server stack and new versions will be
+ // Minor will be incremented for each change in PSRP client/server stack and new versions will be
// forked on early major release/drop changes history.
// 2.101 to 2.102 - Disconnect support as of M2
// 2.102 to 2.103 - Key exchange protocol changes in M3
@@ -153,7 +153,7 @@ namespace System.Management.Automation
{
$params = @{static=$true}
}
-
+
foreach ($_m in ,$_val | Get-Member @params $_pat |
Sort-Object membertype,name)
{
@@ -224,7 +224,7 @@ namespace System.Management.Automation
}
foreach ($_v in Get-ChildItem ($_varName + '*') | sort Name)
- {
+ {
$_nameFound = $_v.name
$(if ($_nameFound.IndexOfAny($_varsRequiringQuotes) -eq -1) {'{0}{1}{2}'}
else {'{0}{{{1}{2}}}'}) -f $_prefix, $_provider, $_nameFound
@@ -297,7 +297,7 @@ namespace System.Management.Automation
$_pattern = $matches[1]
if ($_pattern -match '^[0-9]+$')
{
- Get-History -ea SilentlyContinue -Id $_pattern | Foreach { $_.CommandLine }
+ Get-History -ea SilentlyContinue -Id $_pattern | Foreach { $_.CommandLine }
}
else
{
@@ -325,7 +325,7 @@ namespace System.Management.Automation
{
# handle parsing errors - the last token string should be the last
# string in the line...
- if ($lastword.Length -ge $_cmd.Length -and
+ if ($lastword.Length -ge $_cmd.Length -and
$lastword.substring($lastword.length-$_cmd.length) -eq $_cmd)
{
$_pat = $_cmd + '*'
@@ -522,9 +522,9 @@ namespace System.Management.Automation
/// This data type is used when an Exception derived from IContainsErrorRecord
/// is caught on server and is sent to client. This exception gets
/// serialized as an error record. On the client this data type is deserialized in
- /// to an ErrorRecord.
- ///
- /// ErrorRecord on the client has an instance of RemoteException as exception.
+ /// to an ErrorRecord.
+ ///
+ /// ErrorRecord on the client has an instance of RemoteException as exception.
///
ExceptionAsErrorRecord = 1,
@@ -636,13 +636,13 @@ namespace System.Management.Automation
#region RunspacePool related
///
- /// This method generates a Remoting data structure handler message for
+ /// This method generates a Remoting data structure handler message for
/// creating a RunspacePool on the server
///
/// id of the clientRunspacePool
/// minRunspaces for the RunspacePool
/// to be created at the server
- /// maxRunspaces for the RunspacePool
+ /// maxRunspaces for the RunspacePool
/// to be created at the server
/// local runspace pool
/// host for the runspacepool at the client end
@@ -663,7 +663,7 @@ namespace System.Management.Automation
/// | | | | | | hostInfo | |
/// | | | | | | appParameters | |
/// --------------------------------------------------------------------------------------
- ///
+ ///
///
internal static RemoteDataObject GenerateCreateRunspacePool(
Guid clientRunspacePoolId,
@@ -698,13 +698,13 @@ namespace System.Management.Automation
}
///
- /// This method generates a Remoting data structure handler message for
+ /// This method generates a Remoting data structure handler message for
/// creating a RunspacePool on the server
///
/// id of the clientRunspacePool
/// minRunspaces for the RunspacePool
/// to be created at the server
- /// maxRunspaces for the RunspacePool
+ /// maxRunspaces for the RunspacePool
/// to be created at the server
/// data structure handler message encoded as RemoteDataObject
/// The message format is as under for this message
@@ -715,7 +715,7 @@ namespace System.Management.Automation
/// | | | | | spacePool | maxRunspaces, | |
/// | | | | | | | |
/// --------------------------------------------------------------------------------------
- ///
+ ///
///
internal static RemoteDataObject GenerateConnectRunspacePool(
Guid clientRunspacePoolId,
@@ -760,7 +760,7 @@ namespace System.Management.Automation
/// id of the clientRunspacePool
/// minRunspaces for the RunspacePool
/// to be created at the server
- /// maxRunspaces for the RunspacePool
+ /// maxRunspaces for the RunspacePool
/// to be created at the server
/// data structure handler message encoded as RemoteDataObject
/// The message format is as under for this message
@@ -771,7 +771,7 @@ namespace System.Management.Automation
/// | | | | | olInitData | maxRunspaces, | |
/// | | | | | | | |
/// --------------------------------------------------------------------------------------
- ///
+ ///
///
internal static RemoteDataObject GenerateRunspacePoolInitData(
Guid runspacePoolId,
@@ -791,12 +791,12 @@ namespace System.Management.Automation
///
- /// This method generates a Remoting data structure handler message for
+ /// This method generates a Remoting data structure handler message for
/// modifying the maxrunspaces of the specified runspace pool on the server
///
/// id of the clientRunspacePool
- /// new value of maxRunspaces for the
- /// specified RunspacePool
+ /// new value of maxRunspaces for the
+ /// specified RunspacePool
/// call id of the call at client
/// data structure handler message encoded as RemoteDataObject
/// The message format is as under for this message
@@ -822,12 +822,12 @@ namespace System.Management.Automation
}
///
- /// This method generates a Remoting data structure handler message for
+ /// This method generates a Remoting data structure handler message for
/// modifying the maxrunspaces of the specified runspace pool on the server
///
/// id of the clientRunspacePool
- /// new value of minRunspaces for the
- /// specified RunspacePool
+ /// new value of minRunspaces for the
+ /// specified RunspacePool
/// call id of the call at client
/// data structure handler message encoded as RemoteDataObject
/// The message format is as under for this message
@@ -853,7 +853,7 @@ namespace System.Management.Automation
}
///
- /// This method generates a Remoting data structure handler message for
+ /// This method generates a Remoting data structure handler message for
/// that contains a response to SetMaxRunspaces or SetMinRunspaces
///
/// id of the clientRunspacePool
@@ -883,7 +883,7 @@ namespace System.Management.Automation
}
///
- /// This method generates a Remoting data structure handler message for
+ /// This method generates a Remoting data structure handler message for
/// getting the available runspaces on the server
///
/// guid of the runspace pool on which
@@ -994,7 +994,7 @@ namespace System.Management.Automation
/// creating a command discovery pipeline on the server
///
/// The client remote powershell from which the
- /// message needs to be generated.
+ /// message needs to be generated.
/// The data is extracted from parameters of the first command named "Get-Command".
///
/// data structure handler message encoded as RemoteDataObject
@@ -1007,7 +1007,7 @@ namespace System.Management.Automation
/// | | | | | module,FQM, | |
/// | | | | | argumentList | |
/// --------------------------------------------------------------------------
- ///
+ ///
internal static RemoteDataObject GenerateGetCommandMetadata(ClientRemotePowerShell shell)
{
Command getCommand = null;
@@ -1088,7 +1088,7 @@ namespace System.Management.Automation
/// | | | | | tings, stream | |
/// | | | | | options | |
/// --------------------------------------------------------------------------
- ///
+ ///
internal static RemoteDataObject GenerateCreatePowerShell(ClientRemotePowerShell shell)
{
PowerShell powerShell = shell.PowerShell;
@@ -1151,7 +1151,7 @@ namespace System.Management.Automation
}
///
- /// This method creates a remoting data structure handler message for transporting
+ /// This method creates a remoting data structure handler message for transporting
/// application private data from server to client
///
/// id of the client RunspacePool
@@ -1209,7 +1209,7 @@ namespace System.Management.Automation
//Add Reason property
if (stateInfo.Reason != null)
{
- //If Reason is of not type IContainsErrorRecord, a new ErrorRecord is
+ //If Reason is of not type IContainsErrorRecord, a new ErrorRecord is
//created using this errorId
string errorId = "RemoteRunspaceStateInfoReason";
PSNoteProperty exceptionProperty = GetExceptionProperty(stateInfo.Reason, errorId, ErrorCategory.NotSpecified);
@@ -1348,7 +1348,7 @@ namespace System.Management.Automation
}
///
- /// This method creates a remoting data structure handler message for transporting a
+ /// This method creates a remoting data structure handler message for transporting a
/// powershell output data from server to client
///
/// data to be sent
@@ -1375,8 +1375,8 @@ namespace System.Management.Automation
}
///
- /// This method creates a remoting data structure handler message for transporting a
- /// powershell informational message (debug/verbose/warning/progress)from
+ /// This method creates a remoting data structure handler message for transporting a
+ /// powershell informational message (debug/verbose/warning/progress)from
/// server to client
///
/// data to be sent
@@ -1405,8 +1405,8 @@ namespace System.Management.Automation
}
///
- /// This method creates a remoting data structure handler message for transporting a
- /// powershell progress message from
+ /// This method creates a remoting data structure handler message for transporting a
+ /// powershell progress message from
/// server to client
///
/// progress record to send
@@ -1438,8 +1438,8 @@ namespace System.Management.Automation
}
///
- /// This method creates a remoting data structure handler message for transporting a
- /// powershell information stream message from
+ /// This method creates a remoting data structure handler message for transporting a
+ /// powershell information stream message from
/// server to client
///
/// information record to send
@@ -1471,7 +1471,7 @@ namespace System.Management.Automation
}
///
- /// This method creates a remoting data structure handler message for transporting a
+ /// This method creates a remoting data structure handler message for transporting a
/// powershell error record from server to client
///
/// error record to be sent
@@ -1498,7 +1498,7 @@ namespace System.Management.Automation
}
///
- /// This method creates a remoting data structure handler message for transporting a
+ /// This method creates a remoting data structure handler message for transporting a
/// powershell state information from server to client
///
/// state information object
@@ -1528,7 +1528,7 @@ namespace System.Management.Automation
//Add exception property
if (stateInfo.Reason != null)
{
- // If Reason is of not type IContainsErrorRecord,
+ // If Reason is of not type IContainsErrorRecord,
// a new ErrorRecord is created using this errorId
string errorId = "RemotePSInvocationStateInfoReason";
PSNoteProperty exceptionProperty =
@@ -1573,7 +1573,7 @@ namespace System.Management.Automation
}
///
- /// Gets a Note Property for the exception.
+ /// Gets a Note Property for the exception.
///
///
/// ErrorId to use if exception is not of type IContainsErrorRecord
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs
index 217b65f393..4645d4394f 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHost.cs
@@ -355,8 +355,8 @@ namespace System.Management.Automation.Remoting
// if so, then do the following:
// (a) check if any of the field descriptions
// correspond to PSCredential
- // (b) if field descriptions correspond to
- // PSCredential modify the caption and
+ // (b) if field descriptions correspond to
+ // PSCredential modify the caption and
// message as in the previous case above
else if (MethodId == RemoteHostMethodId.Prompt)
{
@@ -415,8 +415,8 @@ namespace System.Management.Automation.Remoting
// check if the incoming call is GetBufferContents
// if so do the following:
- // (a) Specify a warning message that the server is
- // attempting to read the screen buffer contents
+ // (a) Specify a warning message that the server is
+ // attempting to read the screen buffer contents
// on screen and it has been blocked
// (b) Modify the message so that call is not executed
else if (MethodId == RemoteHostMethodId.GetBufferContents)
@@ -452,11 +452,11 @@ namespace System.Management.Automation.Remoting
///
/// Provides the modified message for the given one
/// Used in ensuring that remote prompt messages
- /// contain a warning that they originate from a
+ /// contain a warning that they originate from a
/// different computer
///
/// original message to modify
- /// computername to include in the
+ /// computername to include in the
/// message
/// message which contains a warning as well
private String ModifyMessage(string message, string computerName)
@@ -470,8 +470,8 @@ namespace System.Management.Automation.Remoting
}
///
- /// Creates a warning message which displays to the user a
- /// warning stating that the remote host computer is
+ /// Creates a warning message which displays to the user a
+ /// warning stating that the remote host computer is
/// actually attempting to read a line as a secure string
///
/// computer name to include
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs
index b920da0465..8067129406 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteHostEncoder.cs
@@ -484,7 +484,7 @@ namespace System.Management.Automation.Remoting
else if (obj is PSObject && IsGenericIEnumerableOfInt(type))
{
// we cannot create an instance of interface type like IEnumerable
- // Since a Collection implements IEnumerable, falling back to use
+ // Since a Collection implements IEnumerable, falling back to use
// that.
return DecodeCollection((PSObject)obj, typeof(Collection));
}
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs
index dd1a0eae40..a1c4e649e6 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemoteSessionCapability.cs
@@ -85,7 +85,7 @@ namespace System.Management.Automation.Remoting
///
/// This is static property which gets Current TimeZone in byte format
- /// by using ByteFormatter.
+ /// by using ByteFormatter.
/// This is static to make client generate this only once.
///
internal static byte[] GetCurrentTimeZoneInByteFormat()
diff --git a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs
index ee2825a5d7..32a64f59e3 100644
--- a/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs
+++ b/src/System.Management.Automation/engine/remoting/common/WireDataFormat/RemotingDataObject.cs
@@ -110,7 +110,7 @@ namespace System.Management.Automation.Remoting
#endregion Properties
///
- ///
+ ///
///
///
///
@@ -274,7 +274,7 @@ namespace System.Management.Automation.Remoting
#region Constructors / Factory
///
- ///
+ ///
///
///
///
@@ -290,7 +290,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs
index 3ef2f2d62d..4b24804940 100644
--- a/src/System.Management.Automation/engine/remoting/common/fragmentor.cs
+++ b/src/System.Management.Automation/engine/remoting/common/fragmentor.cs
@@ -16,12 +16,12 @@ namespace System.Management.Automation.Remoting
{
///
/// This class is used to hold a fragment of remoting PSObject for transporting to remote computer.
- ///
+ ///
/// A large remoting PSObject will be broken into fragments. Each fragment has a ObjectId and a FragmentId.
- /// The first fragment has a StartFragment marker. The last fragment also an EndFragment marker.
+ /// The first fragment has a StartFragment marker. The last fragment also an EndFragment marker.
/// These fragments can be reassembled on the receiving
/// end by sequencing the fragment ids.
- ///
+ ///
/// Currently control objects (Control-C for stopping a pipeline execution) is not
/// really fragmented. These objects are small. They are just wrapped into a single
/// fragment.
@@ -173,13 +173,13 @@ namespace System.Management.Automation.Remoting
/// 0x1 if IsStartOfFragment is true: This is called S-flag.
/// 0x2 if IsEndOfFragment is true: This is called the E-flag.
/// 0x4 if IsControl is true: This is called the C-flag.
- ///
- /// The other bits are reserved for future use.
- /// Now they must be zero when sending,
+ ///
+ /// The other bits are reserved for future use.
+ /// Now they must be zero when sending,
/// and they are ignored when receiving.
/// BlobLength: 4 bytes as int, byte order is big-endian. this value can only be non-negative.
/// Blob: BlobLength number of bytes.
- ///
+ ///
/// 0 1 2 3
/// 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
@@ -191,13 +191,13 @@ namespace System.Management.Automation.Remoting
/// +-+-+-+-+-+-+-+- FragmentId +-+-+-+-+-+-+-+-+
/// | |
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
- /// |reserved |C|E|S|
+ /// |reserved |C|E|S|
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/// | BlobLength |
/// +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
/// | Blob ...
/// +-+-+-+-+-+-+-+-
- ///
+ ///
///
///
/// The binary encoded FragmentedRemoteObject to be ready to pass to WinRS Send API.
@@ -421,8 +421,8 @@ namespace System.Management.Automation.Remoting
///
/// A stream used to store serialized data. This stream holds serialized data in the
- /// form of fragments. Every "fragment size" data will hold a blob identifying the fragment.
- /// The blob has "ObjectId","FragmentId","Properties like Start,End","BlobLength"
+ /// form of fragments. Every "fragment size" data will hold a blob identifying the fragment.
+ /// The blob has "ObjectId","FragmentId","Properties like Start,End","BlobLength"
///
internal class SerializedDataStream : Stream, IDisposable
{
@@ -666,7 +666,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -884,15 +884,15 @@ namespace System.Management.Automation.Remoting
#region Stream Overrides
///
- ///
+ ///
///
public override bool CanRead { get { return true; } }
///
- ///
+ ///
///
public override bool CanSeek { get { return false; } }
///
- ///
+ ///
///
public override bool CanWrite { get { return true; } }
///
@@ -900,7 +900,7 @@ namespace System.Management.Automation.Remoting
///
public override long Length { get { return _length; } }
///
- ///
+ ///
///
public override long Position
{
@@ -908,14 +908,14 @@ namespace System.Management.Automation.Remoting
set { throw new NotSupportedException(); }
}
///
- /// This is a No-Op intentionally as there is nothing
+ /// This is a No-Op intentionally as there is nothing
/// to flush.
///
public override void Flush()
{
}
///
- ///
+ ///
///
///
///
@@ -925,7 +925,7 @@ namespace System.Management.Automation.Remoting
throw new NotSupportedException();
}
///
- ///
+ ///
///
///
public override void SetLength(long value)
@@ -953,9 +953,9 @@ namespace System.Management.Automation.Remoting
}
///
- /// This class performs the fragmentation as well as defragmentation operations of large objects to be sent
- /// to the other side. A large remoting PSObject will be broken into fragments. Each fragment has a ObjectId
- /// and a FragmentId. The last fragment also has an end of fragment marker. These fragments can be reassembled
+ /// This class performs the fragmentation as well as defragmentation operations of large objects to be sent
+ /// to the other side. A large remoting PSObject will be broken into fragments. Each fragment has a ObjectId
+ /// and a FragmentId. The last fragment also has an end of fragment marker. These fragments can be reassembled
/// on the receiving end by sequencing the fragment ids.
///
internal class Fragmentor
@@ -1005,7 +1005,7 @@ namespace System.Management.Automation.Remoting
/// The object to be fragmented. Caller should make sure this is not null.
///
///
- /// Caller specified dataToStore to which the fragments are added
+ /// Caller specified dataToStore to which the fragments are added
/// one-by-one
///
internal void Fragment(RemoteDataObject obj, SerializedDataStream dataToBeSent)
diff --git a/src/System.Management.Automation/engine/remoting/common/misc.cs b/src/System.Management.Automation/engine/remoting/common/misc.cs
index af38a4a664..31db0f313a 100644
--- a/src/System.Management.Automation/engine/remoting/common/misc.cs
+++ b/src/System.Management.Automation/engine/remoting/common/misc.cs
@@ -110,7 +110,7 @@ namespace System.Management.Automation
///
/// This is the state a connect start with. When a connection is closed,
/// the connection will eventually come back to this Idle state.
- ///
+ ///
///
Idle = 1,
@@ -179,8 +179,8 @@ namespace System.Management.Automation
EstablishedAndKeyReceived = 13,
///
- /// for Server - Have sent a request to the remote end to
- /// send a public key
+ /// for Server - Have sent a request to the remote end to
+ /// send a public key
/// for Client - have received a PK request from server
///
/// Applicable to both client and server
@@ -188,32 +188,32 @@ namespace System.Management.Automation
///
/// Key exchange complete. This can mean
- /// (a) Sent an encrypted session key to the
- /// remote end in response to receiving
+ /// (a) Sent an encrypted session key to the
+ /// remote end in response to receiving
/// a public key - this is for the server
- /// (b) Received an encrypted session key from
+ /// (b) Received an encrypted session key from
/// remote end after sending a public key -
/// this is for the client
///
EstablishedAndKeyExchanged = 15,
///
- ///
+ ///
///
Disconnecting = 16,
///
- ///
+ ///
///
Disconnected = 17,
///
- ///
+ ///
///
Reconnecting = 18,
///
- /// A disconnect operation initiated by the WinRM robust connection
+ /// A disconnect operation initiated by the WinRM robust connection
/// layer and *not* by the user.
///
RCDisconnecting = 19,
@@ -308,7 +308,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
/// This is the event arg that contains the state information.
///
internal class RemoteSessionStateEventArgs : EventArgs
diff --git a/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs b/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs
index 243f3d3758..1d78e32dc9 100644
--- a/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs
+++ b/src/System.Management.Automation/engine/remoting/common/psstreamobject.cs
@@ -15,62 +15,62 @@ namespace System.Management.Automation.Remoting.Internal
public enum PSStreamObjectType
{
///
- ///
+ ///
///
Output = 1,
///
- ///
+ ///
///
Error = 2,
///
- ///
+ ///
///
MethodExecutor = 3,
///
- ///
+ ///
///
Warning = 4,
///
- ///
+ ///
///
BlockingError = 5,
///
- ///
+ ///
///
ShouldMethod = 6,
///
- ///
+ ///
///
WarningRecord = 7,
///
- ///
+ ///
///
Debug = 8,
///
- ///
+ ///
///
Progress = 9,
///
- ///
+ ///
///
Verbose = 10,
///
- ///
+ ///
///
Information = 11,
///
- ///
+ ///
///
Exception = 12,
}
@@ -79,13 +79,13 @@ namespace System.Management.Automation.Remoting.Internal
/// struct which describes whether an object written
/// to an ObjectStream is of type - output, error,
/// verbose, debug.
- /// PSStreamObject is for internal (PowerShell) consumption
+ /// PSStreamObject is for internal (PowerShell) consumption
/// and should not be treated as a public API.
///
public class PSStreamObject
{
///
- ///
+ ///
///
public PSStreamObjectType ObjectType { get; set; }
internal Object Value { get; set; }
@@ -99,7 +99,7 @@ namespace System.Management.Automation.Remoting.Internal
}
///
- ///
+ ///
///
///
///
@@ -499,32 +499,32 @@ namespace System.Management.Automation.Remoting.Internal
namespace System.Management.Automation.Remoting
{
///
- ///
+ ///
///
public class CmdletMethodInvoker
{
///
- ///
+ ///
///
public Func Action { get; set; }
///
- ///
+ ///
///
public Exception ExceptionThrownOnCmdletThread { get; set; }
///
- ///
+ ///
///
public ManualResetEventSlim Finished { get; set; }
///
- ///
+ ///
///
public object SyncObject { get; set; }
///
- ///
+ ///
///
public T MethodResult { get; set; }
}
diff --git a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
index f6f1021ffb..56e24c02e5 100644
--- a/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
+++ b/src/System.Management.Automation/engine/remoting/common/remotingexceptions.cs
@@ -17,8 +17,8 @@ namespace System.Management.Automation.Remoting
///
/// This enum defines the error message ids used by the resource manager to get
/// localized messages.
- ///
- /// Related error ids are organized in a pre-defined range of values.
+ ///
+ /// Related error ids are organized in a pre-defined range of values.
///
internal enum PSRemotingErrorId : uint
{
@@ -26,7 +26,7 @@ namespace System.Management.Automation.Remoting
DefaultRemotingExceptionMessage = 0,
OutOfMemory = 1,
- // Pipeline related range: 10-99
+ // Pipeline related range: 10-99
PipelineIdsDoNotMatch = 10,
PipelineNotFoundOnServer = 11,
PipelineStopped = 12,
diff --git a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs
index a661d5be1d..785bbe252b 100644
--- a/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs
+++ b/src/System.Management.Automation/engine/remoting/common/throttlemanager.cs
@@ -52,13 +52,13 @@ namespace System.Management.Automation.Remoting
/// Interface which needs to be implemented by a class which wants to
/// submit operations to the throttle manager
///
- /// Any synchronization that needs to be performed between
- /// StartOperation and StopOperation in the class that implements this
- /// interface should take care of handling the same. For instance,
- /// say New-Runspace class internally uses a class A which implements
- /// the IThrottleOperation interface. StartOperation of this
- /// class opens a runspace asynchronously on a remote machine. Stop
- /// operation is supposed to cancel the opening of this runspace. Any
+ /// Any synchronization that needs to be performed between
+ /// StartOperation and StopOperation in the class that implements this
+ /// interface should take care of handling the same. For instance,
+ /// say New-Runspace class internally uses a class A which implements
+ /// the IThrottleOperation interface. StartOperation of this
+ /// class opens a runspace asynchronously on a remote machine. Stop
+ /// operation is supposed to cancel the opening of this runspace. Any
/// synchronization/cleanup issues should be handled by class A.
///
internal abstract class IThrottleOperation
@@ -66,7 +66,7 @@ namespace System.Management.Automation.Remoting
///
/// This method should handle the actual operation which need to be
/// controlled and performed. Examples of this can be Opening remote
- /// runspace, invoking expression in a remote runspace, etc. Once
+ /// runspace, invoking expression in a remote runspace, etc. Once
/// an event is successfully received as a result of this function,
/// the handler has to ensure that it raises an OperationComplete
/// event with StartComplete or StopComplete for the throttle manager
@@ -77,12 +77,12 @@ namespace System.Management.Automation.Remoting
///
/// This method should handle the situation when a stop signal is sent
/// for this operation. For instance, when trying to open a set of
- /// remote runspaces, the user might hit ctrl-C. In which case, the
+ /// remote runspaces, the user might hit ctrl-C. In which case, the
/// pending runspaces to be opened will actually be signalled through
/// this method to stop operation and return back. This method also
/// needs to be asynchronous. Once an event is successfully received
/// as a result of this function, the handler has to ensure that it
- /// raises an OperationComplete event with StopComplete for the
+ /// raises an OperationComplete event with StopComplete for the
/// throttle manager to handle. It is important that this function
/// does not raise a StartComplete which will then result in the
/// ThrottleComplete event not being raised by the throttle manager
@@ -91,11 +91,11 @@ namespace System.Management.Automation.Remoting
///
/// Event which will be triggered when the operation is complete. It is
- /// assumed that all the operations performed by StartOperation and
- /// StopOperation are asynchronous. The submitter of operations may
- /// subscribe to this event to know when it's complete (or it can handle
- /// the synchronization with its scheduler) and the throttle
- /// manager will subscribe to this event to know that it's complete
+ /// assumed that all the operations performed by StartOperation and
+ /// StopOperation are asynchronous. The submitter of operations may
+ /// subscribe to this event to know when it's complete (or it can handle
+ /// the synchronization with its scheduler) and the throttle
+ /// manager will subscribe to this event to know that it's complete
/// and to start the operation on the next item.
///
internal abstract event EventHandler OperationComplete;
@@ -104,11 +104,11 @@ namespace System.Management.Automation.Remoting
/// This Property indicates whether an operation has been stopped
///
///
- /// In the initial implementation of ThrottleManager stopping
- /// individual operations was not supported. When the support
- /// for stopping individual operations was added, there was
- /// the following problem - if an operation is not there in
- /// the pending queue and in the startOperationQueue as well,
+ /// In the initial implementation of ThrottleManager stopping
+ /// individual operations was not supported. When the support
+ /// for stopping individual operations was added, there was
+ /// the following problem - if an operation is not there in
+ /// the pending queue and in the startOperationQueue as well,
/// then the following two scenarios are possible
/// (a) Operation was started and start completed
/// (b) Operation was started and stopped and both completed
@@ -132,7 +132,7 @@ namespace System.Management.Automation.Remoting
private bool _ignoreStop = false;
} // IThrottleOperation
- #endregion IThrottleOperation
+ #endregion IThrottleOperation
#region ThrottleManager
@@ -140,21 +140,21 @@ namespace System.Management.Automation.Remoting
/// Class which handles the throttling operations. This class is singleton and therefore
/// when used either across cmdlets or at the infrastructure level it will ensure that
/// there aren't more operations by way of accumulation than what is intended by design.
- ///
- /// This class contains a queue of items, each of which has the
+ ///
+ /// This class contains a queue of items, each of which has the
///
/// IThrottleOperation interface implemented. To begin with
/// THROTTLE_LIMIT number of items will be taken from the queue and the operations on
- /// them will be executed. Subsequently, as and when operations complete, new items from
+ /// them will be executed. Subsequently, as and when operations complete, new items from
/// the queue will be taken and their operations executed.
- ///
- /// Whenever a consumer submits or adds operations, the methods will start as much
+ ///
+ /// Whenever a consumer submits or adds operations, the methods will start as much
/// operations from the queue as permitted based on the throttle limit. Also the event
/// handler will start an operation once a previous event is completed.
- ///
+ ///
/// The queue used is a generic queue of type IThrottleOperations, as it will offer better
/// performance
- ///
+ ///
///
/// Throttle limit is currently set to 50. This value may be modified later based
/// on a figure that we may arrive at out of experience.
@@ -196,7 +196,7 @@ namespace System.Management.Automation.Remoting
{
lock (_syncObject)
{
- // operations can be submitted only until submitComplete
+ // operations can be submitted only until submitComplete
// is not set to true (happens when EndSubmitOperations is called)
if (!_submitComplete)
{
@@ -227,7 +227,7 @@ namespace System.Management.Automation.Remoting
// add item to the queue
lock (_syncObject)
{
- // operations can be submitted only until submitComplete
+ // operations can be submitted only until submitComplete
// is not set to true (happens when EndSubmitOperations is called)
if (!_submitComplete)
{
@@ -244,7 +244,7 @@ namespace System.Management.Automation.Remoting
// start operations from queue if possible
StartOperationsFromQueue();
- }// AddOperation
+ }// AddOperation
///
/// Stop throttling operations
@@ -299,11 +299,11 @@ namespace System.Management.Automation.Remoting
{
// When iterating through the array of operations in process
// it is quite possible that a runspace gets to the open state
- // before stop is actually called on it. In that case, the
- // OperationCompleteHandler will remove it from the
+ // before stop is actually called on it. In that case, the
+ // OperationCompleteHandler will remove it from the
// operationsInProcess queue. Now when the runspace is closed
// the same handler will try removing it again and so there will
- // be an exception. Hence adding it a second time before stop
+ // be an exception. Hence adding it a second time before stop
// will ensure that the operation is available in the queue for
// removal. In case the stop succeeds before start succeeds then
// both will get removed (it goes without saying that there cannot
@@ -339,7 +339,7 @@ namespace System.Management.Automation.Remoting
}
// If the operation has not yet been started, then
- // remove it from the pending queue
+ // remove it from the pending queue
if (_operationsQueue.IndexOf(operation) != -1)
{
lock (_syncObject)
@@ -408,7 +408,7 @@ namespace System.Management.Automation.Remoting
#endregion Constructors
- #region Private Methods
+ #region Private Methods
///
/// Handler which handles state change for the object which implements
@@ -421,7 +421,7 @@ namespace System.Management.Automation.Remoting
private void OperationCompleteHandler(object source, OperationStateEventArgs stateEventArgs)
{
// An item has completed operation. If it's a start operation which completed
- // remove the instance from the startOperationqueue. If it's a stop operation
+ // remove the instance from the startOperationqueue. If it's a stop operation
// which completed, then remove the instance from both queues
lock (_syncObject)
{
@@ -435,7 +435,7 @@ namespace System.Management.Automation.Remoting
{
// A stop operation can be initiated before a start operation completes.
// A stop operation handler cleans up an outstanding start operation.
- // So it is possible that a start operation complete callback will find the
+ // So it is possible that a start operation complete callback will find the
// operation removed from the queue by an earlier stop operation complete.
index = _startOperationQueue.IndexOf(operation);
if (index != -1)
@@ -446,7 +446,7 @@ namespace System.Management.Automation.Remoting
else
{
// for a stop operation, the same operation object would have been
- // added to the stopOperationQueue as well. So we need to
+ // added to the stopOperationQueue as well. So we need to
// remove both the instances.
index = _startOperationQueue.IndexOf(operation);
if (index != -1)
@@ -558,7 +558,7 @@ namespace System.Management.Automation.Remoting
#region Private Members
///
- /// default throttle limit - the maximum number of operations
+ /// default throttle limit - the maximum number of operations
/// to be processed at a time
///
private static int s_DEFAULT_THROTTLE_LIMIT = 32;
@@ -580,7 +580,7 @@ namespace System.Management.Automation.Remoting
private List _startOperationQueue;
///
- /// List of items on which a StopOperation has
+ /// List of items on which a StopOperation has
/// been called
///
private List _stopOperationQueue;
@@ -613,7 +613,7 @@ namespace System.Management.Automation.Remoting
/// Internal dispose method which does the actual dispose
/// operations and finalize suppressions
///
- /// If method is called from
+ /// If method is called from
/// disposing of destructor
private void Dispose(bool disposing)
{
diff --git a/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs b/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs
index 656d1a57c1..56fe7c4619 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/BaseTransportManager.cs
@@ -2,9 +2,9 @@
* Copyright (c) Microsoft Corporation. All rights reserved.
* --********************************************************************/
/*
- * Common file that contains interface definitions for generic server and client
+ * Common file that contains interface definitions for generic server and client
* transport managers.
- *
+ *
*/
using System.Management.Automation.Tracing;
@@ -147,8 +147,8 @@ namespace System.Management.Automation.Remoting
#region Global Constants
- // KeepAlive: Server 4 minutes, Client 3 minutes
- // The server timeout value has to be bigger than the client timeout value.
+ // KeepAlive: Server 4 minutes, Client 3 minutes
+ // The server timeout value has to be bigger than the client timeout value.
// This is due to the WinRM implementation on the Listener.
// So We added a 1 minute network delay to count for this.
internal const int ServerDefaultKeepAliveTimeoutMs = 4 * 60 * 1000; // milliseconds = 4 minutes
@@ -224,7 +224,7 @@ namespace System.Management.Automation.Remoting
internal Fragmentor Fragmentor { get; set; }
///
- /// This is needed to deserialize objects coming from the network.
+ /// This is needed to deserialize objects coming from the network.
/// This may be null..in which case type rehydration does not happen.
/// At construction time we may not have typetable (server runspace
/// is created only when a request from the client)..so this is
@@ -245,7 +245,7 @@ namespace System.Management.Automation.Remoting
///
///
/// priority stream this data belongs to
- ///
+ ///
internal virtual void ProcessRawData(byte[] data, string stream)
{
try
@@ -268,7 +268,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
/// data to process
@@ -320,7 +320,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -455,7 +455,7 @@ namespace System.Management.Automation.Remoting.Client
/// connection, the event handler should complete processing as fast as possible.
/// Importantly the event handler should not generate any call that results in a
/// user request like host.ReadLine().
- ///
+ ///
/// Errors (occurred during connection attempt) are reported through WSManTransportErrorOccured
/// event.
///
@@ -466,7 +466,7 @@ namespace System.Management.Automation.Remoting.Client
/// connection, the event handler should complete processing as fast as possible.
/// Importantly the event handler should not generate any call that results in a
/// user request like host.ReadLine().
- ///
+ ///
/// Errors (occurred during connection attempt) are reported through WSManTransportErrorOccured
/// event.
///
@@ -477,7 +477,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Indicated successful completion of a connect operation on transport
- ///
+ ///
/// Errors are reported through WSManTransportErrorOccured
/// event.
///
@@ -485,7 +485,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Indicated successful completion of a disconnect operation on transport
- ///
+ ///
/// Errors are reported through WSManTransportErrorOccured
/// event.
///
@@ -493,7 +493,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Indicated successful completion of a reconnect operation on transport
- ///
+ ///
/// Errors are reported through WSManTransportErrorOccured
/// event.
///
@@ -501,7 +501,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Indicates that the transport/command is ready for a disconnect operation.
- ///
+ ///
/// Errors are reported through WSManTransportErrorOccured event.
///
internal event EventHandler ReadyForDisconnect;
@@ -513,7 +513,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Indicates successful processing of a delay stream request on a receive operation
- ///
+ ///
/// this event is useful when PS wants to invoke a pipeline in disconnected mode
///
internal event EventHandler DelayStreamRequestProcessed;
@@ -538,7 +538,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Raise the Connect completed handler
- ///
+ ///
internal void RaiseCreateCompleted(CreateCompleteEventArgs eventArgs)
{
CreateCompleted.SafeInvoke(this, eventArgs);
@@ -561,7 +561,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Raise the close completed handler
- ///
+ ///
internal void RaiseCloseCompleted()
{
CloseCompleted.SafeInvoke(this, EventArgs.Empty);
@@ -655,7 +655,7 @@ namespace System.Management.Automation.Remoting.Client
}
catch (Exception exception)
{
- // Enqueue an Exception to process in a thread-pool thread. Processing
+ // Enqueue an Exception to process in a thread-pool thread. Processing
// Exception in a thread pool thread is important as calling
// WSManCloseShell/Command from a Receive callback results in a deadlock.
tracer.WriteLine("Exception processing data. {0}", exception.Message);
@@ -819,7 +819,7 @@ namespace System.Management.Automation.Remoting.Client
CallbackNotificationInformation rcvdDataInfo = null;
lock (_callbackNotificationQueue)
{
- // If queue is empty or if queue servicing is suspended
+ // If queue is empty or if queue servicing is suspended
// then break out of loop.
if (_callbackNotificationQueue.Count <= 0 || _suspendQueueServicing)
{
@@ -1263,7 +1263,7 @@ namespace System.Management.Automation.Remoting.Server
///
internal void SendDataToClient(RemoteDataObject data, bool flush, bool reportPending = false)
{
- // make sure only one data packet can be sent in its entirety at any
+ // make sure only one data packet can be sent in its entirety at any
// given point of time using this transport manager.
lock (_syncObject)
{
@@ -1281,7 +1281,7 @@ namespace System.Management.Automation.Remoting.Server
// Update-TypeData -TypeName Microsoft.PowerShell.Test.Bug491001 -MemberType ScriptProperty -MemberName zname -Value {( 1..10kb | % { get-random -min 97 -max 122 | % { [char]$psitem } }) -join ""}
// $a
// }
- // 1. The value of "name" property is huge 50kb and cannot fit in one fragment (with fragment size 32kb)
+ // 1. The value of "name" property is huge 50kb and cannot fit in one fragment (with fragment size 32kb)
// 2. The value of "Verbose" is actually writing a progress record
// 3. The value of "zname" property is also huge
// 4. Notice the ascending order of property names. This is because serializer serializes properties in sort order
@@ -1424,7 +1424,7 @@ namespace System.Management.Automation.Remoting.Server
#region Abstract interfaces
///
- ///
+ ///
///
///
///
@@ -1439,12 +1439,12 @@ namespace System.Management.Automation.Remoting.Server
protected abstract void SendDataToClient(byte[] data, bool flush, bool reportAsPending, bool reportAsDataBoundary);
///
- ///
+ ///
///
internal abstract void ReportExecutionStatusAsRunning();
///
- ///
+ ///
///
///
/// message describing why the transport manager must be closed
@@ -1453,8 +1453,8 @@ namespace System.Management.Automation.Remoting.Server
///
/// Prepare the transport manager to send data (because a command
- /// is about to start). This is used by underlying infrastructure
- /// to send ACK to client..so client can start sending input and
+ /// is about to start). This is used by underlying infrastructure
+ /// to send ACK to client..so client can start sending input and
/// other data to server.
///
internal virtual void Prepare()
@@ -1469,7 +1469,7 @@ namespace System.Management.Automation.Remoting.Server
}
///
- /// This represents an abstraction for server session transport manager.
+ /// This represents an abstraction for server session transport manager.
///
internal abstract class AbstractServerSessionTransportManager : AbstractServerTransportManager
{
@@ -1508,8 +1508,8 @@ namespace System.Management.Automation.Remoting.Server
#region Public Helper Methods
///
- /// A helper method to extract a base-64 encoded XML element from a specified input
- /// buffer. The calls required are not compatible with the Managed C++ CoreCLR
+ /// A helper method to extract a base-64 encoded XML element from a specified input
+ /// buffer. The calls required are not compatible with the Managed C++ CoreCLR
/// mscorlib, but this operation is supported as managed C# code.
///
/// The input buffer to search. It must be base-64 encoded XML.
diff --git a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs
index 5999eb4d5c..b2e20c0207 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/InitialSessionStateProvider.cs
@@ -216,18 +216,18 @@ namespace System.Management.Automation.Remoting
///
/// 1. "optionName" is already defined
///
- /*
+ /*
...
-
+
*/
/* The following extensions have been added in V3 providing the user
* the ability to pass data to the session configuration for initialization
- *
+ *
- *
+ *
* The session configuration data blob can be defined as under
@@ -236,7 +236,7 @@ namespace System.Management.Automation.Remoting
...
-
+
*/
internal static ConfigurationDataFromXML Create(string initializationParameters)
{
@@ -304,7 +304,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -366,7 +366,7 @@ namespace System.Management.Automation.Remoting
public abstract InitialSessionState GetInitialSessionState(PSSenderInfo senderInfo);
///
- ///
+ ///
///
///
///
@@ -407,7 +407,7 @@ namespace System.Management.Automation.Remoting
///
/// Derived classes can override this method to provide application private data
- /// that is going to be sent to the client and exposed via
+ /// that is going to be sent to the client and exposed via
/// ,
/// and
///
@@ -436,7 +436,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
protected virtual void Dispose(bool isDisposing)
@@ -448,18 +448,18 @@ namespace System.Management.Automation.Remoting
#region GetInitialSessionState from 3rd party shell ids
///
- ///
+ ///
///
///
///
/// Initialization Parameters xml passed by WSMan API. This data is read from the config
- /// xml and is in the following format:
- ///
- ///
+ /// xml and is in the following format:
+ ///
+ ///
///
/// 1. Non existent InitialSessionState provider for the shellID
///
- /*
+ /*
@@ -507,7 +507,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
/// shellId for which the assembly is getting loaded
@@ -599,7 +599,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// Sets the application's current working directory to and
+ /// Sets the application's current working directory to and
/// loads the assembly . Once the assembly is loaded, the application's
/// current working directory is set back to the original value.
///
@@ -811,7 +811,7 @@ namespace System.Management.Automation.Remoting
internal sealed class DefaultRemotePowerShellConfiguration : PSSessionConfiguration
{
///
- ///
+ ///
///
///
///
@@ -901,7 +901,7 @@ namespace System.Management.Automation.Remoting
internal TypeValidationCallback ValidationCallback;
///
- ///
+ ///
///
///
///
@@ -1031,7 +1031,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1063,7 +1063,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1095,7 +1095,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1127,7 +1127,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1148,7 +1148,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1196,7 +1196,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1249,7 +1249,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1513,7 +1513,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
private static void ValidatePS1XMLExtension(string key, string[] paths, string filePath)
{
@@ -1541,7 +1541,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
private static void ValidatePS1OrPSM1Extension(string key, string[] paths, string filePath)
{
@@ -1571,7 +1571,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -1970,7 +1970,7 @@ namespace System.Management.Automation.Remoting
{
iss.DefaultCommandVisibility = SessionStateEntryVisibility.Private;
- // If visibility is applied on a default runspace then set initial ISS
+ // If visibility is applied on a default runspace then set initial ISS
// commands visibility to private.
if (processDefaultSessionStateVisibility)
{
diff --git a/src/System.Management.Automation/engine/remoting/fanin/OutOfProcTransportManager.cs b/src/System.Management.Automation/engine/remoting/fanin/OutOfProcTransportManager.cs
index 71174daffd..d8625acc5f 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/OutOfProcTransportManager.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/OutOfProcTransportManager.cs
@@ -6,7 +6,7 @@
* Common file that contains implementation for both server and client transport
* managers for Out-Of-Process and Named Pipe (on the local machine) remoting implementation.
* These interfaces are used by *-Job cmdlets to support background jobs and
- * attach-to-process feature without depending on WinRM (WinRM has complex requirements like
+ * attach-to-process feature without depending on WinRM (WinRM has complex requirements like
* elevation to support local machine remoting).
*/
@@ -526,7 +526,7 @@ namespace System.Management.Automation.Remoting.Client
if (null == stdInWriter)
{
// this will happen if CloseAsync() is called
- // before ConnectAsync()..in which case we
+ // before ConnectAsync()..in which case we
// just need to raise close completed event.
shouldRaiseCloseCompleted = true;
}
@@ -627,7 +627,7 @@ namespace System.Management.Automation.Remoting.Client
lock (syncObject)
{
// We always need to remove commands from collection, even if isClosed is true.
- // If we don't then we hang because CloseAsync() will not complete until all
+ // If we don't then we hang because CloseAsync() will not complete until all
// commands are closed.
if (!_cmdTransportManagers.Remove(key))
{
@@ -707,7 +707,7 @@ namespace System.Management.Automation.Remoting.Client
// dont let the writer write new data as the process is exited.
// Not assigning null to stdInWriter to fix the race condition between OnExited() and CloseAsync() methods.
- //
+ //
stdInWriter.StopWriting();
}
PSRemotingTransportException psrte = new PSRemotingTransportException(PSRemotingErrorId.IPCServerProcessExited,
@@ -957,7 +957,7 @@ namespace System.Management.Automation.Remoting.Client
///
///
///
- /// 1. There was an error in opening the associated file.
+ /// 1. There was an error in opening the associated file.
///
internal override void CreateAsync()
{
@@ -1116,7 +1116,7 @@ namespace System.Management.Automation.Remoting.Client
try
{
// For processes running in an NTVDM, trying to kill with
- // the original handle fails with a Win32 error, so we'll
+ // the original handle fails with a Win32 error, so we'll
// use the ID and try to get a new handle...
Process newHandle = Process.GetProcessById(_serverProcess.Id);
// If the process was not found, we won't get here...
@@ -1863,7 +1863,7 @@ namespace System.Management.Automation.Remoting.Client
{
_clientPipe.Close();
- //
+ //
// We should terminate the PowerShell process inside container that
// is created for PowerShell Direct.
//
@@ -2018,7 +2018,7 @@ namespace System.Management.Automation.Remoting.Client
lock (syncObject)
{
- // if the transport manager is already closed..return immediately
+ // if the transport manager is already closed..return immediately
if (isClosed)
{
tracer.WriteLine("Client Command TM: Transport manager is closed. So returning");
@@ -2233,7 +2233,7 @@ namespace System.Management.Automation.Remoting.Server
{
OutOfProcessServerTransportManager cmdTM = new OutOfProcessServerTransportManager(_stdOutWriter, _stdErrWriter,
powerShellCmdId, this.TypeTable, this.Fragmentor.FragmentSize, this.CryptoHelper);
- // this will make the Session's DataReady event handler handle
+ // this will make the Session's DataReady event handler handle
// the commands data as well. This is because the state machine
// is per session.
cmdTM.MigrateDataReadyEventHandlers(this);
diff --git a/src/System.Management.Automation/engine/remoting/fanin/PSPrincipal.cs b/src/System.Management.Automation/engine/remoting/fanin/PSPrincipal.cs
index c017106a07..986d280d96 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/PSPrincipal.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/PSPrincipal.cs
@@ -278,9 +278,9 @@ namespace System.Management.Automation.Remoting
/// Gets the type of authentication used.
/// For a WSMan service authenticated user this will be one of the following:
/// WSMAN_DEFAULT_AUTHENTICATION
- /// WSMAN_NO_AUTHENTICATION
- /// WSMAN_AUTH_DIGEST
- /// WSMAN_AUTH_NEGOTIATE
+ /// WSMAN_NO_AUTHENTICATION
+ /// WSMAN_AUTH_DIGEST
+ /// WSMAN_AUTH_NEGOTIATE
/// WSMAN_AUTH_BASIC
/// WSMAN_AUTH_KERBEROS
/// WSMAN_AUTH_CLIENT_CERTIFICATE
@@ -312,9 +312,9 @@ namespace System.Management.Automation.Remoting
/// Type of authentication used to authenticate this user.
/// For a WSMan service authenticated user this will be one of the following:
/// WSMAN_DEFAULT_AUTHENTICATION
- /// WSMAN_NO_AUTHENTICATION
- /// WSMAN_AUTH_DIGEST
- /// WSMAN_AUTH_NEGOTIATE
+ /// WSMAN_NO_AUTHENTICATION
+ /// WSMAN_AUTH_DIGEST
+ /// WSMAN_AUTH_NEGOTIATE
/// WSMAN_AUTH_BASIC
/// WSMAN_AUTH_KERBEROS
/// WSMAN_AUTH_CLIENT_CERTIFICATE
diff --git a/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs b/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs
index 99faa9886b..4b11b4472d 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/PSSessionConfigurationData.cs
@@ -12,7 +12,7 @@ using System.Text;
namespace System.Management.Automation.Remoting
{
///
- ///
+ ///
///
public sealed class PSSessionConfigurationData
{
@@ -23,7 +23,7 @@ namespace System.Management.Automation.Remoting
#region Public Properties
///
- ///
+ ///
///
public List ModulesToImport
{
@@ -42,7 +42,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
public String PrivateData
{
diff --git a/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs b/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs
index 279ff625e0..3e624b6703 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/PriorityCollection.cs
@@ -10,7 +10,7 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation.Remoting
{
///
- ///
+ ///
///
internal enum DataPriorityType : int
{
@@ -136,7 +136,7 @@ namespace System.Management.Automation.Remoting
/// Adds data to this collection. The data is fragmented in this method
/// before being stored into the collection. So the calling thread
/// will get affected, if it tries to add a huge object.
- ///
+ ///
/// The data is added with Default priority.
///
///
@@ -168,9 +168,9 @@ namespace System.Management.Automation.Remoting
///
/// Gets the fragment or if no fragment is available registers the callback which
- /// gets called once a fragment is available. These 2 steps are performed in a
+ /// gets called once a fragment is available. These 2 steps are performed in a
/// synchronized way.
- ///
+ ///
/// While getting a fragment the following algorithm is used:
/// 1. If this is the first time or if the last fragment read is an EndFragment,
/// then a new set of fragments is chosen based on the implicit priority.
@@ -326,7 +326,7 @@ namespace System.Management.Automation.Remoting
#region Constructor
///
- ///
+ ///
///
///
/// Defragmentor used to deserialize an object.
@@ -339,10 +339,10 @@ namespace System.Management.Automation.Remoting
{
Dbg.Assert(null != defragmentor, "ReceiveDataCollection needs a defragmentor to work with");
- // Memory streams created with an unsigned byte array provide a non-resizable stream view
+ // Memory streams created with an unsigned byte array provide a non-resizable stream view
// of the data, and can only be written to. When using a byte array, you can neither append
- // to nor shrink the stream, although you might be able to modify the existing contents
- // depending on the parameters passed into the constructor. Empty memory streams are
+ // to nor shrink the stream, although you might be able to modify the existing contents
+ // depending on the parameters passed into the constructor. Empty memory streams are
// resizable, and can be written to and read from.
_pendingDataStream = new MemoryStream();
_syncObject = new object();
@@ -363,8 +363,8 @@ namespace System.Management.Automation.Remoting
}
///
- /// This might be needed only for ServerCommandTransportManager case
- /// where the command is run in the same thread that runs ProcessRawData
+ /// This might be needed only for ServerCommandTransportManager case
+ /// where the command is run in the same thread that runs ProcessRawData
/// (to avoid thread context switch). By default this class supports
/// only one thread in ProcessRawData.
///
@@ -386,8 +386,8 @@ namespace System.Management.Automation.Remoting
///
/// Process data coming from the transport. This method analyses the data
- /// and if an object can be created, it creates one and calls the
- /// with the deserialized object. This method
+ /// and if an object can be created, it creates one and calls the
+ /// with the deserialized object. This method
/// does not assume all fragments to be available. So if not enough fragments are
/// available it will simply return..
///
@@ -403,7 +403,7 @@ namespace System.Management.Automation.Remoting
///
/// 1. Fragment Ids not in sequence
/// 2. Object Ids does not match
- /// 3. The current deserialized object size of the received data exceeded
+ /// 3. The current deserialized object size of the received data exceeded
/// allowed maximum object size. The current deserialized object size is {0}.
/// Allowed maximum object size is {1}.
///
@@ -558,10 +558,10 @@ namespace System.Management.Automation.Remoting
{
_canIgnoreOffSyncFragments = false; //reset this upon receiving a start fragment of a fresh object
_currentObjectId = objectId;
- // Memory streams created with an unsigned byte array provide a non-resizable stream view
+ // Memory streams created with an unsigned byte array provide a non-resizable stream view
// of the data, and can only be written to. When using a byte array, you can neither append
- // to nor shrink the stream, although you might be able to modify the existing contents
- // depending on the parameters passed into the constructor. Empty memory streams are
+ // to nor shrink the stream, although you might be able to modify the existing contents
+ // depending on the parameters passed into the constructor. Empty memory streams are
// resizable, and can be written to and read from.
_dataToProcessStream = new MemoryStream();
}
@@ -571,7 +571,7 @@ namespace System.Management.Automation.Remoting
if (objectId != _currentObjectId)
{
s_baseTracer.WriteLine("ObjectId != CurrentObjectId");
- //TODO - drop an ETW event
+ //TODO - drop an ETW event
ResetReceiveData();
if (!_canIgnoreOffSyncFragments)
{
@@ -588,7 +588,7 @@ namespace System.Management.Automation.Remoting
if (fragmentId != (_currentFrgId + 1))
{
s_baseTracer.WriteLine("Fragment Id is not in sequence.");
- //TODO - drop an ETW event
+ //TODO - drop an ETW event
ResetReceiveData();
if (!_canIgnoreOffSyncFragments)
{
@@ -708,7 +708,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// DataStructure used by different remoting protocol /
+ /// DataStructure used by different remoting protocol /
/// DataStructures to receive data from transport manager.
/// This class holds the responsibility of defragmenting and
/// deserializing.
@@ -787,8 +787,8 @@ namespace System.Management.Automation.Remoting
///
- /// This might be needed only for ServerCommandTransportManager case
- /// where the command is run in the same thread that runs ProcessRawData
+ /// This might be needed only for ServerCommandTransportManager case
+ /// where the command is run in the same thread that runs ProcessRawData
/// (to avoid thread context switch). By default this class supports
/// only one thread in ProcessRawData.
///
@@ -802,8 +802,8 @@ namespace System.Management.Automation.Remoting
///
/// Process data coming from the transport. This method analyses the data
- /// and if an object can be created, it creates one and calls the
- /// with the deserialized object. This method
+ /// and if an object can be created, it creates one and calls the
+ /// with the deserialized object. This method
/// does not assume all fragments to be available. So if not enough fragments are
/// available it will simply return..
///
@@ -822,10 +822,10 @@ namespace System.Management.Automation.Remoting
///
/// 1. Fragment Ids not in sequence
/// 2. Object Ids does not match
- /// 3. The current deserialized object size of the received data exceeded
+ /// 3. The current deserialized object size of the received data exceeded
/// allowed maximum object size. The current deserialized object size is {0}.
/// Allowed maximum object size is {1}.
- /// 4.The total data received from the remote machine exceeded allowed maximum.
+ /// 4.The total data received from the remote machine exceeded allowed maximum.
/// The total data received from remote machine is {0}. Allowed maximum is {1}.
///
///
diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs
index cb6ebed42f..5145ee0d52 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/WSManNativeAPI.cs
@@ -36,38 +36,38 @@ namespace System.Management.Automation.Remoting.Client
///
/// The WinRM service cannot process the request because the request needs to be sent
/// to a different machine.
- /// Use the redirect information to send the request to a new machine.
+ /// Use the redirect information to send the request to a new machine.
/// 0x8033819B from sdk\inc\wsmerror.h
///
internal const int ERROR_WSMAN_REDIRECT_REQUESTED = -2144108135;
///
/// The WS-Management service cannot process the request. The resource URI is missing or
- /// it has an incorrect format. Check the documentation or use the following command for
+ /// it has an incorrect format. Check the documentation or use the following command for
/// information on how to construct a resource URI: "winrm help uris".
///
internal const int ERROR_WSMAN_INVALID_RESOURCE_URI = -2144108485;
///
/// The WinRM service cannon re-connect the session because the session is no longer
- /// associated with this transportmanager object.
+ /// associated with this transportmanager object.
///
internal const int ERROR_WSMAN_INUSE_CANNOT_RECONNECT = -2144108083;
///
- /// Sending data to a remote command failed with the following error message: The client
- /// cannot connect to the destination specified in the request. Verify that the service on
- /// the destination is running and is accepting requests. Consult the logs and documentation
- /// for the WS-Management service running on the destination, most commonly IIS or WinRM.
- /// If the destination is the WinRM service, run the following command on the destination to
+ /// Sending data to a remote command failed with the following error message: The client
+ /// cannot connect to the destination specified in the request. Verify that the service on
+ /// the destination is running and is accepting requests. Consult the logs and documentation
+ /// for the WS-Management service running on the destination, most commonly IIS or WinRM.
+ /// If the destination is the WinRM service, run the following command on the destination to
/// analyze and configure the WinRM service:
///
internal const int ERROR_WSMAN_SENDDATA_CANNOT_CONNECT = -2144108526;
///
- /// Sending data to a remote command failed with the following error message: The WinRM client
- /// cannot complete the operation within the time specified. Check if the machine name is valid
- /// and is reachable over the network and firewall exception for Windows Remote Management service
+ /// Sending data to a remote command failed with the following error message: The WinRM client
+ /// cannot complete the operation within the time specified. Check if the machine name is valid
+ /// and is reachable over the network and firewall exception for Windows Remote Management service
/// is enabled.
///
internal const int ERROR_WSMAN_SENDDATA_CANNOT_COMPLETE = -2144108250;
@@ -246,11 +246,11 @@ namespace System.Management.Automation.Remoting.Client
///
WSMAN_FLAG_AUTH_BASIC = 0x8,
///
- /// Use kerberos authentication for a remote operation
+ /// Use kerberos authentication for a remote operation
///
WSMAN_FLAG_AUTH_KERBEROS = 0x10,
///
- /// Use client certificate authentication for a remote operation
+ /// Use client certificate authentication for a remote operation
///
WSMAN_FLAG_AUTH_CLIENT_CERTIFICATE = 0x20,
///
@@ -283,23 +283,23 @@ namespace System.Management.Automation.Remoting.Client
}
///
- /// Used to supply _WSMAN_USERNAME_PASSWORD_CREDS type credentials for
+ /// Used to supply _WSMAN_USERNAME_PASSWORD_CREDS type credentials for
/// WSManCreateSession.
///
internal class WSManUserNameAuthenticationCredentials : BaseWSManAuthenticationCredentials
{
///
- ///
+ ///
///
[StructLayout(LayoutKind.Sequential)]
internal struct WSManUserNameCredentialStruct
{
///
- ///
+ ///
///
internal WSManAuthenticationMechanism authenticationMechanism;
///
- ///
+ ///
///
[MarshalAs(UnmanagedType.LPWStr)]
internal string userName;
@@ -335,9 +335,9 @@ namespace System.Management.Automation.Remoting.Client
/// password.
///
///
- /// can be 0 (the user did not specify an authentication mechanism,
+ /// can be 0 (the user did not specify an authentication mechanism,
/// WSMan client will choose between Kerberos and Negotiate only);
- /// if it is not 0, it must be one of the values from
+ /// if it is not 0, it must be one of the values from
/// WSManAuthenticationMechanism enumeration.
///
internal WSManUserNameAuthenticationCredentials(string name,
@@ -364,7 +364,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Marshalled Data
- ///
+ ///
///
public override MarshalledObject GetMarshalledObject()
{
@@ -388,22 +388,22 @@ namespace System.Management.Automation.Remoting.Client
}
///
- ///
+ ///
///
internal class WSManCertificateThumbprintCredentials : BaseWSManAuthenticationCredentials
{
///
- ///
+ ///
///
[StructLayout(LayoutKind.Sequential)]
private struct WSManThumbprintStruct
{
///
- ///
+ ///
///
internal WSManAuthenticationMechanism authenticationMechanism;
///
- ///
+ ///
///
[MarshalAs(UnmanagedType.LPWStr)]
internal string certificateThumbprint;
@@ -516,7 +516,7 @@ namespace System.Management.Automation.Remoting.Client
///
WSMAN_OPTION_ENABLE_SPN_SERVER_PORT = 22,
///
- /// int - Used when not talking to the main OS on a machine but, for instance, a BMC
+ /// int - Used when not talking to the main OS on a machine but, for instance, a BMC
/// 1 Identify this machine to the server by including the MachineID header; 0 - default
///
WSMAN_OPTION_MACHINE_ID = 23,
@@ -541,24 +541,24 @@ namespace System.Management.Automation.Remoting.Client
#region Other
///
- /// int - max SOAP envelope size (kb) - default 150kb from winrm config
- /// (see 'winrm help config' for more details); the client SOAP packet size cannot surpass
- /// this value; this value will be also sent to the server in the SOAP request as a
- /// MaxEnvelopeSize header; the server will use min(MaxEnvelopeSizeKb from server configuration,
+ /// int - max SOAP envelope size (kb) - default 150kb from winrm config
+ /// (see 'winrm help config' for more details); the client SOAP packet size cannot surpass
+ /// this value; this value will be also sent to the server in the SOAP request as a
+ /// MaxEnvelopeSize header; the server will use min(MaxEnvelopeSizeKb from server configuration,
/// MaxEnvelopeSize value from SOAP).
///
WSMAN_OPTION_MAX_ENVELOPE_SIZE_KB = 28,
///
- /// int (read only) - max data size (kb) provided by the client, guaranteed by
- /// the winrm client implementation to fit into one SOAP packet; this is an
- /// approximate value calculated based on the WSMAN_OPTION_MAX_ENVELOPE_SIZE_KB (default 150kb),
- /// the maximum possible size of the SOAP headers and the overhead of the base64
- /// encoding which is specific to WSManSendShellInput API; this option can be used
+ /// int (read only) - max data size (kb) provided by the client, guaranteed by
+ /// the winrm client implementation to fit into one SOAP packet; this is an
+ /// approximate value calculated based on the WSMAN_OPTION_MAX_ENVELOPE_SIZE_KB (default 150kb),
+ /// the maximum possible size of the SOAP headers and the overhead of the base64
+ /// encoding which is specific to WSManSendShellInput API; this option can be used
/// with WSManGetSessionOptionAsDword API; it cannot be used with WSManSetSessionOption API.
///
WSMAN_OPTION_SHELL_MAX_DATA_SIZE_PER_MESSAGE_KB = 29,
///
- /// string -
+ /// string -
///
WSMAN_OPTION_REDIRECT_LOCATION = 30,
///
@@ -570,7 +570,7 @@ namespace System.Management.Automation.Remoting.Client
///
WSMAN_OPTION_ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALS = 32,
///
- /// DWORD - When using just a machine name in the connection string use an SSL connection.
+ /// DWORD - When using just a machine name in the connection string use an SSL connection.
/// 0 means HTTP, 1 means HTTPS. Default is 0.
///
WSMAN_OPTION_USE_SSL = 33
@@ -648,7 +648,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Constructs a WSMAN_DATA_BINARY object. This is used to send
- /// data to remote end.
+ /// data to remote end.
///
///
internal WSManData_ManToUn(byte[] data)
@@ -692,8 +692,8 @@ namespace System.Management.Automation.Remoting.Client
///
/// Finalizer
- ///
- /// Note: Do not depend on the finalizer! This object should be
+ ///
+ /// Note: Do not depend on the finalizer! This object should be
/// properly disposed of when no longer needed via a direct call
/// to Dispose().
///
@@ -903,7 +903,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// This struct is created to honor struct boundaries between
- /// x86,amd64 and ia64. WSMan defines a generic WSMAN_DATA
+ /// x86,amd64 and ia64. WSMan defines a generic WSMAN_DATA
/// structure that addresses DWORD, binary, text data.
///
[StructLayout(LayoutKind.Sequential)]
@@ -1126,7 +1126,7 @@ namespace System.Management.Automation.Remoting.Client
}
///
- ///
+ ///
///
public void Dispose()
{
@@ -1209,7 +1209,7 @@ namespace System.Management.Automation.Remoting.Client
}
///
- ///
+ ///
///
internal struct WSManCommandArgSet : IDisposable
{
@@ -1565,7 +1565,7 @@ namespace System.Management.Automation.Remoting.Client
private MarshalledObject _data;
///
- ///
+ ///
///
///
///
@@ -1608,21 +1608,21 @@ namespace System.Management.Automation.Remoting.Client
#region WSMan Shell Async
///
- /// flags used by all callback functions: WSMAN_COMPLETION_FUNCTION,
+ /// flags used by all callback functions: WSMAN_COMPLETION_FUNCTION,
/// WSMAN_SUBSCRIPTION_COMPLETION_FUNCTION and WSMAN_SHELL_COMPLETION_FUNCTION
///
internal enum WSManCallbackFlags
{
//
// Flag that marks the end of any single step of multistep operation
- //
+ //
WSMAN_FLAG_CALLBACK_END_OF_OPERATION = 0x1,
//
// WSMAN_SHELL_COMPLETION_FUNCTION API specific flags
- // end of a particular stream; it is used for optimization purposes if the shell
- // knows that no more output will occur for this stream; in some conditions this
- // cannot be determined.
+ // end of a particular stream; it is used for optimization purposes if the shell
+ // knows that no more output will occur for this stream; in some conditions this
+ // cannot be determined.
//
WSMAN_FLAG_CALLBACK_END_OF_STREAM = 0x8,
@@ -1669,16 +1669,16 @@ namespace System.Management.Automation.Remoting.Client
///
/// Completion function used by all Shell functions. Returns error->code != 0 upon error;
- /// use error->errorDetail structure for extended error informations; the callback is
- /// called for each shell operation; after a WSManReceiveShellOutput operation is initiated,
- /// the callback is called for each output stream element or if error; the underlying
- /// implementation handles the polling of stream data from the command or shell.
+ /// use error->errorDetail structure for extended error informations; the callback is
+ /// called for each shell operation; after a WSManReceiveShellOutput operation is initiated,
+ /// the callback is called for each output stream element or if error; the underlying
+ /// implementation handles the polling of stream data from the command or shell.
/// If WSMAN_COMMAND_STATE_DONE state is received, no more streams will be received from the command,
/// so the command can be closed using WSManCloseShellOperationEx(command).
- /// If error->code != 0, the result is guaranteed to be NULL. The error and result objects are
- /// allocated and owned by the WSMan client stack; they are valid during the callback only; the user
- /// has to synchronously copy the data in the callback. This callback function will use the current
- /// access token, whether it is a process or impersonation token.
+ /// If error->code != 0, the result is guaranteed to be NULL. The error and result objects are
+ /// allocated and owned by the WSMan client stack; they are valid during the callback only; the user
+ /// has to synchronously copy the data in the callback. This callback function will use the current
+ /// access token, whether it is a process or impersonation token.
///
///
/// user supplied operation context.
@@ -1716,7 +1716,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Struct which holds reference to the callback(delegate) passed to WSMan
/// API
- ///
+ ///
internal struct WSManShellAsyncCallback
{
// GC handle which prevents garbage collector from collecting this delegate.
@@ -1783,7 +1783,7 @@ namespace System.Management.Automation.Remoting.Client
{
internal int errorCode;
///
- /// extended error description from the fault;
+ /// extended error description from the fault;
///
internal string errorDetail;
///
@@ -2322,9 +2322,9 @@ namespace System.Management.Automation.Remoting.Client
[In, Out] ref IntPtr wsManAPIHandle);
///
- /// This API deinitializes the Winrm client stack; all operations will
+ /// This API deinitializes the Winrm client stack; all operations will
/// finish before this API will return; this is a sync call;
- /// it is highly recommended that all operations are explicitly cancelled
+ /// it is highly recommended that all operations are explicitly cancelled
/// and all sessions are closed before calling this API
/// Returns non zero error code upon failure.
///
@@ -2345,7 +2345,7 @@ namespace System.Management.Automation.Remoting.Client
///
///
/// can be null.
- ///
+ ///
///
///
///
@@ -2359,9 +2359,9 @@ namespace System.Management.Automation.Remoting.Client
[In, Out] ref IntPtr wsManSessionHandle);
///
- /// Frees memory of session and closes all related operations before returning;
- /// this is sync call it is recommended that all pending operations are either
- /// completed or cancelled before calling this API. Returns a non zero error
+ /// Frees memory of session and closes all related operations before returning;
+ /// this is sync call it is recommended that all pending operations are either
+ /// completed or cancelled before calling this API. Returns a non zero error
/// code upon failure
///
///
@@ -2524,7 +2524,7 @@ namespace System.Management.Automation.Remoting.Client
[In, Out] ref IntPtr shellOperationHandle);
///
- ///
+ ///
///
///
///
@@ -2546,7 +2546,7 @@ namespace System.Management.Automation.Remoting.Client
///
- ///
+ ///
///
///
///
@@ -2559,7 +2559,7 @@ namespace System.Management.Automation.Remoting.Client
IntPtr asyncCallback);
///
- ///
+ ///
///
///
///
@@ -2698,11 +2698,11 @@ namespace System.Management.Automation.Remoting.Client
[In, Out] ref IntPtr sendOperationHandle);
///
- /// Closes a shell or a command; if the callback associated with the operation
- /// is pending and have not completed when WSManCloseShellOperationEx is called,
+ /// Closes a shell or a command; if the callback associated with the operation
+ /// is pending and have not completed when WSManCloseShellOperationEx is called,
/// the function waits for the callback to finish; If the operation was not finished,
- /// the operation is cancelled and the operation callback is called with
- /// WSMAN_ERROR_OPERATION_ABORTED error; then the WSManCloseShellOperationEx callback
+ /// the operation is cancelled and the operation callback is called with
+ /// WSMAN_ERROR_OPERATION_ABORTED error; then the WSManCloseShellOperationEx callback
/// is called with WSMAN_FLAG_CALLBACK_END_OF_OPERATION flag as result of this operation
///
///
@@ -2718,7 +2718,7 @@ namespace System.Management.Automation.Remoting.Client
IntPtr asyncCallback);
///
- /// Closes a command (signals the termination of a command); the WSManCloseCommand callback
+ /// Closes a command (signals the termination of a command); the WSManCloseCommand callback
/// is called with WSMAN_FLAG_CALLBACK_END_OF_OPERATION flag as result of this operation
///
///
@@ -2735,7 +2735,7 @@ namespace System.Management.Automation.Remoting.Client
///
- /// Sends a signal. If is null, then the signal will
+ /// Sends a signal. If is null, then the signal will
/// be sent to shell.
///
///
@@ -2753,11 +2753,11 @@ namespace System.Management.Automation.Remoting.Client
[In, Out] ref IntPtr signalOperationHandle);
///
- /// Closes an asynchronous operation; if the callback associated with the operation
- /// is pending and have not completed when WSManCloseOperation is called, then
+ /// Closes an asynchronous operation; if the callback associated with the operation
+ /// is pending and have not completed when WSManCloseOperation is called, then
/// the function marks the operation for deletion and returns; If the callback was not called,
- /// the operation is cancelled and the operation callback is called with
- /// WSMAN_ERROR_OPERATION_ABORTED error; the operation handle is freed in all cases
+ /// the operation is cancelled and the operation callback is called with
+ /// WSMAN_ERROR_OPERATION_ABORTED error; the operation handle is freed in all cases
/// after the callback returns.
///
///
@@ -2842,22 +2842,22 @@ namespace System.Management.Automation.Remoting.Client
/// components.
///
///
- /// Represents the size of the output message buffer in characters, including the NULL terminator.
- /// If 0, then the "message" parameter must be NULL; in this case the function will return
- /// ERROR_INSUFFICIENT_BUFFER error and the "messageLengthUsed" parameter will be set to the number
+ /// Represents the size of the output message buffer in characters, including the NULL terminator.
+ /// If 0, then the "message" parameter must be NULL; in this case the function will return
+ /// ERROR_INSUFFICIENT_BUFFER error and the "messageLengthUsed" parameter will be set to the number
/// of characters needed, including NULL terminator.
///
///
/// Represents the output buffer to store the message in. It must be allocated/deallocated by the client.
- /// The buffer must be big enough to store the message plus the NULL terminator otherwise an
+ /// The buffer must be big enough to store the message plus the NULL terminator otherwise an
/// ERROR_INSUFFICIENT_BUFFER error will be returned and the "messageLengthUsed" parameter will be set
- /// to the number of characters needed, including NULL terminator. If NULL, then the "messageLength" parameter
- /// must be NULL; in this case the function will return ERROR_INSUFFICIENT_BUFFER error and the "messageLengthUsed"
- /// parameter will be set to the number of characters needed, including NULL terminator.
+ /// to the number of characters needed, including NULL terminator. If NULL, then the "messageLength" parameter
+ /// must be NULL; in this case the function will return ERROR_INSUFFICIENT_BUFFER error and the "messageLengthUsed"
+ /// parameter will be set to the number of characters needed, including NULL terminator.
///
///
- /// Represents the effective number of characters written to the output buffer, including the NULL terminator.
- /// It cannot be NULL. If both "messageLength" and "message" parameters are 0, the function will return ERROR_INSUFFICIENT_BUFFER
+ /// Represents the effective number of characters written to the output buffer, including the NULL terminator.
+ /// It cannot be NULL. If both "messageLength" and "message" parameters are 0, the function will return ERROR_INSUFFICIENT_BUFFER
/// and "messageLengthUsed" parameter will be set to the number of characters needed, including NULL terminator
///
[DllImport(WSManNativeApi.WSManClientApiDll, SetLastError = false, CharSet = CharSet.Unicode)]
@@ -2874,7 +2874,7 @@ namespace System.Management.Automation.Remoting.Client
#region DllImports PluginAPI
///
- /// Gets operational information for items such as time-outs and data restrictions that
+ /// Gets operational information for items such as time-outs and data restrictions that
/// are associated with the operation.
///
/// Specifies the resource URI, options, locale, shutdown flag, and handle for the request.
@@ -2889,7 +2889,7 @@ namespace System.Management.Automation.Remoting.Client
//[In, Out] ref IntPtr data);
///
- /// Reports the completion of an operation by all operation entry points except for the
+ /// Reports the completion of an operation by all operation entry points except for the
/// WSManPluginStartup and WSManPluginShutdown methods.
///
/// Specifies the resource URI, options, locale, shutdown flag, and handle for the request.
@@ -2912,7 +2912,7 @@ namespace System.Management.Automation.Remoting.Client
///
WSMAN_FLAG_RECEIVE_RESULT_NO_MORE_DATA = 1,
///
- /// Send the data as soon as possible. Normally data is held onto in
+ /// Send the data as soon as possible. Normally data is held onto in
/// order to maximise the size of the response packet. This should
/// only be used if a request/response style of data is needed between
/// the send and receive data streams.
@@ -2920,8 +2920,8 @@ namespace System.Management.Automation.Remoting.Client
WSMAN_FLAG_RECEIVE_FLUSH = 2,
///
/// Data reported is at a boundary. Plugins usually serialize and fragment
- /// output data objects and push them along the receive byte stream.
- /// If the current data chunk being reported is an end fragment of the
+ /// output data objects and push them along the receive byte stream.
+ /// If the current data chunk being reported is an end fragment of the
/// data object current processed, plugins would set this flag.
///
WSMAN_FLAG_RECEIVE_RESULT_DATA_BOUNDARY = 4
@@ -2933,8 +2933,8 @@ namespace System.Management.Automation.Remoting.Client
internal const string WSMAN_COMMAND_STATE_RUNNING = WSMAN_SHELL_NAMESPACE + "/CommandState/Running";
///
- /// Reports results for the WSMAN_PLUGIN_RECEIVE plug-in call and is used by most shell
- /// plug-ins that return results. After all of the data is received, the
+ /// Reports results for the WSMAN_PLUGIN_RECEIVE plug-in call and is used by most shell
+ /// plug-ins that return results. After all of the data is received, the
/// WSManPluginOperationComplete method must be called.
///
/// Specifies the resource URI, options, locale, shutdown flag, and handle for the request.
@@ -2954,9 +2954,9 @@ namespace System.Management.Automation.Remoting.Client
int exitCode);
///
- /// Reports shell and command context back to the Windows Remote Management (WinRM)
- /// infrastructure so that further operations can be performed against the shell and/or
- /// command. This method is called only for WSManPluginShell and WSManPluginCommand plug-in
+ /// Reports shell and command context back to the Windows Remote Management (WinRM)
+ /// infrastructure so that further operations can be performed against the shell and/or
+ /// command. This method is called only for WSManPluginShell and WSManPluginCommand plug-in
/// entry points.
///
/// Specifies the resource URI, options, locale, shutdown flag, and handle for the request.
@@ -2970,7 +2970,7 @@ namespace System.Management.Automation.Remoting.Client
IntPtr context);
#if UNIX
///
- /// Registers the shutdown callback.
+ /// Registers the shutdown callback.
///
/// Specifies the resource URI, options, locale, shutdown flag, and handle for the request.
/// Callback to be executed on shutdown
diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs
index f4eda63d06..1107219315 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPlugin.cs
@@ -3,7 +3,7 @@
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 2007.
//
-// Contents: Entry points for managed PowerShell plugin worker used to
+// Contents: Entry points for managed PowerShell plugin worker used to
// host powershell in a WSMan service.
// ----------------------------------------------------------------------
@@ -86,7 +86,7 @@ namespace System.Management.Automation.Remoting
///
/// class that holds plugin + shell context information used to handle
/// shutdown notifications.
- ///
+ ///
/// Explicit destruction and release of the IntPtrs is not required because
/// their lifetime is managed by WinRM.
///
@@ -101,7 +101,7 @@ namespace System.Management.Automation.Remoting
internal bool isReceiveOperation;
internal bool isShuttingDown;
- #endregion
+ #endregion
#region Constructors
@@ -122,7 +122,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// Represents the logical grouping of all actions required to handle the
+ /// Represents the logical grouping of all actions required to handle the
/// lifecycle of shell sessions through the WinRM plugin.
///
internal class WSManPluginInstance
@@ -989,7 +989,7 @@ namespace System.Management.Automation.Remoting
}
catch (System.Security.SecurityException)
{
- // The caller does not have the correct permissions.
+ // The caller does not have the correct permissions.
// -or-
// A Win32 error occurred.
}
@@ -1002,7 +1002,7 @@ namespace System.Management.Automation.Remoting
private const string WSManRunAsClientTokenName = "__WINRM_RUNAS_CLIENT_TOKEN__";
///
- /// Helper method to retrieve the WSMan client token from the __WINRM_RUNAS_CLIENT_TOKEN__
+ /// Helper method to retrieve the WSMan client token from the __WINRM_RUNAS_CLIENT_TOKEN__
/// environment variable, which is set in the WSMan layer for Virtual or RunAs accounts.
///
/// ClientToken IntPtr
@@ -1413,7 +1413,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// extract message from exception (if any) and report operation complete with it to WSMan
+ /// extract message from exception (if any) and report operation complete with it to WSMan
///
///
///
@@ -1462,7 +1462,7 @@ namespace System.Management.Automation.Remoting
///
/// Sets thread properties like UI Culture, Culture etc..This is needed as code is transitioning from
- /// unmanaged heap to managed heap...and thread properties are not set correctly during this
+ /// unmanaged heap to managed heap...and thread properties are not set correctly during this
/// transition.
/// Currently WSMan provider supplies only UI Culture related data..so only UI Culture is set.
///
diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs
index b0b890477d..9e5ea7e9c6 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginFacade.cs
@@ -3,7 +3,7 @@
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 2007.
//
-// Contents: Entry points for managed PowerShell plugin worker used to
+// Contents: Entry points for managed PowerShell plugin worker used to
// host powershell in a WSMan service.
// ----------------------------------------------------------------------
@@ -27,7 +27,7 @@ namespace System.Management.Automation.Remoting
// pointers (otherwise we end up storing the delegate into a GCRoot).
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -44,7 +44,7 @@ namespace System.Management.Automation.Remoting
IntPtr inboundShellInformation);
///
- ///
+ ///
///
/// PVOID
/// PVOID
@@ -53,7 +53,7 @@ namespace System.Management.Automation.Remoting
IntPtr shellContext);
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -70,7 +70,7 @@ namespace System.Management.Automation.Remoting
IntPtr inboundConnectInformation);
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -94,7 +94,7 @@ namespace System.Management.Automation.Remoting
IntPtr shutdownContext);
///
- ///
+ ///
///
/// PVOID
/// PVOID
@@ -105,7 +105,7 @@ namespace System.Management.Automation.Remoting
IntPtr commandContext);
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -124,7 +124,7 @@ namespace System.Management.Automation.Remoting
IntPtr inboundData);
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -141,7 +141,7 @@ namespace System.Management.Automation.Remoting
IntPtr streamSet);
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -220,7 +220,7 @@ namespace System.Management.Automation.Remoting
#region IDisposable Methods
///
- /// Internal implementation of Dispose pattern callable by consumers.
+ /// Internal implementation of Dispose pattern callable by consumers.
///
public void Dispose()
{
@@ -229,7 +229,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// Protected implementation of Dispose pattern.
+ /// Protected implementation of Dispose pattern.
///
///
private void Dispose(bool disposing)
@@ -237,17 +237,17 @@ namespace System.Management.Automation.Remoting
if (_disposed)
return;
- // Free any unmanaged objects here.
+ // Free any unmanaged objects here.
this.CleanUpDelegates();
_disposed = true;
}
///
- /// Use C# destructor syntax for finalization code.
- /// This destructor will run only if the Dispose method
- /// does not get called.
- /// It gives your base class the opportunity to finalize.
+ /// Use C# destructor syntax for finalization code.
+ /// This destructor will run only if the Dispose method
+ /// does not get called.
+ /// It gives your base class the opportunity to finalize.
/// Do not provide destructors in types derived from this class.
///
~WSManPluginEntryDelegates()
@@ -258,7 +258,7 @@ namespace System.Management.Automation.Remoting
#endregion IDisposable Methods
///
- /// Creates delegates and populates the managed version of the
+ /// Creates delegates and populates the managed version of the
/// structure that will be passed to unmanaged callers.
///
private void populateDelegates()
@@ -417,7 +417,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// Class containing the public static managed entry functions that are callable from outside
+ /// Class containing the public static managed entry functions that are callable from outside
/// the module.
///
public sealed class WSManPluginManagedEntryWrapper
@@ -488,7 +488,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -521,7 +521,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -566,7 +566,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// PVOID
@@ -579,7 +579,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -625,7 +625,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// PVOID
@@ -640,7 +640,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -675,7 +675,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -708,7 +708,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// PVOID
/// WSMAN_PLUGIN_REQUEST*
@@ -769,18 +769,18 @@ namespace System.Management.Automation.Remoting
///
/// This is a thin wrapper around WSManPluginManagedEntryWrapper.InitPlugin()
/// so that it can be called from native COM code in a non-static context.
- ///
+ ///
/// This was done to get around an FXCop error: AvoidStaticMembersInComVisibleTypes.
///
public sealed class WSManPluginManagedEntryInstanceWrapper : IDisposable
{
#region IDisposable
- // Flag: Has Dispose already been called?
+ // Flag: Has Dispose already been called?
private bool _disposed = false;
///
- /// Internal implementation of Dispose pattern callable by consumers.
+ /// Internal implementation of Dispose pattern callable by consumers.
///
public void Dispose()
{
@@ -789,7 +789,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// Protected implementation of Dispose pattern.
+ /// Protected implementation of Dispose pattern.
///
///
private void Dispose(bool disposing)
@@ -797,17 +797,17 @@ namespace System.Management.Automation.Remoting
if (_disposed)
return;
- // Free any unmanaged objects here.
+ // Free any unmanaged objects here.
_initDelegateHandle.Free();
_disposed = true;
}
///
- /// Use C# destructor syntax for finalization code.
- /// This destructor will run only if the Dispose method
- /// does not get called.
- /// It gives your base class the opportunity to finalize.
+ /// Use C# destructor syntax for finalization code.
+ /// This destructor will run only if the Dispose method
+ /// does not get called.
+ /// It gives your base class the opportunity to finalize.
/// Do not provide destructors in types derived from this class.
///
~WSManPluginManagedEntryInstanceWrapper()
diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs
index 1241b848b3..3a30e708e8 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginShellSession.cs
@@ -3,7 +3,7 @@
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 2007.
//
-// Contents: Entry points for managed PowerShell plugin worker used to
+// Contents: Entry points for managed PowerShell plugin worker used to
// host powershell in a WSMan service.
// ----------------------------------------------------------------------
@@ -50,7 +50,7 @@ namespace System.Management.Automation.Remoting
// the context.
internal event EventHandler SessionClosed;
- // Track whether Dispose has been called.
+ // Track whether Dispose has been called.
private bool _disposed = false;
protected WSManPluginServerSession(
@@ -71,40 +71,40 @@ namespace System.Management.Automation.Remoting
{
// Dispose of unmanaged resources.
Dispose(true);
- // This object will be cleaned up by the Dispose method.
- // Therefore, you should call GC.SuppressFinalize to
- // take this object off the finalization queue
- // and prevent finalization code for this object
+ // This object will be cleaned up by the Dispose method.
+ // Therefore, you should call GC.SuppressFinalize to
+ // take this object off the finalization queue
+ // and prevent finalization code for this object
// from executing a second time.
GC.SuppressFinalize(this);
}
///
- /// Dispose(bool disposing) executes in two distinct scenarios.
- /// If disposing equals true, the method has been called directly
- /// or indirectly by a user's code. Managed and unmanaged resources
- /// can be disposed.
- /// If disposing equals false, the method has been called by the
- /// runtime from inside the finalizer and you should not reference
- /// other objects. Only unmanaged resources can be disposed.
+ /// Dispose(bool disposing) executes in two distinct scenarios.
+ /// If disposing equals true, the method has been called directly
+ /// or indirectly by a user's code. Managed and unmanaged resources
+ /// can be disposed.
+ /// If disposing equals false, the method has been called by the
+ /// runtime from inside the finalizer and you should not reference
+ /// other objects. Only unmanaged resources can be disposed.
///
/// True when called from Dispose(), False when called from Finalize().
protected virtual void Dispose(bool disposing)
{
- // Check to see if Dispose has already been called.
+ // Check to see if Dispose has already been called.
if (!_disposed)
{
- // If disposing equals true, dispose all managed
- // and unmanaged resources.
+ // If disposing equals true, dispose all managed
+ // and unmanaged resources.
if (disposing)
{
// Dispose managed resources.
//Close(false);
}
- // Call the appropriate methods to clean up
- // unmanaged resources here.
- // If disposing is false,
+ // Call the appropriate methods to clean up
+ // unmanaged resources here.
+ // If disposing is false,
// only the following code is executed.
Close(false);
@@ -114,16 +114,16 @@ namespace System.Management.Automation.Remoting
}
///
- /// Use C# destructor syntax for finalization code.
- /// This destructor will run only if the Dispose method
- /// does not get called.
- /// It gives your base class the opportunity to finalize.
+ /// Use C# destructor syntax for finalization code.
+ /// This destructor will run only if the Dispose method
+ /// does not get called.
+ /// It gives your base class the opportunity to finalize.
/// Do not provide destructors in types derived from this class.
///
~WSManPluginServerSession()
{
- // Do not re-create Dispose clean-up code here.
- // Calling Dispose(false) is optimal in terms of
+ // Do not re-create Dispose clean-up code here.
+ // Calling Dispose(false) is optimal in terms of
// readability and maintainability.
Dispose(false);
}
@@ -257,7 +257,7 @@ namespace System.Management.Automation.Remoting
creationRequestDetails.ToString(), creationRequestDetails.ToString());
//RACE TO BE FIXED - As soon as this API is called, WinRM service will send CommandResponse back and Signal is expected anytime
- // If Signal comes and executes before registering the notification handle, cleanup will be messed
+ // If Signal comes and executes before registering the notification handle, cleanup will be messed
result = WSManNativeApi.WSManPluginReportContext(creationRequestDetails.unmanagedHandle, 0, creationRequestDetails.unmanagedHandle);
if (Platform.IsWindows && (WSManPluginConstants.ExitCodeSuccess == result))
{
@@ -312,7 +312,7 @@ namespace System.Management.Automation.Remoting
SessionClosed.SafeInvoke(sender, eventArgs);
}
- // handle transport manager related errors
+ // handle transport manager related errors
internal void HandleTransportError(Object sender, TransportErrorOccuredEventArgs eventArgs)
{
Exception reasonForClose = null;
@@ -354,7 +354,7 @@ namespace System.Management.Automation.Remoting
transportMgr.WSManTransportErrorOccured -=
new EventHandler(this.HandleTransportError);
- // We should not use request details again after so releasing the resource.
+ // We should not use request details again after so releasing the resource.
// Remember not to free this memory as this memory is allocated and owned by WSMan.
creationRequestDetails = null;
// if already disposing..no need to let finalizer thread
@@ -396,7 +396,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
internal class WSManPluginShellSession : WSManPluginServerSession
{
@@ -432,7 +432,7 @@ namespace System.Management.Automation.Remoting
#endregion
///
- /// Main Routine for Connect on a Shell.
+ /// Main Routine for Connect on a Shell.
/// Calls in server remotesessions ExecuteConnect to run the Connect algorithm
/// This call is synchronous. i.e WSManOperationComplete will be called before the routine completes
///
@@ -464,7 +464,7 @@ namespace System.Management.Automation.Remoting
System.Byte[] inputData;
System.Byte[] outputData;
- // Retrieve the string (Base64 encoded)
+ // Retrieve the string (Base64 encoded)
inputData = ServerOperationHelpers.ExtractEncodedXmlElement(
inboundConnectInformation.Text,
WSManNativeApi.PS_CONNECT_XML_TAG);
@@ -767,7 +767,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
internal void Stop(
diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginTransportManager.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginTransportManager.cs
index 68f9ce596f..2d2c2e4e48 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/WSManPluginTransportManager.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/WSManPluginTransportManager.cs
@@ -3,8 +3,8 @@
// Microsoft Windows NT
// Copyright (C) Microsoft Corporation, 2007.
//
-// Contents: Entry points for managed PowerShell plugin worker used to
-// host powershell in a WSMan service.
+// Contents: Entry points for managed PowerShell plugin worker used to
+// host powershell in a WSMan service.
// ----------------------------------------------------------------------
using System.Threading;
@@ -39,7 +39,7 @@ namespace System.Management.Automation.Remoting
// shell context.
private RegisteredWaitHandle _registeredShutDownWaitHandle;
- // event that gets raised when Prepare is called. Respective Session
+ // event that gets raised when Prepare is called. Respective Session
// object can use this callback to ReportContext to client.
public event EventHandler PrepareCalled;
@@ -65,7 +65,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
/// true if the method is called from RegisterWaitForSingleObject
/// callback. This boolean is used to decide whether to UnregisterWait or
@@ -212,7 +212,7 @@ namespace System.Management.Automation.Remoting
if (!_isRequestPending)
{
// Dont send data until we have received request from client.
- // The following blocks the calling thread. The thread is
+ // The following blocks the calling thread. The thread is
// unblocked once a request from client arrives.
_waitHandle.WaitOne();
_isRequestPending = true;
@@ -222,7 +222,7 @@ namespace System.Management.Automation.Remoting
int result = (int)WSManPluginErrorCodes.NoError;
// at this point we have pending request from client. so it is safe
- // to send data to client using WSMan API.
+ // to send data to client using WSMan API.
using (WSManNativeApi.WSManData_ManToUn dataToBeSent = new WSManNativeApi.WSManData_ManToUn(data))
{
lock (_syncObject)
@@ -263,7 +263,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs b/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs
index 1bb69fa1ac..2bf8b842c0 100644
--- a/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs
+++ b/src/System.Management.Automation/engine/remoting/fanin/WSManTransportManager.cs
@@ -5,7 +5,7 @@
/*
* Common file that contains implementation for both server and client transport
* managers based on WSMan protocol.
- *
+ *
*/
using System.Management.Automation.Tracing;
@@ -121,7 +121,7 @@ namespace System.Management.Automation.Remoting.Client
{
PSRemotingTransportException e;
- //For the first two special error conditions, it is remotely possible that the wsmanSessionTM is null when the failures are returned
+ //For the first two special error conditions, it is remotely possible that the wsmanSessionTM is null when the failures are returned
//as part of command TM operations (could be returned because of RC retries under the hood)
//Not worth to handle these cases separately as there are very corner scenarios, but need to make sure wsmanSessionTM is not referenced
@@ -178,10 +178,10 @@ namespace System.Management.Automation.Remoting.Client
}
///
- /// Helper method that escapes powershell parser recognized strings like "@{" from the error message
+ /// Helper method that escapes powershell parser recognized strings like "@{" from the error message
/// string. This is needed to make error messages look authentic. Some WSMan error messages provide a
/// command line to run to fix certain issues. WSMan command line has syntax that allows use of @{}.
- /// PowerShell parser treats them differently..and so when user cut and paste the command line in a
+ /// PowerShell parser treats them differently..and so when user cut and paste the command line in a
/// PowerShell console, it wont work. This escape logic works around the issue.
///
///
@@ -197,13 +197,13 @@ namespace System.Management.Automation.Remoting.Client
string result = errorMessage.Replace("@{", "'@{").Replace("}", "}'");
return result;
- /*
+ /*
* Use this pattern if we need to escape other characters.
- *
+ *
try
{
StringBuilder msgSB = new StringBuilder(errorMessage);
-
+
Collection parserErrors = new Collection();
Collection tokens = PSParser.Tokenize(errorMessage, out parserErrors);
if (parserErrors.Count > 0)
@@ -217,7 +217,7 @@ namespace System.Management.Automation.Remoting.Client
{
PSToken currentToken = tokens[index];
switch(currentToken.Type)
- {
+ {
case PSTokenType.GroupStart:
msgSB.Insert(currentToken.StartColumn - 1, "'", 1);
break;
@@ -233,7 +233,7 @@ namespace System.Management.Automation.Remoting.Client
break;
}
}
-
+
return msgSB.ToString();
}
// ignore possible exceptions manipulating the string.
@@ -277,7 +277,7 @@ namespace System.Management.Automation.Remoting.Client
return defaultFQEID;
}
- #endregion
+ #endregion
}
///
@@ -548,7 +548,7 @@ namespace System.Management.Automation.Remoting.Client
/// send data to the server.
///
///
- /// This is used for logging trace/operational crimson messages. Having this id in the logs
+ /// This is used for logging trace/operational crimson messages. Having this id in the logs
/// helps a user to map which transport is created for which runspace.
///
///
@@ -833,7 +833,7 @@ namespace System.Management.Automation.Remoting.Client
uint uIdleTimeout = (ConnectionInfo.IdleTimeout > 0) ?
(uint)ConnectionInfo.IdleTimeout : UseServerDefaultIdleTimeoutUInt;
- // startup info
+ // startup info
WSManNativeApi.WSManShellDisconnectInfo disconnectInfo = new WSManNativeApi.WSManShellDisconnectInfo(uIdleTimeout);
//Add ETW traces
@@ -936,7 +936,7 @@ namespace System.Management.Automation.Remoting.Client
additionalData = dataToBeSent.ReadOrRegisterCallback(null, out additionalDataType);
if (additionalData != null)
{
- //Negotiation payload does not fit in ConnectShell. bail out.
+ //Negotiation payload does not fit in ConnectShell. bail out.
//Assert for now. should be replaced with raising an exception so upper layers can catch.
Dbg.Assert(false, "Negotiation payload does not fit in ConnectShell");
return;
@@ -1060,7 +1060,7 @@ namespace System.Management.Automation.Remoting.Client
uint uIdleTimeout = (ConnectionInfo.IdleTimeout > 0) ?
(uint)ConnectionInfo.IdleTimeout : UseServerDefaultIdleTimeoutUInt;
- // startup info
+ // startup info
WSManNativeApi.WSManShellStartupInfo_ManToUn startupInfo =
new WSManNativeApi.WSManShellStartupInfo_ManToUn(WSManAPIData.InputStreamSet,
WSManAPIData.OutputStreamSet,
@@ -1241,7 +1241,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Adjusts for any variations in different protocol versions. Following changes are considered
- /// - In V2, default max envelope size is 150KB while in V3 it has been changed to 500KB.
+ /// - In V2, default max envelope size is 150KB while in V3 it has been changed to 500KB.
/// With default configuration remoting from V3 client to V2 server will break as V3 client can send upto 500KB in a single Send packet
/// So if server version is known to be V2, we'll downgrade the max env size to 150KB (V2's default) if the current value is 500KB (V3 default)
///
@@ -1284,7 +1284,7 @@ namespace System.Management.Automation.Remoting.Client
///
/// Used by callers to prepare the session transportmanager for a URI redirection.
/// This must be called only after Create callback (or Error form create) is received.
- /// This will close the internal WSMan Session handle. Callers must catch the close
+ /// This will close the internal WSMan Session handle. Callers must catch the close
/// completed event and call Redirect to perform the redirection.
///
internal override void PrepareForRedirection()
@@ -1390,7 +1390,7 @@ namespace System.Management.Automation.Remoting.Client
connectionStr = string.Format(CultureInfo.InvariantCulture,
"{0}?PSVersion={1}{2}",
// Trimming the last '/' as this will allow WSMan to
- // properly apply URLPrefix.
+ // properly apply URLPrefix.
// Ex: http://localhost?PSVersion=2.0 will be converted
// to http://localhost:/?PSVersion=2.0
// by WSMan
@@ -1522,7 +1522,7 @@ namespace System.Management.Automation.Remoting.Client
_noCompression = !connectionInfo.UseCompression;
_noMachineProfile = connectionInfo.NoMachineProfile;
- // set other WSMan session related defaults
+ // set other WSMan session related defaults
if (isSSLSpecified)
{
// WSMan Port DCR related changes - BUG 542726
@@ -1696,7 +1696,7 @@ namespace System.Management.Automation.Remoting.Client
/// ConnectionStatusEventArgs
internal override void ProcessPrivateData(object privateData)
{
- // Raise the Robust
+ // Raise the Robust
ConnectionStatusEventArgs rcArgs = privateData as ConnectionStatusEventArgs;
if (rcArgs != null)
{
@@ -1747,7 +1747,7 @@ namespace System.Management.Automation.Remoting.Client
internal WSManConnectionInfo ConnectionInfo { get; private set; }
///
- /// Examine the session create error code and if the error is one where a
+ /// Examine the session create error code and if the error is one where a
/// session create/connect retry attempt may be beneficial then do the
/// retry attempt.
///
@@ -1844,7 +1844,7 @@ namespace System.Management.Automation.Remoting.Client
PSOpcode.Connect, PSTask.None, PSKeyword.Transport | PSKeyword.UseAlwaysAnalytic,
sessionTM.RunspacePoolInstanceId.ToString());
- // TODO: 188098 wsManShellOperationHandle should be populated by WSManCreateShellEx,
+ // TODO: 188098 wsManShellOperationHandle should be populated by WSManCreateShellEx,
// but there is a thread timing bug in WSMan layer causing the callback to
// be called before WSManCreateShellEx returns. since we already validated the
// shell context exists, safely assigning the shellOperationHandle to shell transport manager.
@@ -1871,7 +1871,7 @@ namespace System.Management.Automation.Remoting.Client
// Test error code for possible session connection retry.
if (sessionTM.RetrySessionCreation(errorStruct.errorCode))
{
- // If a connection retry is being attempted (on
+ // If a connection retry is being attempted (on
// another thread) then return without processing error.
return;
}
@@ -1892,7 +1892,7 @@ namespace System.Management.Automation.Remoting.Client
//check if the session supports disconnect
sessionTM.SupportsDisconnect = ((flags & (int)WSManNativeApi.WSManCallbackFlags.WSMAN_FLAG_CALLBACK_SHELL_SUPPORTS_DISCONNECT) != 0) ? true : false;
- // openContent is used by redirection ie., while redirecting to
+ // openContent is used by redirection ie., while redirecting to
// a new machine.. this is not needed anymore as the connection
// is successfully established.
if (null != sessionTM._openContent)
@@ -2043,7 +2043,7 @@ namespace System.Management.Automation.Remoting.Client
sessionTM.EnqueueAndStartProcessingThread(null, null,
new CompletionEventArgs(CompletionNotification.DisconnectCompleted));
- //Log ETW traces
+ //Log ETW traces
}
return;
@@ -2233,7 +2233,7 @@ namespace System.Management.Automation.Remoting.Client
// successfully made a connection. Now report this by raising the ConnectCompleted event.
// Microsoft's PS 3.0 Server will return all negotiation related data in one shot in connect Data
// Note that we are not starting to receive data yet. the DSHandlers above will do that when the session
- // gets to an established state.
+ // gets to an established state.
sessionTM.RaiseConnectCompleted();
}
@@ -2287,7 +2287,7 @@ namespace System.Management.Automation.Remoting.Client
{
WSManNativeApi.WSManError errorStruct = WSManNativeApi.WSManError.UnMarshal(error);
- // Ignore operation aborted error. operation aborted is raised by WSMan to
+ // Ignore operation aborted error. operation aborted is raised by WSMan to
// notify operation complete. PowerShell protocol has its own
// way of notifying the same using state change events.
if ((errorStruct.errorCode != 0) && (errorStruct.errorCode != 995))
@@ -2477,7 +2477,7 @@ namespace System.Management.Automation.Remoting.Client
DisposeWSManAPIDataAsync();
- // openContent is used by redirection ie., while redirecting to
+ // openContent is used by redirection ie., while redirecting to
// a new machine and hence this is cleared only when the session
// is disposing.
if (isDisposing && (null != _openContent))
@@ -2497,7 +2497,7 @@ namespace System.Management.Automation.Remoting.Client
{
tracer.WriteLine("Clearing session with session context: {0} Operation Context: {1}", _sessionContextID, _wsManShellOperationHandle);
- // Taking a copy of session handle as we should call WSManCloseSession only once and
+ // Taking a copy of session handle as we should call WSManCloseSession only once and
// clear the original value. This will protect us if Dispose() is called twice.
IntPtr tempWSManSessionHandle = _wsManSessionHandle;
_wsManSessionHandle = IntPtr.Zero;
@@ -2524,8 +2524,8 @@ namespace System.Management.Automation.Remoting.Client
_closeSessionCompleted = null;
}
- // Dispose the create session completed callback here, since it is
- // used for periodic robust connection retry/auto-disconnect
+ // Dispose the create session completed callback here, since it is
+ // used for periodic robust connection retry/auto-disconnect
// notifications while the shell is active.
if (null != _createSessionCallback)
{
@@ -2541,7 +2541,7 @@ namespace System.Management.Automation.Remoting.Client
_connectSessionCallback = null;
}
- // Reset the session context Id to zero so that a new one will be generated for
+ // Reset the session context Id to zero so that a new one will be generated for
// any following redirected session.
_sessionContextID = 0;
}
@@ -2552,7 +2552,7 @@ namespace System.Management.Automation.Remoting.Client
if (tempWSManApiData == null) { return; }
WSManAPIData = null;
- // Dispose and de-initialize the WSManAPIData instance object on separate worker thread to ensure
+ // Dispose and de-initialize the WSManAPIData instance object on separate worker thread to ensure
// it is not run on a WinRM thread (which will fail).
// Note that WSManAPIData.Dispose() method is thread safe.
System.Threading.ThreadPool.QueueUserWorkItem(
@@ -2893,7 +2893,7 @@ namespace System.Management.Automation.Remoting.Client
Dbg.Assert(!isClosed, "object already disposed");
ReceivedDataCollection.PrepareForStreamConnect();
- // Empty the serializedPipeline data that contains PowerShell command information created in the
+ // Empty the serializedPipeline data that contains PowerShell command information created in the
// constructor. We are connecting to an existing command on the server and don't want to send
// information on a new command.
serializedPipeline.Read();
@@ -2934,7 +2934,7 @@ namespace System.Management.Automation.Remoting.Client
}
///
- ///
+ ///
///
///
/// WSManRunShellCommandEx failed.
@@ -3288,7 +3288,7 @@ namespace System.Management.Automation.Remoting.Client
cmdTM._createCmdCompleted = null;
}
- // TODO: 188098 wsManCmdOperationHandle should be populated by WSManRunShellCommandEx,
+ // TODO: 188098 wsManCmdOperationHandle should be populated by WSManRunShellCommandEx,
// but there is a thread timing bug in WSMan layer causing the callback to
// be called before WSManRunShellCommandEx returns. since we already validated the
// cmd context exists, safely assigning the commandOperationHandle to cmd transport manager.
@@ -3522,7 +3522,7 @@ namespace System.Management.Automation.Remoting.Client
// release the resources related to send
cmdTM.ClearReceiveOrSendResources(flags, true);
- // if the transport manager is already closed..ignore the errors and return
+ // if the transport manager is already closed..ignore the errors and return
if (cmdTM.isClosed)
{
tracer.WriteLine("Client Command TM: Transport manager is closed. So returning");
@@ -3538,7 +3538,7 @@ namespace System.Management.Automation.Remoting.Client
if (IntPtr.Zero != error)
{
WSManNativeApi.WSManError errorStruct = WSManNativeApi.WSManError.UnMarshal(error);
- // Ignore Command aborted error. Command aborted is raised by WSMan to
+ // Ignore Command aborted error. Command aborted is raised by WSMan to
// notify command operation complete. PowerShell protocol has its own
// way of notifying the same using state change events.
if ((errorStruct.errorCode != 0) && (errorStruct.errorCode != 995))
@@ -3598,7 +3598,7 @@ namespace System.Management.Automation.Remoting.Client
// release the resources related to receive
cmdTM.ClearReceiveOrSendResources(flags, false);
- // if the transport manager is already closed..ignore the errors and return
+ // if the transport manager is already closed..ignore the errors and return
if (cmdTM.isClosed)
{
tracer.WriteLine("Client Command TM: Transport manager is closed. So returning");
@@ -3697,7 +3697,7 @@ namespace System.Management.Automation.Remoting.Client
}
}
- // The command may have been disconnected before all input was read or
+ // The command may have been disconnected before all input was read or
// the returned command data started to be received.
cmdTM._shouldStartReceivingData = true;
cmdTM.SendOneItem();
@@ -3756,7 +3756,7 @@ namespace System.Management.Automation.Remoting.Client
cmdTM._signalCmdCompleted = null;
}
- // if the transport manager is already closed..ignore the errors and return
+ // if the transport manager is already closed..ignore the errors and return
if (cmdTM.isClosed)
{
tracer.WriteLine("Client Command TM: Transport manager is closed. So returning");
diff --git a/src/System.Management.Automation/engine/remoting/server/OutOfProcServerMediator.cs b/src/System.Management.Automation/engine/remoting/server/OutOfProcServerMediator.cs
index 970e2b445b..b42186c00e 100644
--- a/src/System.Management.Automation/engine/remoting/server/OutOfProcServerMediator.cs
+++ b/src/System.Management.Automation/engine/remoting/server/OutOfProcServerMediator.cs
@@ -69,7 +69,7 @@ namespace System.Management.Automation.Remoting.Server
{
try
{
-#if !CORECLR
+#if !CORECLR
// CurrentUICulture is not available in Thread Class in CSS
// WinBlue: 621775. Thread culture is not properly set
// for local background jobs causing experience differences
@@ -349,7 +349,7 @@ namespace System.Management.Automation.Remoting.Server
RemotingErrorIdStrings.IPCUnknownElementReceived, string.Empty);
}
- // process data in a thread pool thread..this way Runspace, Command
+ // process data in a thread pool thread..this way Runspace, Command
// data can be processed concurrently.
#if CORECLR
ThreadPool.QueueUserWorkItem(new WaitCallback(ProcessingThreadStart), data);
@@ -427,8 +427,8 @@ namespace System.Management.Automation.Remoting.Server
#region Constructors
///
- /// The mediator will take actions from the StdIn stream and responds to them.
- /// It will replace StdIn,StdOut and StdErr stream with TextWriter.Null's. This is
+ /// The mediator will take actions from the StdIn stream and responds to them.
+ /// It will replace StdIn,StdOut and StdErr stream with TextWriter.Null's. This is
/// to make sure these streams are totally used by our Mediator.
///
private OutOfProcessMediator() : base(true)
@@ -437,20 +437,20 @@ namespace System.Management.Automation.Remoting.Server
// We don't use the provided Console.In TextReader because it can have
// an incorrect encoding, e.g., Hyper-V Container console where the
// TextReader has incorrect default console encoding instead of the actual
- // stream encoding. This way the stream encoding is determined by the
+ // stream encoding. This way the stream encoding is determined by the
// stream BOM as needed.
originalStdIn = new StreamReader(Console.OpenStandardInput(), true);
- // replacing StdIn with Null so that no other app messes with the
+ // replacing StdIn with Null so that no other app messes with the
// original stream.
Console.SetIn(TextReader.Null);
- // replacing StdOut with Null so that no other app messes with the
+ // replacing StdOut with Null so that no other app messes with the
// original stream
originalStdOut = new OutOfProcessTextWriter(Console.Out);
Console.SetOut(TextWriter.Null);
- // replacing StdErr with Null so that no other app messes with the
+ // replacing StdErr with Null so that no other app messes with the
// original stream
originalStdErr = new OutOfProcessTextWriter(Console.Error);
Console.SetError(TextWriter.Null);
@@ -525,7 +525,7 @@ namespace System.Management.Automation.Remoting.Server
#region Static Methods
///
- ///
+ ///
///
///
internal static void Run(string initialCommand)
@@ -712,7 +712,7 @@ namespace System.Management.Automation.Remoting.Server
s_instance = new HyperVSocketMediator();
}
-#if !CORECLR
+#if !CORECLR
// AppDomain is not available in CoreCLR
AppDomain.CurrentDomain.UnhandledException += new UnhandledExceptionEventHandler(AppDomainUnhandledException);
#endif
diff --git a/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs b/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs
index e7b24037c3..4500080b30 100644
--- a/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs
+++ b/src/System.Management.Automation/engine/remoting/server/ServerMethodExecutor.cs
@@ -101,7 +101,7 @@ namespace System.Management.Automation.Remoting
RemoteDataObject dataToBeSent = RemoteDataObject.CreateFrom(RemotingDestination.Client,
_remoteHostCallDataType, _clientRunspacePoolId, _clientPowerShellId,
remoteHostCall.Encode());
- // flush is not used here..since this is a void method and server host
+ // flush is not used here..since this is a void method and server host
// does not expect anything from client..so let the transport manager buffer
// and send as much data as possible.
_transportManager.SendDataToClient(dataToBeSent, false);
diff --git a/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs
index af99a000d1..a21cea9711 100644
--- a/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs
+++ b/src/System.Management.Automation/engine/remoting/server/ServerPowerShellDriver.cs
@@ -33,7 +33,7 @@ namespace System.Management.Automation
// information
private object _syncObject = new object(); // sync object for synchronizing sending
// data to client
- private bool _noInput; // there is no input when this driver
+ private bool _noInput; // there is no input when this driver
// was created
private bool _addToHistory;
private ServerRemoteHost _remoteHost; // the server remote host instance
@@ -57,7 +57,7 @@ namespace System.Management.Automation
/// whether there is input for this powershell
/// the client powershell id
/// the client runspacepool id
- /// runspace pool driver
+ /// runspace pool driver
/// which is creating this powershell driver
/// apartment state for this powershell
/// host info using which the host for
@@ -87,8 +87,8 @@ namespace System.Management.Automation
/// whether there is input for this powershell
/// the client powershell id
/// the client runspacepool id
- /// runspace pool driver
- /// which is creating this powershell driver
+ /// runspace pool driver
+ /// which is creating this powershell driver
/// host info using which the host for
/// this powershell will be constructed
/// serialization options for the streams in this powershell
@@ -118,8 +118,8 @@ namespace System.Management.Automation
/// whether there is input for this powershell
/// the client powershell id
/// the client runspacepool id
- /// runspace pool driver
- /// which is creating this powershell driver
+ /// runspace pool driver
+ /// which is creating this powershell driver
/// host info using which the host for
/// this powershell will be constructed
/// serialization options for the streams in this powershell
@@ -132,7 +132,7 @@ namespace System.Management.Automation
///
///
/// If not null, this is used as another source of output sent to the client.
- ///
+ ///
internal ServerPowerShellDriver(PowerShell powershell, PowerShell extraPowerShell, bool noInput, Guid clientPowerShellId,
Guid clientRunspacePoolId, ServerRunspacePoolDriver runspacePoolDriver,
HostInfo hostInfo, RemoteStreamOptions streamOptions,
@@ -146,7 +146,7 @@ namespace System.Management.Automation
/// whether there is input for this powershell
/// the client powershell id
/// the client runspacepool id
- /// runspace pool driver
+ /// runspace pool driver
/// which is creating this powershell driver
/// apartment state for this powershell
/// host info using which the host for
@@ -256,7 +256,7 @@ namespace System.Management.Automation
internal PowerShell LocalPowerShell { get; }
///
- /// Instance id by which this powershell driver is
+ /// Instance id by which this powershell driver is
/// identified. This is the same as the id of the
/// powershell on the client side
///
@@ -269,9 +269,9 @@ namespace System.Management.Automation
///
/// Id of the runspace pool driver which created
- /// this object. This is the same as the id of
+ /// this object. This is the same as the id of
/// the runspace pool at the client side which
- /// is associated with the powershell on the
+ /// is associated with the powershell on the
/// client side
///
internal Guid RunspacePoolId { get; }
@@ -291,13 +291,13 @@ namespace System.Management.Automation
}
PSInvocationSettings settings = new PSInvocationSettings();
-#if !CORECLR // No ApartmentState In CoreCLR
+#if !CORECLR // No ApartmentState In CoreCLR
settings.ApartmentState = apartmentState;
#endif
settings.Host = _remoteHost;
// Flow the impersonation policy to pipeline execution thread
- // only if the current thread is impersonated (Delegation is
+ // only if the current thread is impersonated (Delegation is
// also a kind of impersonation).
if (Platform.IsWindows)
{
@@ -480,11 +480,11 @@ namespace System.Management.Automation
// If completed successfully then allow extra commands to run.
if (state == PSInvocationState.Completed) { return; }
- // For failed or stopped state, extra commands cannot run and
+ // For failed or stopped state, extra commands cannot run and
// we allow this command invocation to finish.
}
- // send the remaining data before sending in
+ // send the remaining data before sending in
// state information. This is required because
// the client side runspace pool will remove
// the association with the client side powershell
@@ -600,7 +600,7 @@ namespace System.Management.Automation
if ((indexIntoDataSent == 0) && (!_datasent[indexIntoDataSent]))
{
ProgressRecord data = LocalPowerShell.Streams.Progress[index];
- // once the debug message is sent, it is removed so that
+ // once the debug message is sent, it is removed so that
// the same is not sent again by SendRemainingData() method
LocalPowerShell.Streams.Progress.RemoveAt(index);
@@ -625,7 +625,7 @@ namespace System.Management.Automation
if ((indexIntoDataSent == 0) && (!_datasent[indexIntoDataSent]))
{
WarningRecord data = LocalPowerShell.Streams.Warning[index];
- // once the debug message is sent, it is removed so that
+ // once the debug message is sent, it is removed so that
// the same is not sent again by SendRemainingData() method
LocalPowerShell.Streams.Warning.RemoveAt(index);
@@ -650,7 +650,7 @@ namespace System.Management.Automation
if ((indexIntoDataSent == 0) && (!_datasent[indexIntoDataSent]))
{
VerboseRecord data = LocalPowerShell.Streams.Verbose[index];
- // once the debug message is sent, it is removed so that
+ // once the debug message is sent, it is removed so that
// the same is not sent again by SendRemainingData() method
LocalPowerShell.Streams.Verbose.RemoveAt(index);
@@ -675,7 +675,7 @@ namespace System.Management.Automation
if ((indexIntoDataSent == 0) && (!_datasent[indexIntoDataSent]))
{
DebugRecord data = LocalPowerShell.Streams.Debug[index];
- // once the debug message is sent, it is removed so that
+ // once the debug message is sent, it is removed so that
// the same is not sent again by SendRemainingData() method
LocalPowerShell.Streams.Debug.RemoveAt(index);
@@ -700,7 +700,7 @@ namespace System.Management.Automation
if ((indexIntoDataSent == 0) && (!_datasent[indexIntoDataSent]))
{
InformationRecord data = LocalPowerShell.Streams.Information[index];
- // once the Information message is sent, it is removed so that
+ // once the Information message is sent, it is removed so that
// the same is not sent again by SendRemainingData() method
LocalPowerShell.Streams.Information.RemoveAt(index);
@@ -715,7 +715,7 @@ namespace System.Management.Automation
/// client
///
/// This method should be called before
- /// sending the state information. The client will
+ /// sending the state information. The client will
/// remove the association between a powershell and
/// runspace pool if it receives any of the terminal
/// states. Hence all the remaining data should be
@@ -817,7 +817,7 @@ namespace System.Management.Automation
/// arguments describing this event
private void HandleInputReceived(object sender, RemoteDataEventArgs eventArgs)
{
- // This can be called in pushed runspace scenarios for error reporting (pipeline stopped).
+ // This can be called in pushed runspace scenarios for error reporting (pipeline stopped).
// Ignore for noInput.
if (!_noInput && (InputCollection != null))
{
@@ -832,7 +832,7 @@ namespace System.Management.Automation
/// arguments describing this event
private void HandleInputEndReceived(object sender, EventArgs eventArgs)
{
- // This can be called in pushed runspace scenarios for error reporting (pipeline stopped).
+ // This can be called in pushed runspace scenarios for error reporting (pipeline stopped).
// Ignore for noInput.
if (!_noInput && (InputCollection != null))
{
diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs
index e5e97e7b39..37ace9c639 100644
--- a/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs
+++ b/src/System.Management.Automation/engine/remoting/server/ServerRemoteHost.cs
@@ -216,7 +216,7 @@ namespace System.Management.Automation.Remoting
get
{
// Return the thread's current culture and rely on WinRM to set this
- // correctly based on the client's culture.
+ // correctly based on the client's culture.
return CultureInfo.CurrentCulture;
}
}
@@ -327,7 +327,7 @@ namespace System.Management.Automation.Remoting
/// RemoteRunspace
public override void PushRunspace(Runspace runspace)
{
- // Double session hop is currently allowed only for WSMan (non-OutOfProc) sessions, where
+ // Double session hop is currently allowed only for WSMan (non-OutOfProc) sessions, where
// the second session is either through a named pipe or hyperV socket connection.
if (!AllowPushRunspace &&
((_transportManager is OutOfProcessServerSessionTransportManager) ||
diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs b/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs
index 08c7e75b10..d69f9ed558 100644
--- a/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs
+++ b/src/System.Management.Automation/engine/remoting/server/ServerRemotingProtocol2.cs
@@ -101,7 +101,7 @@ namespace System.Management.Automation
}
///
- /// Process the data received from the runspace pool on
+ /// Process the data received from the runspace pool on
/// the server
///
/// data received
@@ -293,13 +293,13 @@ namespace System.Management.Automation
///
/// This event is raised whenever there is a request from the
/// client to create a powershell on the server and invoke it
- ///
+ ///
internal event EventHandler>> CreateAndInvokePowerShell;
///
/// This event is raised whenever there is a request from the
/// client to run command discovery pipeline
- ///
+ ///
internal event EventHandler>> GetCommandMetadata;
///
@@ -353,7 +353,7 @@ namespace System.Management.Automation
/// Get the associated powershell data structure handler for the specified
/// powershell id
///
- /// powershell id for the
+ /// powershell id for the
/// powershell data structure handler
/// ServerPowerShellDataStructureHandler
internal ServerPowerShellDataStructureHandler GetAssociatedPowerShellDataStructureHandler
@@ -588,7 +588,7 @@ namespace System.Management.Automation
///
/// called when session is connected from a new client
- /// calls into observers of this event.
+ /// calls into observers of this event.
/// observers include corresponding driver that shutdown
/// input stream is present
///
@@ -598,7 +598,7 @@ namespace System.Management.Automation
}
///
- /// Process the data received from the powershell on
+ /// Process the data received from the powershell on
/// the client
///
/// data received
@@ -663,7 +663,7 @@ namespace System.Management.Automation
///
internal void RaiseRemoveAssociationEvent()
{
- Dbg.Assert(RemoveAssociation != null, @"The ServerRunspacePoolDataStructureHandler should subscribe
+ Dbg.Assert(RemoveAssociation != null, @"The ServerRunspacePoolDataStructureHandler should subscribe
to the RemoveAssociation event of ServerPowerShellDataStructureHandler");
RemoveAssociation.SafeInvoke(this, EventArgs.Empty);
}
@@ -671,7 +671,7 @@ namespace System.Management.Automation
///
/// Creates a ServerRemoteHost which is associated with this powershell.
///
- /// Host information about the host associated
+ /// Host information about the host associated
/// PowerShell object on the client.
/// Host associated with the RunspacePool
/// on the server.
@@ -682,7 +682,7 @@ namespace System.Management.Automation
{
HostInfo hostInfo;
- // If host was null use the runspace's host for this powershell; otherwise,
+ // If host was null use the runspace's host for this powershell; otherwise,
// use the HostInfo to create a proxy host of the powershell's host.
if (powerShellHostInfo.UseRunspaceHost)
{
@@ -693,7 +693,7 @@ namespace System.Management.Automation
hostInfo = powerShellHostInfo;
}
- // If the host was not null on the client, then the PowerShell object should
+ // If the host was not null on the client, then the PowerShell object should
// get a brand spanking new host.
return new ServerRemoteHost(_clientRunspacePoolId, _clientPowerShellId, hostInfo,
_transportManager, runspaceServerRemoteHost.Runspace, runspaceServerRemoteHost as ServerDriverRemoteHost);
@@ -705,7 +705,7 @@ namespace System.Management.Automation
///
/// this event is raised when the state of associated
- /// powershell is terminal and the runspace pool has
+ /// powershell is terminal and the runspace pool has
/// to detach the association
///
internal event EventHandler RemoveAssociation;
@@ -734,7 +734,7 @@ namespace System.Management.Automation
internal event EventHandler OnSessionConnected;
///
- /// This event is raised when a host response is received
+ /// This event is raised when a host response is received
///
internal event EventHandler> HostResponseReceived;
diff --git a/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs
index f4f021419c..dda67f0320 100644
--- a/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs
+++ b/src/System.Management.Automation/engine/remoting/server/ServerRunspacePoolDriver.cs
@@ -21,7 +21,7 @@ using System.Security.Principal;
namespace System.Management.Automation
{
///
- /// Interface exposing driver single thread invoke enter/exit
+ /// Interface exposing driver single thread invoke enter/exit
/// nested pipeline.
///
internal interface IRSPDriverInvoke
@@ -103,7 +103,7 @@ namespace System.Management.Automation
/// runspace pool driver
/// maximum runspaces to open
/// minimum runspaces to open
- /// threading options for the runspaces in the pool
+ /// threading options for the runspaces in the pool
/// host information about client side host
///
/// Contains:
@@ -288,13 +288,13 @@ namespace System.Management.Automation
internal Guid InstanceId { get; }
///
- /// The local runspace pool associated with
+ /// The local runspace pool associated with
/// this driver
///
internal RunspacePool RunspacePool { get; private set; }
///
- /// Start the RunspacePoolDriver. This will open the
+ /// Start the RunspacePoolDriver. This will open the
/// underlying RunspacePool.
///
internal void Start()
@@ -305,7 +305,7 @@ namespace System.Management.Automation
///
/// Send application private data to client
- /// will be called during runspace creation
+ /// will be called during runspace creation
/// and each time a new client connects to the server session
///
internal void SendApplicationPrivateDataToClient()
@@ -421,8 +421,8 @@ namespace System.Management.Automation
#region IRSPDriverInvoke interface methods
///
- /// This method blocks the current thread execution and starts a
- /// new Invoker pump that will handle invoking client side nested commands.
+ /// This method blocks the current thread execution and starts a
+ /// new Invoker pump that will handle invoking client side nested commands.
/// This method returns after ExitNestedPipeline is called.
///
public void EnterNestedPipeline()
@@ -451,7 +451,7 @@ namespace System.Management.Automation
///
/// If script execution is currently in debugger stopped mode, this will
- /// release the debugger and terminate script execution, or if processing
+ /// release the debugger and terminate script execution, or if processing
/// a debug command will stop the debug command.
/// This is used to implement the remote stop signal and ensures a command
/// will stop even when in debug stop mode.
@@ -485,7 +485,7 @@ namespace System.Management.Automation
if (!string.IsNullOrEmpty(_configurationName))
{
- // Client is requesting a configured session.
+ // Client is requesting a configured session.
// Create a configured remote runspace and push onto host stack.
if ((_remoteHost != null) && !(_remoteHost.IsRunspacePushed))
{
@@ -557,7 +557,7 @@ namespace System.Management.Automation
}
///
- /// Invokes a PowerShell instance
+ /// Invokes a PowerShell instance
///
///
///
@@ -577,7 +577,7 @@ namespace System.Management.Automation
this,
#if !CORECLR // No ApartmentState In CoreCLR
args.Runspace.ApartmentState,
-#endif
+#endif
hostInfo,
RemoteStreamOptions.AddInvocationInfo,
false,
@@ -641,7 +641,7 @@ namespace System.Management.Automation
}
// Set the current location to MyDocuments folder for this runspace.
- // This used to be set to the Personal folder but was changed to MyDocuments folder for
+ // This used to be set to the Personal folder but was changed to MyDocuments folder for
// compatibility with PowerShell on Nano Server for PowerShell V5.
// This is needed because in the remoting scenario, Environment.CurrentDirectory
// always points to System Folder (%windir%\system32) irrespective of the
@@ -837,7 +837,7 @@ namespace System.Management.Automation
if (_remoteHost.IsRunspacePushed)
{
- // If we have a pushed runspace then execute there.
+ // If we have a pushed runspace then execute there.
// Ensure debugger is enabled to the original mode it was set to.
if (_serverRemoteDebugger != null)
{
@@ -954,7 +954,7 @@ namespace System.Management.Automation
powershell.SetIsNested(false);
}
- // Invoke command normally. Ensure debugger is enabled to the
+ // Invoke command normally. Ensure debugger is enabled to the
// original mode it was set to.
if (_serverRemoteDebugger != null)
{
@@ -1060,7 +1060,7 @@ namespace System.Management.Automation
if (_remoteHost.IsRunspacePushed)
{
- // If we have a pushed runspace then execute there.
+ // If we have a pushed runspace then execute there.
StartPowerShellCommandOnPushedRunspace(
countingPipeline,
mainPipeline,
@@ -1471,7 +1471,7 @@ namespace System.Management.Automation
#region Private Classes
///
- /// Helper class to run ServerPowerShellDriver objects on a single thread. This is
+ /// Helper class to run ServerPowerShellDriver objects on a single thread. This is
/// needed to support nested pipeline execution and remote debugging.
///
private sealed class PowerShellDriverInvoker
@@ -1576,7 +1576,7 @@ namespace System.Management.Automation
#region Private classes
///
- /// Class that queues and invokes ServerPowerShellDriver objects
+ /// Class that queues and invokes ServerPowerShellDriver objects
/// in sequence.
///
private sealed class InvokePump
@@ -1887,7 +1887,7 @@ namespace System.Management.Automation
/// Sets up debugger to debug provided job or its child jobs.
///
///
- /// Job object that is either a debuggable job or a container
+ /// Job object that is either a debuggable job or a container
/// of debuggable child jobs.
///
internal override void DebugJob(Job job)
@@ -2357,7 +2357,7 @@ namespace System.Management.Automation
}
///
- /// Blocks DebuggerStop event thread until exit debug mode is
+ /// Blocks DebuggerStop event thread until exit debug mode is
/// received from the client.
///
private void OnEnterDebugMode(ManualResetEventSlim debugModeCompletedEvent)
@@ -2498,7 +2498,7 @@ namespace System.Management.Automation
bool addToHistory)
{
// For nested debugger command processing, invoke command on new local runspace since
- // the root script debugger runspace is unavailable (it is running a PS script or a
+ // the root script debugger runspace is unavailable (it is running a PS script or a
// workflow function script).
Runspace runspace = (remoteHost != null) ?
RunspaceFactory.CreateRunspace(remoteHost) : RunspaceFactory.CreateRunspace();
diff --git a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs
index b8f86f8dba..d59bb598dc 100644
--- a/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs
+++ b/src/System.Management.Automation/engine/remoting/server/ServerSteppablePipelineDriver.cs
@@ -76,7 +76,7 @@ namespace System.Management.Automation
// was created
private bool _addToHistory;
// associated with this powershell
-#if !CORECLR // No ApartmentState In CoreCLR
+#if !CORECLR // No ApartmentState In CoreCLR
private ApartmentState apartmentState; // apartment state for this powershell
#endif
@@ -95,8 +95,8 @@ namespace System.Management.Automation
/// whether there is input for this powershell
/// the client powershell id
/// the client runspacepool id
- /// runspace pool driver
- /// which is creating this powershell driver
+ /// runspace pool driver
+ /// which is creating this powershell driver
/// host info using which the host for
/// this powershell will be constructed
/// serialization options for the streams in this powershell
@@ -124,7 +124,7 @@ namespace System.Management.Automation
/// whether there is input for this powershell
/// the client powershell id
/// the client runspacepool id
- /// runspace pool driver
+ /// runspace pool driver
/// which is creating this powershell driver
/// apartment state for this powershell
/// host info using which the host for
@@ -194,7 +194,7 @@ namespace System.Management.Automation
internal PowerShell LocalPowerShell { get; }
///
- /// Instance id by which this powershell driver is
+ /// Instance id by which this powershell driver is
/// identified. This is the same as the id of the
/// powershell on the client side
///
@@ -212,9 +212,9 @@ namespace System.Management.Automation
///
/// Id of the runspace pool driver which created
- /// this object. This is the same as the id of
+ /// this object. This is the same as the id of
/// the runspace pool at the client side which
- /// is associated with the powershell on the
+ /// is associated with the powershell on the
/// client side
///
internal Guid RunspacePoolId { get; }
@@ -372,7 +372,7 @@ namespace System.Management.Automation
///
/// Checks if there is any pending input that needs processing. If so, triggers RunProcessRecord
- /// event. The pipeline execution thread catches this and calls us back when the pipeline is
+ /// event. The pipeline execution thread catches this and calls us back when the pipeline is
/// suspended.
///
///
diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs
index 9157455b35..da2767aa27 100644
--- a/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs
+++ b/src/System.Management.Automation/engine/remoting/server/serverremotesession.cs
@@ -13,18 +13,18 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation.Remoting
{
///
- ///
- /// By design, on the server side, each remote connection is represented by
+ ///
+ /// By design, on the server side, each remote connection is represented by
/// a ServerRemoteSession object, which contains one instance of this class.
- ///
+ ///
/// This class holds 4 pieces of information.
/// 1. Client capability: This is the capability received during the negotiation process.
- /// 2. Server capability: This comes from default parameters.
+ /// 2. Server capability: This comes from default parameters.
/// 3. Client configuration: This holds the remote session related configuration parameters that
/// the client sent to the server. This parameters can be changed and resent after the connection
/// is established.
/// 4. Server configuration: this holds the server sider configuration parameters.
- ///
+ ///
/// All these together define the connection level parameters.
///
internal class ServerRemoteSessionContext
@@ -61,14 +61,14 @@ namespace System.Management.Automation.Remoting
///
/// This class is designed to be the server side controller of a remote connection.
- ///
+ ///
/// It contains a static entry point that the PowerShell server process will get into
- /// the server mode. At this entry point, a runspace configuration is passed in. This runspace
+ /// the server mode. At this entry point, a runspace configuration is passed in. This runspace
/// configuration is used to instantiate a server side runspace.
- ///
+ ///
/// This class controls a remote connection by using a Session data structure handler, which
/// in turn contains a Finite State Machine, and a transport mechanism.
- ///
+ ///
///
internal class ServerRemoteSession : RemoteSession
{
@@ -102,7 +102,7 @@ namespace System.Management.Automation.Remoting
#region Constructors
///
- /// This constructor instantiates a ServerRemoteSession object and
+ /// This constructor instantiates a ServerRemoteSession object and
/// a ServerRemoteSessionDataStructureHandler object.
///
///
@@ -184,12 +184,12 @@ namespace System.Management.Automation.Remoting
/// InitialSessionState provider with does
/// not exist on the remote server.
///
- /*
+ /*
...
-
+
*/
internal static ServerRemoteSession CreateServerRemoteSession(PSSenderInfo senderInfo,
string configurationProviderId,
@@ -260,7 +260,7 @@ namespace System.Management.Automation.Remoting
/// This is the data dispatcher for the whole remote connection.
/// This dispatcher is registered with the server side input queue's InputDataReady event.
/// When the input queue has received data from client, it calls the InputDataReady listeners.
- ///
+ ///
/// This dispatcher distinguishes the negotiation packet as a special case. For all other data,
/// it dispatches the data through Finite State Machines DoMessageReceived handler by raising the event
/// MessageReceived. The FSM's DoMessageReceived handler further dispatches to the receiving
@@ -272,15 +272,15 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the remote data received from client.
///
- ///
+ ///
///
/// If the parameter is null.
///
- ///
+ ///
///
/// If the parameter does not contain remote data.
///
- ///
+ ///
///
/// If the destination of the data is not for server.
///
@@ -319,7 +319,7 @@ namespace System.Management.Automation.Remoting
{
// TODO: Directly calling an event handler in StateMachine bypassing the StateMachine's
// loop of ProcessEvents()..This is needed as connection is already established and the
- // following message does not change state. An ideal solution would be to process
+ // following message does not change state. An ideal solution would be to process
// non-session messages in this class rather than by StateMachine.
case RemotingDataType.CreateRunspacePool:
messageReceivedArg = new RemoteSessionStateMachineEventArgs(RemoteSessionEvent.MessageReceived);
@@ -355,7 +355,7 @@ namespace System.Management.Automation.Remoting
// TODO: Directly calling an event handler in StateMachine bypassing the StateMachine's
// loop of ProcessEvents()..This is needed as connection is already established and the
- // following message does not change state. An ideal solution would be to process
+ // following message does not change state. An ideal solution would be to process
// non-session messages in this class rather than by StateMachine.
case RemotingTargetInterface.RunspacePool:
case RemotingTargetInterface.PowerShell:
@@ -379,7 +379,7 @@ namespace System.Management.Automation.Remoting
/// Import or take other action based on the state
///
/// sender of this event, unused
- /// event arguments which contains the
+ /// event arguments which contains the
/// remote public key
private void HandlePublicKeyReceived(object sender, RemoteDataEventArgs eventArgs)
{
@@ -490,14 +490,14 @@ namespace System.Management.Automation.Remoting
}
///
- /// ExecutesConnect. expects client capability and connect_runspacepool PSRP
- /// messages in connectData.
+ /// ExecutesConnect. expects client capability and connect_runspacepool PSRP
+ /// messages in connectData.
/// If negotiation is successful and max and min runspaces in connect_runspacepool
/// match the associated runspace pool parameters, it builds up server capability
/// and runspace_initinfo in connectResponseData.
/// This is a version of Connect that executes the whole connect algorithm in one single
- /// hop.
- /// This algorithm is being executed synchronously without associating with state machine.
+ /// hop.
+ /// This algorithm is being executed synchronously without associating with state machine.
///
///
///
@@ -519,7 +519,7 @@ namespace System.Management.Automation.Remoting
throw new PSRemotingDataStructureException(RemotingErrorIdStrings.ServerConnectFailedOnInputValidation);
}
- //TODO: Follow up on comment from Krishna regarding having the serialization/deserialization separate for this
+ //TODO: Follow up on comment from Krishna regarding having the serialization/deserialization separate for this
// operation. This could be integrated as helper functions in fragmentor/serializer components
long fragmentId = FragmentedRemoteObject.GetFragmentId(connectData, 0);
bool sFlag = FragmentedRemoteObject.GetIsStartFragment(connectData, 0);
@@ -664,7 +664,7 @@ namespace System.Management.Automation.Remoting
//we currently dont support adjusting runspace count on a connect operation.
//there is a potential race here where in the runspace pool driver is still yet to process a queued
- //setMax or setMinrunspaces request.
+ //setMax or setMinrunspaces request.
//TODO: resolve this race.. probably by letting the runspace pool consume all messages before we execute this.
if (clientRequestedRunspaceCount
&& (_runspacePoolDriver.RunspacePool.GetMaxRunspaces() != clientRequestedMaxRunspaces)
@@ -720,7 +720,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
@@ -827,7 +827,7 @@ namespace System.Management.Automation.Remoting
var wsmanStackVersion = PSObject.Base(value["WSManStackVersion"]) as Version;
if (wsmanStackVersion != null && wsmanStackVersion.Major < 3)
{
- // The client side is PSv2. This is the Win7 to Win8 scenario. We need to add the PSv2
+ // The client side is PSv2. This is the Win7 to Win8 scenario. We need to add the PSv2
// TabExpansion function back in to keep the tab expansion functionable on the client side.
rsSessionStateToUse.Commands.Add(
new SessionStateFunctionEntry(
@@ -905,7 +905,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the client negotiation capability packet.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -994,9 +994,9 @@ namespace System.Management.Automation.Remoting
/// Otherwise, it returns false.
///
///
- /// 1. PowerShell server does not support the PSVersion {1} negotiated by the client.
+ /// 1. PowerShell server does not support the PSVersion {1} negotiated by the client.
/// Make sure the client is compatible with the build {2} of PowerShell.
- /// 2. PowerShell server does not support the SerializationVersion {1} negotiated by the client.
+ /// 2. PowerShell server does not support the SerializationVersion {1} negotiated by the client.
/// Make sure the client is compatible with the build {2} of PowerShell.
///
private bool RunServerNegotiationAlgorithm(RemoteSessionCapability clientCapability, bool onConnect)
@@ -1130,7 +1130,7 @@ namespace System.Management.Automation.Remoting
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs
index d4cfede254..50768e434a 100644
--- a/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs
+++ b/src/System.Management.Automation/engine/remoting/server/serverremotesessionstatemachine.cs
@@ -11,19 +11,19 @@ namespace System.Management.Automation.Remoting
///
/// This class implements a Finite State Machine (FSM) to control the remote connection on the server side.
/// There is a similar but not identical FSM on the client side for this connection.
- ///
- /// The FSM's states and events are defined to be the same for both the client FSM and the server FSM.
+ ///
+ /// The FSM's states and events are defined to be the same for both the client FSM and the server FSM.
/// This design allows the client and server FSM's to
/// be as similar as possible, so that the complexity of maintaining them is minimized.
- ///
+ ///
/// This FSM only controls the remote connection state. States related to runspace and pipeline are managed by runspace
/// pipeline themselves.
- ///
+ ///
/// This FSM defines an event handling matrix, which is filled by the event handlers.
- /// The state transitions can only be performed by these event handlers, which are private
+ /// The state transitions can only be performed by these event handlers, which are private
/// to this class. The event handling is done by a single thread, which makes this
/// implementation solid and thread safe.
- ///
+ ///
/// This implementation of the FSM does not allow the remote session to be reused for a connection
/// after it is been closed. This design decision is made to simplify the implementation.
/// However, the design can be easily modified to allow the reuse of the remote session
@@ -216,7 +216,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// processes events in the queue. If there are no
+ /// processes events in the queue. If there are no
/// more events to process, then sets eventsInProcess
/// variable to false. This will ensure that another
/// thread which raises an event can then take control
@@ -243,7 +243,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// This is the private version of raising a FSM event.
+ /// This is the private version of raising a FSM event.
/// It can only be called by the dedicated thread that processes the event queue.
/// It calls the event handler
/// in the right position of the event handling matrix.
@@ -251,7 +251,7 @@ namespace System.Management.Automation.Remoting
///
/// The parameter contains the actual FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -284,7 +284,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -305,7 +305,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// This is the handler for NegotiationPending event.
+ /// This is the handler for NegotiationPending event.
/// NegotiationPending state can be in reached in the following cases
/// 1. From Idle to NegotiationPending (during startup)
/// 2. From Negotiation(Response)Sent to NegotiationPending.
@@ -341,7 +341,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -379,14 +379,14 @@ namespace System.Management.Automation.Remoting
///
/// This is the handler for NegotiationSending event.
- /// It sets the new state to be NegotiationSending, and sends the server side
+ /// It sets the new state to be NegotiationSending, and sends the server side
/// negotiation packet by queuing it on the output queue.
///
///
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -414,7 +414,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -443,7 +443,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -482,13 +482,13 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
///
/// If the parameter does not contain remote data.
- ///
+ ///
internal void DoMessageReceived(object sender, RemoteSessionStateMachineEventArgs fsmEventArg)
{
using (s_trace.TraceEventHandlers())
@@ -548,7 +548,7 @@ namespace System.Management.Automation.Remoting
}
else
{
- s_trace.WriteLine(@"Server received data for Runspace (id: {0}),
+ s_trace.WriteLine(@"Server received data for Runspace (id: {0}),
but the Runspace cannot be found", clientRunspacePoolId);
PSRemotingDataStructureException reasonOfFailure = new
@@ -587,13 +587,13 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
///
/// If the parameter does not contain ConnectFailed event.
- ///
+ ///
private void DoConnectFailed(object sender, RemoteSessionStateMachineEventArgs fsmEventArg)
{
using (s_trace.TraceEventHandlers())
@@ -625,11 +625,11 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
- ///
+ ///
///
/// If the parameter does not contains FatalError event.
///
@@ -675,7 +675,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -730,7 +730,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -761,7 +761,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -792,7 +792,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -822,7 +822,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -858,7 +858,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
@@ -888,7 +888,7 @@ namespace System.Management.Automation.Remoting
///
/// This parameter contains the FSM event.
///
- ///
+ ///
///
/// If the parameter is null.
///
diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs
index 675181f26d..002be8ff46 100644
--- a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs
+++ b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocol.cs
@@ -10,11 +10,11 @@ namespace System.Management.Automation.Remoting
{
///
/// This abstract class defines the server side data structure handler that a remote connection has
- /// at the remote session level.
+ /// at the remote session level.
/// There are two other data structure handler levels:
/// 1) at the runspace level,
/// 2) at the pipeline level.
- ///
+ ///
/// This session level data structure handler defines what can be done at the session level.
///
internal abstract class ServerRemoteSessionDataStructureHandler : BaseSessionDataStructureHandler
@@ -83,7 +83,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// This method is used by the client data dispatching mechanism.
+ /// This method is used by the client data dispatching mechanism.
///
///
/// This parameter contains the remote data from the client.
diff --git a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs
index 5af92f607e..368c76b6df 100644
--- a/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs
+++ b/src/System.Management.Automation/engine/remoting/server/serverremotingprotocolimplementation.cs
@@ -28,7 +28,7 @@ namespace System.Management.Automation.Remoting
#region Constructors
///
- /// Constructs a ServerRemoteSession handler using the supplied transport manager. The
+ /// Constructs a ServerRemoteSession handler using the supplied transport manager. The
/// supplied transport manager will be used to send and receive data from the remote
/// client.
///
@@ -60,7 +60,7 @@ namespace System.Management.Automation.Remoting
}
///
- /// This method sends the server side capability negotiation packet to the client.
+ /// This method sends the server side capability negotiation packet to the client.
///
internal override void SendNegotiationAsync()
{
@@ -115,7 +115,7 @@ namespace System.Management.Automation.Remoting
/// Raise the public key received event
///
/// received data
- /// This method is a hook to be called
+ /// This method is a hook to be called
/// from the transport manager
internal override void RaiseKeyExchangeMessageReceived(RemoteDataObject receivedData)
{
@@ -166,7 +166,7 @@ namespace System.Management.Automation.Remoting
///
/// The received client data.
///
- ///
+ ///
///
/// If the parameter is null.
///
diff --git a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs
index bd1ca5c8b2..90fad60525 100644
--- a/src/System.Management.Automation/engine/runtime/Binding/Binders.cs
+++ b/src/System.Management.Automation/engine/runtime/Binding/Binders.cs
@@ -66,7 +66,7 @@ namespace System.Management.Automation.Language
internal static DynamicMetaObject WriteToDebugLog(this DynamicMetaObject obj, DynamicMetaObjectBinder binder)
{
-#if ENABLE_BINDER_DEBUG_LOGGING
+#if ENABLE_BINDER_DEBUG_LOGGING
if (obj != FakeError)
{
System.Diagnostics.Debug.WriteLine("Binder: {0}\r\n Restrictions: {2}\r\n Target: {1}",
@@ -454,7 +454,7 @@ namespace System.Management.Automation.Language
///
/// Some classes that implement IEnumerable are not considered as enumerable from the perspective of pipelines,
/// this binder implements those semantics.
- ///
+ ///
/// The standard interop ConvertBinder is used to allow third party dynamic objects to get the first chance
/// at the conversion in case they do support enumeration, but do not implement IEnumerable directly.
///
@@ -998,7 +998,7 @@ namespace System.Management.Automation.Language
///
/// This binder is used to convert objects to string in specific circumstances, including:
- ///
+ ///
/// * The LHS of a format expression. The arguments (the RHS objects) of the format
/// expression are not converted to string here, that is defered to String.Format which
/// may have some custom formatting to apply.
@@ -1903,7 +1903,7 @@ namespace System.Management.Automation.Language
// * return expr
// * tmp = expr; return tmp (make a copy)
// * return CopyInstanceMembersOfValueType((T)expr, expr) (make a copy, also copy instance members)
- //
+ //
// If we've never seen an instance member for a given type, we can avoid the expensive call to
// CopyInstanceMembersOfValueType, but if somebody adds an instance member in the future, we need to invalidate
// previously generated rules. We do that with the version check.
@@ -2528,7 +2528,7 @@ namespace System.Management.Automation.Language
if (!toType.IsNumeric())
{
// toType is only mostly for diagnostics, so it doesn't need to be correct. If it's not numeric, we're
- // doing something like "42" - "10", and toType is the type of the "other" operand, in this case, it
+ // doing something like "42" - "10", and toType is the type of the "other" operand, in this case, it
// would string. Fall back to int if Parser.ScanNumber fails.
toType = typeof(int);
}
@@ -3064,7 +3064,7 @@ namespace System.Management.Automation.Language
BindingRestrictions bindingRestrictions = target.CombineRestrictions(arg);
bindingRestrictions = bindingRestrictions.Merge(BinderUtils.GetOptionalVersionAndLanguageCheckForType(this, targetType, _version));
- // If there is no conversion, then just rely on 'objectEqualsCall' which most likely will return false. If we attempted the
+ // If there is no conversion, then just rely on 'objectEqualsCall' which most likely will return false. If we attempted the
// conversion, we'd need extra code to catch an exception we know will happen just to return false.
if (conversion.Rank == ConversionRank.None)
{
@@ -4044,7 +4044,7 @@ namespace System.Management.Automation.Language
// len = obj.Length
// if (index < 0)
// index = index + len
- // obj[index]
+ // obj[index]
// } catch (Exception e) {
// if (StrictMode(3)) { throw }
// $null
@@ -4069,7 +4069,7 @@ namespace System.Management.Automation.Language
generateIndexOperation(targetTmp, indexTmp));
return new DynamicMetaObject(
- // Do the indexing within a try/catch so we can return $null if the index is out of bounds,
+ // Do the indexing within a try/catch so we can return $null if the index is out of bounds,
// or if the index cast fails, e.g. $a = @(1); $a['abc']
SafeIndexResult(block),
target.CombineRestrictions(index));
@@ -5216,9 +5216,9 @@ namespace System.Management.Automation.Language
}
var type = castToType ?? ((value != null) ? value.GetType() : typeof(object));
-#if CORECLR
+#if CORECLR
var typeInfo = type.GetTypeInfo();
- // Assemblies in CoreCLR might not allow reflection execution on their internal types. In such case, we walk up
+ // Assemblies in CoreCLR might not allow reflection execution on their internal types. In such case, we walk up
// the derivation chain to find the first public parent, and use reflection methods on the public parent.
if (!TypeResolver.IsPublic(typeInfo) && DotNetAdapter.DisallowPrivateReflection(typeInfo))
{
@@ -5456,10 +5456,10 @@ namespace System.Management.Automation.Language
}
// Check if the target value is actually a deserialized PSObject.
- // - If so, we want to use the original value.
- // Mostly, a deserialized object is a PSObject with an empty immediate base object, and it's OK to call PSObject.Base()
+ // - If so, we want to use the original value.
+ // Mostly, a deserialized object is a PSObject with an empty immediate base object, and it's OK to call PSObject.Base()
// on it in this case, because the method would just return the original PSObject. But if it's the deserialized object of
- // a container object (i.e. an object derived from IEnumerable, IList, or IDictionary), the immediate base object is a
+ // a container object (i.e. an object derived from IEnumerable, IList, or IDictionary), the immediate base object is a
// Hashtable or ArrayList. In such case, we sometimes would lose the psadapted/psextended properties that we actually care
// by using the base object.
//
@@ -5614,7 +5614,7 @@ namespace System.Management.Automation.Language
if (hasTypeTableMember)
{
// We need to make sure the type table we would use to find a member is the same type table that we used here to
- // find (or not find) a member. If they were different type tables, we could easily get different results.
+ // find (or not find) a member. If they were different type tables, we could easily get different results.
restrictions = restrictions.Merge(
BindingRestrictions.GetInstanceRestriction(Expression.Call(CachedReflectionInfo.PSGetMemberBinder_GetTypeTableFromTLS), typeTable));
@@ -6017,8 +6017,8 @@ namespace System.Management.Automation.Language
Expression lhs;
Type lhsType;
- // Populate transformation attributes.
- // Order of attributes is the same as order provided by user in the code
+ // Populate transformation attributes.
+ // Order of attributes is the same as order provided by user in the code
// We assume that GetCustomAttributes implemented that way.
IEnumerable argumentTransformationAttributes =
data.member.GetCustomAttributes();
@@ -6489,7 +6489,7 @@ namespace System.Management.Automation.Language
// (1) the target value could be a regular PSObject that wraps the Hashtable/ArrayList, i.e. $target = [PSObject]::AsPSObject($hash)
// (2) the target value could be a deserialized object (PSObject) with the 'isDeserialized' field to be false, i.e. deserialized Hashtable/ArrayList/Dictionary[string, string]
// (3) the target value could be a deserialized object (PSObject) with the 'isDeserialized' field to be true, i.e. deserialized XmlElement
- // For the first two cases, it's OK to call a .NET method from the base object, such as $target.Add().
+ // For the first two cases, it's OK to call a .NET method from the base object, such as $target.Add().
// For the third case, calling a .NET method from the base object is incorrect, because the original type of the deserialized object doesn't have the method.
// example: XmlElement derives from IEnumerable, so it's treated as a container object when powershell does the serialization -- using an ArrayList to hold
// its elements -- but we cannot call Add() on it.
@@ -6902,7 +6902,7 @@ namespace System.Management.Automation.Language
///
/// Arguments to the operator. The first argument must be either a scriptblock
/// or a string representing a 'simple where' expression. The second is an enum that controls
- /// the matching behaviour returning the first, last or all matching elements.
+ /// the matching behaviour returning the first, last or all matching elements.
///
/// The binding restrictions for the arguments.
private DynamicMetaObject InvokeWhereOnCollection(DynamicMetaObject target, DynamicMetaObject[] args, BindingRestrictions argRestrictions)
diff --git a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs
index d9ca95aa40..4b39654e71 100644
--- a/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs
+++ b/src/System.Management.Automation/engine/runtime/CompiledScriptBlock.cs
@@ -474,8 +474,8 @@ namespace System.Management.Automation
}
//
- // Don't cache scriptblocks that have
- // a) dynamic keywords
+ // Don't cache scriptblocks that have
+ // a) dynamic keywords
// b) 'using module' or 'using assembly'
// The definition of the dynamic keyword could change, consequently changing how the source text should be parsed.
// Exported types definitions from 'using module' could change, we need to do all parse-time checks again.
@@ -1496,7 +1496,7 @@ namespace System.Management.Automation
// is true, we log them to the event log despite event log settings.
//
// Performance notes:
- //
+ //
// For the current number of search terms, the this approach is about as high
// performance as we can get. It adds about 1ms to the invocation of a script
// block (we don't do this at parse time).
@@ -1647,7 +1647,7 @@ namespace System.Management.Automation
// Crypto - ransomware, etc.
"CryptoServiceProvider", "Cryptography", "RijndaelManaged", "SHA1Managed", "CryptoStream",
"CreateEncryptor", "CreateDecryptor", "TransformFinalBlock", "DeviceIoControl", "SetInformationProcess",
- "PasswordDeriveBytes",
+ "PasswordDeriveBytes",
// Keylogging
"GetAsyncKeyState", "GetKeyboardState", "GetForegroundWindow",
diff --git a/src/System.Management.Automation/engine/runtime/MutableTuple.cs b/src/System.Management.Automation/engine/runtime/MutableTuple.cs
index 730cde1950..6a3ee9ff58 100644
--- a/src/System.Management.Automation/engine/runtime/MutableTuple.cs
+++ b/src/System.Management.Automation/engine/runtime/MutableTuple.cs
@@ -1,11 +1,11 @@
/* ****************************************************************************
*
- * Copyright (c) Microsoft Corporation.
+ * Copyright (c) Microsoft Corporation.
*
- * This source code is subject to terms and conditions of the Microsoft Public License. A
- * copy of the license can be found in the License.html file at the root of this distribution. If
- * you cannot locate the Microsoft Public License, please send an email to
- * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
+ * This source code is subject to terms and conditions of the Microsoft Public License. A
+ * copy of the license can be found in the License.html file at the root of this distribution. If
+ * you cannot locate the Microsoft Public License, please send an email to
+ * dlr@microsoft.com. By using this source code in any fashion, you are agreeing to be bound
* by the terms of the Microsoft Public License.
*
* You must not remove this notice, or any other, from this software.
@@ -247,10 +247,10 @@ namespace System.Management.Automation
}
///
- /// Creates a generic tuple with the specified types.
- ///
- /// If the number of slots fits within the maximum tuple size then we simply
- /// create a single tuple. If it's greater then we create nested tuples
+ /// Creates a generic tuple with the specified types.
+ ///
+ /// If the number of slots fits within the maximum tuple size then we simply
+ /// create a single tuple. If it's greater then we create nested tuples
/// (e.g. a Tuple`2 which contains a Tuple`128 and a Tuple`8 if we had a size of 136).
///
public static Type MakeTupleType(params Type[] types)
@@ -368,7 +368,7 @@ namespace System.Management.Automation
// inner most tuples. The mask is initialized to mask the upper bits and adjust is initialized
// and adjust is the value we need to divide by to get the index in the least significant bits.
// As we go through we shift the mask and adjust down each loop to pull out the inner slot. Logically
- // everything in here is shifting bits (not multiplying or dividing) because NewTuple.MaxSize is a
+ // everything in here is shifting bits (not multiplying or dividing) because NewTuple.MaxSize is a
// power of 2.
int depth = 0;
int mask = MutableTuple.MaxSize - 1;
diff --git a/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs b/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs
index 1e451eb865..f707df0679 100644
--- a/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs
+++ b/src/System.Management.Automation/engine/runtime/Operations/ClassOps.cs
@@ -15,14 +15,14 @@ using System.Threading;
// These APIs are not part of the public contract.
// They are implementation details and intended to be called from generated assemblies for PS classes.
//
-// Because they are called from other assemblies, we have to make them public.
+// Because they are called from other assemblies, we have to make them public.
// We put them in Internal namespace to emphasise that despite the fact that they are public, it's not part of API contract.
namespace System.Management.Automation.Internal
{
///
/// Every Runspace in one process contains SessionStateInternal per module (module SessionState).
- /// Every RuntimeType is associated to only one SessionState in the Runspace, which creates it:
+ /// Every RuntimeType is associated to only one SessionState in the Runspace, which creates it:
/// it's ever global state or a module state.
/// In the former case, module can be imported from the different runspaces in the same process.
/// And so runspaces will share RuntimeType. But in every runspace, Type is associated with just one SessionState.
@@ -32,7 +32,7 @@ namespace System.Management.Automation.Internal
///
public class SessionStateKeeper
{
- // We use ConditionalWeakTable, because if GC already collect Runspace,
+ // We use ConditionalWeakTable, because if GC already collect Runspace,
// then there is no way to call a ctor on the type in this Runspace.
private readonly ConditionalWeakTable _stateMap;
@@ -46,7 +46,7 @@ namespace System.Management.Automation.Internal
SessionStateInternal ssInMap = null;
Runspace rsToUse = Runspace.DefaultRunspace;
SessionStateInternal ssToUse = rsToUse.ExecutionContext.EngineSessionState;
-
+
// Different threads will operate on different key/value pairs (default-runspace/session-state pairs),
// and a ConditionalWeakTable itself is thread safe, so there won't be race condition here.
if (!_stateMap.TryGetValue(rsToUse, out ssInMap))
@@ -165,7 +165,7 @@ namespace System.Management.Automation.Internal
{
///
/// This method calls all Validate attributes for the property to validate value.
- /// Called from class property setters with ValidateArgumentsAttribute attributes.
+ /// Called from class property setters with ValidateArgumentsAttribute attributes.
///
///
///
@@ -232,7 +232,7 @@ namespace System.Management.Automation.Internal
{
DynamicMethod dm = s_nonVirtualCallCache.GetValue(mi, CreateDynamicMethod);
- // The target object will be passed to the hidden parameter 'this' of the instance method
+ // The target object will be passed to the hidden parameter 'this' of the instance method
var newArgs = new List(args.Length + 1) { target };
newArgs.AddRange(args);
diff --git a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
index bf8f86f33a..02e7519174 100644
--- a/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
+++ b/src/System.Management.Automation/engine/runtime/Operations/MiscOps.cs
@@ -919,7 +919,7 @@ namespace System.Management.Automation
{
case RedirectionStream.All:
// Since a temp output pipe is going to be used, we should pass along the error and warning variable list.
- // Normally, context.CurrentCommandProcessor will not be null. But in legacy DRTs from ParserTest.cs,
+ // Normally, context.CurrentCommandProcessor will not be null. But in legacy DRTs from ParserTest.cs,
// a scriptblock may be invoked through 'DoInvokeReturnAsIs' using .NET reflection. In that case,
// context.CurrentCommandProcessor will be null. We don't try passing along variable lists in such case.
if (context.CurrentCommandProcessor != null)
@@ -1280,7 +1280,7 @@ namespace System.Management.Automation
///
/// The ranking number for each type represent how many other
/// types from the array derive from it.
- /// For example, 0 means no other types in the array derive from
+ /// For example, 0 means no other types in the array derive from
/// the corresponding type, while 3 means there are 3 other types
/// in the array actually derive from the corresponding type.
/// 'CatchAll' is considered to be derived by all exception types.
@@ -1658,7 +1658,7 @@ namespace System.Management.Automation
/// The preference the user selected
///
/// Error action is decided by error action preference. If preference is inquire, we will
- /// prompt user for their preference.
+ /// prompt user for their preference.
///
internal static ActionPreference QueryForAction(RuntimeException rte, string message, ExecutionContext context)
{
@@ -1681,7 +1681,7 @@ namespace System.Management.Automation
/// The execution context
///
///
- /// This method will allow user to enter suspend mode.
+ /// This method will allow user to enter suspend mode.
///
internal static ActionPreference InquireForActionPreference(string message, ExecutionContext context)
{
@@ -2084,22 +2084,22 @@ namespace System.Management.Automation
}
///
- /// Add types to the current scope.
+ /// Add types to the current scope.
/// This method called at runtime after types are created at compile time.
/// This method should be called for every ScriptBlockAst that defines types.
- ///
+ ///
/// I.e.
- ///
+ ///
/// class C1 {}
/// function foo { class C2 {} }
/// 1..10 | % { foo }
- ///
+ ///
/// DefinePowerShellTypes() would be called for two TypeDefinitionAsts at the same time and Types for C1 and C2 would be created at the same assembly.
- /// AddPowerShellTypesToTheScope() would be called for root script first and then for foo\C2, once we call function foo.
+ /// AddPowerShellTypesToTheScope() would be called for root script first and then for foo\C2, once we call function foo.
/// Note that AddPowerShellTypesToTheScope() would be call on every foo call, 10 times.
- ///
+ ///
/// This method also should be called for 'using module' statements. Then added types would have a different name.
- ///
+ ///
///
///
///
@@ -2353,7 +2353,7 @@ namespace System.Management.Automation
///
/// The enumerator over the collection to search
///
- /// A ScriptBlock where its result is treated as a boolean, or null to
+ /// A ScriptBlock where its result is treated as a boolean, or null to
/// return all collection objects with WhereOperatorSelectionMode.
///
///
@@ -2552,7 +2552,7 @@ namespace System.Management.Automation
}
else if (selectionMode == WhereOperatorSelectionMode.Until)
{
- // no match so in the until case, we add the value until the count is reached
+ // no match so in the until case, we add the value until the count is reached
matches.Add(ie == null ? null : PSObject.AsPSObject(ie));
if (numberToReturn > 0 && matches.Count >= numberToReturn)
{
@@ -2640,7 +2640,7 @@ namespace System.Management.Automation
while (MoveNext(context, enumerator))
{
object current = Current(enumerator);
- // Let the PSObject method invocation mechanism take care of
+ // Let the PSObject method invocation mechanism take care of
// any required conversions, etc.
resultCollection.Add(current);
}
@@ -2655,7 +2655,7 @@ namespace System.Management.Automation
while (MoveNext(context, enumerator))
{
object current = Current(enumerator);
- // Let the PSObject method invocation mechanism take care of
+ // Let the PSObject method invocation mechanism take care of
// any required conversions, etc.
resultCollection.Add(current);
}
@@ -2701,7 +2701,7 @@ namespace System.Management.Automation
}
else
{
- // Deal with member gets, sets and invokes
+ // Deal with member gets, sets and invokes
string name = ParserOps.ConvertTo(expression, null);
var numArgs = arguments.Length;
var languageMode = context.LanguageMode;
diff --git a/src/System.Management.Automation/engine/runtime/Operations/StringOps.cs b/src/System.Management.Automation/engine/runtime/Operations/StringOps.cs
index eb22219074..4e705f125b 100644
--- a/src/System.Management.Automation/engine/runtime/Operations/StringOps.cs
+++ b/src/System.Management.Automation/engine/runtime/Operations/StringOps.cs
@@ -97,7 +97,7 @@ namespace System.Management.Automation
/// StringComparison.InvariantCulture is not in CoreCLR, so we need to use
/// CultureInfo.InvariantCulture.CompareInfo.Compare(string, string, CompareOptions) == 0
/// to substitute
- /// String.Equals(string, string, StringComparison)
+ /// String.Equals(string, string, StringComparison)
///
internal static bool Equals(string strA, string strB, CultureInfo culture, CompareOptions option)
{
diff --git a/src/System.Management.Automation/engine/runtime/Operations/VariableOps.cs b/src/System.Management.Automation/engine/runtime/Operations/VariableOps.cs
index 1b9e60435d..33cb89991c 100644
--- a/src/System.Management.Automation/engine/runtime/Operations/VariableOps.cs
+++ b/src/System.Management.Automation/engine/runtime/Operations/VariableOps.cs
@@ -83,7 +83,7 @@ namespace System.Management.Automation
throw e;
}
var.SetValueRaw(value, true);
- // Don't update the PSVariable's attributes until we successfully set the value
+ // Don't update the PSVariable's attributes until we successfully set the value
var.Attributes.Clear();
var.AddParameterAttributesNoChecks(attributes);
diff --git a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs
index 8803e3cbfa..e63fb06a84 100644
--- a/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs
+++ b/src/System.Management.Automation/engine/runtime/ScriptBlockToPowerShell.cs
@@ -200,7 +200,7 @@ namespace System.Management.Automation
}
///
- /// Converts a ScriptBlock to a PowerShell object by traversing the
+ /// Converts a ScriptBlock to a PowerShell object by traversing the
/// given Ast.
///
internal class ScriptBlockToPowerShellConverter
@@ -281,7 +281,7 @@ namespace System.Management.Automation
var locals =
MutableTuple.MakeTuple(Compiler.DottedLocalsTupleType, Compiler.DottedLocalsNameIndexMap);
- // Get the parameter metadata for the script block.
+ // Get the parameter metadata for the script block.
// If 'functionParameters' is not null, then the ScriptBlockAst is actually the body of a FunctionDefinitionAst, and it doesn't have a ParamBlock.
// If 'functionParameters' is null, then the ScriptBlockAst may have parameters defined in its ParamBlock.
bool usesCmdletBinding = false;
@@ -368,12 +368,12 @@ namespace System.Management.Automation
usingAst = (UsingExpressionAst)usingAsts[i];
object value = null;
- // This happens only when GetUsingValues gets called outside the ScriptBlockToPowerShellConverter class
+ // This happens only when GetUsingValues gets called outside the ScriptBlockToPowerShellConverter class
if (!hasUsingExprInDifferentScope && HasUsingExpressionsInDifferentScopes(usingAst, body, ref sbClosestToPreUsingExpr))
{
// If there are UsingExpressions in different scopes, the array-form using values will not be useful
// even if the remote end is PSv3 or PSv4, because the way we handle using expression in PSv3 and PSv4
- // doesn't support UsingExpression in different scopes. In this case, we will set the array-form using
+ // doesn't support UsingExpression in different scopes. In this case, we will set the array-form using
// value to be null before return.
//
// Note that this check only affect array-form using value. In PSv5, we change the way to handle UsingExpression
@@ -500,7 +500,7 @@ namespace System.Management.Automation
var funcAst = current as FunctionDefinitionAst;
if (funcAst != null)
{
- // The parent chain of the current UsingExpression reaches a FunctionDefinitionAst, then the UsingExpression
+ // The parent chain of the current UsingExpression reaches a FunctionDefinitionAst, then the UsingExpression
// must be in 'Parameters' property of this FunctionDefinitionAst.
// In this case, the 'Body' of this FunctionDefinitionAst represents the scope that the UsingExpression is in.
diff --git a/src/System.Management.Automation/engine/scriptparameterbinder.cs b/src/System.Management.Automation/engine/scriptparameterbinder.cs
index 2016397b2d..c4d5ea7d26 100644
--- a/src/System.Management.Automation/engine/scriptparameterbinder.cs
+++ b/src/System.Management.Automation/engine/scriptparameterbinder.cs
@@ -12,7 +12,7 @@ namespace System.Management.Automation
///
/// The parameter binder for shell functions.
///
- ///
+ ///
internal class ScriptParameterBinder : ParameterBinderBase
{
#region ctor
@@ -20,23 +20,23 @@ namespace System.Management.Automation
///
/// Constructs a ScriptParameterBinder with the specified context
///
- ///
+ ///
///
/// The script block representing the code being run
///
- ///
+ ///
///
/// The invocation information about the code that is being run.
///
- ///
+ ///
///
/// The context under which the shell function is executing.
///
- ///
+ ///
///
/// The command instance that represents the script in a pipeline. May be null.
///
- ///
+ ///
///
/// If binding in a new local scope, the scope to set variables in. If dotting, the value is null.
///
@@ -70,15 +70,15 @@ namespace System.Management.Automation
///
/// Gets the default value for the specified parameter
///
- ///
+ ///
///
/// The name of the parameter to get the default value of.
///
- ///
+ ///
///
/// The default value of the specified parameter.
///
- ///
+ ///
/// see SessionStateInternal.GetVariableValue
internal override object GetDefaultParameterValue(string name)
{
diff --git a/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs b/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs
index 68c838fc6e..7767e25727 100644
--- a/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs
+++ b/src/System.Management.Automation/engine/scriptparameterbindercontroller.cs
@@ -12,7 +12,7 @@ namespace System.Management.Automation
/// This is the interface between the ScriptCommandProcessor and the
/// parameter binders required to bind parameters to a shell function.
///
- ///
+ ///
internal class ScriptParameterBinderController : ParameterBinderController
{
#region ctor
@@ -21,7 +21,7 @@ namespace System.Management.Automation
/// Initializes the cmdlet parameter binder controller for
/// the specified cmdlet and engine context
///
- ///
+ ///
///
/// The script that contains the parameter metadata.
///
@@ -71,11 +71,11 @@ namespace System.Management.Automation
///
/// Binds the command line parameters for shell functions/filters/scripts/scriptblocks
///
- ///
+ ///
///
/// The arguments to be bound.
///
- ///
+ ///
///
/// True if binding was successful or false otherwise.
///
@@ -124,20 +124,20 @@ namespace System.Management.Automation
/// Passes the binding directly through to the parameter binder.
/// It does no verification against metadata.
///
- ///
+ ///
///
/// The name and value of the variable to bind.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// True if the parameter was successfully bound. Any error condition
/// produces an exception.
///
- ///
+ ///
internal override bool BindParameter(CommandParameterInternal argument, ParameterBindingFlags flags)
{
// Just pass the binding straight through. No metadata to verify the parameter against.
@@ -148,11 +148,11 @@ namespace System.Management.Automation
///
/// Binds the specified parameters to the shell function
///
- ///
+ ///
///
/// The arguments to bind.
///
- ///
+ ///
internal override Collection BindParameters(Collection arguments)
{
Collection result = new Collection();
@@ -166,7 +166,7 @@ namespace System.Management.Automation
}
// We don't want to throw an exception yet because
- // the parameter might be a positional argument
+ // the parameter might be a positional argument
MergedCompiledCommandParameter parameter =
BindableParameters.GetMatchingParameter(
@@ -218,11 +218,11 @@ namespace System.Management.Automation
/// Takes the remaining arguments that haven't been bound, and binds
/// them to $args
///
- ///
+ ///
///
/// The remaining unbound arguments.
///
- ///
+ ///
///
/// An array containing the values that were bound to $args.
///
diff --git a/src/System.Management.Automation/engine/serialization.cs b/src/System.Management.Automation/engine/serialization.cs
index 5b4e7e929a..940e0e73a0 100644
--- a/src/System.Management.Automation/engine/serialization.cs
+++ b/src/System.Management.Automation/engine/serialization.cs
@@ -254,7 +254,7 @@ namespace System.Management.Automation
///
/// object to be serialized
///
- /// Please note that this method shouldn't throw any exceptions.
+ /// Please note that this method shouldn't throw any exceptions.
/// If it throws - please open a bug.
///
internal void Serialize(object source)
@@ -272,7 +272,7 @@ namespace System.Management.Automation
/// Stream to which this object belong. Ex: Output, Error etc.
///
///
- /// Please note that this method shouldn't throw any exceptions.
+ /// Please note that this method shouldn't throw any exceptions.
/// If it throws - please open a bug.
///
internal void Serialize(object source, string streamName)
@@ -300,7 +300,7 @@ namespace System.Management.Automation
internal enum DeserializationOptions
{
None = 0,
- NoRootElement = 256, // I start at 256 to try not to overlap
+ NoRootElement = 256, // I start at 256 to try not to overlap
NoNamespace = 512, // with SerializationOptions and to catch bugs early
DeserializeScriptBlocks = 1024,
@@ -526,7 +526,7 @@ namespace System.Management.Automation
}
///
- /// Read the root element tag and set the cursor to start tag of
+ /// Read the root element tag and set the cursor to start tag of
/// first object.
///
private void Start()
@@ -726,7 +726,7 @@ namespace System.Management.Automation
///
/// Gets a new collection of typenames without "Deserialization." prefix
- /// in the typename. This will allow to map type info/format info of the orignal type
+ /// in the typename. This will allow to map type info/format info of the orignal type
/// for deserialized objects.
///
///
@@ -852,7 +852,7 @@ namespace System.Management.Automation
}
///
- /// Writes the start of root element
+ /// Writes the start of root element
///
internal void Start()
{
@@ -864,7 +864,7 @@ namespace System.Management.Automation
}
///
- /// Writes the end of root element
+ /// Writes the end of root element
///
internal void End()
{
@@ -952,7 +952,7 @@ namespace System.Management.Automation
return;
}
- //Object is not of primitive known type. Check if this has
+ //Object is not of primitive known type. Check if this has
//already been serialized.
string refId = _objectRefIdHandler.GetRefId(source);
if (refId != null)
@@ -966,7 +966,7 @@ namespace System.Management.Automation
return;
}
- //Note: We do not use containers in depth calculation. i.e even if the
+ //Note: We do not use containers in depth calculation. i.e even if the
//current depth is zero, we serialize the container. All contained items will
//get serialized with depth zero.
if (HandleKnownContainerTypes(source, streamName, property, depth))
@@ -1068,7 +1068,7 @@ namespace System.Management.Automation
///
- ///
+ ///
///
///
///
@@ -1127,7 +1127,7 @@ namespace System.Management.Automation
WriteAttribute(SerializationStrings.StreamNameAttribute, streamName);
}
- //Note: We do not use WriteRaw for serializing secure string. WriteString
+ //Note: We do not use WriteRaw for serializing secure string. WriteString
//does necessary escaping which may be needed for certain
//characters.
_writer.WriteString(encryptedString);
@@ -1243,9 +1243,9 @@ namespace System.Management.Automation
if (depth != 0)
{
- // An object which is original enumerable becomes an PSObject with ArrayList on deserialization.
+ // An object which is original enumerable becomes an PSObject with ArrayList on deserialization.
// So on roundtrip it will show up as List.
- // We serialize properties of enumerable and on deserialization mark the object as Deserialized.
+ // We serialize properties of enumerable and on deserialization mark the object as Deserialized.
// So if object is marked deserialized, we should write properties.
if (ct == ContainerType.Enumerable || (mshSource != null && mshSource.isDeserialized))
{
@@ -1328,7 +1328,7 @@ namespace System.Management.Automation
/// it can be different. for more info.
///
///
- /// TypeSerializationInfo for the primitive.
+ /// TypeSerializationInfo for the primitive.
///
///
///
@@ -1393,7 +1393,7 @@ namespace System.Management.Automation
///
///
///
- /// TypeSerializationInfo for the primitive.
+ /// TypeSerializationInfo for the primitive.
///
///
///
@@ -1540,7 +1540,7 @@ namespace System.Management.Automation
{
Queue serializedClasses = new Queue();
- //
+ //
// CREATE SERIALIZED FORM OF THE CLASS METADATA
//
ArrayList psoClasses = new ArrayList();
@@ -1706,7 +1706,7 @@ namespace System.Management.Automation
#region membersets
///
- /// Returns true if PSObject has notes.
+ /// Returns true if PSObject has notes.
///
///
///
@@ -1737,7 +1737,7 @@ namespace System.Management.Automation
}
///
- /// Serialize member set. This method serializes without writing
+ /// Serialize member set. This method serializes without writing
/// enclosing tags and attributes.
///
///
@@ -1947,7 +1947,7 @@ namespace System.Management.Automation
/// Name for enclosing element tag
///
///
- /// depth to which each property should be
+ /// depth to which each property should be
/// serialized
///
private void SerializeProperties
@@ -2026,7 +2026,7 @@ namespace System.Management.Automation
}
catch (System.NotSupportedException)
{
- //ignore exceptions thrown when the enumerator doesn't support Reset() method as in win8:948569
+ //ignore exceptions thrown when the enumerator doesn't support Reset() method as in win8:948569
}
}
catch (Exception exception)
@@ -2180,15 +2180,15 @@ namespace System.Management.Automation
///
/// Gets the string from PSObject using the information from
- /// types.ps1xml.
- /// This string is used for serializing the PSObject at depth 0
+ /// types.ps1xml.
+ /// This string is used for serializing the PSObject at depth 0
/// or when pso.SerializationMethod == SerializationMethod.String.
///
- ///
+ ///
///
/// PSObject to be converted to string
///
- ///
+ ///
///
/// string value to use for serializing this PSObject.
///
@@ -2541,7 +2541,7 @@ namespace System.Management.Automation
serializer.WriteAttribute(SerializationStrings.StreamNameAttribute, streamName);
}
- //Note: We do not use WriteRaw for serializing string. WriteString
+ //Note: We do not use WriteRaw for serializing string. WriteString
//does necessary escaping which may be needed for certain
//characters.
Dbg.Assert(source is string, "Caller should verify that typeof(source) is String");
@@ -2771,13 +2771,13 @@ namespace System.Management.Automation
/// (or InternalDeserializer.DecodeString).
/// This method has been introduced to produce shorter output than XmlConvert.EncodeName
/// (which escapes everything that can't be part of an xml name - whitespace, punctuation).
- ///
+ ///
/// This method has been split into 2 parts to optimize its performance:
- /// 1) part1 (this method) checks if there are any encodable characters and
+ /// 1) part1 (this method) checks if there are any encodable characters and
/// if there aren't it simply (and efficiently) returns the original string
- /// 2) part2 (EncodeString(string, int)) picks up when part1 detects the first encodable
+ /// 2) part2 (EncodeString(string, int)) picks up when part1 detects the first encodable
/// character. It avoids looking at the characters already verified by part1
- /// and copies those already verified characters and then starts encoding
+ /// and copies those already verified characters and then starts encoding
/// the rest of the string.
///
internal static string EncodeString(string s)
@@ -2932,7 +2932,7 @@ namespace System.Management.Automation
get
{
Dbg.Assert(_version.Major <= 1, "Deserializer assumes clixml version is <= 1.1");
- //If minor version is greater than 1, it means that there can be
+ //If minor version is greater than 1, it means that there can be
//some unknown tags in xml. Deserialization should ignore such element.
return (_version.Minor > 1);
}
@@ -2968,7 +2968,7 @@ namespace System.Management.Automation
private readonly ReferenceIdHandlerForDeserializer _typeRefIdHandler;
///
- ///
+ ///
///
///
///
@@ -3030,10 +3030,10 @@ namespace System.Management.Automation
//Versioning Note:Future version of serialization can add new known types.
//This version will ignore those known types, if they are base object.
//It is expected that future version will still put information in base
- //and adapter properties which this serializer can read and use.
- //For example, assume the version 2 serialization engine supports a new known
- //type IPAddress. The version 1 deserializer doesn't know IPAddress as known
- //type and it must retrieve it as an PSObject. The version 2 serializer
+ //and adapter properties which this serializer can read and use.
+ //For example, assume the version 2 serialization engine supports a new known
+ //type IPAddress. The version 1 deserializer doesn't know IPAddress as known
+ //type and it must retrieve it as an PSObject. The version 2 serializer
//can serialize this as follows:
//
// ...
@@ -3113,7 +3113,7 @@ namespace System.Management.Automation
return ReadPSObject();
}
- //If we are here, we have an unknown node. Unknown nodes may
+ //If we are here, we have an unknown node. Unknown nodes may
//be allowed inside PSObject. We do not allow them at top level.
s_trace.TraceError("Invalid element {0} tag found", _reader.LocalName);
@@ -3586,8 +3586,8 @@ namespace System.Management.Automation
// Fix for Win8:75437
// The TokenText property is used in type conversion and it is not being populated during deserialization
// As a result, parameter binding fails in the following case on a remote session
- // register-psssessionconfiguration -Name foo -psversion 3.0
- // The value "3.0" is treated as a double and since the TokenText property holds null, the type converter tries to convert
+ // register-psssessionconfiguration -Name foo -psversion 3.0
+ // The value "3.0" is treated as a double and since the TokenText property holds null, the type converter tries to convert
// from System.Double to System.Version using Parse method of System.Version and fails
dso.TokenText = dso.ToStringFromDeserialization;
}
@@ -3597,7 +3597,7 @@ namespace System.Management.Automation
object baseObject = null;
ContainerType ct = ContainerType.None;
- //Check if tag is PrimaryKnownType.
+ //Check if tag is PrimaryKnownType.
TypeSerializationInfo pktInfo = KnownTypes.GetTypeSerializationInfoFromItemTag(_reader.LocalName);
if (pktInfo != null)
{
@@ -3646,7 +3646,7 @@ namespace System.Management.Automation
}
///
- /// This function reads the refId attribute and creates a
+ /// This function reads the refId attribute and creates a
/// mshObject for that attribute
///
/// mshObject which is created for refId
@@ -3665,7 +3665,7 @@ namespace System.Management.Automation
}
///
- /// Read type names
+ /// Read type names
///
///
/// PSObject to which TypeNames are added
@@ -3755,7 +3755,7 @@ namespace System.Management.Automation
Dbg.Assert(dso != null, "caller should validate the parameter");
Dbg.Assert(_reader.NodeType == XmlNodeType.Element, "NodeType should be Element");
- //Since we are adding baseobject properties as propertybag,
+ //Since we are adding baseobject properties as propertybag,
//mark the object as deserialized.
dso.isDeserialized = true;
dso.adaptedMembers = new PSMemberInfoInternalCollection();
@@ -3784,7 +3784,7 @@ namespace System.Management.Automation
#region memberset
///
- /// Read memberset.
+ /// Read memberset.
///
///
/// collection to which members are added
@@ -3820,7 +3820,7 @@ namespace System.Management.Automation
}
///
- /// read note
+ /// read note
///
///
private PSNoteProperty ReadNoteProperty()
@@ -4723,7 +4723,7 @@ namespace System.Management.Automation
}
///
- /// Skips an element and all its child elements.
+ /// Skips an element and all its child elements.
/// Moves cursor to next content Node.
///
private void Skip()
@@ -4775,7 +4775,7 @@ namespace System.Management.Automation
/// Helper function for building XmlException
///
///
- /// resource String
+ /// resource String
///
///
///
@@ -4999,13 +4999,13 @@ namespace System.Management.Automation
///
/// A class for identifying types which are treated as KnownType by Monad.
- /// A KnownType is guranteed to be available on machine on which monad is
+ /// A KnownType is guranteed to be available on machine on which monad is
/// running.
///
internal static class KnownTypes
{
///
- /// Static constructor
+ /// Static constructor
///
static KnownTypes()
{
@@ -5205,7 +5205,7 @@ namespace System.Management.Automation
};
///
- /// Hashtable of knowntypes.
+ /// Hashtable of knowntypes.
/// Key is Type.FullName and value is Type object.
///
private static readonly Dictionary s_knownTableKeyType = new Dictionary();
@@ -5254,7 +5254,7 @@ namespace System.Management.Automation
}
///
- /// Checks if source is known container type and returns appropriate
+ /// Checks if source is known container type and returns appropriate
/// information
///
///
@@ -5342,15 +5342,15 @@ namespace System.Management.Automation
}
}
- //Check if type is IEnumerable
- //(LanguagePrimitives.GetEnumerable above should be enough - the check below is to preserve
+ //Check if type is IEnumerable
+ //(LanguagePrimitives.GetEnumerable above should be enough - the check below is to preserve
// backcompatibility in some corner-cases (see bugs in Windows7 - #372562 and #372563))
if (ct == ContainerType.None)
{
enumerable = source as IEnumerable;
if (enumerable != null)
{
- //WinBlue: 206515 - There are no elements in the source. The source is of type XmlLinkedNode (which derives from XmlNode which implements IEnumerable).
+ //WinBlue: 206515 - There are no elements in the source. The source is of type XmlLinkedNode (which derives from XmlNode which implements IEnumerable).
// So, adding an additional check to see if this contains any elements
IEnumerator enumerator = enumerable.GetEnumerator();
if (enumerator != null && enumerator.MoveNext())
@@ -5388,11 +5388,11 @@ namespace System.Management.Automation
///
/// Gets the "ToString" from PSObject.
///
- ///
+ ///
///
/// PSObject to be converted to string
///
- ///
+ ///
///
/// "ToString" value
///
@@ -5550,8 +5550,8 @@ namespace System.Management.Automation
///
/// A dictionary from object to T where
- /// 1) keys are objects,
- /// 2) keys use reference equality,
+ /// 1) keys are objects,
+ /// 2) keys use reference equality,
/// 3) dictionary keeps only weak references to keys
///
/// type of dictionary values
@@ -5783,9 +5783,9 @@ namespace System.Management.Automation
}
///
- /// is a that is limited to
- /// 1) case-insensitive strings as keys and
- /// 2) values that can be serialized and deserialized during PowerShell remoting handshake
+ /// is a that is limited to
+ /// 1) case-insensitive strings as keys and
+ /// 2) values that can be serialized and deserialized during PowerShell remoting handshake
/// (in major-version compatible versions of PowerShell remoting)
///
[Serializable]
@@ -5951,7 +5951,7 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the value associated with the specified key.
+ /// Gets or sets the value associated with the specified key.
///
/// The key whose value to get or set
/// The value associated with the specified key.
@@ -5979,7 +5979,7 @@ namespace System.Management.Automation
}
///
- /// Gets or sets the value associated with the specified key.
+ /// Gets or sets the value associated with the specified key.
///
/// The key whose value to get or set
/// The value associated with the specified key.
@@ -6403,7 +6403,7 @@ namespace System.Management.Automation
#region Internal Methods
///
- /// If originalHash contains PSVersionTable, then just returns the Cloned copy of
+ /// If originalHash contains PSVersionTable, then just returns the Cloned copy of
/// the original hash. Othewise, creates a clone copy and add PSVersionInfo.GetPSVersionTable
/// to the clone and returns.
///
@@ -6735,7 +6735,7 @@ namespace Microsoft.PowerShell
}
///
- /// Gets value of a property (has to be present, value has to be non-null).
+ /// Gets value of a property (has to be present, value has to be non-null).
/// Can throw any exception (which is ok - LanguagePrimitives.ConvertTo will catch that).
///
/// Expected type of the property
diff --git a/src/System.Management.Automation/help/AliasHelpInfo.cs b/src/System.Management.Automation/help/AliasHelpInfo.cs
index 82698d7b48..253cab15c3 100644
--- a/src/System.Management.Automation/help/AliasHelpInfo.cs
+++ b/src/System.Management.Automation/help/AliasHelpInfo.cs
@@ -6,17 +6,17 @@ using System.Diagnostics.CodeAnalysis; // for fxcop
namespace System.Management.Automation
{
- ///
- /// Stores help information related to Alias Commands.
+ ///
+ /// Stores help information related to Alias Commands.
///
internal class AliasHelpInfo : HelpInfo
{
///
/// Initializes a new instance of the AliasHelpInfo class.
///
- ///
+ ///
///
- /// The constructor is private. The only way to create an
+ /// The constructor is private. The only way to create an
/// AliasHelpInfo object is through static method
///
[SuppressMessage("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
@@ -57,7 +57,7 @@ namespace System.Management.Automation
///
/// Returns synopsis of alias help.
///
- /// Synopsis of alias help.
+ /// Synopsis of alias help.
internal override string Synopsis { get; } = "";
///
diff --git a/src/System.Management.Automation/help/AliasHelpProvider.cs b/src/System.Management.Automation/help/AliasHelpProvider.cs
index 1702a76c00..3f10cd9140 100644
--- a/src/System.Management.Automation/help/AliasHelpProvider.cs
+++ b/src/System.Management.Automation/help/AliasHelpProvider.cs
@@ -11,14 +11,14 @@ namespace System.Management.Automation
///
/// Implements the help provider for alias help.
///
- ///
+ ///
///
/// Unlike other help providers, AliasHelpProvider directly inherits from HelpProvider
/// instead of HelpProviderWithCache. This is because alias can be created/removed/updated
/// in a Microsoft Command Shell session. And thus caching may result in old alias being cached.
- ///
- /// The real information for alias is stored in command help. To retrieve the real
- /// help information, help forwarding is needed.
+ ///
+ /// The real information for alias is stored in command help. To retrieve the real
+ /// help information, help forwarding is needed.
///
internal class AliasHelpProvider : HelpProvider
{
@@ -69,7 +69,7 @@ namespace System.Management.Automation
}
///
- /// Help category of alias help provider, which is a constant: HelpCategory.Alias.
+ /// Help category of alias help provider, which is a constant: HelpCategory.Alias.
///
/// Help category of alias help provider.
internal override HelpCategory HelpCategory
@@ -88,11 +88,11 @@ namespace System.Management.Automation
/// Exact match an alias help target.
///
///
- /// This will
- /// a. use _commandDiscovery object to retrieve AliasInfo object.
+ /// This will
+ /// a. use _commandDiscovery object to retrieve AliasInfo object.
/// b. Create AliasHelpInfo object based on AliasInfo object
///
- /// help request object
+ /// help request object
/// help info found
internal override IEnumerable ExactMatchHelp(HelpRequest helpRequest)
{
@@ -121,20 +121,20 @@ namespace System.Management.Automation
}
///
- /// Search an alias help target.
+ /// Search an alias help target.
///
///
- /// This will,
+ /// This will,
/// a. use _sessionState object to get a list of alias that match the target.
/// b. for each alias, retrieve help info as in ExactMatchHelp.
///
- /// help request object
+ /// help request object
///
- /// If true, searches for pattern in the help content. Individual
+ /// If true, searches for pattern in the help content. Individual
/// provider can decide which content to search in.
- ///
+ ///
/// If false, searches for pattern in the command names.
- ///
+ ///
/// a IEnumerable of helpinfo object
internal override IEnumerable SearchHelp(HelpRequest helpRequest, bool searchOnlyContent)
{
@@ -164,7 +164,7 @@ namespace System.Management.Automation
{
// Component/Role/Functionality match is done only for SearchHelp
// as "get-help * -category alias" should not forwad help to
- // CommandHelpProvider..(ExactMatchHelp does forward help to
+ // CommandHelpProvider..(ExactMatchHelp does forward help to
// CommandHelpProvider)
if (!Match(helpInfo, helpRequest))
{
@@ -211,7 +211,7 @@ namespace System.Management.Automation
{
// Component/Role/Functionality match is done only for SearchHelp
// as "get-help * -category alias" should not forwad help to
- // CommandHelpProvider..(ExactMatchHelp does forward help to
+ // CommandHelpProvider..(ExactMatchHelp does forward help to
// CommandHelpProvider)
if (!Match(helpInfo, helpRequest))
{
diff --git a/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs b/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs
index 2a0b8b0ebf..69316612c3 100644
--- a/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs
+++ b/src/System.Management.Automation/help/DefaultCommandHelpObjectBuilder.cs
@@ -20,7 +20,7 @@ namespace System.Management.Automation.Help
internal class PositionalParameterComparer : IComparer
{
///
- ///
+ ///
///
///
///
@@ -234,7 +234,7 @@ namespace System.Management.Automation.Help
mshObject.Properties.Add(new PSNoteProperty("WorkflowCommonParameters", commonWorkflow));
Collection parameters = new Collection();
- // GenerateParameters parameters in display order
+ // GenerateParameters parameters in display order
// ie., Positional followed by
// Named Mandatory (in alpha numeric) followed by
// Named (in alpha numeric)
@@ -255,7 +255,7 @@ namespace System.Management.Automation.Help
///
/// HelpInfo object
///
- /// a collection of parameters in display order
+ /// a collection of parameters in display order
/// ie., Positional followed by
/// Named Mandatory (in alpha numeric) followed by
/// Named (in alpha numeric)
diff --git a/src/System.Management.Automation/help/DefaultHelpProvider.cs b/src/System.Management.Automation/help/DefaultHelpProvider.cs
index 5b1c1580a7..8089061b52 100644
--- a/src/System.Management.Automation/help/DefaultHelpProvider.cs
+++ b/src/System.Management.Automation/help/DefaultHelpProvider.cs
@@ -7,12 +7,12 @@ using System.Collections.Generic;
namespace System.Management.Automation
{
///
- ///
+ ///
/// Class DefaultHelpProvider implement the help provider for commands.
- ///
+ ///
/// Command Help information are stored in 'help.xml' files. Location of these files
/// can be found from CommandDiscovery.
- ///
+ ///
///
internal class DefaultHelpProvider : HelpFileHelpProvider
{
@@ -27,7 +27,7 @@ namespace System.Management.Automation
#region Common Properties
///
- ///
+ ///
///
///
internal override string Name
@@ -39,7 +39,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
internal override HelpCategory HelpCategory
@@ -55,7 +55,7 @@ namespace System.Management.Automation
#region Help Provider Interface
///
- ///
+ ///
///
/// help request object
///
diff --git a/src/System.Management.Automation/help/DscResourceHelpProvider.cs b/src/System.Management.Automation/help/DscResourceHelpProvider.cs
index 54642f81f6..428801dcfd 100644
--- a/src/System.Management.Automation/help/DscResourceHelpProvider.cs
+++ b/src/System.Management.Automation/help/DscResourceHelpProvider.cs
@@ -29,9 +29,9 @@ namespace System.Management.Automation
private readonly ExecutionContext _context;
///
- /// This is a hashtable to track which help files are loaded already.
- ///
- /// This will avoid one help file getting loaded again and again.
+ /// This is a hashtable to track which help files are loaded already.
+ ///
+ /// This will avoid one help file getting loaded again and again.
///
///
private readonly Hashtable _helpFiles = new Hashtable();
@@ -121,7 +121,7 @@ namespace System.Management.Automation
}
///
- /// Get the help in for the DscResource Info. ///
+ /// Get the help in for the DscResource Info. ///
///
/// Searcher for DscResources.
/// Next HelpInfo object.
@@ -166,15 +166,15 @@ namespace System.Management.Automation
}
///
- /// Check whether a HelpItems node indicates that the help content is
- /// authored using maml schema.
- ///
- /// This covers two cases:
+ /// Check whether a HelpItems node indicates that the help content is
+ /// authored using maml schema.
+ ///
+ /// This covers two cases:
/// a. If the help file has an extension .maml.
/// b. If HelpItems node (which should be the top node of any command help file)
/// has an attribute "schema" with value "maml", its content is in maml
/// schema
- ///
+ ///
///
/// File name.
/// Nodes to check.
@@ -290,13 +290,13 @@ namespace System.Management.Automation
}
///
- /// Load help file for HelpInfo objects. The HelpInfo objects will be
+ /// Load help file for HelpInfo objects. The HelpInfo objects will be
/// put into help cache.
///
///
- /// 1. Needs to pay special attention about error handling in this function.
+ /// 1. Needs to pay special attention about error handling in this function.
/// Common errors include: file not found and invalid xml. None of these error
- /// should cause help search to stop.
+ /// should cause help search to stop.
/// 2. a helpfile cache is used to avoid same file got loaded again and again.
///
private void LoadHelpFile(string helpFile, string helpFileIdentifier)
diff --git a/src/System.Management.Automation/help/FaqHelpInfo.cs b/src/System.Management.Automation/help/FaqHelpInfo.cs
index 1f35588c4a..c5a9b69267 100644
--- a/src/System.Management.Automation/help/FaqHelpInfo.cs
+++ b/src/System.Management.Automation/help/FaqHelpInfo.cs
@@ -9,10 +9,10 @@ using System.Diagnostics.CodeAnalysis; // for fxcop
namespace System.Management.Automation
{
///
- ///
- /// Class FaqHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class FaqHelpInfo keeps track of help information to be returned by
/// faq help provider.
- ///
+ ///
///
internal class FaqHelpInfo : HelpInfo
{
@@ -21,7 +21,7 @@ namespace System.Management.Automation
///
///
/// This constructor is can be called only from constructors of derived class
- /// for FaqHelpInfo. The only way to to create a FaqHelpInfo is through
+ /// for FaqHelpInfo. The only way to to create a FaqHelpInfo is through
/// static function
/// Load(XmlNode node)
/// where some sanity check is done.
@@ -43,7 +43,7 @@ namespace System.Management.Automation
#region Basic Help Properties / Methods
///
- /// Name of faq.
+ /// Name of faq.
///
/// Name of faq
internal override string Name
@@ -120,10 +120,10 @@ namespace System.Management.Automation
///
/// Returns true if help content in help info matches the
- /// pattern contained in .
+ /// pattern contained in .
/// The underlying code will usually run pattern.IsMatch() on
/// content it wants to search.
- /// FAQ help info looks for pattern in Synopsis and
+ /// FAQ help info looks for pattern in Synopsis and
/// Answers
///
///
diff --git a/src/System.Management.Automation/help/FaqHelpProvider.cs b/src/System.Management.Automation/help/FaqHelpProvider.cs
index aca6af89fb..86bbddf5dd 100644
--- a/src/System.Management.Automation/help/FaqHelpProvider.cs
+++ b/src/System.Management.Automation/help/FaqHelpProvider.cs
@@ -13,7 +13,7 @@ namespace System.Management.Automation
///
/// Class FaqHelpProvider implement the help provider for faq's.
///
- ///
+ ///
///
/// Faq Help information are stored in 'faq.xml' files. These files are
/// located in the Monad / CustomShell Path as well as in the Application Base
@@ -80,13 +80,13 @@ namespace System.Management.Automation
}
///
- /// Load help file for HelpInfo objects. The HelpInfo objects will be
+ /// Load help file for HelpInfo objects. The HelpInfo objects will be
/// put into help cache.
///
///
- /// 1. Needs to pay special attention about error handling in this function.
+ /// 1. Needs to pay special attention about error handling in this function.
/// Common errors include: file not found and invalid xml. None of these error
- /// should cause help search to stop.
+ /// should cause help search to stop.
///
///
private void LoadHelpFile(string helpFile)
@@ -175,7 +175,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
private void LoadFaqDiv(XmlNode xmlNode)
@@ -206,8 +206,8 @@ namespace System.Management.Automation
# region Help Provider Interface
///
- /// This will reset the help cache. Normally this corresponds to a
- /// help culture change.
+ /// This will reset the help cache. Normally this corresponds to a
+ /// help culture change.
///
internal override void Reset()
{
@@ -221,9 +221,9 @@ namespace System.Management.Automation
#region Private Data
///
- /// This is a hashtable to track which help files are loaded already.
- ///
- /// This will avoid one help file getting loaded again and again.
+ /// This is a hashtable to track which help files are loaded already.
+ ///
+ /// This will avoid one help file getting loaded again and again.
///
private readonly Hashtable _helpFiles = new Hashtable();
diff --git a/src/System.Management.Automation/help/GeneralHelpInfo.cs b/src/System.Management.Automation/help/GeneralHelpInfo.cs
index c19ed21f77..57486da870 100644
--- a/src/System.Management.Automation/help/GeneralHelpInfo.cs
+++ b/src/System.Management.Automation/help/GeneralHelpInfo.cs
@@ -8,10 +8,10 @@ using System.Diagnostics.CodeAnalysis; // for fxcop
namespace System.Management.Automation
{
///
- ///
- /// Class GeneralHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class GeneralHelpInfo keeps track of help information to be returned by
/// general help provider.
- ///
+ ///
///
internal class GeneralHelpInfo : HelpInfo
{
@@ -20,7 +20,7 @@ namespace System.Management.Automation
///
///
/// This constructor is can be called only from constructors of derived class
- /// for GeneralHelpInfo. The only way to to create a GeneralHelpInfo is through
+ /// for GeneralHelpInfo. The only way to to create a GeneralHelpInfo is through
/// static function
/// Load(XmlNode node)
/// where some sanity check is done.
@@ -42,7 +42,7 @@ namespace System.Management.Automation
#region Basic Help Properties
///
- /// Name of help content.
+ /// Name of help content.
///
/// Name of help content
internal override string Name
@@ -106,7 +106,7 @@ namespace System.Management.Automation
#endregion
- #region Load
+ #region Load
///
/// Create a GeneralHelpInfo object from an XmlNode.
diff --git a/src/System.Management.Automation/help/GeneralHelpProvider.cs b/src/System.Management.Automation/help/GeneralHelpProvider.cs
index 9dbb56ebd4..b456963442 100644
--- a/src/System.Management.Automation/help/GeneralHelpProvider.cs
+++ b/src/System.Management.Automation/help/GeneralHelpProvider.cs
@@ -13,7 +13,7 @@ namespace System.Management.Automation
///
/// Class GeneralHelpProvider implement the help provider for general help topics.
///
- ///
+ ///
///
/// General Help information are stored in 'concept.xml' files. These files are
/// located in the Monad / CustomShell Path as well as in the Application Base
@@ -80,13 +80,13 @@ namespace System.Management.Automation
}
///
- /// Load help file for HelpInfo objects. The HelpInfo objects will be
+ /// Load help file for HelpInfo objects. The HelpInfo objects will be
/// put into help cache.
///
///
- /// 1. Needs to pay special attention about error handling in this function.
+ /// 1. Needs to pay special attention about error handling in this function.
/// Common errors include: file not found and invalid xml. None of these error
- /// should cause help search to stop.
+ /// should cause help search to stop.
///
///
private void LoadHelpFile(string helpFile)
@@ -174,8 +174,8 @@ namespace System.Management.Automation
# region Help Provider Interface
///
- /// This will reset the help cache. Normally this corresponds to a
- /// help culture change.
+ /// This will reset the help cache. Normally this corresponds to a
+ /// help culture change.
///
internal override void Reset()
{
@@ -189,9 +189,9 @@ namespace System.Management.Automation
#region Private Data
///
- /// This is a hashtable to track which help files are loaded already.
- ///
- /// This will avoid one help file getting loaded again and again.
+ /// This is a hashtable to track which help files are loaded already.
+ ///
+ /// This will avoid one help file getting loaded again and again.
///
private readonly Hashtable _helpFiles = new Hashtable();
diff --git a/src/System.Management.Automation/help/GlossaryHelpInfo.cs b/src/System.Management.Automation/help/GlossaryHelpInfo.cs
index db3670388e..8befd55503 100644
--- a/src/System.Management.Automation/help/GlossaryHelpInfo.cs
+++ b/src/System.Management.Automation/help/GlossaryHelpInfo.cs
@@ -9,10 +9,10 @@ using System.Diagnostics.CodeAnalysis;
namespace System.Management.Automation
{
///
- ///
- /// Class GlossaryHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class GlossaryHelpInfo keeps track of help information to be returned by
/// glossary help provider.
- ///
+ ///
///
internal class GlossaryHelpInfo : HelpInfo
{
@@ -21,7 +21,7 @@ namespace System.Management.Automation
///
///
/// This constructor is can be called only from constructors of derived class
- /// for GlossaryHelpInfo. The only way to to create a GlossaryHelpInfo is through
+ /// for GlossaryHelpInfo. The only way to to create a GlossaryHelpInfo is through
/// static function
/// Load(XmlNode node)
/// where some sanity check is done.
@@ -45,7 +45,7 @@ namespace System.Management.Automation
#region Basic Help Properties
///
- /// Name of glossary.
+ /// Name of glossary.
///
/// Name of glossary
internal override string Name { get; } = "";
@@ -144,7 +144,7 @@ namespace System.Management.Automation
#endregion
- #region Load
+ #region Load
///
/// Create a GlossaryHelpInfo object from an XmlNode.
diff --git a/src/System.Management.Automation/help/GlossaryHelpProvider.cs b/src/System.Management.Automation/help/GlossaryHelpProvider.cs
index 310817463a..592cbfb95d 100644
--- a/src/System.Management.Automation/help/GlossaryHelpProvider.cs
+++ b/src/System.Management.Automation/help/GlossaryHelpProvider.cs
@@ -13,7 +13,7 @@ namespace System.Management.Automation
///
/// Class GlossaryHelpProvider implement the help provider for glossary's.
///
- ///
+ ///
///
/// Glossary Help information are stored in 'glossary.xml' files. These files are
/// located in the Monad / CustomShell Path as well as in the Application Base
@@ -60,18 +60,18 @@ namespace System.Management.Automation
#region Load cache
///
- /// This is for implementing CustomMatch algorithm to be used in
- /// HelpProviderWithCache for matching a help target with keys in
- /// help cache.
- ///
+ /// This is for implementing CustomMatch algorithm to be used in
+ /// HelpProviderWithCache for matching a help target with keys in
+ /// help cache.
+ ///
/// For each glossary entry, it can contain multiple terms. The
/// key stored in help cache is a concatenation of keys. For example,
- /// if there are two terms "foo" and "bar", the key to be used in
- /// help cache will be "foo, bar".
- ///
- /// Because of this mangling, key "foo, bar" should match both
+ /// if there are two terms "foo" and "bar", the key to be used in
+ /// help cache will be "foo, bar".
+ ///
+ /// Because of this mangling, key "foo, bar" should match both
/// "foo" and "bar".
- ///
+ ///
///
/// target to search
/// key used in cache table
@@ -116,13 +116,13 @@ namespace System.Management.Automation
}
///
- /// Load help file for HelpInfo objects. The HelpInfo objects will be
+ /// Load help file for HelpInfo objects. The HelpInfo objects will be
/// put into help cache.
///
///
- /// 1. Needs to pay special attention about error handling in this function.
+ /// 1. Needs to pay special attention about error handling in this function.
/// Common errors include: file not found and invalid xml. None of these error
- /// should cause help search to stop.
+ /// should cause help search to stop.
///
///
private void LoadHelpFile(string helpFile)
@@ -211,7 +211,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
private void LoadGlossaryDiv(XmlNode xmlNode)
@@ -242,8 +242,8 @@ namespace System.Management.Automation
# region Help Provider Interface
///
- /// This will reset the help cache. Normally this corresponds to a
- /// help culture change.
+ /// This will reset the help cache. Normally this corresponds to a
+ /// help culture change.
///
internal override void Reset()
{
@@ -257,9 +257,9 @@ namespace System.Management.Automation
#region Private Data
///
- /// This is a hashtable to track which help files are loaded already.
- ///
- /// This will avoid one help file getting loaded again and again.
+ /// This is a hashtable to track which help files are loaded already.
+ ///
+ /// This will avoid one help file getting loaded again and again.
///
private readonly Hashtable _helpFiles = new Hashtable();
diff --git a/src/System.Management.Automation/help/HelpCategoryInvalidException.cs b/src/System.Management.Automation/help/HelpCategoryInvalidException.cs
index 24f3828cce..c4cef89c69 100644
--- a/src/System.Management.Automation/help/HelpCategoryInvalidException.cs
+++ b/src/System.Management.Automation/help/HelpCategoryInvalidException.cs
@@ -20,8 +20,8 @@ using System.Security.Permissions;
namespace Microsoft.PowerShell.Commands
{
///
- /// The exception that is thrown when there is no help category matching
- /// a specific input string.
+ /// The exception that is thrown when there is no help category matching
+ /// a specific input string.
///
[Serializable]
public class HelpCategoryInvalidException : ArgumentException, IContainsErrorRecord
@@ -68,7 +68,7 @@ namespace Microsoft.PowerShell.Commands
private ErrorRecord _errorRecord;
///
- /// Gets ErrorRecord embedded in this exception.
+ /// Gets ErrorRecord embedded in this exception.
///
/// ErrorRecord instance
public ErrorRecord ErrorRecord
diff --git a/src/System.Management.Automation/help/HelpCommands.cs b/src/System.Management.Automation/help/HelpCommands.cs
index 461f221f32..3ed342367e 100644
--- a/src/System.Management.Automation/help/HelpCommands.cs
+++ b/src/System.Management.Automation/help/HelpCommands.cs
@@ -97,13 +97,13 @@ namespace Microsoft.PowerShell.Commands
///
///
/// Currently we support following views:
- ///
+ ///
/// 1. Reminder (Default - Experienced User)
/// 2. Detailed (Beginner - Beginning User)
/// 3. Full (All Users)
- /// 4. Examples
- /// 5. Parameters
- ///
+ /// 4. Examples
+ /// 5. Parameters
+ ///
/// Currently we support these views only for Cmdlets.
/// A SnapIn developer can however change these views.
///
@@ -124,13 +124,13 @@ namespace Microsoft.PowerShell.Commands
///
///
/// Currently we support following views:
- ///
+ ///
/// 1. Reminder (Default - Experienced User)
/// 2. Detailed (Beginner - Beginning User)
/// 3. Full (All Users)
- /// 4. Examples
- /// 5. Parameters
- ///
+ /// 4. Examples
+ /// 5. Parameters
+ ///
/// Currently we support these views only for Cmdlets.
/// A SnapIn developer can however change these views.
///
@@ -151,12 +151,12 @@ namespace Microsoft.PowerShell.Commands
///
///
/// Currently we support following views:
- ///
+ ///
/// 1. Reminder (Default - Experienced User)
/// 2. Detailed (Beginner - Beginning User)
/// 3. Full (All Users)
- /// 4. Examples
- ///
+ /// 4. Examples
+ ///
/// Currently we support these views only for Cmdlets.
/// A SnapIn developer can however change these views.
///
@@ -349,8 +349,8 @@ namespace Microsoft.PowerShell.Commands
if (((countOfHelpInfos == 0) && (!WildcardPattern.ContainsWildcardCharacters(helpRequest.Target)))
|| this.Context.HelpSystem.VerboseHelpErrors)
{
- // Check if there is any error happened. If yes,
- // pipe out errors.
+ // Check if there is any error happened. If yes,
+ // pipe out errors.
if (this.Context.HelpSystem.LastErrors.Count > 0)
{
foreach (ErrorRecord errorRecord in this.Context.HelpSystem.LastErrors)
@@ -400,9 +400,9 @@ namespace Microsoft.PowerShell.Commands
///
/// Change as per user request.
- ///
- /// This method creates a new type to the existing typenames
- /// depending on Detailed,Full,Example parameters and adds this
+ ///
+ /// This method creates a new type to the existing typenames
+ /// depending on Detailed,Full,Example parameters and adds this
/// new type(s) to the top of the list.
///
/// Full help object to transform.
@@ -421,7 +421,7 @@ namespace Microsoft.PowerShell.Commands
string tokenToAdd = _viewTokenToAdd.ToString();
// We are changing the types without modifying the original object.
- // The contract between help command and helpsystem does not
+ // The contract between help command and helpsystem does not
// allow us to modify returned help objects.
PSObject objectToReturn = originalHelpObject.Copy();
objectToReturn.TypeNames.Clear();
diff --git a/src/System.Management.Automation/help/HelpCommentsParser.cs b/src/System.Management.Automation/help/HelpCommentsParser.cs
index b3b5dda10c..a0c6bd7eb7 100644
--- a/src/System.Management.Automation/help/HelpCommentsParser.cs
+++ b/src/System.Management.Automation/help/HelpCommentsParser.cs
@@ -928,7 +928,7 @@ namespace System.Management.Automation
workflowInfo.ParameterSets, common, commonWorkflow, "MamlCommandHelpInfo");
}
- // Add HelpUri if necessary
+ // Add HelpUri if necessary
if (localHelpInfo.GetUriForOnlineHelp() == null)
{
DefaultCommandHelpObjectBuilder.AddRelatedLinksProperties(localHelpInfo.FullHelp, commandInfo.CommandMetadata.HelpUri);
diff --git a/src/System.Management.Automation/help/HelpErrorTracer.cs b/src/System.Management.Automation/help/HelpErrorTracer.cs
index 693ce3ef09..c1ac33d846 100644
--- a/src/System.Management.Automation/help/HelpErrorTracer.cs
+++ b/src/System.Management.Automation/help/HelpErrorTracer.cs
@@ -10,46 +10,46 @@ namespace System.Management.Automation
{
///
/// HelpErrorTracer is a class to help tracing errors happened during loading
- /// help content for a help topic.
- ///
+ /// help content for a help topic.
+ ///
/// This class tracks help context information like help topic, help category
- /// and help file, which are usually not available when an error happens at
- /// down level.
- ///
- /// Following is how this class can be used.
- ///
+ /// and help file, which are usually not available when an error happens at
+ /// down level.
+ ///
+ /// Following is how this class can be used.
+ ///
/// using(HelpErrorTracer.Trace(helpTopic, helpCategory, helpFile))
/// {
/// InsideFunctionCall();
/// }
- ///
- /// At this moment, a TraceFrame instance, which is disposable, will be created.
- ///
- /// In inside function calls and the calls down on the call stack, error can
- /// be traced by calling,
- ///
+ ///
+ /// At this moment, a TraceFrame instance, which is disposable, will be created.
+ ///
+ /// In inside function calls and the calls down on the call stack, error can
+ /// be traced by calling,
+ ///
/// HelpErrorTracer.TraceError(errorRecord)
- ///
- /// At this moment, the errorRecord will be temporarily stored with in TraceFrame instance.
- ///
- /// When the TraceFrame instance is disposed, all errorRecords stored will be
+ ///
+ /// At this moment, the errorRecord will be temporarily stored with in TraceFrame instance.
+ ///
+ /// When the TraceFrame instance is disposed, all errorRecords stored will be
/// dumped into HelpSystem.LastErrors with context information attached.
- ///
+ ///
///
internal class HelpErrorTracer
{
///
/// TraceFrame class track basic context information for current help activity.
- ///
+ ///
/// TraceFrame instance exists in a scope governed by using statement. It is possible
/// that a new TraceFrame instance will be created in the scope of another TraceFrame
- /// instance. The scopes of various live TraceFrame instances form a stack which is
+ /// instance. The scopes of various live TraceFrame instances form a stack which is
/// similar to call stacks of normal C# functions. This is why we call this class
/// a "TraceFrame"
- ///
- /// TraceFrame itself implements IDisposable interface to guarantee a chance to
+ ///
+ /// TraceFrame itself implements IDisposable interface to guarantee a chance to
/// write errors into system error pool when execution gets out of its scope. During
- /// disposal time, errorRecords accumulated will be written to system error pool
+ /// disposal time, errorRecords accumulated will be written to system error pool
/// together with error context information collected at instance creation.
///
internal sealed class TraceFrame : IDisposable
@@ -62,7 +62,7 @@ namespace System.Management.Automation
private HelpErrorTracer _helpTracer;
///
- /// Constructor. Here help context information will be collected.
+ /// Constructor. Here help context information will be collected.
///
///
///
@@ -100,7 +100,7 @@ namespace System.Management.Automation
}
///
- /// This is where we dump ErrorRecord's accumulated to help system error pool
+ /// This is where we dump ErrorRecord's accumulated to help system error pool
/// together with some context information.
///
public void Dispose()
@@ -134,7 +134,7 @@ namespace System.Management.Automation
}
///
- /// This tracks all live TraceFrame objects, which forms a stack.
+ /// This tracks all live TraceFrame objects, which forms a stack.
///
private ArrayList _traceFrames = new ArrayList();
diff --git a/src/System.Management.Automation/help/HelpFileHelpInfo.cs b/src/System.Management.Automation/help/HelpFileHelpInfo.cs
index 19f0d4ca6f..6c59810d6f 100644
--- a/src/System.Management.Automation/help/HelpFileHelpInfo.cs
+++ b/src/System.Management.Automation/help/HelpFileHelpInfo.cs
@@ -7,10 +7,10 @@ using System.IO;
namespace System.Management.Automation
{
///
- ///
- /// Class HelpFileHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class HelpFileHelpInfo keeps track of help information to be returned by
/// command help provider.
- ///
+ ///
///
internal class HelpFileHelpInfo : HelpInfo
{
@@ -19,7 +19,7 @@ namespace System.Management.Automation
///
///
/// This is made private intentionally so that the only way to create object of this type
- /// is through
+ /// is through
/// GetHelpInfo(string name, string text, string filename)
///
/// help topic name
@@ -31,7 +31,7 @@ namespace System.Management.Automation
Name = name;
- // Take the 5th line as synopsis. This may not be true if
+ // Take the 5th line as synopsis. This may not be true if
// format of help file is changed later on.
_synopsis = GetLine(text, 5);
if (_synopsis != null)
diff --git a/src/System.Management.Automation/help/HelpFileHelpProvider.cs b/src/System.Management.Automation/help/HelpFileHelpProvider.cs
index a3117971de..fb58ef6916 100644
--- a/src/System.Management.Automation/help/HelpFileHelpProvider.cs
+++ b/src/System.Management.Automation/help/HelpFileHelpProvider.cs
@@ -12,14 +12,14 @@ using System.Management.Automation.Internal;
namespace System.Management.Automation
{
///
- ///
- /// Class HelpFileHelpProvider implement the help provider for help.txt kinds of
+ ///
+ /// Class HelpFileHelpProvider implement the help provider for help.txt kinds of
/// help contents.
- ///
+ ///
/// Help File help information are stored in '.help.txt' files. These files are
/// located in the Monad / CustomShell Path as well as in the Application Base
/// of PSSnapIns
- ///
+ ///
///
internal class HelpFileHelpProvider : HelpProviderWithCache
{
@@ -280,9 +280,9 @@ namespace System.Management.Automation
//Bug906435: Get-help for special devices throws an exception
//There might be situations where path does not end with .help.txt extension
- //The assumption that path ends with .help.txt is broken under special
+ //The assumption that path ends with .help.txt is broken under special
//conditions when user uses "get-help" with device names like "prn","com1" etc.
- //First check whether path ends with .help.txt.
+ //First check whether path ends with .help.txt.
// If path does not end with ".help.txt" return.
if (!path.EndsWith(".help.txt", StringComparison.OrdinalIgnoreCase))
@@ -371,8 +371,8 @@ namespace System.Management.Automation
}
///
- /// This will reset the help cache. Normally this corresponds to a
- /// help culture change.
+ /// This will reset the help cache. Normally this corresponds to a
+ /// help culture change.
///
internal override void Reset()
{
@@ -386,9 +386,9 @@ namespace System.Management.Automation
#region Private Data
///
- /// This is a hashtable to track which help files are loaded already.
- ///
- /// This will avoid one help file getting loaded again and again.
+ /// This is a hashtable to track which help files are loaded already.
+ ///
+ /// This will avoid one help file getting loaded again and again.
///
private Hashtable _helpFiles = new Hashtable();
diff --git a/src/System.Management.Automation/help/HelpInfo.cs b/src/System.Management.Automation/help/HelpInfo.cs
index 1f3e5938c4..00096d1a19 100644
--- a/src/System.Management.Automation/help/HelpInfo.cs
+++ b/src/System.Management.Automation/help/HelpInfo.cs
@@ -7,22 +7,22 @@ using System.Collections.ObjectModel;
namespace System.Management.Automation
{
///
- ///
+ ///
/// Class HelpInfo keeps track of help information to be returned by help system.
- ///
- /// HelpInfo includes information in following aspect,
- ///
+ ///
+ /// HelpInfo includes information in following aspect,
+ ///
/// a. Name: the target name for help
/// b. Category: what category the help belongs to
- /// This class will be derived to track help info for different help categories like,
+ /// This class will be derived to track help info for different help categories like,
/// AliasHelpInfo
/// CommandHelpInfo
/// ProviderHelpInfo
- ///
+ ///
/// etc.
- ///
+ ///
/// In general, there will be a specific helpInfo child class for each kind of help provider.
- ///
+ ///
///
internal abstract class HelpInfo
{
@@ -91,8 +91,8 @@ namespace System.Management.Automation
/// Forward help category for this help info
///
///
- /// If this is not HelpCategory.None, then some other help provider
- /// (as specified in the HelpCategory bit pattern) need
+ /// If this is not HelpCategory.None, then some other help provider
+ /// (as specified in the HelpCategory bit pattern) need
/// to process this helpInfo before it can be returned to end user.
///
/// Help category to forward this helpInfo to
@@ -101,17 +101,17 @@ namespace System.Management.Automation
///
/// Target object in forward-help-provider that should process this HelpInfo.
/// This will serve as auxiliary information to be passed to forward help provider.
- ///
- /// In the case of AliasHelpInfo, for example, it needs to be forwarded to
+ ///
+ /// In the case of AliasHelpInfo, for example, it needs to be forwarded to
/// CommandHelpProvider to fill in detailed helpInfo. In that case, ForwardHelpCategory
- /// will be HelpCategory.Command and the help target is the cmdlet name that matches this
+ /// will be HelpCategory.Command and the help target is the cmdlet name that matches this
/// alias.
///
/// forward target object name
internal string ForwardTarget { get; set; } = "";
///
- /// Full help object for this help item.
+ /// Full help object for this help item.
///
/// Full help object for this help item
internal abstract PSObject FullHelp
@@ -120,7 +120,7 @@ namespace System.Management.Automation
}
///
- /// Short help object for this help item.
+ /// Short help object for this help item.
///
/// Short help object for this help item
internal PSObject ShortHelp
@@ -157,7 +157,7 @@ namespace System.Management.Automation
/// online.
///
///
- /// Null if no Uri is specified by the helpinfo or a
+ /// Null if no Uri is specified by the helpinfo or a
/// valid Uri.
///
///
@@ -170,7 +170,7 @@ namespace System.Management.Automation
///
/// Returns true if help content in help info matches the
- /// pattern contained in .
+ /// pattern contained in .
/// The underlying code will usually run pattern.IsMatch() on
/// content it wants to search.
///
@@ -185,18 +185,18 @@ namespace System.Management.Automation
///
/// Add common help properties to the helpObject which is in PSObject format.
- ///
+ ///
/// Intrinsic help properties include properties like,
- /// Name,
+ /// Name,
/// Synopsis
- /// HelpCategory
- /// etc.
- ///
- /// Since help object from different help category has different format, it is
+ /// HelpCategory
+ /// etc.
+ ///
+ /// Since help object from different help category has different format, it is
/// needed that we generate these basic information uniformly in the help object
/// itself.
- ///
- /// This function is normally called at the end of each child class constructor.
+ ///
+ /// This function is normally called at the end of each child class constructor.
///
///
protected void AddCommonHelpProperties()
@@ -261,7 +261,7 @@ namespace System.Management.Automation
#region Error handling
///
- /// This is for tracking the set of errors happened during the parsing of
+ /// This is for tracking the set of errors happened during the parsing of
/// of this helpinfo.
///
///
diff --git a/src/System.Management.Automation/help/HelpNotFoundException.cs b/src/System.Management.Automation/help/HelpNotFoundException.cs
index 6f118f4fd9..34bbcc3f44 100644
--- a/src/System.Management.Automation/help/HelpNotFoundException.cs
+++ b/src/System.Management.Automation/help/HelpNotFoundException.cs
@@ -20,7 +20,7 @@ using System.Security.Permissions;
namespace Microsoft.PowerShell.Commands
{
///
- /// The exception that is thrown when there is no help found for a topic.
+ /// The exception that is thrown when there is no help found for a topic.
///
[Serializable]
public class HelpNotFoundException : SystemException, IContainsErrorRecord
@@ -64,7 +64,7 @@ namespace Microsoft.PowerShell.Commands
{
string errMessage = string.Format(HelpErrors.HelpNotFound, _helpTopic);
- // Don't do ParentContainsErrorRecordException(this), as this causes recursion, and creates a
+ // Don't do ParentContainsErrorRecordException(this), as this causes recursion, and creates a
// segmentation fault on Linux
_errorRecord = new ErrorRecord(new ParentContainsErrorRecordException(errMessage), "HelpNotFound", ErrorCategory.ResourceUnavailable, null);
_errorRecord.ErrorDetails = new ErrorDetails(typeof(HelpNotFoundException).GetTypeInfo().Assembly, "HelpErrors", "HelpNotFound", _helpTopic);
@@ -73,7 +73,7 @@ namespace Microsoft.PowerShell.Commands
private ErrorRecord _errorRecord;
///
- /// Gets ErrorRecord embedded in this exception.
+ /// Gets ErrorRecord embedded in this exception.
///
/// ErrorRecord instance.
public ErrorRecord ErrorRecord
diff --git a/src/System.Management.Automation/help/HelpProvider.cs b/src/System.Management.Automation/help/HelpProvider.cs
index 0310ddb850..a590459b28 100644
--- a/src/System.Management.Automation/help/HelpProvider.cs
+++ b/src/System.Management.Automation/help/HelpProvider.cs
@@ -12,36 +12,36 @@ using System.Management.Automation.Runspaces;
namespace System.Management.Automation
{
///
- ///
+ ///
/// Class HelpProvider defines the interface to be implemented by help providers.
- ///
+ ///
/// Help Providers:
- /// The basic contract for help providers is to provide help based on the
- /// search target.
- ///
+ /// The basic contract for help providers is to provide help based on the
+ /// search target.
+ ///
/// The result of help provider invocation can be three things:
/// a. Full help info. (in the case of exact-match and single search result)
/// b. Short help info. (in the case of multiple search result)
- /// c. Partial help info. (in the case of some commandlet help info, which
+ /// c. Partial help info. (in the case of some commandlet help info, which
/// should be supplemented by provider help info)
/// d. Help forwarding info. (in the case of alias, which will change the target
/// for alias)
- ///
+ ///
/// Help providers may need to provide functionality in following two area,
/// a. caching and indexing to boost performance
/// b. localization
- ///
+ ///
/// Basic properties of a Help Provider
/// 1. Name
/// 2. Type
/// 3. Assembly
- ///
+ ///
/// Help Provider Interface
- /// 1. Initialize:
- /// 2. ExactMatchHelp:
+ /// 1. Initialize:
+ /// 2. ExactMatchHelp:
/// 3. SearchHelp:
/// 4. ProcessForwardedHelp
- ///
+ ///
///
internal abstract class HelpProvider
{
@@ -149,30 +149,30 @@ namespace System.Management.Automation
///
/// Search help info that match the target search pattern.
///
- /// help request object
+ /// help request object
///
- /// If true, searches for pattern in the help content. Individual
+ /// If true, searches for pattern in the help content. Individual
/// provider can decide which content to search in.
- ///
+ ///
/// If false, searches for pattern in the command names.
- ///
+ ///
/// a collection of help info objects
internal abstract IEnumerable SearchHelp(HelpRequest helpRequest, bool searchOnlyContent);
///
- /// Process a helpinfo forwarded over by another help provider.
- ///
- /// HelpProvider can choose to process the helpInfo or not,
- ///
+ /// Process a helpinfo forwarded over by another help provider.
+ ///
+ /// HelpProvider can choose to process the helpInfo or not,
+ ///
/// 1. If a HelpProvider chooses not to process the helpInfo, it can return null to indicate
/// helpInfo is not processed.
/// 2. If a HelpProvider indeed processes the helpInfo, it should create a new helpInfo
/// object instead of modifying the passed-in helpInfo object. This is very important
- /// since the helpInfo object passed in is usually stored in cache, which can
- /// used in later queries.
+ /// since the helpInfo object passed in is usually stored in cache, which can
+ /// used in later queries.
///
/// helpInfo passed over by another HelpProvider
- /// help request object
+ /// help request object
///
internal virtual IEnumerable ProcessForwardedHelp(HelpInfo helpInfo, HelpRequest helpRequest)
{
@@ -183,9 +183,9 @@ namespace System.Management.Automation
}
///
- /// Reset help provider.
- ///
- /// Normally help provider are reset after a help culture change.
+ /// Reset help provider.
+ ///
+ /// Normally help provider are reset after a help culture change.
///
internal virtual void Reset()
{
@@ -198,16 +198,16 @@ namespace System.Management.Automation
///
/// Report help file load errors.
- ///
- /// Currently three cases are handled,
- ///
+ ///
+ /// Currently three cases are handled,
+ ///
/// 1. IOException: not able to read the file
/// 2. SecurityException: not authorized to read the file
/// 3. XmlException: xml schema error.
- ///
+ ///
/// This will be called either from search help or exact match help
/// to find the error.
- ///
+ ///
///
///
///
@@ -223,7 +223,7 @@ namespace System.Management.Automation
///
/// Each Shell ( minishell ) will have its own path specified by the
/// registry HKLM\software\microsoft\msh\1\ShellIds\<ShellID>\path. Every help
- /// provider should search this path for content.
+ /// provider should search this path for content.
///
/// string representing base directory of the executing shell.
internal string GetDefaultShellSearchPath()
diff --git a/src/System.Management.Automation/help/HelpProviderWithCache.cs b/src/System.Management.Automation/help/HelpProviderWithCache.cs
index 5bf03d8083..82b0a6be75 100644
--- a/src/System.Management.Automation/help/HelpProviderWithCache.cs
+++ b/src/System.Management.Automation/help/HelpProviderWithCache.cs
@@ -8,11 +8,11 @@ using System.Collections.Generic;
namespace System.Management.Automation
{
///
- ///
- /// Class HelpProviderWithCache provides a pseudo implementation of HelpProvider
- /// at which results are cached in a hashtable so that later retrieval can be
+ ///
+ /// Class HelpProviderWithCache provides a pseudo implementation of HelpProvider
+ /// at which results are cached in a hashtable so that later retrieval can be
/// faster.
- ///
+ ///
///
internal abstract class HelpProviderWithCache : HelpProvider
{
@@ -71,8 +71,8 @@ namespace System.Management.Automation
}
///
- /// This is for child class to indicate that it has implemented
- /// a custom way of match.
+ /// This is for child class to indicate that it has implemented
+ /// a custom way of match.
///
///
protected bool HasCustomMatch { get; set; } = false;
@@ -94,7 +94,7 @@ namespace System.Management.Automation
///
/// Derived class can choose to either override ExactMatchHelp method to DoExactMatchHelp method.
/// If ExactMatchHelp is overridden, initial cache checking will be disabled by default.
- /// If DoExactMatchHelp is overridden, cache check will be done first in ExactMatchHelp before the
+ /// If DoExactMatchHelp is overridden, cache check will be done first in ExactMatchHelp before the
/// logic in DoExactMatchHelp is in place.
///
/// help request object
@@ -105,13 +105,13 @@ namespace System.Management.Automation
///
/// Search help for a target
///
- /// help request object
+ /// help request object
///
- /// If true, searches for pattern in the help content. Individual
+ /// If true, searches for pattern in the help content. Individual
/// provider can decide which content to search in.
- ///
+ ///
/// If false, searches for pattern in the command names.
- ///
+ ///
/// a collection of help info objects
internal override IEnumerable SearchHelp(HelpRequest helpRequest, bool searchOnlyContent)
{
@@ -153,14 +153,14 @@ namespace System.Management.Automation
}
///
- /// Create a wildcard pattern based on a target.
- ///
- /// Here we provide the default implementation of this, covering following
+ /// Create a wildcard pattern based on a target.
+ ///
+ /// Here we provide the default implementation of this, covering following
/// two cases
/// a. if target has wildcard pattern, return as it is.
/// b. if target doesn't have wildcard pattern, postfix it with *
- ///
- /// Child class of this one may choose to override this function.
+ ///
+ /// Child class of this one may choose to override this function.
///
/// target string
/// wild card pattern created
@@ -176,7 +176,7 @@ namespace System.Management.Automation
/// Do search help. This is for child class to override.
///
///
- /// Child class can choose to override SearchHelp of DoSearchHelp depending on
+ /// Child class can choose to override SearchHelp of DoSearchHelp depending on
/// whether it want to reuse the logic in SearchHelp for this class.
///
/// help request object
@@ -208,18 +208,18 @@ namespace System.Management.Automation
///
/// Is cached fully loaded?
- ///
- /// If cache is fully loaded, search/exactmatch Help can short cut the logic
- /// in various help providers to get help directly from cache.
- ///
- /// This indicator is usually set by help providers derived from this class.
+ ///
+ /// If cache is fully loaded, search/exactmatch Help can short cut the logic
+ /// in various help providers to get help directly from cache.
+ ///
+ /// This indicator is usually set by help providers derived from this class.
///
///
protected internal bool CacheFullyLoaded { get; set; } = false;
///
- /// This will reset the help cache. Normally this corresponds to a
- /// help culture change.
+ /// This will reset the help cache. Normally this corresponds to a
+ /// help culture change.
///
internal override void Reset()
{
diff --git a/src/System.Management.Automation/help/HelpProviderWithFullCache.cs b/src/System.Management.Automation/help/HelpProviderWithFullCache.cs
index 4abf27cde2..b6aabb34ea 100644
--- a/src/System.Management.Automation/help/HelpProviderWithFullCache.cs
+++ b/src/System.Management.Automation/help/HelpProviderWithFullCache.cs
@@ -7,15 +7,15 @@ using System.Collections.Generic;
namespace System.Management.Automation
{
///
- ///
- /// Class HelpProviderWithFullCache provides a pseudo implementation of HelpProvider
- /// at which results are fully cached in a hashtable after initial cache load.
- ///
+ ///
+ /// Class HelpProviderWithFullCache provides a pseudo implementation of HelpProvider
+ /// at which results are fully cached in a hashtable after initial cache load.
+ ///
/// This class is different from HelpProviderWithCache class in the sense that
/// help contents for this provider can be loaded once and be used for later
/// search. So logically class derived from this class only need to provide
- /// a way to load and initialize help cache.
- ///
+ /// a way to load and initialize help cache.
+ ///
///
internal abstract class HelpProviderWithFullCache : HelpProviderWithCache
{
@@ -28,7 +28,7 @@ namespace System.Management.Automation
///
/// Exact match help for a target. This function will be sealed right here
- /// since this is no need for children class to override this member.
+ /// since this is no need for children class to override this member.
///
/// help request object
/// The HelpInfo found. Null if nothing is found
@@ -57,16 +57,16 @@ namespace System.Management.Automation
///
/// Search help for a target. This function will be sealed right here
- /// since this is no need for children class to override this member.
+ /// since this is no need for children class to override this member.
///
- /// help request object
+ /// help request object
///
- /// If true, searches for pattern in the help content. Individual
+ /// If true, searches for pattern in the help content. Individual
/// provider can decide which content to search in.
- ///
+ ///
/// If false, searches for pattern in the command names.
- ///
- /// a collection of help info objects
+ ///
+ /// a collection of help info objects
internal sealed override IEnumerable SearchHelp(HelpRequest helpRequest, bool searchOnlyContent)
{
// If the current invocation is a singleshell based
@@ -83,7 +83,7 @@ namespace System.Management.Automation
///
/// Do search help. This function will be sealed right here
- /// since this is no need for children class to override this member.
+ /// since this is no need for children class to override this member.
///
/// help request object
/// a collection of help info objects
@@ -93,12 +93,12 @@ namespace System.Management.Automation
}
///
- /// Load cache for later searching for help.
+ /// Load cache for later searching for help.
///
///
- /// This is the only member child class need to override for help search purpose.
- /// This function will be called only once (usually this happens at the first time when
- /// end user request some help in the target help category).
+ /// This is the only member child class need to override for help search purpose.
+ /// This function will be called only once (usually this happens at the first time when
+ /// end user request some help in the target help category).
///
internal virtual void LoadCache()
{
diff --git a/src/System.Management.Automation/help/HelpRequest.cs b/src/System.Management.Automation/help/HelpRequest.cs
index 83060fdff3..50049c8d9b 100644
--- a/src/System.Management.Automation/help/HelpRequest.cs
+++ b/src/System.Management.Automation/help/HelpRequest.cs
@@ -5,10 +5,10 @@ Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Management.Automation
{
///
- /// Help request is a set of data to be passed into monad help engine for requesting help contents.
- ///
+ /// Help request is a set of data to be passed into monad help engine for requesting help contents.
+ ///
/// Help request track information including
- ///
+ ///
/// 1. target
/// 2. category filter
/// 3. provider
@@ -16,9 +16,9 @@ namespace System.Management.Automation
/// 5. components
/// 6. functionalities
/// 7. roles
- ///
- /// Upon getting a help request, help engine will validate the help request and send the request to
- /// necessary help providers for processing.
+ ///
+ /// Upon getting a help request, help engine will validate the help request and send the request to
+ /// necessary help providers for processing.
///
internal class HelpRequest
{
@@ -72,13 +72,13 @@ namespace System.Management.Automation
///
/// Provider for this help.
- ///
+ ///
/// If provider is set and helpCategory is 'Provider', provider help will be returned. (Also
/// the value of target will be set to this one).
- ///
+ ///
/// If provider is set and helpCategory is 'Command', this will add provider specific help
- /// to provider.
- ///
+ /// to provider.
+ ///
///
///
internal string Provider { get; set; }
@@ -90,39 +90,39 @@ namespace System.Management.Automation
internal int MaxResults { get; set; } = -1;
///
- /// Component filter for command help.
+ /// Component filter for command help.
///
///
internal string[] Component { get; set; }
///
- /// Role filter for command help.
+ /// Role filter for command help.
///
///
internal string[] Role { get; set; }
///
- /// Functionality filter for command help.
+ /// Functionality filter for command help.
///
///
internal string[] Functionality { get; set; }
///
- /// Keeps track of get-help cmdlet call origin. It can be called
+ /// Keeps track of get-help cmdlet call origin. It can be called
/// directly by the user or indirectly by a script that a user calls.
///
internal CommandOrigin CommandOrigin { get; set; }
///
/// Following validation will be done, (in order)
- ///
- /// 1. If everything is empty, do default help.
+ ///
+ /// 1. If everything is empty, do default help.
/// 2. If target is empty, set it to be provider if currently doing provider help only. Otherwise, set it to be *
/// 3. If any special parameters like component, role, functionality are specified, do command help only.
/// 4. If command help is requested, search for alias also.
/// 5. If help category is none, set it to be all.
/// 6. Don't do default help.
- ///
+ ///
///
internal void Validate()
{
diff --git a/src/System.Management.Automation/help/HelpSystem.cs b/src/System.Management.Automation/help/HelpSystem.cs
index f7927c2921..9196fcc990 100644
--- a/src/System.Management.Automation/help/HelpSystem.cs
+++ b/src/System.Management.Automation/help/HelpSystem.cs
@@ -15,81 +15,81 @@ using System.Management.Automation.Internal;
namespace System.Management.Automation
{
///
- /// Monad help is an architecture made up of three layers:
- /// 1. At the top is get-help commandlet from where help functionality is accessed.
- /// 2. At the middle is the help system which collects help objects based on user's request.
+ /// Monad help is an architecture made up of three layers:
+ /// 1. At the top is get-help commandlet from where help functionality is accessed.
+ /// 2. At the middle is the help system which collects help objects based on user's request.
/// 3. At the bottom are different help providers which provide help contents for different kinds of information requested.
- ///
+ ///
/// Class HelpSystem implements the middle layer of Monad Help.
- ///
+ ///
/// HelpSystem will provide functionalitys in following areas,
/// 1. Initialization and management of help providers
/// 2. Help engine: this will invoke different providers based on user's request.
/// 3. Help API: this is the API HelpSystem provide to get-help commandlet.
- ///
+ ///
/// Initialization:
/// Initialization of different help providers needs some context information like "ExecutionContext"
- ///
+ ///
/// Help engine:
- /// By default, HelpInfo will be retrieved in two phase: exact-match phase and search phase.
- ///
- /// Exact-match phase: help providers will be called in appropriate order to retrieve HelpInfo.
+ /// By default, HelpInfo will be retrieved in two phase: exact-match phase and search phase.
+ ///
+ /// Exact-match phase: help providers will be called in appropriate order to retrieve HelpInfo.
/// If a match is found, help engine will stop and return the one and only HelpInfo retrieved.
- ///
+ ///
/// Search phase: all relevant help providers will be called to retrieve HelpInfo. (Order doesn't
/// matter in this case) Help engine will not stop until all help providers are called.
- ///
- /// Behaviour of help engine can be modified based on Help API parameters in following ways,
+ ///
+ /// Behaviour of help engine can be modified based on Help API parameters in following ways,
/// 1. limit the number of HelpInfo to be returned.
/// 2. specify which providers will be used.
/// 3. general help info returned in case the search target is empty.
/// 4. default help info (or hint) returned in case no match is found.
- ///
+ ///
/// Help Api:
- /// Help Api is the function to be called by get-help commandlet.
- ///
- /// Following information needs to be provided in Help Api parameters,
+ /// Help Api is the function to be called by get-help commandlet.
+ ///
+ /// Following information needs to be provided in Help Api parameters,
/// 1. search target: (which can be one or multiple strings)
/// 2. help type: limit the type of help to be searched.
/// 3. included fields: the fields to be included in the help info
- /// 4. excluded fields: the fields to be excluded in the help info
+ /// 4. excluded fields: the fields to be excluded in the help info
/// 5. max number of results to be returned:
/// 6. scoring algorithm for help results?
- /// 7. help reason: help can be directly invoked by end user or as a result of
+ /// 7. help reason: help can be directly invoked by end user or as a result of
/// some command syntax error.
- ///
- /// [gxie, 7-25-04]: included fields, excluded fields and help reason will be handled in
- /// get-help commandlet.
- ///
- /// Help API's are internal. The only way to access help is by
+ ///
+ /// [gxie, 7-25-04]: included fields, excluded fields and help reason will be handled in
+ /// get-help commandlet.
+ ///
+ /// Help API's are internal. The only way to access help is by
/// invoking the get-help command.
- ///
+ ///
/// To support the scenario where multiple monad engine running in one process. It
- /// is required that each monad engine has its one help system instance.
- ///
+ /// is required that each monad engine has its one help system instance.
+ ///
/// Currently each ExecutionContext has a help system instance as its member.
- ///
+ ///
/// Help Providers:
- /// The basic contract for help providers is to provide help based on the
- /// search target.
- ///
+ /// The basic contract for help providers is to provide help based on the
+ /// search target.
+ ///
/// The result of help provider invocation can be three things:
/// a. Full help info. (in the case of exact-match and single search result)
/// b. Short help info. (in the case of multiple search result)
- /// c. Partial help info. (in the case of some commandlet help info, which
+ /// c. Partial help info. (in the case of some commandlet help info, which
/// should be supplemented by provider help info)
/// d. Help forwarding info. (in the case of alias, which will change the target
/// for alias)
- ///
+ ///
/// Help providers may need to provide functionality in following two area,
/// a. caching and indexing to boost performance
/// b. localization
- ///
+ ///
///
internal class HelpSystem
{
///
- /// Constructor for HelpSystem.
+ /// Constructor for HelpSystem.
///
/// Execution context for this help system
internal HelpSystem(ExecutionContext context)
@@ -150,9 +150,9 @@ namespace System.Management.Automation
#region Help API
///
- /// Get Help api function. This is the basic form of the Help API using help
- /// request.
- ///
+ /// Get Help api function. This is the basic form of the Help API using help
+ /// request.
+ ///
/// Variants of this function are defined below, which will create help request
/// object on fly.
///
@@ -210,16 +210,16 @@ namespace System.Management.Automation
private bool _verboseHelpErrors = false;
///
- /// VerboseHelpErrors is used in the case when end user is interested
+ /// VerboseHelpErrors is used in the case when end user is interested
/// to know all errors happened during a help search. This property
- /// is false by default.
- ///
+ /// is false by default.
+ ///
/// If this property is turned on (by setting session variable "VerboseHelpError"),
- /// following two behaviours will be different,
- /// a. Help errors will be written to error pipeline regardless the situation.
+ /// following two behaviours will be different,
+ /// a. Help errors will be written to error pipeline regardless the situation.
/// (Normally, help errors will be written to error pipeline if there is no
/// help found and there is no wildcard in help search target).
- /// b. Some additional warnings, including maml processing warnings, will be
+ /// b. Some additional warnings, including maml processing warnings, will be
/// written to error pipeline.
///
///
@@ -289,15 +289,15 @@ namespace System.Management.Automation
///
/// Get help based on the target, help type, etc
- ///
+ ///
/// Help engine retrieve help based on following schemes,
- ///
+ ///
/// 1. if help target is empty, get default help
/// 2. if help target is not a search pattern, try to retrieve exact help
/// 3. if help target is a search pattern or step 2 returns no helpInfo, try to search for help
/// (Search for pattern in command name followed by pattern match in help content)
/// 4. if step 3 returns exact one helpInfo object, try to retrieve exact help.
- ///
+ ///
///
/// Help request object
/// An array of HelpInfo object
@@ -342,11 +342,11 @@ namespace System.Management.Automation
if (!isMatchFound)
{
- // Throwing exception here may not be the
+ // Throwing exception here may not be the
// best thing to do. Instead we can choose to
// a. give a hint
// b. just silently return an empty search result.
- // Solution:
+ // Solution:
// If it is an exact help target, throw exception.
// Otherwise, return empty result set.
if (!WildcardPattern.ContainsWildcardCharacters(helpRequest.Target) && this.LastErrors.Count == 0)
@@ -362,12 +362,12 @@ namespace System.Management.Automation
}
///
- /// Get help that exactly match the target.
- ///
- /// If the helpInfo returned is not complete, we will forward the
+ /// Get help that exactly match the target.
+ ///
+ /// If the helpInfo returned is not complete, we will forward the
/// helpInfo object to appropriate help provider for further processing.
/// (this is implemented by ForwardHelp)
- ///
+ ///
///
/// Help request object
/// HelpInfo object retrieved. Can be Null.
@@ -401,15 +401,15 @@ namespace System.Management.Automation
}
///
- /// Forward help to the help provider with type forwardHelpCategory.
- ///
+ /// Forward help to the help provider with type forwardHelpCategory.
+ ///
/// This is used in the following known scenarios so far
- /// 1. Alias: helpInfo returned by Alias is not what end user needed.
+ /// 1. Alias: helpInfo returned by Alias is not what end user needed.
/// The real help can be retrieved from Command help provider.
- ///
+ ///
///
///
- /// Help request object
+ /// Help request object
/// Never returns null.
/// helpInfos is not null or empty.
private IEnumerable ForwardHelp(HelpInfo helpInfo, HelpRequest helpRequest)
@@ -500,8 +500,8 @@ namespace System.Management.Automation
// 2. If Step 1 fails then search for pattern in help content
do
{
- // we should not continue the search loop if we are
- // searching in the help content (as this is the last step
+ // we should not continue the search loop if we are
+ // searching in the help content (as this is the last step
// in our search algorithm).
if (searchInHelpContent)
{
@@ -577,7 +577,7 @@ namespace System.Management.Automation
}
///
- /// Initialize help providers.
+ /// Initialize help providers.
///
///
/// Currently we hardcode the sequence of help provider initialization.
@@ -627,9 +627,9 @@ namespace System.Management.Automation
#if _HelpProviderReflection
- // Eventually we will publicize the provider api and initialize
+ // Eventually we will publicize the provider api and initialize
// help providers using reflection. This is not in v1 right now.
- //
+ //
private static HelpProviderInfo[] _providerInfos = new HelpProviderInfo[]
{ new HelpProviderInfo("", "AliasHelpProvider", HelpCategory.Alias),
new HelpProviderInfo("", "CommandHelpProvider", HelpCategory.Command),
@@ -699,7 +699,7 @@ namespace System.Management.Automation
return null;
}
-#endif
+#endif
#endregion Help Provider Manager
@@ -745,7 +745,7 @@ namespace System.Management.Automation
}
///
- /// Trace a collection of errors within a help frame, which is tracked by
+ /// Trace a collection of errors within a help frame, which is tracked by
/// help tracer itself.
///
///
@@ -765,8 +765,8 @@ namespace System.Management.Automation
///
/// Before each help request is serviced, current thread culture will validate
- /// against the current culture of help system. If there is a miss match, each
- /// help provider will be notified of the culture change.
+ /// against the current culture of help system. If there is a miss match, each
+ /// help provider will be notified of the culture change.
///
private void ValidateHelpCulture()
{
@@ -789,10 +789,10 @@ namespace System.Management.Automation
///
/// Reset help providers providers. This normally corresponds to help culture change.
- ///
+ ///
/// Normally help providers will remove cached help content to make sure new help
- /// requests will be served with content of right culture.
- ///
+ /// requests will be served with content of right culture.
+ ///
///
internal void ResetHelpProviders()
{
diff --git a/src/System.Management.Automation/help/MUIFileSearcher.cs b/src/System.Management.Automation/help/MUIFileSearcher.cs
index 28d0a5495d..c3b2d220b6 100644
--- a/src/System.Management.Automation/help/MUIFileSearcher.cs
+++ b/src/System.Management.Automation/help/MUIFileSearcher.cs
@@ -13,8 +13,8 @@ namespace System.Management.Automation
internal class MUIFileSearcher
{
///
- /// Constructor. It is private so that MUIFileSearcher is used only internal for this class.
- /// To access functionality in this class, static api should be used.
+ /// Constructor. It is private so that MUIFileSearcher is used only internal for this class.
+ /// To access functionality in this class, static api should be used.
///
///
///
@@ -39,10 +39,10 @@ namespace System.Management.Automation
#region Basic Properties
///
- /// Search target. It can be
+ /// Search target. It can be
/// 1. a file name
/// 2. a search pattern
- /// It can also include a path, in that case,
+ /// It can also include a path, in that case,
/// 1. the path will be searched first for the existence of the files.
///
internal string Target { get; } = null;
@@ -53,7 +53,7 @@ namespace System.Management.Automation
internal Collection SearchPaths { get; } = null;
///
- /// Search mode for this file search.
+ /// Search mode for this file search.
///
internal SearchMode SearchMode { get; } = SearchMode.Unique;
@@ -89,7 +89,7 @@ namespace System.Management.Automation
private Hashtable _uniqueMatches = new Hashtable(StringComparer.OrdinalIgnoreCase);
///
- /// search for files using the target, searchPaths member of this class.
+ /// search for files using the target, searchPaths member of this class.
///
private void SearchForFiles()
{
@@ -154,7 +154,7 @@ namespace System.Management.Automation
case SearchMode.Unique:
// Construct a Unique filename for this directory.
- // Remember the file may belong to one of the sub-culture
+ // Remember the file may belong to one of the sub-culture
// directories. In this case we should not be returning
// same files that are residing in 2 or more sub-culture
// directories.
@@ -180,9 +180,9 @@ namespace System.Management.Automation
}
///
- /// Search for files of a particular pattern under a particular directory.
- /// This will do MUI search in which appropriate language directories are
- /// searched in order.
+ /// Search for files of a particular pattern under a particular directory.
+ /// This will do MUI search in which appropriate language directories are
+ /// searched in order.
///
///
///
@@ -238,7 +238,7 @@ namespace System.Management.Automation
{
Collection result = new Collection();
- // step 1: if target has path attached, directly locate
+ // step 1: if target has path attached, directly locate
// file from there.
if (!String.IsNullOrEmpty(target) && !String.IsNullOrEmpty(Path.GetDirectoryName(target)))
{
@@ -337,12 +337,12 @@ namespace System.Management.Automation
}
///
- /// Get the file in different search paths corresponding to current culture.
- ///
+ /// Get the file in different search paths corresponding to current culture.
+ ///
/// The file name to search is the filename part of path parameter. (Normally path
- /// parameter should contain only the filename part. But it is possible for
+ /// parameter should contain only the filename part. But it is possible for
/// RunspaceConfiguration to directly specify a hard coded path for help file there).
- ///
+ ///
///
/// This is the path to the file. If it has a path, we need to search under that path first
/// Additional search paths
diff --git a/src/System.Management.Automation/help/MamlClassHelpInfo.cs b/src/System.Management.Automation/help/MamlClassHelpInfo.cs
index fcbb55f260..6037574e57 100644
--- a/src/System.Management.Automation/help/MamlClassHelpInfo.cs
+++ b/src/System.Management.Automation/help/MamlClassHelpInfo.cs
@@ -7,10 +7,10 @@ using System.Xml;
namespace System.Management.Automation
{
///
- ///
- /// Class MamlClassHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class MamlClassHelpInfo keeps track of help information to be returned by
/// class help provider.
- ///
+ ///
///
internal class MamlClassHelpInfo : HelpInfo
{
@@ -47,7 +47,7 @@ namespace System.Management.Automation
///
private PSObject _fullHelpObject;
- #region Load
+ #region Load
///
/// Create a MamlClassHelpInfo object from an XmlNode.
diff --git a/src/System.Management.Automation/help/MamlCommandHelpInfo.cs b/src/System.Management.Automation/help/MamlCommandHelpInfo.cs
index fe395373f4..052fb80e1f 100644
--- a/src/System.Management.Automation/help/MamlCommandHelpInfo.cs
+++ b/src/System.Management.Automation/help/MamlCommandHelpInfo.cs
@@ -9,16 +9,16 @@ using System.Text;
namespace System.Management.Automation
{
///
- ///
- /// Class MamlCommandHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class MamlCommandHelpInfo keeps track of help information to be returned by
/// command help provider.
- ///
+ ///
///
internal class MamlCommandHelpInfo : BaseCommandHelpInfo
{
///
/// Constructor for custom HelpInfo object construction
- ///
+ ///
/// This is used by the CommandHelpProvider class to generate the
/// default help UX when no help content is present.
///
@@ -49,7 +49,7 @@ namespace System.Management.Automation
///
/// Constructor for MamlCommandHelpInfo. This constructor will call the corresponding
- /// constructor in CommandHelpInfo so that xmlNode will be converted a mamlNode.
+ /// constructor in CommandHelpInfo so that xmlNode will be converted a mamlNode.
///
///
/// This constructor is intentionally made private so that the only way to create
@@ -65,7 +65,7 @@ namespace System.Management.Automation
this.Errors = mamlNode.Errors;
// The type name hierarchy for mshObject doesn't necessary
- // reflect the hierarchy in source code. From display's point of
+ // reflect the hierarchy in source code. From display's point of
// view MamlCommandHelpInfo is derived from HelpInfo.
_fullHelpObject.TypeNames.Clear();
@@ -151,15 +151,15 @@ namespace System.Management.Automation
#region Component, Role, Features
- // Component, Role, Functionality are required by exchange for filtering
+ // Component, Role, Functionality are required by exchange for filtering
// help contents to be returned from help system.
//
- // Following is how this is going to work,
+ // Following is how this is going to work,
// 1. Each command will optionally include component, role and functionality
// information. This information is discovered from help content
- // from xml tags , , respectively
+ // from xml tags , , respectively
// as part of command metadata.
- // 2. From command line, end user can request help for commands for
+ // 2. From command line, end user can request help for commands for
// particular component, role and functionality using parameters like
// -component, -role, -functionality.
// 3. At runtime, help engine will match against component/role/functionality
@@ -248,7 +248,7 @@ namespace System.Management.Automation
#endregion
- #region Load
+ #region Load
///
/// Create a MamlCommandHelpInfo object from an XmlNode.
@@ -274,8 +274,8 @@ namespace System.Management.Automation
#if V2
///
- /// Merge the provider specific help with current command help.
- ///
+ /// Merge the provider specific help with current command help.
+ ///
/// The cmdletHelp and dynamicParameterHelp is normally retrieved from ProviderHelpProvider.
///
///
@@ -292,7 +292,7 @@ namespace System.Management.Automation
MamlCommandHelpInfo result = (MamlCommandHelpInfo)this.MemberwiseClone();
// We will need to use a deep clone of _fullHelpObject
- // to avoid _fullHelpObject being get terminated.
+ // to avoid _fullHelpObject being get terminated.
result._fullHelpObject = this._fullHelpObject.Copy();
if (cmdletHelp != null)
@@ -388,10 +388,10 @@ namespace System.Management.Automation
///
/// Returns true if help content in help info matches the
- /// pattern contained in .
+ /// pattern contained in .
/// The underlying code will usually run pattern.IsMatch() on
/// content it wants to search.
- /// Cmdlet help info looks for pattern in Synopsis and
+ /// Cmdlet help info looks for pattern in Synopsis and
/// DetailedDescription
///
///
diff --git a/src/System.Management.Automation/help/MamlNode.cs b/src/System.Management.Automation/help/MamlNode.cs
index ebd52538aa..693256be69 100644
--- a/src/System.Management.Automation/help/MamlNode.cs
+++ b/src/System.Management.Automation/help/MamlNode.cs
@@ -12,24 +12,24 @@ using System.Text;
namespace System.Management.Automation
{
///
- ///
+ ///
/// MamlNode is an xml node in MAML schema. Maml schema includes formatting oriented tags like para, list
- /// etc, which needs to be taken care of during display. As a result, xml node in Maml schema can't be
- /// converted into PSObject directly with XmlNodeAdapter.
- ///
+ /// etc, which needs to be taken care of during display. As a result, xml node in Maml schema can't be
+ /// converted into PSObject directly with XmlNodeAdapter.
+ ///
/// MamlNode class provides logic in converting formatting tags into the format acceptable by monad format
- /// and output engine.
- ///
- /// Following three kinds of formating tags are supported per our agreement with Maml team,
- /// 1. para,
+ /// and output engine.
+ ///
+ /// Following three kinds of formating tags are supported per our agreement with Maml team,
+ /// 1. para,
///
/// para text here
///
- /// 2. list,
+ /// 2. list,
///
///
///
- /// listItem Text here
+ /// listItem Text here
///
///
///
@@ -46,8 +46,8 @@ namespace System.Management.Automation
///
///
///
- ///
- /// After processing, content of these three tags will be converted into textItem and its derivations,
+ ///
+ /// After processing, content of these three tags will be converted into textItem and its derivations,
/// 1. para => paraTextItem
///
/// para text here
@@ -67,7 +67,7 @@ namespace System.Management.Automation
/// definition text here
///
///
- ///
+ ///
internal class MamlNode
{
///
@@ -95,7 +95,7 @@ namespace System.Management.Automation
private PSObject _mshObject;
///
- /// mshObject which is converted from XmlNode.
+ /// mshObject which is converted from XmlNode.
///
///
internal PSObject PSObject
@@ -123,7 +123,7 @@ namespace System.Management.Automation
/// 1. Null xml, this will return an PSObject wrapping a null object.
/// 2. Atomic xml, which is an xmlNode with only one simple text child node
///
- /// atomic xml text
+ /// atomic xml text
///
/// In this case, an PSObject that wraps string "atomic xml text" will be returned with following properties
/// attribute => name
@@ -139,11 +139,11 @@ namespace System.Management.Automation
/// dup child node text 2
///
///
- /// In this case, an PSObject will base generated based on an inside PSObject,
+ /// In this case, an PSObject will base generated based on an inside PSObject,
/// which in turn has following properties
/// a. property "singleChildNode", with its value an PSObject wrapping string "single child node text"
/// b. property "dupChildNode", with its value an PSObject array wrapping strings for two dupChildNode's
- /// The outside PSObject will have property,
+ /// The outside PSObject will have property,
/// a. property "attribute", with its value an PSObject wrapping string "attribute"
/// 4. Maml formatting xml, this is a special case for Composite xml, for example
///
@@ -181,7 +181,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
/// In this case, an PSObject based on an PSObject array will be created. The inside PSObject array
/// will contain following items
/// . a MamlParaTextItem based on "para 1"
@@ -189,10 +189,10 @@ namespace System.Management.Automation
/// . a MamlUnorderedListItem based on "list item 2"
/// . a MamlDefinitionListItem based on "definition list item 1"
/// . a MamlDefinitionListItem based on "definition list item 2"
- ///
+ ///
/// The outside PSObject will have a property
/// attribute => "value"
- ///
+ ///
///
///
///
@@ -214,7 +214,7 @@ namespace System.Management.Automation
else
{
mshObject = new PSObject(GetInsidePSObject(xmlNode));
- // Add typeNames to this MSHObject and create views so that
+ // Add typeNames to this MSHObject and create views so that
// the ouput is readable. This is done only for complex nodes.
mshObject.TypeNames.Clear();
@@ -242,10 +242,10 @@ namespace System.Management.Automation
///
/// Get inside PSObject created based on inside nodes of xmlNode.
- ///
- /// The inside PSObject will be based on null. It will created one
- /// property per inside node grouping by node names.
- ///
+ ///
+ /// The inside PSObject will be based on null. It will created one
+ /// property per inside node grouping by node names.
+ ///
/// For example, for xmlNode like,
///
/// get-item
@@ -277,12 +277,12 @@ namespace System.Management.Automation
}
///
- /// This is for getting inside properties of an XmlNode. Properties are
- /// stored in a hashtable with key as property name and value as property value.
- ///
- /// Inside node with same node names will be grouped into one property with
- /// property value as an array.
- ///
+ /// This is for getting inside properties of an XmlNode. Properties are
+ /// stored in a hashtable with key as property name and value as property value.
+ ///
+ /// Inside node with same node names will be grouped into one property with
+ /// property value as an array.
+ ///
/// For example, for xmlNode like,
///
/// get-item
@@ -294,12 +294,12 @@ namespace System.Management.Automation
/// . property 2: name="note" value=an PSObject array with following two PSObjects
/// 1. PSObject wrapping string "note 1"
/// 2. PSObject wrapping string "note 2"
- ///
+ ///
/// Since we don't know whether an node name will be used more than once,
- /// We are making each property value is an array (PSObject[]) to start with.
+ /// We are making each property value is an array (PSObject[]) to start with.
/// At the end, SimplifyProperties will be called to reduce PSObject[] containing
/// only one element to PSObject itself.
- ///
+ ///
///
///
///
@@ -354,18 +354,18 @@ namespace System.Management.Automation
}
///
- /// This is for adding a property into a property hashtable.
- ///
- /// As mentioned in comment of GetInsideProperties, property values stored in
- /// property hashtable is an array to begin with.
- ///
- /// The property value to be added is an mshObject whose base object can be an
+ /// This is for adding a property into a property hashtable.
+ ///
+ /// As mentioned in comment of GetInsideProperties, property values stored in
+ /// property hashtable is an array to begin with.
+ ///
+ /// The property value to be added is an mshObject whose base object can be an
/// PSObject array itself. In that case, each PSObject in the array will be
- /// added separately into the property value array. This case can only happen when
- /// an node with maml formatting node inside is treated. The side effect of this
+ /// added separately into the property value array. This case can only happen when
+ /// an node with maml formatting node inside is treated. The side effect of this
/// is that the properties for outside mshObject will be lost. An example of this
- /// is that,
- ///
+ /// is that,
+ ///
///
///
///
@@ -373,12 +373,12 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
/// After the processing, PSObject corresponding to command will have an property
- /// with name "description" and a value of an PSObject array created based on
+ /// with name "description" and a value of an PSObject array created based on
/// maml formatting node inside "description" node. The attribute of description node
- /// "attrib1" will be lost. This seems to be OK with current practice of authoring
- /// monad command help.
+ /// "attrib1" will be lost. This seems to be OK with current practice of authoring
+ /// monad command help.
///
/// property hashtable
/// property name
@@ -414,12 +414,12 @@ namespace System.Management.Automation
}
///
- /// This is for simplifying property value array of only one element.
- ///
+ /// This is for simplifying property value array of only one element.
+ ///
/// As mentioned in comments for GetInsideProperties, this is needed
- /// to reduce an array of only one PSObject into the PSObject itself.
- ///
- /// A side effect of this function is to turn property values from
+ /// to reduce an array of only one PSObject into the PSObject itself.
+ ///
+ /// A side effect of this function is to turn property values from
/// ArrayList into PSObject[].
///
///
@@ -446,7 +446,7 @@ namespace System.Management.Automation
PSObject mshObject = (PSObject)propertyValues[0];
// Even for strings or other basic types, they need to be contained in PSObject in case
- // there is attributes for this object.
+ // there is attributes for this object.
result[enumerator.Key] = mshObject;
@@ -490,7 +490,7 @@ namespace System.Management.Automation
#region Maml formatting
///
- /// Check whether an xmlNode contains childnodes which is for
+ /// Check whether an xmlNode contains childnodes which is for
/// maml formatting.
///
///
@@ -553,8 +553,8 @@ namespace System.Management.Automation
///
/// Convert an xmlNode containing maml formatting nodes into an PSObject array.
- ///
- /// For example, for node,
+ ///
+ /// For example, for node,
///
///
/// para 1
@@ -590,7 +590,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
/// In this case, an PSObject based on an PSObject array will be created. The inside PSObject array
/// will contain following items
/// . a MamlParaTextItem based on "para 1"
@@ -675,7 +675,7 @@ namespace System.Management.Automation
}
///
- /// Write an error to helpsystem to indicate an invalid maml child node.
+ /// Write an error to helpsystem to indicate an invalid maml child node.
///
///
///
@@ -741,15 +741,15 @@ namespace System.Management.Automation
}
///
- /// Convert a para node into an mshObject.
- ///
+ /// Convert a para node into an mshObject.
+ ///
/// For example,
///
/// para text
///
/// In this case, an PSObject of type "MamlParaTextItem" will be created with following property
/// a. text="para text"
- ///
+ ///
///
///
///
@@ -786,8 +786,8 @@ namespace System.Management.Automation
///
/// Convert a list node into an PSObject array.
- ///
- /// For example,
+ ///
+ /// For example,
///
///
///
@@ -800,13 +800,13 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
/// In this case, an array of PSObject, each of type "MamlOrderedListText" will be created with following
/// two properties,
/// a. tag=" 1. " or " 2. "
/// b. text="text for list item 1" or "text for list item 2"
/// In the case of unordered list, similar PSObject will created with type to be "MamlUnorderedListText" and tag="*"
- ///
+ ///
///
///
///
@@ -936,8 +936,8 @@ namespace System.Management.Automation
}
///
- /// Convert definitionList node into an array of PSObject, an for
- /// each definitionListItem node inside this node.
+ /// Convert definitionList node into an array of PSObject, an for
+ /// each definitionListItem node inside this node.
///
///
///
@@ -975,7 +975,7 @@ namespace System.Management.Automation
///
/// Convert an definitionListItem node into an PSObject
- ///
+ ///
/// For example
///
///
@@ -987,7 +987,7 @@ namespace System.Management.Automation
///
///
///
- /// In this case, an PSObject of type "definitionListText" will be created with following
+ /// In this case, an PSObject of type "definitionListText" will be created with following
/// properties
/// a. term="term text"
/// b. definition="definition text"
@@ -1081,31 +1081,31 @@ namespace System.Management.Automation
///
/// This is for getting preformatted text from an xml document.
- ///
- /// Normally in xml document, preformatted text will be indented by
- /// a fix amount based on its position. The task of this function
- /// is to remove that fixed amount from the text.
- ///
+ ///
+ /// Normally in xml document, preformatted text will be indented by
+ /// a fix amount based on its position. The task of this function
+ /// is to remove that fixed amount from the text.
+ ///
/// For example, in xml,
- ///
+ ///
///
/// void function()
/// {
/// // call some other function here;
/// }
///
- ///
- /// we can find that the preformatted text are indented unanimously
+ ///
+ /// we can find that the preformatted text are indented unanimously
/// by 4 spaces because of its position in xml.
- ///
- /// After massaging in this function, the result text will be,
- ///
+ ///
+ /// After massaging in this function, the result text will be,
+ ///
/// void function
/// {
/// // call some other function here;
/// }
- ///
- /// please notice that the indention is reduced.
+ ///
+ /// please notice that the indention is reduced.
///
///
///
@@ -1224,9 +1224,9 @@ namespace System.Management.Automation
}
///
- /// Test whether a line is empty.
- ///
- /// A line is empty if it contains only white spaces.
+ /// Test whether a line is empty.
+ ///
+ /// A line is empty if it contains only white spaces.
///
///
///
@@ -1247,7 +1247,7 @@ namespace System.Management.Automation
#region Error handling
///
- /// This is for tracking the set of errors happened during the parsing of
+ /// This is for tracking the set of errors happened during the parsing of
/// maml text.
///
///
diff --git a/src/System.Management.Automation/help/PSClassHelpProvider.cs b/src/System.Management.Automation/help/PSClassHelpProvider.cs
index ef78780563..b2c123634e 100644
--- a/src/System.Management.Automation/help/PSClassHelpProvider.cs
+++ b/src/System.Management.Automation/help/PSClassHelpProvider.cs
@@ -29,9 +29,9 @@ namespace System.Management.Automation
private readonly ExecutionContext _context;
///
- /// This is a hashtable to track which help files are loaded already.
- ///
- /// This will avoid one help file getting loaded again and again.
+ /// This is a hashtable to track which help files are loaded already.
+ ///
+ /// This will avoid one help file getting loaded again and again.
///
///
private readonly Hashtable _helpFiles = new Hashtable();
@@ -124,7 +124,7 @@ namespace System.Management.Automation
}
///
- /// Get the help in for the PS Class Info. ///
+ /// Get the help in for the PS Class Info. ///
///
/// Searcher for PS Classes.
/// Next HelpInfo object.
@@ -171,15 +171,15 @@ namespace System.Management.Automation
}
///
- /// Check whether a HelpItems node indicates that the help content is
- /// authored using maml schema.
- ///
- /// This covers two cases:
+ /// Check whether a HelpItems node indicates that the help content is
+ /// authored using maml schema.
+ ///
+ /// This covers two cases:
/// a. If the help file has an extension .maml.
/// b. If HelpItems node (which should be the top node of any command help file)
/// has an attribute "schema" with value "maml", its content is in maml
/// schema
- ///
+ ///
///
/// File name.
/// Nodes to check.
@@ -295,13 +295,13 @@ namespace System.Management.Automation
}
///
- /// Load help file for HelpInfo objects. The HelpInfo objects will be
+ /// Load help file for HelpInfo objects. The HelpInfo objects will be
/// put into help cache.
///
///
- /// 1. Needs to pay special attention about error handling in this function.
+ /// 1. Needs to pay special attention about error handling in this function.
/// Common errors include: file not found and invalid xml. None of these error
- /// should cause help search to stop.
+ /// should cause help search to stop.
/// 2. a helpfile cache is used to avoid same file got loaded again and again.
///
private void LoadHelpFile(string helpFile, string helpFileIdentifier)
diff --git a/src/System.Management.Automation/help/ProviderCommandHelpInfo.cs b/src/System.Management.Automation/help/ProviderCommandHelpInfo.cs
index 3dac005dbf..35bb3f3c8a 100644
--- a/src/System.Management.Automation/help/ProviderCommandHelpInfo.cs
+++ b/src/System.Management.Automation/help/ProviderCommandHelpInfo.cs
@@ -55,7 +55,7 @@ namespace System.Management.Automation
/// RelatedLinks.
///
///
- /// Null if no Uri is specified by the helpinfo or a
+ /// Null if no Uri is specified by the helpinfo or a
/// valid Uri.
///
internal override Uri GetUriForOnlineHelp()
diff --git a/src/System.Management.Automation/help/ProviderHelpInfo.cs b/src/System.Management.Automation/help/ProviderHelpInfo.cs
index 46d32235e2..a162857fdc 100644
--- a/src/System.Management.Automation/help/ProviderHelpInfo.cs
+++ b/src/System.Management.Automation/help/ProviderHelpInfo.cs
@@ -8,10 +8,10 @@ using System.Xml;
namespace System.Management.Automation
{
///
- ///
- /// Class ProviderHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class ProviderHelpInfo keeps track of help information to be returned by
/// command help provider.
- ///
+ ///
///
internal class ProviderHelpInfo : HelpInfo
{
@@ -156,10 +156,10 @@ namespace System.Management.Automation
///
/// Returns true if help content in help info matches the
- /// pattern contained in .
+ /// pattern contained in .
/// The underlying code will usually run pattern.IsMatch() on
/// content it wants to search.
- /// Provider help info looks for pattern in Synopsis and
+ /// Provider help info looks for pattern in Synopsis and
/// DetailedDescription
///
///
@@ -210,7 +210,7 @@ namespace System.Management.Automation
}
///
- /// Load provider-specific commandlet helps from xmlNode stored in _fullHelpObject.
+ /// Load provider-specific commandlet helps from xmlNode stored in _fullHelpObject.
/// Result will be stored in a hashtable.
///
private void LoadCmdletHelps()
@@ -231,7 +231,7 @@ namespace System.Management.Automation
if (cmdlets == null)
return;
- if (cmdlets.Properties["Cmdlet"] == null ||
+ if (cmdlets.Properties["Cmdlet"] == null ||
cmdlets.Properties["Cmdlet"].Value == null)
return;
@@ -291,7 +291,7 @@ namespace System.Management.Automation
}
///
- /// Load provider-specific dynamic parameter helps from xmlNode stored in _fullHelpObject.
+ /// Load provider-specific dynamic parameter helps from xmlNode stored in _fullHelpObject.
/// Result will be stored in a hashtable.
///
private void LoadDynamicParameterHelps()
diff --git a/src/System.Management.Automation/help/ProviderHelpProvider.cs b/src/System.Management.Automation/help/ProviderHelpProvider.cs
index 8b09845729..f51424380e 100644
--- a/src/System.Management.Automation/help/ProviderHelpProvider.cs
+++ b/src/System.Management.Automation/help/ProviderHelpProvider.cs
@@ -62,7 +62,7 @@ namespace System.Management.Automation
#region Help Provider Interface
///
- /// Do exact match help based on the target.
+ /// Do exact match help based on the target.
///
/// help request object
internal override IEnumerable ExactMatchHelp(HelpRequest helpRequest)
@@ -75,10 +75,10 @@ namespace System.Management.Automation
}
catch (ProviderNotFoundException e)
{
- // We distinguish two cases here,
+ // We distinguish two cases here,
// a. If the "Provider" is the only category to search for in this case,
// an error will be written.
- // b. Otherwise, no errors will be written since in end user's mind,
+ // b. Otherwise, no errors will be written since in end user's mind,
// he may mean to search for provider help.
if (this.HelpSystem.LastHelpCategory == HelpCategory.Provider)
{
@@ -132,10 +132,10 @@ namespace System.Management.Automation
}
///
- /// This is a hashtable to track which help files are loaded already.
- ///
- /// This will avoid one help file getting loaded again and again.
- /// (Which should not happen unless some provider is pointing
+ /// This is a hashtable to track which help files are loaded already.
+ ///
+ /// This will avoid one help file getting loaded again and again.
+ /// (Which should not happen unless some provider is pointing
/// to a help file that actually doesn't contain the help for it).
///
///
@@ -259,13 +259,13 @@ namespace System.Management.Automation
///
/// Search for provider help based on a search target.
///
- /// help request object
+ /// help request object
///
- /// If true, searches for pattern in the help content. Individual
+ /// If true, searches for pattern in the help content. Individual
/// provider can decide which content to search in.
- ///
+ ///
/// If false, searches for pattern in the command names.
- ///
+ ///
///
internal override IEnumerable SearchHelp(HelpRequest helpRequest, bool searchOnlyContent)
{
@@ -370,12 +370,12 @@ namespace System.Management.Automation
/// Process a helpInfo forwarded from other providers (normally commandHelpProvider)
///
///
- /// For command help info, this will
+ /// For command help info, this will
/// 1. check whether provider-specific commandlet help exists.
/// 2. merge found provider-specific help with commandlet help provided.
///
/// helpInfo forwarded in
- /// help request object
+ /// help request object
/// The help info object after processing
override internal HelpInfo ProcessForwardedHelp(HelpInfo helpInfo, HelpRequest helpRequest)
{
@@ -413,8 +413,8 @@ namespace System.Management.Automation
#endif
///
- /// This will reset the help cache. Normally this corresponds to a
- /// help culture change.
+ /// This will reset the help cache. Normally this corresponds to a
+ /// help culture change.
///
internal override void Reset()
{
diff --git a/src/System.Management.Automation/help/RemoteHelpInfo.cs b/src/System.Management.Automation/help/RemoteHelpInfo.cs
index f90bcb9efa..6fa8ef0ffd 100644
--- a/src/System.Management.Automation/help/RemoteHelpInfo.cs
+++ b/src/System.Management.Automation/help/RemoteHelpInfo.cs
@@ -8,10 +8,10 @@ using Dbg = System.Management.Automation.Diagnostics;
namespace System.Management.Automation
{
///
- ///
- /// Class MamlCommandHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class MamlCommandHelpInfo keeps track of help information to be returned by
/// command help provider.
- ///
+ ///
///
internal class RemoteHelpInfo : BaseCommandHelpInfo
{
diff --git a/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs b/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs
index 285e18e31b..a08328db18 100644
--- a/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs
+++ b/src/System.Management.Automation/help/ScriptCommandHelpProvider.cs
@@ -5,7 +5,7 @@ Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Management.Automation
{
///
- /// Class ScriptCommandHelpProvider implement the help provider for Functions/ExternalScripts.
+ /// Class ScriptCommandHelpProvider implement the help provider for Functions/ExternalScripts.
/// This class does the same thing as CommandHelpProvider except for decision making: whether
/// a particular command is Function/Script or not.
///
diff --git a/src/System.Management.Automation/help/SyntaxHelpInfo.cs b/src/System.Management.Automation/help/SyntaxHelpInfo.cs
index ab8883ae6b..f8087b8b0d 100644
--- a/src/System.Management.Automation/help/SyntaxHelpInfo.cs
+++ b/src/System.Management.Automation/help/SyntaxHelpInfo.cs
@@ -5,10 +5,10 @@ Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Management.Automation
{
///
- ///
- /// Class HelpFileHelpInfo keeps track of help information to be returned by
+ ///
+ /// Class HelpFileHelpInfo keeps track of help information to be returned by
/// command help provider.
- ///
+ ///
///
internal class SyntaxHelpInfo : BaseCommandHelpInfo
{
diff --git a/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs b/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs
index 7b590ff0c5..7b006d3541 100644
--- a/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs
+++ b/src/System.Management.Automation/help/UpdatableHelpCommandBase.cs
@@ -148,10 +148,10 @@ namespace Microsoft.PowerShell.Commands
///
/// Static constructor
- ///
- /// NOTE: FWLinks for core PowerShell modules are needed since they get loaded as snapins in a Remoting Endpoint.
+ ///
+ /// NOTE: FWLinks for core PowerShell modules are needed since they get loaded as snapins in a Remoting Endpoint.
/// When we moved to modules in V3, we were not able to make this change as it was a risky change to make at that time.
- ///
+ ///
///
static UpdatableHelpCommandBase()
{
@@ -487,7 +487,7 @@ namespace Microsoft.PowerShell.Commands
return;
}
- // Win8: 572882 When the system locale is English and the UI is JPN,
+ // Win8: 572882 When the system locale is English and the UI is JPN,
// running "update-help" still downs English help content.
var cultures = _language ?? _helpSystem.GetCurrentUICulture();
@@ -699,7 +699,7 @@ namespace Microsoft.PowerShell.Commands
///
/// path to resolve
/// resolve recursively?
- /// Treat the path / start path as a literal path?///
+ /// Treat the path / start path as a literal path?///
/// a list of directories
internal IEnumerable ResolvePath(string path, bool recurse, bool isLiteralPath)
{
diff --git a/src/System.Management.Automation/help/UpdatableHelpSystem.cs b/src/System.Management.Automation/help/UpdatableHelpSystem.cs
index 90fcde70ab..2243451ae4 100644
--- a/src/System.Management.Automation/help/UpdatableHelpSystem.cs
+++ b/src/System.Management.Automation/help/UpdatableHelpSystem.cs
@@ -401,7 +401,7 @@ namespace System.Management.Automation.Help
// Directory.Exists checks if baseUri is a network drive or
// a local directory. If baseUri is local, we don't need to resolve it.
- //
+ //
// The / check works because all of our fwlinks must resolve
// to a remote virtual directory. I think HTTP always appends /
// in reference to a directory.
@@ -1033,7 +1033,7 @@ namespace System.Management.Automation.Help
}
///
- /// Installs HelpInfo.xml
+ /// Installs HelpInfo.xml
///
///
///
@@ -1311,7 +1311,7 @@ namespace System.Management.Automation.Help
{
destPath += "\\";
}
-
+
sucessfulDecompression = CabinetExtractorFactory.GetCabinetExtractor().Extract(Path.GetFileName(srcPath), sourceDirectory, destPath);
#endif
if (!sucessfulDecompression)
@@ -1816,7 +1816,7 @@ namespace System.Management.Automation.Help
}
///
- ///
+ ///
///
///
///
diff --git a/src/System.Management.Automation/logging/LogContext.cs b/src/System.Management.Automation/logging/LogContext.cs
index 3dba2fd7a3..238c767467 100644
--- a/src/System.Management.Automation/logging/LogContext.cs
+++ b/src/System.Management.Automation/logging/LogContext.cs
@@ -5,13 +5,13 @@ Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Management.Automation
{
///
- /// LogContext is the class to keep track of context information for each
+ /// LogContext is the class to keep track of context information for each
/// event to be logged.
- ///
+ ///
/// LogContext info is collected by Msh Log Engine and passed on to log provider
/// interface.
///
- ///
+ ///
internal class LogContext
{
#region Context Properties
@@ -71,7 +71,7 @@ namespace System.Management.Automation
///
/// Type of the command, which can be Alias, CommandLet, Script, Application, etc.
- ///
+ ///
/// The value of this property is a usually conversion of CommandTypes enum into a string.
///
///
@@ -98,12 +98,12 @@ namespace System.Management.Automation
internal string SequenceNumber { get; set; } = "";
///
- /// Current user.
+ /// Current user.
///
internal string User { get; set; } = "";
///
- /// The user connected to the machine, if being done with
+ /// The user connected to the machine, if being done with
/// PowerShell remoting.
///
internal string ConnectedUser { get; set; }
@@ -118,8 +118,8 @@ namespace System.Management.Automation
#region Shell Id
///
- /// This property should be filled in when logging api is called directly
- /// with LogContext (when ExecutionContext is not available).
+ /// This property should be filled in when logging api is called directly
+ /// with LogContext (when ExecutionContext is not available).
///
internal string ShellId { get; set; }
diff --git a/src/System.Management.Automation/logging/LogProvider.cs b/src/System.Management.Automation/logging/LogProvider.cs
index 603aeb89af..8161f1e6f0 100644
--- a/src/System.Management.Automation/logging/LogProvider.cs
+++ b/src/System.Management.Automation/logging/LogProvider.cs
@@ -7,18 +7,18 @@ using System.Collections.Generic;
namespace System.Management.Automation
{
///
- /// Monad Logging in general is a two layer architecture. At the upper layer are the
- /// Msh Log Engine and Logging Api. At the lower layer is the Provider Interface
- /// and Log Providers. This architecture is adopted to achieve independency between
+ /// Monad Logging in general is a two layer architecture. At the upper layer are the
+ /// Msh Log Engine and Logging Api. At the lower layer is the Provider Interface
+ /// and Log Providers. This architecture is adopted to achieve independency between
/// Monad logging and logging details of different logging technology.
- ///
- /// This file implements the lower layer of the Monad Logging architecture.
- /// Upper layer of Msh Log architecture is implemented in MshLog.cs file.
- ///
+ ///
+ /// This file implements the lower layer of the Monad Logging architecture.
+ /// Upper layer of Msh Log architecture is implemented in MshLog.cs file.
+ ///
/// This class defines the provider interface to be implemented by each providers.
- ///
- /// Provider Interface.
- ///
+ ///
+ /// Provider Interface.
+ ///
/// Corresponding to 5 categories of logging api interface, provider interface provides
/// functions for logging
/// a. EngineHealthEvent
@@ -26,14 +26,14 @@ namespace System.Management.Automation
/// c. CommandLifecycleEvent
/// d. ProviderLifecycleEvent
/// e. SettingsEvent
- ///
+ ///
///
internal abstract class LogProvider
{
///
/// constructor
///
- ///
+ ///
internal LogProvider()
{
}
@@ -47,7 +47,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal abstract void LogEngineHealthEvent(LogContext logContext, int eventId, Exception exception, Dictionary additionalInfo);
///
@@ -56,7 +56,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal abstract void LogEngineLifecycleEvent(LogContext logContext, EngineState newState, EngineState previousState);
///
@@ -71,7 +71,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal abstract void LogCommandLifecycleEvent(Func getLogContext, CommandState newState);
///
@@ -87,7 +87,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal abstract void LogProviderHealthEvent(LogContext logContext, string providerName, Exception exception);
///
@@ -96,7 +96,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal abstract void LogProviderLifecycleEvent(LogContext logContext, string providerName, ProviderState newState);
///
@@ -106,7 +106,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal abstract void LogSettingsEvent(LogContext logContext, string variableName, string value, string previousValue);
///
@@ -128,7 +128,7 @@ namespace System.Management.Automation
///
/// constructor
///
- ///
+ ///
internal DummyLogProvider()
{
}
@@ -142,7 +142,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogEngineHealthEvent(LogContext logContext, int eventId, Exception exception, Dictionary additionalInfo)
{
}
@@ -153,7 +153,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogEngineLifecycleEvent(LogContext logContext, EngineState newState, EngineState previousState)
{
}
@@ -163,7 +163,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogCommandHealthEvent(LogContext logContext, Exception exception)
{
}
@@ -173,7 +173,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogCommandLifecycleEvent(Func getLogContext, CommandState newState)
{
}
@@ -193,7 +193,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogProviderHealthEvent(LogContext logContext, string providerName, Exception exception)
{
}
@@ -204,7 +204,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogProviderLifecycleEvent(LogContext logContext, string providerName, ProviderState newState)
{
}
@@ -216,7 +216,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogSettingsEvent(LogContext logContext, string variableName, string value, string previousValue)
{
}
diff --git a/src/System.Management.Automation/logging/MshLog.cs b/src/System.Management.Automation/logging/MshLog.cs
index e26c6bfed5..07e919640a 100644
--- a/src/System.Management.Automation/logging/MshLog.cs
+++ b/src/System.Management.Automation/logging/MshLog.cs
@@ -14,42 +14,42 @@ using System.Globalization;
namespace System.Management.Automation
{
///
- ///
- /// Monad Logging in general is a two layer architecture. At the upper layer are the
- /// Msh Log Engine and Logging Api. At the lower layer is the Provider Interface
- /// and Log Providers. This architecture is adopted to achieve independency between
+ ///
+ /// Monad Logging in general is a two layer architecture. At the upper layer are the
+ /// Msh Log Engine and Logging Api. At the lower layer is the Provider Interface
+ /// and Log Providers. This architecture is adopted to achieve independency between
/// Monad logging and logging details of different logging technology.
- ///
- /// This file implements the upper layer of the Monad Logging architecture.
- /// Lower layer of Msh Log architecture is implemented in LogProvider.cs file.
- ///
+ ///
+ /// This file implements the upper layer of the Monad Logging architecture.
+ /// Lower layer of Msh Log architecture is implemented in LogProvider.cs file.
+ ///
/// Logging Api is made up of following five sets
- /// 1. Engine Health Event
+ /// 1. Engine Health Event
/// 2. Engine Lifecycle Event
/// 3. Command Lifecycle Event
/// 4. Provider Lifecycle Event
/// 5. Settings Event
- ///
- /// Msh Log Engine provides features in following areas,
- /// 1. Loading and managing logging providers. Based on some "Provider Catalog", engine will try to
+ ///
+ /// Msh Log Engine provides features in following areas,
+ /// 1. Loading and managing logging providers. Based on some "Provider Catalog", engine will try to
/// load providers. First provider that is successfully loaded will be used for low level logging.
/// If no providers can be loaded, a dummy provider will be used, which will essentially do nothing.
- /// 2. Implementation of logging api functions. These api functions is implemented by calling corresponding
- /// functions in provider interface.
+ /// 2. Implementation of logging api functions. These api functions is implemented by calling corresponding
+ /// functions in provider interface.
/// 3. Sequence Id Generation. Unique id are generated in this class. These id's will be attached to events.
- /// 4. Monad engine state management. Engine state is stored in ExecutionContext class but managed here.
+ /// 4. Monad engine state management. Engine state is stored in ExecutionContext class but managed here.
/// Later on, this feature may be moved to engine itself (where it should belongs to) when sophisticated
/// engine state model is established.
/// 5. Logging policy support. Events are logged or not logged based on logging policy settings (which is stored
/// in session state of the engine.
- ///
+ ///
/// MshLog class is defined as a static class. This essentially make the logging api to be a static api.
- ///
- /// We want to provide sufficient synchronization for static functions calls.
- /// This is not needed for now because of following two reasons,
- /// a. Currently, only one monad engine can be running in one process. So logically only one
+ ///
+ /// We want to provide sufficient synchronization for static functions calls.
+ /// This is not needed for now because of following two reasons,
+ /// a. Currently, only one monad engine can be running in one process. So logically only one
/// event will be log at a time.
- /// b. Even in the case of multiple events are logged, underlining logging media should
+ /// b. Even in the case of multiple events are logged, underlining logging media should
/// provide synchronization.
///
internal static class MshLog
@@ -57,9 +57,9 @@ namespace System.Management.Automation
#region Initialization
///
- /// A static dictionary to keep track of log providers for different shellId's.
- ///
- /// The value of this dictionary is never empty. A value of type DummyProvider means
+ /// A static dictionary to keep track of log providers for different shellId's.
+ ///
+ /// The value of this dictionary is never empty. A value of type DummyProvider means
/// no logging.
///
private static ConcurrentDictionary> s_logProviders =
@@ -83,11 +83,11 @@ namespace System.Management.Automation
/// Currently initialization is done in following sequence
/// a. Try to load CrimsonLogProvider (in the case of Longhorn)
/// b. If a fails, use the DummyLogProvider instead. (in low-level OS)
- ///
- /// In the longer turn, we may need to use a "Provider Catalog" for
+ ///
+ /// In the longer turn, we may need to use a "Provider Catalog" for
/// log provider loading.
///
- ///
+ ///
///
///
private static IEnumerable GetLogProvider(string shellId)
@@ -96,9 +96,9 @@ namespace System.Management.Automation
}
///
- /// Get Log Provider based on Execution Context
+ /// Get Log Provider based on Execution Context
///
- ///
+ ///
///
///
private static IEnumerable GetLogProvider(ExecutionContext executionContext)
@@ -114,9 +114,9 @@ namespace System.Management.Automation
}
///
- /// Get Log Provider based on Log Context
+ /// Get Log Provider based on Log Context
///
- ///
+ ///
///
///
private static IEnumerable GetLogProvider(LogContext logContext)
@@ -195,8 +195,8 @@ namespace System.Management.Automation
{
// This exception will happen if we try to create an event source
// (corresponding to the current running minishell)
- // when running as non-admin user. In that case, we will default
- // to dummy log.
+ // when running as non-admin user. In that case, we will default
+ // to dummy log.
}
#endif
providers.Add(new DummyLogProvider());
@@ -206,7 +206,7 @@ namespace System.Management.Automation
///
/// This will set the current log provider to be dummy log.
///
- ///
+ ///
///
internal static void SetDummyLog(string shellId)
{
@@ -219,12 +219,12 @@ namespace System.Management.Automation
#region Engine Health Event Logging Api
///
- /// LogEngineHealthEvent: Log an engine health event. If engine state is changed, a engine
+ /// LogEngineHealthEvent: Log an engine health event. If engine state is changed, a engine
/// lifecycle event will be logged also.
- ///
+ ///
/// This is the basic form of EngineHealthEvent logging api, in which all parameters are provided.
- ///
- /// Variant form of this function is defined below, which will make parameters additionalInfo
+ ///
+ /// Variant form of this function is defined below, which will make parameters additionalInfo
/// and newEngineState optional.
///
/// Execution context for the engine that is running
@@ -289,8 +289,8 @@ namespace System.Management.Automation
///
/// This is a variation of LogEngineHealthEvent api to make eventid, additionalInfo and newEngineState
/// optional.
- ///
- /// A default event id for engine health event will be used.
+ ///
+ /// A default event id for engine health event will be used.
///
///
///
@@ -340,10 +340,10 @@ namespace System.Management.Automation
///
/// LogEngineHealthEvent: This is an API for logging engine health event while execution context
- /// is not available. In this case, caller of this API will directly construct LogContext
- /// instance.
- ///
- /// This API is currently used only by runspace before engine start.
+ /// is not available. In this case, caller of this API will directly construct LogContext
+ /// instance.
+ ///
+ /// This API is currently used only by runspace before engine start.
///
/// logContext to be
/// EventId for the event to be logged
@@ -367,8 +367,8 @@ namespace System.Management.Automation
return;
}
- // Here execution context doesn't exist, we will have to log this event regardless.
- // Don't check NeedToLogEngineHealthEvent here.
+ // Here execution context doesn't exist, we will have to log this event regardless.
+ // Don't check NeedToLogEngineHealthEvent here.
foreach (LogProvider provider in GetLogProvider(logContext))
{
provider.LogEngineHealthEvent(logContext, eventId, exception, additionalInfo);
@@ -380,11 +380,11 @@ namespace System.Management.Automation
#region Engine Lifecycle Event Logging Api
///
- /// LogEngineLifecycleEvent: Log an engine lifecycle event.
- ///
+ /// LogEngineLifecycleEvent: Log an engine lifecycle event.
+ ///
/// This is the basic form of EngineLifecycleEvent logging api, in which all parameters are provided.
- ///
- /// Variant form of this function is defined below, which will make parameter additionalInfo
+ ///
+ /// Variant form of this function is defined below, which will make parameter additionalInfo
/// optional.
///
/// execution context for current engine instance
@@ -432,8 +432,8 @@ namespace System.Management.Automation
#region Command Health Event Logging Api
///
- /// LogProviderHealthEvent: Log a command health event.
- ///
+ /// LogProviderHealthEvent: Log a command health event.
+ ///
///
/// Execution context for the engine that is running
/// Exception associated with this event
@@ -474,7 +474,7 @@ namespace System.Management.Automation
///
/// LogCommandLifecycleEvent: Log a command lifecycle event.
- ///
+ ///
/// This is the only form of CommandLifecycleEvent logging api.
///
/// Execution Context for the current running engine
@@ -514,10 +514,10 @@ namespace System.Management.Automation
///
/// LogCommandLifecycleEvent: Log a command lifecycle event.
- ///
+ ///
/// This is a form of CommandLifecycleEvent which takes a commandName instead
- /// of invocationInfo. It is likely that invocationInfo is not available if
- /// the command failed security check.
+ /// of invocationInfo. It is likely that invocationInfo is not available if
+ /// the command failed security check.
///
/// Execution Context for the current running engine
/// new command state
@@ -557,7 +557,7 @@ namespace System.Management.Automation
///
/// LogPipelineExecutionDetailEvent: Log a pipeline execution detail event.
- ///
+ ///
///
/// Execution Context for the current running engine
/// detail to be logged for this pipeline execution detail
@@ -584,9 +584,9 @@ namespace System.Management.Automation
///
/// LogPipelineExecutionDetailEvent: Log a pipeline execution detail event.
- ///
- /// This is a form of PipelineExecutionDetailEvent which takes a scriptName and commandLine
- /// instead of invocationInfo. This will save the need to fill in the commandName for
+ ///
+ /// This is a form of PipelineExecutionDetailEvent which takes a scriptName and commandLine
+ /// instead of invocationInfo. This will save the need to fill in the commandName for
/// this event.
///
/// Execution Context for the current running engine
@@ -622,8 +622,8 @@ namespace System.Management.Automation
#region Provider Health Event Logging Api
///
- /// LogProviderHealthEvent: Log a Provider health event.
- ///
+ /// LogProviderHealthEvent: Log a Provider health event.
+ ///
///
/// Execution context for the engine that is running
/// Name of the provider
@@ -666,7 +666,7 @@ namespace System.Management.Automation
///
/// LogProviderLifecycleEvent: Log a provider lifecycle event.
- ///
+ ///
/// This is the only form of ProviderLifecycleEvent logging api.
///
/// Execution Context for current engine that is running
@@ -697,7 +697,7 @@ namespace System.Management.Automation
///
/// LogSettingsEvent: Log a settings event
- ///
+ ///
/// This is the basic form of LoggingSettingsEvent API. Variation of this function defined
/// below will make parameter invocationInfo optional.
///
@@ -748,8 +748,8 @@ namespace System.Management.Automation
///
/// Get current engine state for the engine instance corresponding to executionContext
- /// passed in.
- ///
+ /// passed in.
+ ///
/// Engine state is stored in ExecutionContext.
///
///
@@ -761,8 +761,8 @@ namespace System.Management.Automation
///
/// Set current engine state for the engine instance corresponding to executionContext
- /// passed in.
- ///
+ /// passed in.
+ ///
/// Engine state is stored in ExecutionContext.
///
///
@@ -774,8 +774,8 @@ namespace System.Management.Automation
///
/// Generate LogContext structure based on executionContext and invocationInfo passed in.
- ///
- /// LogContext structure is used in log provider interface.
+ ///
+ /// LogContext structure is used in log provider interface.
///
///
///
@@ -787,8 +787,8 @@ namespace System.Management.Automation
///
/// Generate LogContext structure based on executionContext and invocationInfo passed in.
- ///
- /// LogContext structure is used in log provider interface.
+ ///
+ /// LogContext structure is used in log provider interface.
///
///
///
@@ -883,15 +883,15 @@ namespace System.Management.Automation
#endregion
- #region Logging Policy
+ #region Logging Policy
///
/// NeedToLogEngineHealthEvent: check whether logging engine health event is necessary.
/// Whether to log engine event is controled by session variable "LogEngineHealthEvent"
/// The default value for this is true (?).
- /// Reading a session variable from execution context for
- /// every single logging call may be expensive. We may need to use a different
- /// approach for this:
+ /// Reading a session variable from execution context for
+ /// every single logging call may be expensive. We may need to use a different
+ /// approach for this:
/// a. ExecutionContext will cache the value for variable "LogEngineHealthEvent"
/// b. If this variable is changed, a notification function will change the cached
/// value in engine correspondently.
@@ -966,13 +966,13 @@ namespace System.Management.Automation
///
/// NeedToLogPipelineExecutionDetailEvent: check whether logging pipeline execution detail event is necessary.
- ///
- /// Whether to log command lifecycle event is controled by PSSnapin set up.
- ///
+ ///
+ /// Whether to log command lifecycle event is controled by PSSnapin set up.
+ ///
/// Should we use session variable "LogPipelineExecutionEvent" to control this also?
- ///
- /// Currently we return true always since pipeline processor already check for whether to log
- /// logic from PSSnapin already. This may need to be changed.
+ ///
+ /// Currently we return true always since pipeline processor already check for whether to log
+ /// logic from PSSnapin already. This may need to be changed.
///
///
///
@@ -1069,7 +1069,7 @@ namespace System.Management.Automation
// Dependency. resource not available
internal const int EVENT_ID_RESOURCE_NOT_AVAILABLE = 101;
- //Connectivity. network connection failure
+ //Connectivity. network connection failure
internal const int EVENT_ID_NETWORK_CONNECTIVITY_ISSUE = 102;
//Settings. fail to set some configuration settings
internal const int EVENT_ID_CONFIGURATION_FAILURE = 103;
@@ -1132,17 +1132,17 @@ namespace System.Management.Automation
internal enum CommandState
{
///
- ///
+ ///
///
Started = 0,
///
- ///
+ ///
///
Stopped = 1,
///
- ///
+ ///
///
Terminated = 2
};
@@ -1153,12 +1153,12 @@ namespace System.Management.Automation
internal enum ProviderState
{
///
- ///
+ ///
///
Started = 0,
///
- ///
+ ///
///
Stopped = 1,
};
diff --git a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
index 52bf3facd9..e6c735b07b 100644
--- a/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
+++ b/src/System.Management.Automation/logging/eventlog/EventLogLogProvider.cs
@@ -14,19 +14,19 @@ using System.Threading;
namespace System.Management.Automation
{
///
- /// EventLogLogProvider is a class to implement Msh Provider interface using EventLog technology.
- ///
+ /// EventLogLogProvider is a class to implement Msh Provider interface using EventLog technology.
+ ///
/// EventLogLogProvider will be the provider to use if Monad is running in early windows releases
- /// from 2000 to 2003.
- ///
- /// EventLogLogProvider will be packaged in the same dll as Msh Log Engine since EventLog should
- /// always be available.
- ///
+ /// from 2000 to 2003.
+ ///
+ /// EventLogLogProvider will be packaged in the same dll as Msh Log Engine since EventLog should
+ /// always be available.
+ ///
///
internal class EventLogLogProvider : LogProvider
{
///
- /// Constructor.
+ /// Constructor.
///
///
internal EventLogLogProvider(string shellId)
@@ -57,8 +57,8 @@ namespace System.Management.Automation
else
source = shellId.Substring(index + 1);
- // There may be a situation where ShellId ends with a '.'.
- // In that case, use the default source.
+ // There may be a situation where ShellId ends with a '.'.
+ // In that case, use the default source.
if (String.IsNullOrEmpty(source))
source = "Default";
}
@@ -214,7 +214,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogCommandHealthEvent(LogContext logContext, Exception exception)
{
int eventId = _commandHealthEventId;
@@ -311,8 +311,8 @@ namespace System.Management.Automation
///
/// Log pipeline execution detail event.
- ///
- /// This may end of logging more than one event if the detail string is too long to be fit in 64K.
+ ///
+ /// This may end of logging more than one event if the detail string is too long to be fit in 64K.
///
///
///
@@ -355,8 +355,8 @@ namespace System.Management.Automation
}
///
- /// Log one pipeline execution detail event. Detail message is already chopped up so that it will
- /// fit in 64K.
+ /// Log one pipeline execution detail event. Detail message is already chopped up so that it will
+ /// fit in 64K.
///
///
///
@@ -390,7 +390,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal override void LogProviderHealthEvent(LogContext logContext, string providerName, Exception exception)
{
int eventId = _providerHealthEventId;
@@ -520,7 +520,7 @@ namespace System.Management.Automation
///
/// This is the helper function for logging an event with localizable message
- /// to event log. It will trace all exception thrown by eventlog.
+ /// to event log. It will trace all exception thrown by eventlog.
///
///
///
@@ -550,8 +550,8 @@ namespace System.Management.Automation
///
/// Fill event arguments with logContext info.
- ///
- /// In EventLog Api, arguments are passed in as an array of objects.
+ ///
+ /// In EventLog Api, arguments are passed in as an array of objects.
///
/// An ArrayList to contain the event arguments
/// The log context containing the info to fill in
diff --git a/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs b/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs
index 3debac6c42..2270b137ee 100644
--- a/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs
+++ b/src/System.Management.Automation/minishell/api/FormatAndTypeDataHelper.cs
@@ -105,7 +105,7 @@ namespace System.Management.Automation.Runspaces
string baseFolder = GetBaseFolder(runspaceConfiguration, independentErrors);
var psHome = Utils.GetApplicationBase(Utils.DefaultPowerShellShellID);
- // this hashtable will be used to check whether this is duplicated file for types or formats.
+ // this hashtable will be used to check whether this is duplicated file for types or formats.
HashSet fullFileNameSet = new HashSet(StringComparer.OrdinalIgnoreCase);
int index = -1;
diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfiguration.cs b/src/System.Management.Automation/minishell/api/RunspaceConfiguration.cs
index d0a21c5af7..526191614e 100644
--- a/src/System.Management.Automation/minishell/api/RunspaceConfiguration.cs
+++ b/src/System.Management.Automation/minishell/api/RunspaceConfiguration.cs
@@ -14,27 +14,27 @@ using Microsoft.PowerShell.Commands.Internal.Format;
namespace System.Management.Automation.Runspaces
{
///
- /// Defines configuration information for runspace.
- ///
+ /// Defines configuration information for runspace.
+ ///
///
///
///
- /// Developers may want to derive from this class when writing their own
+ /// Developers may want to derive from this class when writing their own
/// host to host monad engine. This will allow host to control the behaviour
/// of monad engine through customized runspace configuration.
///
///
///
///
#if CORECLR
internal
@@ -116,7 +116,7 @@ namespace System.Management.Automation.Runspaces
#if V2
///
- /// Create an instance of default RunspaceConfiguration implementation.
+ /// Create an instance of default RunspaceConfiguration implementation.
///
/// RunspaceConfiguration instance created
///
@@ -124,7 +124,7 @@ namespace System.Management.Automation.Runspaces
///
///
internal static RunspaceConfiguration Create()
@@ -132,7 +132,7 @@ namespace System.Management.Automation.Runspaces
Assembly assembly = Assembly.GetEntryAssembly();
// If monad engine is hosted by an native application, Assembly.GetEntryAssembly()
- // will actually return null. In this case, we should throw an exception back.
+ // will actually return null. In this case, we should throw an exception back.
if (assembly == null)
{
throw tracer.NewInvalidOperationException("MiniShellErrors", "InvalidEntryAssembly");
@@ -148,11 +148,11 @@ namespace System.Management.Automation.Runspaces
/// Assembly name from which to find runspace configuration implementation
/// Runspace configuration instance created
///
- /// Exception thrown when is null or empty.
+ /// Exception thrown when is null or empty.
///
///
public static RunspaceConfiguration Create(string assemblyName)
@@ -206,8 +206,8 @@ namespace System.Management.Automation.Runspaces
#if V2
///
/// This is a RunspaceConfiguration factory function which will create an instance
- /// based on a type specified in a particular assembly.
- ///
+ /// based on a type specified in a particular assembly.
+ ///
/// This function will likely being exposed as a public interface in v2.
///
///
@@ -234,12 +234,12 @@ namespace System.Management.Automation.Runspaces
///
/// Create an RunspaceConfiguration-derived instance based an RunspaceConfiguration-derived type
/// in specified assembly. The type name is defined by assembly attribute:
- /// RunspaceConfigurationTypeAttribute.
+ /// RunspaceConfigurationTypeAttribute.
///
///
/// Runspace configuration instance created
///
- /// Exception thrown when is null or empty.
+ /// Exception thrown when is null or empty.
///
private static RunspaceConfiguration Create(Assembly assembly)
{
@@ -307,7 +307,7 @@ namespace System.Management.Automation.Runspaces
/// Add a PSSnapin to runspace configuration.
///
///
- /// This member provides logic for adding PSSnapin.
+ /// This member provides logic for adding PSSnapin.
///
/// RunspaceConfiguration derived class should not override this member.
///
@@ -329,7 +329,7 @@ namespace System.Management.Automation.Runspaces
/// Remove a PSSnapin from runspace configuration.
///
///
- /// This member provides logic for removing PSSnapin.
+ /// This member provides logic for removing PSSnapin.
///
/// RunspaceConfiguration derived class should not override this member.
///
@@ -385,9 +385,9 @@ namespace System.Management.Automation.Runspaces
///
/// Gets the relationships defined in runspace configuration.
///
- public virtual Collection RelationshipData
- {
- get;
+ public virtual Collection RelationshipData
+ {
+ get;
}
*/
@@ -398,7 +398,7 @@ namespace System.Management.Automation.Runspaces
///
/// types.ps1xml information
///
- ///
+ ///
internal TypeTable TypeTable
{
get { return _typeTable ?? (_typeTable = new TypeTable()); }
@@ -411,7 +411,7 @@ namespace System.Management.Automation.Runspaces
/// Gets the type data files defined in runspace configuration.
///
///
- /// RunspaceConfiguration derived class can override this member to provide its own types to be
+ /// RunspaceConfiguration derived class can override this member to provide its own types to be
/// loaded at engine start up.
///
public virtual RunspaceConfigurationEntryCollection Types
@@ -425,7 +425,7 @@ namespace System.Management.Automation.Runspaces
/// Gets the format data files defined in runspace configuration.
///
///
- /// RunspaceConfiguration derived class can override this member to provide its own formats to be
+ /// RunspaceConfiguration derived class can override this member to provide its own formats to be
/// loaded at engine start up.
///
public virtual RunspaceConfigurationEntryCollection Formats
@@ -447,8 +447,8 @@ namespace System.Management.Automation.Runspaces
/// Gets the scripts defined in runspace configuration.
///
///
- /// RunspaceConfiguration derived class can override this member to provide its own scripts
- /// to be include in monad engine.
+ /// RunspaceConfiguration derived class can override this member to provide its own scripts
+ /// to be include in monad engine.
///
public virtual RunspaceConfigurationEntryCollection Scripts
{
@@ -467,8 +467,8 @@ namespace System.Management.Automation.Runspaces
/// Gets the initialization scripts defined in runspace configuration.
///
///
- /// RunspaceConfiguration derived class can override this member to provide its own initialization scripts
- /// to be run at the start up of monad engine.
+ /// RunspaceConfiguration derived class can override this member to provide its own initialization scripts
+ /// to be run at the start up of monad engine.
///
public virtual RunspaceConfigurationEntryCollection InitializationScripts
{
@@ -488,8 +488,8 @@ namespace System.Management.Automation.Runspaces
/// Gets the assemblies defined in runspace configuration.
///
///
- /// RunspaceConfiguration derived class can override this member to provide its own assemblies
- /// to be loaded at the start up of monad engine.
+ /// RunspaceConfiguration derived class can override this member to provide its own assemblies
+ /// to be loaded at the start up of monad engine.
///
public virtual RunspaceConfigurationEntryCollection Assemblies
{
@@ -506,11 +506,11 @@ namespace System.Management.Automation.Runspaces
private AuthorizationManager _authorizationManager = null;
///
- /// Gets the authorization manager to be used for runspace.
+ /// Gets the authorization manager to be used for runspace.
///
///
/// RunspaceConfiguration derived class can override this member to provide its own authorization
- /// manager for monad engine.
+ /// manager for monad engine.
///
public virtual AuthorizationManager AuthorizationManager
{
@@ -748,11 +748,11 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Enum for describing different kind information that can be configured in runspace configuration.
+ /// Enum for describing different kind information that can be configured in runspace configuration.
///
- ///
+ ///
///
internal enum RunspaceConfigurationCategory
{
@@ -811,7 +811,7 @@ namespace System.Management.Automation.Runspaces
AllowConsoleApplication,
///
- /// Allow user interaction.
+ /// Allow user interaction.
///
AllowUserInteraction,
diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfigurationAttributeException.cs b/src/System.Management.Automation/minishell/api/RunspaceConfigurationAttributeException.cs
index b5c030e2f3..15559c1b9c 100644
--- a/src/System.Management.Automation/minishell/api/RunspaceConfigurationAttributeException.cs
+++ b/src/System.Management.Automation/minishell/api/RunspaceConfigurationAttributeException.cs
@@ -6,7 +6,7 @@ using System.Runtime.Serialization;
using System.Reflection;
#if CORECLR
-// Use stubs for SystemException, SerializationInfo and SecurityPermissionAttribute
+// Use stubs for SystemException, SerializationInfo and SecurityPermissionAttribute
using Microsoft.PowerShell.CoreClr.Stubs;
#else
using System.Security.Permissions;
@@ -15,16 +15,16 @@ using System.Security.Permissions;
namespace System.Management.Automation.Runspaces
{
///
- /// Defines exception thrown when runspace configuration attribute is not defined correctly.
+ /// Defines exception thrown when runspace configuration attribute is not defined correctly.
///
///
[Serializable]
@@ -88,7 +88,7 @@ namespace System.Management.Automation.Runspaces
private void CreateErrorRecord()
{
// if _error is empty, this exception is created using default
- // constructor. Don't create the error record since there is
+ // constructor. Don't create the error record since there is
// no useful information anyway.
if (!String.IsNullOrEmpty(_error) && !String.IsNullOrEmpty(_assemblyName))
{
@@ -100,7 +100,7 @@ namespace System.Management.Automation.Runspaces
private ErrorRecord _errorRecord;
///
- /// Gets error record embedded in this exception.
+ /// Gets error record embedded in this exception.
///
///
protected RunspaceConfigurationEntry(string name)
{
@@ -41,13 +41,13 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Initiate an instance of runspace configuration entry.
+ /// Initiate an instance of runspace configuration entry.
///
/// Name for the runspace configuration entry
/// The name of the PSSnapin the entry comes from.
///
internal RunspaceConfigurationEntry(string name, PSSnapInInfo psSnapin)
{
@@ -73,7 +73,7 @@ namespace System.Management.Automation.Runspaces
public string Name { get; }
///
- /// Gets name of PSSnapin that this configuration entry belongs to.
+ /// Gets name of PSSnapin that this configuration entry belongs to.
///
public PSSnapInInfo PSSnapIn { get; } = null;
diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntryCollection.cs b/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntryCollection.cs
index 0f7f113ea8..ca02629b7c 100644
--- a/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntryCollection.cs
+++ b/src/System.Management.Automation/minishell/api/RunspaceConfigurationEntryCollection.cs
@@ -15,21 +15,21 @@ namespace System.Management.Automation.Runspaces
internal delegate void RunspaceConfigurationEntryUpdateEventHandler();
///
- /// Define class for runspace configuration entry collection.
+ /// Define class for runspace configuration entry collection.
///
///
#if CORECLR
internal
@@ -59,7 +59,7 @@ namespace System.Management.Automation.Runspaces
}
private Collection _data = new Collection();
- private int _builtInEnd = 0; // this is the index of first after item.
+ private int _builtInEnd = 0; // this is the index of first after item.
private Collection _updateList = new Collection();
internal Collection UpdateList
@@ -340,7 +340,7 @@ namespace System.Management.Automation.Runspaces
///
IEnumerator System.Collections.IEnumerable.GetEnumerator()
@@ -355,7 +355,7 @@ namespace System.Management.Automation.Runspaces
///
IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator()
@@ -364,7 +364,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Update others about the collection change.
+ /// Update others about the collection change.
///
public void Update()
{
@@ -425,7 +425,7 @@ namespace System.Management.Automation.Runspaces
private object _syncObject = new object();
///
- /// OnUpdate handler should lock the object itself.
+ /// OnUpdate handler should lock the object itself.
///
internal event RunspaceConfigurationEntryUpdateEventHandler OnUpdate;
}
diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfigurationHelper.cs b/src/System.Management.Automation/minishell/api/RunspaceConfigurationHelper.cs
index ca68286de2..472c7705ea 100644
--- a/src/System.Management.Automation/minishell/api/RunspaceConfigurationHelper.cs
+++ b/src/System.Management.Automation/minishell/api/RunspaceConfigurationHelper.cs
@@ -5,12 +5,12 @@ Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Management.Automation.Runspaces
{
///
- /// RunspaceConfigurationHelper define some constants to be used by
+ /// RunspaceConfigurationHelper define some constants to be used by
/// both Minishell api and makekit.
- ///
+ ///
/// Be very careful when trying to change values for strings below since
/// it will be used by makekit process also.
- ///
+ ///
/// This file will be built with both monad engine and makekit.
///
internal static class RunspaceConfigurationHelper
diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs b/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs
index bef4e36fdf..d36d247d8a 100644
--- a/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs
+++ b/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeAttribute.cs
@@ -5,10 +5,10 @@ Copyright (c) Microsoft Corporation. All rights reserved.
namespace System.Management.Automation.Runspaces
{
///
- /// Define the class for runspace configuration type attribute.
+ /// Define the class for runspace configuration type attribute.
///
///
[AttributeUsage(AttributeTargets.Assembly)]
diff --git a/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeException.cs b/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeException.cs
index 205d7532b6..9ee67e0fc4 100644
--- a/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeException.cs
+++ b/src/System.Management.Automation/minishell/api/RunspaceConfigurationTypeException.cs
@@ -6,7 +6,7 @@ using System.Runtime.Serialization;
using System.Reflection;
#if CORECLR
-// Use stubs for SystemException, SerializationInfo and SecurityPermissionAttribute
+// Use stubs for SystemException, SerializationInfo and SecurityPermissionAttribute
using Microsoft.PowerShell.CoreClr.Stubs;
#else
using System.Security.Permissions;
@@ -19,10 +19,10 @@ namespace System.Management.Automation.Runspaces
///
///
[Serializable]
@@ -137,7 +137,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// Get message for this exception.
+ /// Get message for this exception.
///
public override string Message
{
@@ -155,7 +155,7 @@ namespace System.Management.Automation.Runspaces
#region Serialization
///
- /// Initiate a RunspaceConfigurationAttributeException instance.
+ /// Initiate a RunspaceConfigurationAttributeException instance.
///
/// Serialization information
/// Streaming context
diff --git a/src/System.Management.Automation/namespaces/AliasProvider.cs b/src/System.Management.Automation/namespaces/AliasProvider.cs
index 6223ddbc90..1f4879b931 100644
--- a/src/System.Management.Automation/namespaces/AliasProvider.cs
+++ b/src/System.Management.Automation/namespaces/AliasProvider.cs
@@ -16,7 +16,7 @@ namespace Microsoft.PowerShell.Commands
/// This provider is the data accessor for shell aliases. It uses
/// the SessionStateProviderBase as the base class to produce a view on
/// session state data.
- ///
+ ///
[CmdletProvider(AliasProvider.ProviderName, ProviderCapabilities.ShouldProcess)]
[OutputType(typeof(AliasInfo), ProviderCmdlet = ProviderCmdlet.SetItem)]
[OutputType(typeof(AliasInfo), ProviderCmdlet = ProviderCmdlet.RenameItem)]
@@ -76,24 +76,24 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the dynamic parameters for the NewItem cmdlet
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An instance of AliasProviderDynamicParameters which is the dynamic parameters for
/// NewItem.
///
- ///
+ ///
protected override object NewItemDynamicParameters(string path, string type, object newItemValue)
{
return new AliasProviderDynamicParameters();
@@ -102,20 +102,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the dynamic parameters for the NewItem cmdlet
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An instance of AliasProviderDynamicParameters which is the dynamic parameters for
/// SetItem.
///
- ///
+ ///
protected override object SetItemDynamicParameters(string path, object value)
{
return new AliasProviderDynamicParameters();
@@ -129,15 +129,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a alias from session state
///
- ///
+ ///
///
/// The name of the alias to retrieve.
///
- ///
+ ///
///
/// A DictionaryEntry that represents the value of the alias.
///
- ///
+ ///
internal override object GetSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -153,20 +153,20 @@ namespace Microsoft.PowerShell.Commands
/// Since items are often more than their value, this method should
/// be overridden to provide the value for an item
///
- ///
+ ///
///
/// The item to extract the value from.
///
- ///
+ ///
///
/// The value of the specified item.
///
- ///
+ ///
///
/// The default implementation will get
/// the Value property of a DictionaryEntry
///
- ///
+ ///
internal override object GetValueOfItem(object item)
{
Dbg.Diagnostics.Assert(
@@ -186,19 +186,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the alias of the specified name to the specified value
///
- ///
+ ///
///
/// The name of the alias to set.
///
- ///
+ ///
///
/// The new value for the alias.
///
- ///
+ ///
///
/// If true, the item that was set should be written to WriteItemObject.
///
- ///
+ ///
#pragma warning disable 0162
internal override void SetSessionStateItem(string name, object value, bool writeItem)
{
@@ -279,11 +279,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes the specified alias from session state.
///
- ///
+ ///
///
/// The name of the alias to remove from session state.
///
- ///
+ ///
internal override void RemoveSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -296,12 +296,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a flattened view of the alias in session state
///
- ///
+ ///
///
/// An IDictionary representing the flattened view of the aliases in
/// session state.
///
- ///
+ ///
internal override IDictionary GetSessionStateTable()
{
return (IDictionary)SessionState.Internal.GetAliasTable();
@@ -311,15 +311,15 @@ namespace Microsoft.PowerShell.Commands
/// Determines if the item can be renamed. Derived classes that need
/// to perform a check should override this method.
///
- ///
+ ///
///
/// The item to verify if it can be renamed.
///
- ///
+ ///
///
/// true if the item can be renamed or false otherwise.
///
- ///
+ ///
internal override bool CanRenameItem(object item)
{
bool result = false;
@@ -357,7 +357,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the option parameter for the alias
///
- ///
+ ///
[Parameter]
public ScopedItemOptions Options
{
diff --git a/src/System.Management.Automation/namespaces/Buffer.cs b/src/System.Management.Automation/namespaces/Buffer.cs
index 59ee683ea4..397d5382fe 100644
--- a/src/System.Management.Automation/namespaces/Buffer.cs
+++ b/src/System.Management.Automation/namespaces/Buffer.cs
@@ -20,7 +20,7 @@ namespace Microsoft.PowerShell.Commands.Internal
[System.Runtime.InteropServices.ComVisible(true)]
internal static class Buffer
{
- // This is ported from the optimized CRT assembly in memchr.asm. The JIT generates
+ // This is ported from the optimized CRT assembly in memchr.asm. The JIT generates
// pretty good code here and this ends up being within a couple % of the CRT asm.
// It is however cross platform as the CRT hasn't ported their fast version to 64-bit
// platforms.
@@ -107,7 +107,7 @@ namespace Microsoft.PowerShell.Commands.Internal
{
BCLDebug.Assert((srcIndex >= 0) && (destIndex >= 0) && (len >= 0), "Index and length must be non-negative!");
BCLDebug.Assert(dest.Length - destIndex >= len, "not enough bytes in dest");
- // If dest has 0 elements, the fixed statement will throw an
+ // If dest has 0 elements, the fixed statement will throw an
// IndexOutOfRangeException. Special-case 0-byte copies.
if (len == 0)
return;
@@ -122,7 +122,7 @@ namespace Microsoft.PowerShell.Commands.Internal
{
BCLDebug.Assert((srcIndex >= 0) && (destIndex >= 0) && (len >= 0), "Index and length must be non-negative!");
BCLDebug.Assert(src.Length - srcIndex >= len, "not enough bytes in src");
- // If dest has 0 elements, the fixed statement will throw an
+ // If dest has 0 elements, the fixed statement will throw an
// IndexOutOfRangeException. Special-case 0-byte copies.
if (len == 0)
return;
@@ -151,15 +151,15 @@ namespace Microsoft.PowerShell.Commands.Internal
BCLDebug.Assert(len >= 0, "Negative length in memcopy!");
// It turns out that on AMD64 it is faster to not be careful of alignment issues.
- // On IA64 it is necessary to be careful... Oh well. When we do the IA64 push we
+ // On IA64 it is necessary to be careful... Oh well. When we do the IA64 push we
// can work on this implementation.
#if IA64
long dstAlign = 8 - (((long)dest) & 7); // number of bytes to copy before dest is 8-byte aligned
-
+
while ((dstAlign > 0) && (len > 0))
{
*dest++ = *src++;
-
+
len--;
dstAlign--;
}
@@ -201,9 +201,9 @@ namespace Microsoft.PowerShell.Commands.Internal
}
else
{
- if (len >= 16)
+ if (len >= 16)
{
- do
+ do
{
((long*)dest)[0] = ((long*)src)[0];
((long*)dest)[1] = ((long*)src)[1];
@@ -213,19 +213,19 @@ namespace Microsoft.PowerShell.Commands.Internal
}
if (len > 0) // protection against negative len and optimization for len==16*N
{
- if ((len & 8) != 0)
+ if ((len & 8) != 0)
{
((long*)dest)[0] = ((long*)src)[0];
dest += 8;
src += 8;
}
- if ((len & 4) != 0)
+ if ((len & 4) != 0)
{
((int*)dest)[0] = ((int*)src)[0];
dest += 4;
src += 4;
}
- if ((len & 2) != 0)
+ if ((len & 2) != 0)
{
((short*)dest)[0] = ((short*)src)[0];
dest += 2;
@@ -242,11 +242,11 @@ namespace Microsoft.PowerShell.Commands.Internal
#else
// AMD64 implementation uses longs instead of ints where possible
//
- // This is a faster memcpy implementation, from
- // COMString.cpp. For our strings, this beat the processor's
- // repeat & move single byte instruction, which memcpy expands into.
+ // This is a faster memcpy implementation, from
+ // COMString.cpp. For our strings, this beat the processor's
+ // repeat & move single byte instruction, which memcpy expands into.
// (You read that correctly.)
- // This is 3x faster than a simple while loop copying byte by byte,
+ // This is 3x faster than a simple while loop copying byte by byte,
// for large copies.
if (len >= 16)
{
@@ -255,7 +255,7 @@ namespace Microsoft.PowerShell.Commands.Internal
#if AMD64
((long*)dest)[0] = ((long*)src)[0];
((long*)dest)[1] = ((long*)src)[1];
-#else
+#else
((int*)dest)[0] = ((int*)src)[0];
((int*)dest)[1] = ((int*)src)[1];
((int*)dest)[2] = ((int*)src)[2];
diff --git a/src/System.Management.Automation/namespaces/ContainerProviderBase.cs b/src/System.Management.Automation/namespaces/ContainerProviderBase.cs
index ad89b45523..6feaa2fa2d 100644
--- a/src/System.Management.Automation/namespaces/ContainerProviderBase.cs
+++ b/src/System.Management.Automation/namespaces/ContainerProviderBase.cs
@@ -12,7 +12,7 @@ namespace System.Management.Automation.Provider
///
/// The base class for Cmdlet providers that expose a single level of items.
///
- ///
+ ///
///
/// The ContainerCmdletProvider class is base class that a provider derives from
/// to implement methods that allow
@@ -38,30 +38,30 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path (or name in a flat namespace) to the item from which to retrieve the children.
///
- ///
+ ///
///
/// True if all children in a subtree should be retrieved, false if only a single
/// level of children should be retrieved. This parameter should only be true for
/// the NavigationCmdletProvider derived class.
///
- ///
+ ///
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing is returned, but all children should be written to the Write*Object or
/// Write*Objects method.
///
- ///
+ ///
internal void GetChildItems(
string path,
bool recurse,
@@ -79,30 +79,30 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the get-childitem cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// True if all children in a subtree should be retrieved, false if only a single
/// level of children should be retrieved. This parameter should only be true for
/// the NavigationCmdletProvider derived class.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
- ///
+ ///
internal object GetChildItemsDynamicParameters(
string path,
bool recurse,
@@ -117,32 +117,32 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item from which to retrieve the child names.
///
- ///
+ ///
///
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing is returned, but all names should be written to the Write*Object or
/// Write*Objects method.
///
- ///
+ ///
///
/// The child names are the leaf portion of the path. Example, for the file system
/// the name for the path c:\windows\system32\foo.dll would be foo.dll or for
/// the directory c:\windows\system32 would be system32. For Active Directory the
/// child names would be RDN values of the child objects of the container.
///
- ///
+ ///
internal void GetChildNames(
string path,
ReturnContainers returnContainers,
@@ -158,7 +158,7 @@ namespace System.Management.Automation.Provider
/// Gets a new provider-specific path and filter (if any) that corresponds to the given
/// path.
///
- ///
+ ///
///
/// The path to the item. Unlike most other provider APIs, this path is likely to
/// contain PowerShell wildcards.
@@ -175,11 +175,11 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// True if the path or filter were altered. False otherwise.
///
- ///
+ ///
///
/// Providers override this method if they support a native filtering syntax that
/// can offer performance improvements over wildcard matching done by the PowerShell
@@ -191,7 +191,7 @@ namespace System.Management.Automation.Provider
/// not replace it entirely,) it may simply return a filter without modifying the path.
/// In this situation, PowerShell's wildcarding will still be applied to a smaller result
/// set, resulting in improved performance.
- ///
+ ///
/// The default implementation of this method leaves both Path and Filter unmodified.
///
[SuppressMessage("Microsoft.Design", "CA1045:DoNotPassTypesByReference", MessageId = "2#")]
@@ -214,24 +214,24 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the get-childitem -name cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
- ///
+ ///
internal object GetChildNamesDynamicParameters(
string path,
CmdletProviderContext context)
@@ -245,25 +245,25 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to rename.
///
- ///
+ ///
///
- /// The name to which the item should be renamed. This name should always be
+ /// The name to which the item should be renamed. This name should always be
/// relative to the parent container.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing is returned, but all renamed items should be written to the Write*Object or
/// Write*Objects.
///
- ///
+ ///
internal void RenameItem(
string path,
string newName,
@@ -280,26 +280,26 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the rename-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
- /// The name to which the item should be renamed. This name should always be
+ /// The name to which the item should be renamed. This name should always be
/// relative to the parent container.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object RenameItemDynamicParameters(
string path,
string newName,
@@ -315,11 +315,11 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to create.
///
- ///
+ ///
///
/// The provider defined type of the item to create.
///
@@ -328,16 +328,16 @@ namespace System.Management.Automation.Provider
/// This is a provider specific type that the provider can use to create a new
/// instance of an item at the specified path.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing is returned, but all new items should be written to the Write*Object or
/// Write*Objects.
///
- ///
+ ///
internal void NewItem(
string path,
string type,
@@ -355,12 +355,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the new-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The provider defined type of the item to create.
///
@@ -369,16 +369,16 @@ namespace System.Management.Automation.Provider
/// This is a provider specific type that the provider can use to create a new
/// instance of an item at the specified path.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object NewItemDynamicParameters(
string path,
string type,
@@ -394,21 +394,21 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
- /// The path to the item to remove.
+ /// The path to the item to remove.
///
- ///
+ ///
///
/// True if all children in a subtree should be removed, false if only a single
/// level of children should be removed. This parameter should only be true for
/// NavigationCmdletProvider and its derived classes.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
internal void RemoveItem(
string path,
bool recurse,
@@ -425,27 +425,27 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the remove-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// True if all children in a subtree should be removed, false if only a single
/// level of children should be removed. This parameter should only be true for
/// NavigationCmdletProvider and its derived classes.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object RemoveItemDynamicParameters(
string path,
bool recurse,
@@ -461,7 +461,7 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to see if it has children.
///
@@ -469,18 +469,18 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// True if the item has children, false otherwise.
///
- ///
+ ///
///
- /// For implementers of ContainerCmdletProvider classes and those derived from it,
+ /// For implementers of ContainerCmdletProvider classes and those derived from it,
/// if a null or empty path is passed,
/// the provider should consider any items in the data store to be children
/// and return true.
///
- ///
+ ///
internal bool HasChildItems(string path, CmdletProviderContext context)
{
Context = context;
@@ -495,28 +495,28 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path of the item to copy.
///
- ///
+ ///
///
/// The path of the item to copy to.
///
- ///
+ ///
///
/// Tells the provider to recurse sub-containers when copying.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing. All objects that are copied should be written to the Write*Object or
/// Write*Objects methods.
///
- ///
+ ///
internal void CopyItem(
string path,
string copyPath,
@@ -535,29 +535,29 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the copy-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The path of the item to copy to.
///
- ///
+ ///
///
/// Tells the provider to recurse sub-containers when copying.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object CopyItemDynamicParameters(
string path,
string destination,
@@ -575,37 +575,37 @@ namespace System.Management.Automation.Provider
///
/// Gets the children of the item at the specified path.
///
- ///
+ ///
///
/// The path (or name in a flat namespace) to the item from which to retrieve the children.
///
- ///
+ ///
///
/// True if all children in a subtree should be retrieved, false if only a single
/// level of children should be retrieved. This parameter should only be true for
/// the NavigationCmdletProvider derived class.
///
- ///
+ ///
///
/// Nothing is returned, but all objects should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user access to the provider objects using
/// the get-childitem cmdlets.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not write objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not write objects that are generally hidden from
/// the user unless the Force property is set to true. For instance, the FileSystem provider should
- /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
- ///
- /// The provider implementation is responsible for preventing infinite recursion when there are
+ /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
+ ///
+ /// The provider implementation is responsible for preventing infinite recursion when there are
/// circular links and the like. An appropriate terminating exception should be thrown if this
/// situation occurs.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void GetChildItems(
@@ -623,41 +623,41 @@ namespace System.Management.Automation.Provider
///
/// Gets the children of the item at the specified path.
///
- ///
+ ///
///
/// The path (or name in a flat namespace) to the item from which to retrieve the children.
///
- ///
+ ///
///
/// True if all children in a subtree should be retrieved, false if only a single
/// level of children should be retrieved. This parameter should only be true for
/// the NavigationCmdletProvider derived class.
///
- ///
+ ///
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
/// Nothing is returned, but all objects should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user access to the provider objects using
/// the get-childitem cmdlets.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not write objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not write objects that are generally hidden from
/// the user unless the Force property is set to true. For instance, the FileSystem provider should
- /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
- ///
- /// The provider implementation is responsible for preventing infinite recursion when there are
+ /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
+ ///
+ /// The provider implementation is responsible for preventing infinite recursion when there are
/// circular links and the like. An appropriate terminating exception should be thrown if this
/// situation occurs.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void GetChildItems(
@@ -684,23 +684,23 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the get-childitem cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// True if all children in a subtree should be retrieved, false if only a single
/// level of children should be retrieved. This parameter should only be true for
/// the NavigationCmdletProvider derived class.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object GetChildItemsDynamicParameters(string path, bool recurse)
@@ -715,38 +715,38 @@ namespace System.Management.Automation.Provider
///
/// Gets names of the children of the specified path.
///
- ///
+ ///
///
/// The path to the item from which to retrieve the child names.
///
- ///
+ ///
///
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
/// Nothing is returned, but all objects should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user access to the provider objects using
/// the get-childitem -name cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class. The exception to this
/// is if is true, then any child name for a container should
/// be returned even if it doesn't match the Filter, Include, or Exclude.
- ///
- /// By default overrides of this method should not write the names of objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not write the names of objects that are generally hidden from
/// the user unless the Force property is set to true. For instance, the FileSystem provider should
- /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
- ///
- /// The provider implementation is responsible for preventing infinite recursion when there are
+ /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
+ ///
+ /// The provider implementation is responsible for preventing infinite recursion when there are
/// circular links and the like. An appropriate terminating exception should be thrown if this
/// situation occurs.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void GetChildNames(
@@ -765,7 +765,7 @@ namespace System.Management.Automation.Provider
/// Gets a new provider-specific path and filter (if any) that corresponds to the given
/// path.
///
- ///
+ ///
///
/// The path to the item. Unlike most other provider APIs, this path is likely to
/// contain PowerShell wildcards.
@@ -779,11 +779,11 @@ namespace System.Management.Automation.Provider
///
/// The new filter.
///
- ///
+ ///
///
/// True if the path or filter were altered. False otherwise.
///
- ///
+ ///
///
/// Providers override this method if they support a native filtering syntax that
/// can offer performance improvements over wildcard matching done by the PowerShell
@@ -795,9 +795,9 @@ namespace System.Management.Automation.Provider
/// not replace it entirely,) it may simply return a filter without modifying the path.
/// In this situation, PowerShell's wildcarding will still be applied to a smaller result
/// set, resulting in improved performance.
- ///
+ ///
/// The default implementation of this method leaves both Path and Filter unmodified.
- ///
+ ///
/// PowerShell wildcarding semantics are handled by the System.Management.Automation.Wildcardpattern
/// class.
///
@@ -819,17 +819,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the get-childitem -name cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object GetChildNamesDynamicParameters(string path)
@@ -844,36 +844,36 @@ namespace System.Management.Automation.Provider
///
/// Renames the item at the specified path to the new name provided.
///
- ///
+ ///
///
/// The path to the item to rename.
///
- ///
+ ///
///
- /// The name to which the item should be renamed. This name should always be
+ /// The name to which the item should be renamed. This name should always be
/// relative to the parent container.
///
- ///
+ ///
///
/// Nothing is returned, but the renamed items should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to rename provider objects using
/// the rename-item cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not allow renaming objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not allow renaming objects that are generally hidden from
/// the user unless the Force property is set to true. For instance, the FileSystem provider should
- /// not allow renaming of a hidden or system file unless the Force property is set to true.
- ///
- /// This method is intended for the modification of the item's name only and not for Move operations.
- /// An error should be written to if the
+ /// not allow renaming of a hidden or system file unless the Force property is set to true.
+ ///
+ /// This method is intended for the modification of the item's name only and not for Move operations.
+ /// An error should be written to if the
/// parameter contains path separators or would cause the item to change its parent location.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void RenameItem(
@@ -892,22 +892,22 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the rename-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
- /// The name to which the item should be renamed. This name should always be
+ /// The name to which the item should be renamed. This name should always be
/// relative to the parent container.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object RenameItemDynamicParameters(string path, string newName)
@@ -921,11 +921,11 @@ namespace System.Management.Automation.Provider
///
/// Creates a new item at the specified path.
///
- ///
+ ///
///
/// The path to the item to create.
///
- ///
+ ///
///
/// The provider defined type for the object to create.
///
@@ -934,28 +934,28 @@ namespace System.Management.Automation.Provider
/// This is a provider specific type that the provider can use to create a new
/// instance of an item at the specified path.
///
- ///
+ ///
///
/// Nothing is returned, but the renamed items should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to create new provider objects using
/// the new-item cmdlet.
- ///
+ ///
/// The parameter is a provider specific string that the user specifies to tell
/// the provider what type of object to create. For instance, in the FileSystem provider the
- /// parameter can take a value of "file" or "directory". The comparison of this string should be
+ /// parameter can take a value of "file" or "directory". The comparison of this string should be
/// case-insensitive and you should also allow for least ambiguous matches. So if the provider allows
/// for the types "file" and "directory", only the first letter is required to disambiguate.
/// If refers to a type the provider cannot create, the provider should produce
/// an with a message indicating the types the provider can create.
- ///
+ ///
/// The parameter can be any type of object that the provider can use
/// to create the item. It is recommended that the provider accept at a minimum strings, and an instance
/// of the type of object that would be returned from GetItem() for this path.
/// can be used to convert some types to the desired type.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void NewItem(
@@ -975,12 +975,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the new-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The provider defined type of the item to create.
///
@@ -989,12 +989,12 @@ namespace System.Management.Automation.Provider
/// This is a provider specific type that the provider can use to create a new
/// instance of an item at the specified path.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object NewItemDynamicParameters(
@@ -1009,39 +1009,39 @@ namespace System.Management.Automation.Provider
} // NewItemDynamicParameters
///
- /// Removes (deletes) the item at the specified path
+ /// Removes (deletes) the item at the specified path
///
- ///
+ ///
///
- /// The path to the item to remove.
+ /// The path to the item to remove.
///
- ///
+ ///
///
/// True if all children in a subtree should be removed, false if only a single
/// level of children should be removed. This parameter should only be true for
/// NavigationCmdletProvider and its derived classes.
///
- ///
+ ///
///
/// Nothing should be returned or written from this method.
///
- ///
+ ///
///
/// Providers override this method to allow the user the ability to remove provider objects using
/// the remove-item cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not remove objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not remove objects that are generally hidden from
/// the user unless the Force property is set to true. For instance, the FileSystem provider should
- /// not remove a hidden or system file unless the Force property is set to true.
- ///
- /// The provider implementation is responsible for preventing infinite recursion when there are
+ /// not remove a hidden or system file unless the Force property is set to true.
+ ///
+ /// The provider implementation is responsible for preventing infinite recursion when there are
/// circular links and the like. An appropriate terminating exception should be thrown if this
/// situation occurs.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void RemoveItem(
@@ -1060,23 +1060,23 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the remove-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// True if all children in a subtree should be removed, false if only a single
/// level of children should be removed. This parameter should only be true for
/// NavigationCmdletProvider and its derived classes.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object RemoveItemDynamicParameters(
@@ -1092,7 +1092,7 @@ namespace System.Management.Automation.Provider
///
/// Determines if the item at the specified path has children.
///
- ///
+ ///
///
/// The path to the item to see if it has children.
///
@@ -1100,20 +1100,20 @@ namespace System.Management.Automation.Provider
///
/// True if the item has children, false otherwise.
///
- ///
+ ///
///
/// Nothing is returned, but all objects should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the provider infrastructure the ability to determine
/// if a particular provider object has children without having to retrieve all the child items.
- ///
- /// For implementers of classes and those derived from it,
+ ///
+ /// For implementers of classes and those derived from it,
/// if a null or empty path is passed,
/// the provider should consider any items in the data store to be children
/// and return true.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual bool HasChildItems(string path)
@@ -1130,43 +1130,43 @@ namespace System.Management.Automation.Provider
///
/// Copies an item at the specified path to an item at the .
///
- ///
+ ///
///
/// The path of the item to copy.
///
- ///
+ ///
///
/// The path of the item to copy to.
///
- ///
+ ///
///
/// Tells the provider to recurse sub-containers when copying.
///
- ///
- ///
+ ///
+ ///
///
/// Nothing is returned, but all the objects that were copied should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to copy provider objects using
/// the copy-item cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path and items being copied
/// meets those requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not copy objects over existing items unless the Force
+ ///
+ /// By default overrides of this method should not copy objects over existing items unless the Force
/// property is set to true. For instance, the FileSystem provider should not copy c:\temp\foo.txt over
/// c:\bar.txt if c:\bar.txt already exists unless the Force parameter is true.
- ///
+ ///
/// If exists and is a container then Force isn't required and
/// should be copied into the container as a child.
- ///
- /// If is true, the provider implementation is responsible for
- /// preventing infinite recursion when there are circular links and the like. An appropriate
+ ///
+ /// If is true, the provider implementation is responsible for
+ /// preventing infinite recursion when there are circular links and the like. An appropriate
/// terminating exception should be thrown if this situation occurs.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void CopyItem(
@@ -1186,25 +1186,25 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the copy-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The path of the item to copy to.
///
- ///
+ ///
///
/// Tells the provider to recurse sub-containers when copying.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object CopyItemDynamicParameters(
diff --git a/src/System.Management.Automation/namespaces/CoreCommandContext.cs b/src/System.Management.Automation/namespaces/CoreCommandContext.cs
index c15e071d3f..60e95567f7 100644
--- a/src/System.Management.Automation/namespaces/CoreCommandContext.cs
+++ b/src/System.Management.Automation/namespaces/CoreCommandContext.cs
@@ -11,12 +11,12 @@ namespace System.Management.Automation
/// The context of the core command that is being run. This
/// includes data like the user name and password, as well
/// as callbacks for streaming output, prompting, and progress.
- ///
+ ///
/// This allows the providers to be called in a variety of situations.
/// The most common will be from the core cmdlets themselves but they
/// can also be called programmatically either by having the results
/// accumulated or by providing delegates for the various streams.
- ///
+ ///
/// NOTE: USER Feedback mechanism are only enabled for the CoreCmdlet
/// case. This is because we have not seen a use-case for them in the
/// other scenarios.
@@ -41,18 +41,18 @@ namespace System.Management.Automation
#region Constructor
///
- /// Constructs the context under which the core command providers
+ /// Constructs the context under which the core command providers
/// operate.
///
- ///
+ ///
///
/// The context of the engine.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CmdletProviderContext(ExecutionContext executionContext)
{
if (executionContext == null)
@@ -71,22 +71,22 @@ namespace System.Management.Automation
} // CmdletProviderContext constructor
///
- /// Constructs the context under which the core command providers
+ /// Constructs the context under which the core command providers
/// operate.
///
- ///
+ ///
///
/// The context of the engine.
///
- ///
+ ///
///
/// The origin of the caller of this API
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal CmdletProviderContext(ExecutionContext executionContext, CommandOrigin origin)
{
if (executionContext == null)
@@ -99,18 +99,18 @@ namespace System.Management.Automation
} // CmdletProviderContext constructor
///
- /// Constructs the context under which the core command providers
+ /// Constructs the context under which the core command providers
/// operate.
///
- ///
+ ///
///
/// The command object that is running.
///
- ///
+ ///
///
/// The credentials the core command provider should use.
///
- ///
+ ///
///
/// The drive under which this context should operate.
///
@@ -118,11 +118,11 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If contains a null Host or Context reference.
///
- ///
+ ///
internal CmdletProviderContext(
PSCmdlet command,
PSCredential credentials,
@@ -162,26 +162,26 @@ namespace System.Management.Automation
} // CmdletProviderContext constructor
///
- /// Constructs the context under which the core command providers
+ /// Constructs the context under which the core command providers
/// operate.
///
- ///
+ ///
///
/// The command object that is running.
///
- ///
+ ///
///
/// The credentials the core command provider should use.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If contains a null Host or Context reference.
///
- ///
+ ///
internal CmdletProviderContext(
PSCmdlet command,
PSCredential credentials)
@@ -218,22 +218,22 @@ namespace System.Management.Automation
} // CmdletProviderContext constructor
///
- /// Constructs the context under which the core command providers
+ /// Constructs the context under which the core command providers
/// operate.
///
- ///
+ ///
///
/// The command object that is running.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If contains a null Host or Context reference.
///
- ///
+ ///
internal CmdletProviderContext(
Cmdlet command)
{
@@ -259,10 +259,10 @@ namespace System.Management.Automation
} // CmdletProviderContext constructor
///
- /// Constructs the context under which the core command providers
+ /// Constructs the context under which the core command providers
/// operate using an existing context.
///
- ///
+ ///
///
/// A CmdletProviderContext instance to copy the filters, ExecutionContext,
/// Credentials, Drive, and Force options from.
@@ -271,7 +271,7 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
internal CmdletProviderContext(
CmdletProviderContext contextToCopyFrom)
@@ -345,7 +345,7 @@ namespace System.Management.Automation
///
- /// This defines the default behavior for the WriteError method.
+ /// This defines the default behavior for the WriteError method.
/// If it is true, a call to this method will result in an immediate call
/// to the command WriteError method, or to the writeErrorDelegate if
/// one has been supplied.
@@ -378,14 +378,14 @@ namespace System.Management.Automation
///
/// Gets the execution context of the engine
///
- ///
+ ///
internal ExecutionContext ExecutionContext { get; }
///
/// Gets or sets the provider instance for the current
/// execution context.
///
- ///
+ ///
internal System.Management.Automation.Provider.CmdletProvider ProviderInstance
{
get
@@ -433,7 +433,7 @@ namespace System.Management.Automation
///
/// Gets or sets the dynamic parameters for the context
///
- ///
+ ///
internal object DynamicParameters { get; set; }
///
@@ -455,20 +455,20 @@ namespace System.Management.Automation
}
///
- /// Determines if the Write* calls should be passed through to the command
+ /// Determines if the Write* calls should be passed through to the command
/// instance if there is one. The default value is true.
///
- ///
+ ///
internal bool PassThru { get; set; }
///
/// The drive associated with this context.
///
- ///
+ ///
///
/// If is null on set.
///
- ///
+ ///
internal PSDriveInfo Drive { get; set; }
///
@@ -549,7 +549,7 @@ namespace System.Management.Automation
///
/// Gets or sets the Force property that is passed to providers.
///
- ///
+ ///
internal SwitchParameter Force
{
get { return _force; }
@@ -560,21 +560,21 @@ namespace System.Management.Automation
/// The provider specific filter that should be used when determining
/// which items an action should take place on.
///
- ///
+ ///
internal string Filter { get; set; }
///
/// A glob string that signifies which items should be included when determining
/// which items the action should occur on.
///
- ///
+ ///
internal Collection Include { get; private set; }
///
/// A glob string that signifies which items should be excluded when determining
/// which items the action should occur on.
///
- ///
+ ///
internal Collection Exclude { get; private set; }
///
@@ -583,7 +583,7 @@ namespace System.Management.Automation
/// expansion. This is set when the user specifies the
/// -LiteralPath parameter to one of the core commands.
///
- ///
+ ///
public bool SuppressWildcardExpansion { get; internal set; }
#region User feedback mechanisms
@@ -741,21 +741,21 @@ namespace System.Management.Automation
///
/// Ask the user whether to continue/stop or break to a subshell
///
- ///
+ ///
///
- /// Message to display to the user. This routine will append
+ /// Message to display to the user. This routine will append
/// the text "Continue" to ensure that people know what question
/// they are answering.
///
- ///
+ ///
///
/// Dialog caption if the host uses a dialog.
///
- ///
+ ///
///
/// True if the user wants to continue, false if not.
///
- ///
+ ///
internal bool ShouldContinue(
string query,
string caption)
@@ -772,29 +772,29 @@ namespace System.Management.Automation
///
/// Ask the user whether to continue/stop or break to a subshell
///
- ///
+ ///
///
- /// Message to display to the user. This routine will append
+ /// Message to display to the user. This routine will append
/// the text "Continue" to ensure that people know what question
/// they are answering.
///
- ///
+ ///
///
/// Dialog caption if the host uses a dialog.
///
- ///
+ ///
///
/// Indicates whether the user selected YesToAll
///
- ///
+ ///
///
/// Indicates whether the user selected NoToAll
///
- ///
+ ///
///
/// True if the user wants to continue, false if not.
///
- ///
+ ///
internal bool ShouldContinue(
string query,
string caption,
@@ -857,7 +857,7 @@ namespace System.Management.Automation
} // WriteProgress
///
- /// Writes a debug string.
+ /// Writes a debug string.
///
///
///
@@ -923,12 +923,12 @@ namespace System.Management.Automation
/// Gets an array of the objects that have been accumulated
/// and the clears the collection.
///
- ///
+ ///
///
/// An object array of the objects that have been accumulated
/// through the WriteObject method.
///
- ///
+ ///
internal Collection GetAccumulatedObjects()
{
// Get the contents as an array
@@ -945,12 +945,12 @@ namespace System.Management.Automation
/// Gets an array of the error objects that have been accumulated
/// and the clears the collection.
///
- ///
+ ///
///
/// An object array of the objects that have been accumulated
/// through the WriteError method.
///
- ///
+ ///
internal Collection GetAccumulatedErrorObjects()
{
// Get the contents as an array
@@ -966,12 +966,12 @@ namespace System.Management.Automation
///
/// If there are any errors accumulated, the first error is thrown.
///
- ///
+ ///
///
/// If a CmdletProvider wrote any exceptions to the error pipeline, it is
/// wrapped and then thrown.
///
- ///
+ ///
internal void ThrowFirstErrorOrDoNothing()
{
ThrowFirstErrorOrDoNothing(true);
@@ -980,24 +980,24 @@ namespace System.Management.Automation
///
/// If there are any errors accumulated, the first error is thrown.
///
- ///
+ ///
///
/// If true, the error will be wrapped in a ProviderInvocationException before
/// being thrown. If false, the error will be thrown as is.
///
- ///
+ ///
///
/// If is true, the
/// first exception that was written to the error pipeline by a CmdletProvider
/// is wrapped and thrown.
///
- ///
+ ///
///
/// If is false,
/// the first exception that was written to the error pipeline by a CmdletProvider
/// is thrown.
///
- ///
+ ///
internal void ThrowFirstErrorOrDoNothing(bool wrapExceptionInProviderException)
{
if (HasErrors())
@@ -1042,15 +1042,15 @@ namespace System.Management.Automation
///
/// Writes all the accumulated errors to the specified context using WriteError
///
- ///
+ ///
///
/// The context to write the errors to.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal void WriteErrorsToContext(CmdletProviderContext errorContext)
{
if (errorContext == null)
@@ -1070,30 +1070,30 @@ namespace System.Management.Automation
///
/// Writes an object to the output.
///
- ///
+ ///
///
/// The object to be written.
///
- ///
+ ///
///
/// If streaming is on and the writeObjectHandler was specified then the object
/// gets written to the writeObjectHandler. If streaming is on and the writeObjectHandler
/// was not specified and the command object was specified, the object gets written to
- /// the WriteObject method of the command object.
+ /// the WriteObject method of the command object.
/// If streaming is off the object gets written to an accumulator collection. The collection
/// of written object can be retrieved using the AccumulatedObjects method.
///
- ///
+ ///
///
- /// The CmdletProvider could not stream the results because no
+ /// The CmdletProvider could not stream the results because no
/// cmdlet was specified to stream the output through.
///
- ///
+ ///
///
/// If the pipeline has been signaled for stopping but
/// the provider calls this method.
///
- ///
+ ///
internal void WriteObject(object obj)
{
// Making sure to obey the StopProcessing by
@@ -1149,21 +1149,21 @@ namespace System.Management.Automation
/// Writes the error to the pipeline or accumulates the error in an internal
/// buffer.
///
- ///
+ ///
///
/// The error record to write to the pipeline or the internal buffer.
///
- ///
+ ///
///
- /// The CmdletProvider could not stream the error because no
+ /// The CmdletProvider could not stream the error because no
/// cmdlet was specified to stream the output through.
///
- ///
+ ///
///
/// If the pipeline has been signaled for stopping but
/// the provider calls this method.
///
- ///
+ ///
internal void WriteError(ErrorRecord errorRecord)
{
// Making sure to obey the StopProcessing by
@@ -1217,11 +1217,11 @@ namespace System.Management.Automation
/// If the error pipeline hasn't been supplied a delegate or a command then this method
/// will determine if any errors have accumulated.
///
- ///
+ ///
///
/// True if the errors are being accumulated and some errors have been accumulated. False otherwise.
///
- ///
+ ///
internal bool HasErrors()
{
return _accumulatedErrorObjects != null && _accumulatedErrorObjects.Count > 0;
@@ -1232,7 +1232,7 @@ namespace System.Management.Automation
/// this context to do work. This method will call the StopProcessing
/// method of the provider.
///
- ///
+ ///
internal void StopProcessing()
{
Stopping = true;
@@ -1240,7 +1240,7 @@ namespace System.Management.Automation
if (_providerInstance != null)
{
// We don't need to catch any of the exceptions here because
- // we are terminating the pipeline and any exception will
+ // we are terminating the pipeline and any exception will
// be caught by the engine.
_providerInstance.StopProcessing();
@@ -1260,7 +1260,7 @@ namespace System.Management.Automation
/// The list of contexts to which the StopProcessing calls
/// should be referred.
///
- ///
+ ///
internal Collection StopReferrals { get; } = new Collection();
internal bool HasIncludeOrExclude
diff --git a/src/System.Management.Automation/namespaces/DriveProviderBase.cs b/src/System.Management.Automation/namespaces/DriveProviderBase.cs
index e79d28d07a..b6852a6814 100644
--- a/src/System.Management.Automation/namespaces/DriveProviderBase.cs
+++ b/src/System.Management.Automation/namespaces/DriveProviderBase.cs
@@ -13,11 +13,11 @@ namespace System.Management.Automation.Provider
///
/// The base class for Cmdlet providers that can be exposed through MSH drives.
///
- ///
+ ///
///
/// Although it is possible to derive from this base class to implement a Cmdlet Provider, in most
/// cases one should derive from ,
- /// , or
+ /// , or
///
///
public abstract class DriveCmdletProvider : CmdletProvider
@@ -31,24 +31,24 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The PSDriveInfo object the represents the drive to be mounted.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// The drive that was returned from the protected NewDrive method.
///
- ///
+ ///
internal PSDriveInfo NewDrive(PSDriveInfo drive, CmdletProviderContext context)
{
Context = context;
- // Make sure the provider supports credentials if they were passed
+ // Make sure the provider supports credentials if they were passed
// in the drive.
if (drive.Credential != null &&
@@ -66,16 +66,16 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the New-PSDrive cmdlet.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object NewDriveDynamicParameters(CmdletProviderContext context)
{
Context = context;
@@ -87,19 +87,19 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The PSDriveInfo object the represents the mounted drive.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// The drive that was returned from the protected RemoveDrive method.
///
- ///
+ ///
internal PSDriveInfo RemoveDrive(PSDriveInfo drive, CmdletProviderContext context)
{
Context = context;
@@ -111,15 +111,15 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An array of drives returned from the protected InitializeDefaultDrives method.
///
- ///
+ ///
internal Collection InitializeDefaultDrives(CmdletProviderContext context)
{
Context = context;
@@ -141,30 +141,30 @@ namespace System.Management.Automation.Provider
/// reliability reasons or to provide extra data to all calls using
/// the Drive.
///
- ///
+ ///
///
/// The proposed new drive.
///
- ///
+ ///
///
/// The new drive that is to be added to the MSH namespace. This
/// can either be the same object that
/// was passed in or a modified version of it.
- ///
+ ///
/// The default implementation returns the drive that was passed.
///
- ///
+ ///
///
- /// This method gives the provider an opportunity to associate
+ /// This method gives the provider an opportunity to associate
/// provider specific data with a drive. This is done by deriving
/// a new class from
- /// and adding any properties, methods, or fields that are necessary.
+ /// and adding any properties, methods, or fields that are necessary.
/// When this method gets called, the override should create an instance
/// of the derived PSDriveInfo using the passed in PSDriveInfo. The derived
/// PSDriveInfo should then be returned. Each subsequent call into the provider
/// that uses this drive will have access to the derived PSDriveInfo via the
/// PSDriveInfo property provided by the base class.
- ///
+ ///
/// Any failures should be sent to the
/// method and null should be returned.
///
@@ -180,12 +180,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the New-PSDrive cmdlet.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object NewDriveDynamicParameters()
@@ -200,19 +200,19 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to clean up any provider specific data
/// for the drive that is going to be removed.
///
- ///
+ ///
///
/// The Drive object the represents the mounted drive.
///
- ///
+ ///
///
/// If the drive can be removed it should return the drive that was passed
/// in. If the drive cannot be removed, null should be returned or an exception
/// should be thrown.
- ///
+ ///
/// The default implementation returns the drive that was passed.
///
- ///
+ ///
///
/// A provider should override this method to free any resources that may be associated with
/// the drive being removed.
@@ -229,20 +229,20 @@ namespace System.Management.Automation.Provider
///
/// Gives the provider the ability to map drives after initialization.
///
- ///
+ ///
///
/// A collection of the drives the provider wants to be added to the session upon initialization.
- ///
- /// The default implementation returns an empty collection.
+ ///
+ /// The default implementation returns an empty collection.
///
- ///
+ ///
///
/// After the Start method is called on a provider, the InitializeDefaultDrives
/// method is called. This is an opportunity for the provider to
/// mount drives that are important to it. For instance, the Active Directory
- /// provider might mount a drive for the defaultNamingContext if the
+ /// provider might mount a drive for the defaultNamingContext if the
/// machine is joined to a domain.
- ///
+ ///
/// All providers should mount a root drive to help the user with discoverability.
/// This root drive might contain a listing of a set of locations that would be
/// interesting as roots for other mounted drives. For instance, the Active
diff --git a/src/System.Management.Automation/namespaces/EnvironmentProvider.cs b/src/System.Management.Automation/namespaces/EnvironmentProvider.cs
index 9e6c3d8721..85376fe0da 100644
--- a/src/System.Management.Automation/namespaces/EnvironmentProvider.cs
+++ b/src/System.Management.Automation/namespaces/EnvironmentProvider.cs
@@ -24,7 +24,7 @@ namespace Microsoft.PowerShell.Commands
/// This provider is the data accessor for environment variables. It uses
/// the SessionStateProviderBase as the base class to produce a view on
/// session state data.
- ///
+ ///
[CmdletProvider(EnvironmentProvider.ProviderName, ProviderCapabilities.ShouldProcess)]
public sealed class EnvironmentProvider : SessionStateProviderBase
{
@@ -80,15 +80,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a environment variable from session state
///
- ///
+ ///
///
/// The name of the environment variable to retrieve.
///
- ///
+ ///
///
/// A DictionaryEntry that represents the value of the environment variable.
///
- ///
+ ///
internal override object GetSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -109,19 +109,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the environment variable of the specified name to the specified value
///
- ///
+ ///
///
/// The name of the environment variable to set.
///
- ///
+ ///
///
/// The new value for the environment variable.
///
- ///
+ ///
///
/// If true, the item that was set should be written to WriteItemObject.
///
- ///
+ ///
internal override void SetSessionStateItem(string name, object value, bool writeItem)
{
Dbg.Diagnostics.Assert(
@@ -165,11 +165,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes the specified environment variable from session state.
///
- ///
+ ///
///
/// The name of the environment variable to remove from session state.
///
- ///
+ ///
internal override void RemoveSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -182,12 +182,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a flattened view of the environment variables in session state
///
- ///
+ ///
///
/// An IDictionary representing the flattened view of the environment variables in
/// session state.
///
- ///
+ ///
internal override IDictionary GetSessionStateTable()
{
// Environment variables are case-sensitive on Unix and
@@ -200,7 +200,7 @@ namespace Microsoft.PowerShell.Commands
new Dictionary(StringComparer.OrdinalIgnoreCase);
#endif
- // The environment variables returns a dictionary of keys and values that are
+ // The environment variables returns a dictionary of keys and values that are
// both strings. We want to return a dictionary with the key as a string and
// the value as the DictionaryEntry containing both the name and env variable
// value.
@@ -217,15 +217,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the Value property of the DictionaryEntry item
///
- ///
+ ///
///
/// The item to get the value from.
///
- ///
+ ///
///
/// The value of the item.
///
- ///
+ ///
internal override object GetValueOfItem(object item)
{
Dbg.Diagnostics.Assert(
diff --git a/src/System.Management.Automation/namespaces/FileSystemContentStream.cs b/src/System.Management.Automation/namespaces/FileSystemContentStream.cs
index d0a03937e8..999eca632b 100644
--- a/src/System.Management.Automation/namespaces/FileSystemContentStream.cs
+++ b/src/System.Management.Automation/namespaces/FileSystemContentStream.cs
@@ -21,13 +21,13 @@ namespace Microsoft.PowerShell.Commands
/// The content stream class for the file system provider. It implements both
/// the IContentReader and IContentWriter interfaces.
///
- ///
+ ///
///
/// Note, this class does no specific error handling. All errors are allowed to
/// propagate to the caller so that they can be written to the error pipeline
/// if necessary.
///
- ///
+ ///
internal class FileSystemContentReaderWriter : IContentReader, IContentWriter
{
#region tracer
@@ -76,19 +76,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Constructor for the content stream
///
- ///
+ ///
///
/// The path to the file to get the content from.
///
- ///
+ ///
///
/// The file mode to open the file with.
///
- ///
+ ///
///
/// The file access requested in the file.
///
- ///
+ ///
///
/// The file share to open the file with
///
@@ -96,24 +96,24 @@ namespace Microsoft.PowerShell.Commands
///
/// The encoding of the file to be read or written.
///
- ///
+ ///
///
/// If true, bytes will be read from the file. If false, the specified encoding
/// will be used to read the file.
///
- ///
+ ///
///
/// If true, we will perform blocking reads on the file, waiting for new content to be appended
///
- ///
+ ///
///
/// The CmdletProvider invoking this stream
///
- ///
+ ///
///
/// Indicates raw stream.
///
- ///
+ ///
public FileSystemContentReaderWriter(
string path, FileMode mode, FileAccess access,
FileShare share, Encoding encoding, bool usingByteEncoding,
@@ -125,24 +125,24 @@ namespace Microsoft.PowerShell.Commands
///
/// Constructor for the content stream
///
- ///
+ ///
///
/// The path to the file to get the content from.
///
- ///
+ ///
///
/// The name of the Alternate Data Stream to get the content from. If null or empty, returns
/// the file's primary content.
///
- ///
+ ///
///
/// The file mode to open the file with.
///
- ///
+ ///
///
/// The file access requested in the file.
///
- ///
+ ///
///
/// The file share to open the file with
///
@@ -150,24 +150,24 @@ namespace Microsoft.PowerShell.Commands
///
/// The encoding of the file to be read or written.
///
- ///
+ ///
///
/// If true, bytes will be read from the file. If false, the specified encoding
/// will be used to read the file.
///
- ///
+ ///
///
/// If true, we will perform blocking reads on the file, waiting for new content to be appended
///
- ///
+ ///
///
/// The CmdletProvider invoking this stream
///
- ///
+ ///
///
/// Indicates raw stream.
///
- ///
+ ///
public FileSystemContentReaderWriter(
string path, string streamName, FileMode mode, FileAccess access, FileShare share,
Encoding encoding, bool usingByteEncoding, bool waitForChanges, CmdletProvider provider,
@@ -202,24 +202,24 @@ namespace Microsoft.PowerShell.Commands
///
/// Constructor for the content stream
///
- ///
+ ///
///
/// The path to the file to get the content from.
///
- ///
+ ///
///
/// The name of the Alternate Data Stream to get the content from. If null or empty, returns
/// the file's primary content.
///
- ///
+ ///
///
/// The file mode to open the file with.
///
- ///
+ ///
///
/// The file access requested in the file.
///
- ///
+ ///
///
/// The file share to open the file with
///
@@ -227,28 +227,28 @@ namespace Microsoft.PowerShell.Commands
///
/// The encoding of the file to be read or written.
///
- ///
+ ///
///
/// If true, bytes will be read from the file. If false, the specified encoding
/// will be used to read the file.
///
- ///
+ ///
///
/// If true, we will perform blocking reads on the file, waiting for new content to be appended
///
- ///
+ ///
///
/// The CmdletProvider invoking this stream
///
- ///
+ ///
///
/// Indicates raw stream.
///
- ///
+ ///
///
/// False to add a newline to the end of the output string, true if not.
///
- ///
+ ///
public FileSystemContentReaderWriter(
string path, string streamName, FileMode mode, FileAccess access, FileShare share,
Encoding encoding, bool usingByteEncoding, bool waitForChanges, CmdletProvider provider,
@@ -261,44 +261,44 @@ namespace Microsoft.PowerShell.Commands
///
/// Constructor for the content stream
///
- ///
+ ///
///
/// The path to the file to get the content from.
///
- ///
+ ///
///
/// The file mode to open the file with.
///
- ///
+ ///
///
/// The file access requested in the file.
///
- ///
+ ///
///
/// The file share to open the file with
///
- ///
+ ///
///
/// The delimiter to use when reading strings. Each time read is called, all contents up to an including
/// the delimiter is read.
///
- ///
+ ///
///
/// The encoding of the file to be read or written.
///
- ///
+ ///
///
/// If true, we will perform blocking reads on the file, waiting for new content to be appended
///
- ///
+ ///
///
/// The CmdletProvider invoking this stream
///
- ///
+ ///
///
/// Indicates raw stream.
///
- ///
+ ///
public FileSystemContentReaderWriter(
string path,
FileMode mode,
@@ -315,49 +315,49 @@ namespace Microsoft.PowerShell.Commands
///
/// Constructor for the content stream
///
- ///
+ ///
///
/// The path to the file to get the content from.
///
- ///
+ ///
///
/// The name of the Alternate Data Stream to get the content from. If null or empty, returns
/// the file's primary content.
///
- ///
+ ///
///
/// The file mode to open the file with.
///
- ///
+ ///
///
/// The file access requested in the file.
///
- ///
+ ///
///
/// The file share to open the file with
///
- ///
+ ///
///
/// The delimiter to use when reading strings. Each time read is called, all contents up to an including
/// the delimiter is read.
///
- ///
+ ///
///
/// The encoding of the file to be read or written.
///
- ///
+ ///
///
/// If true, we will perform blocking reads on the file, waiting for new content to be appended
///
- ///
+ ///
///
/// The CmdletProvider invoking this stream
///
- ///
+ ///
///
/// Indicates raw stream.
///
- ///
+ ///
public FileSystemContentReaderWriter(
string path,
string streamName,
@@ -379,18 +379,18 @@ namespace Microsoft.PowerShell.Commands
///
/// Reads the specified number of characters or a lines from the file.
///
- ///
+ ///
///
/// If less than 1, then the entire file is read at once. If 1 or greater, then
/// readCount is used to determine how many items (ie: lines, bytes, delimited tokens)
/// to read per call.
///
- ///
+ ///
///
/// An array of strings representing the character(s) or line(s) read from
/// the file.
///
- ///
+ ///
public IList Read(long readCount)
{
if (_isRawStream && _waitForChanges)
@@ -408,7 +408,7 @@ namespace Microsoft.PowerShell.Commands
if (_alreadyDetectEncoding && _reader.BaseStream.Position == 0)
{
Encoding curEncoding = _reader.CurrentEncoding;
- // Close the stream, and reopen the stream to make the BOM correctly processed.
+ // Close the stream, and reopen the stream to make the BOM correctly processed.
// The reader has already detected encoding, so if we don't reopen the stream, the BOM (if there is any)
// will be treated as a regular character.
_stream.Dispose();
@@ -645,7 +645,7 @@ namespace Microsoft.PowerShell.Commands
// end of the delimiter. If we read past the end of the delimiter,
// then we'll eat up bytes that we need from the filestream.
// The solution is a modified Boyer-Moore string search algorithm.
- // This version retains the sub-linear search performance (via the
+ // This version retains the sub-linear search performance (via the
// lookup tables,) but offloads much of the dirty work to the
// very efficient BCL String.IndexOf(, StringComparison.CurrentCulture) method.
int numRead = 0;
@@ -689,7 +689,7 @@ namespace Microsoft.PowerShell.Commands
while ((numRead < currentOffset) && (!_provider.Stopping))
{
// Get the change, and try to read more characters
- // We only wait for changes when read forwards, so here we don't need to check if 'readBackward' is
+ // We only wait for changes when read forwards, so here we don't need to check if 'readBackward' is
// true or false, we only use 'reader'. The member 'reader' will be updated by WaitForChanges.
WaitForChanges(_path, _mode, _access, _share, _reader.CurrentEncoding);
numRead += _reader.Read(readBuffer, 0, (currentOffset - numRead));
@@ -723,7 +723,7 @@ namespace Microsoft.PowerShell.Commands
} while ((_isRawStream && (numRead != 0)) ||
((content.ToString().IndexOf(actualDelimiter, StringComparison.Ordinal) < 0) && (numRead != 0)));
- // We've reached the end of file or end of line.
+ // We've reached the end of file or end of line.
if (content.Length > 0)
blocks.Add(content.ToString());
@@ -745,7 +745,7 @@ namespace Microsoft.PowerShell.Commands
if (_isRawStream)
{
// if RawSteam, read all bytes and return. When RawStream is used, we dont
- // support -first, -last
+ // support -first, -last
byte[] bytes = new byte[_stream.Length];
int numBytesToRead = (int)_stream.Length;
int numBytesRead = 0;
@@ -989,15 +989,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Moves the current stream position in the file
///
- ///
+ ///
///
/// The offset from the origin to move the position to.
///
- ///
+ ///
///
/// The origin from which the offset is calculated.
///
- ///
+ ///
public void Seek(long offset, SeekOrigin origin)
{
if (_writer != null) { _writer.Flush(); }
@@ -1057,15 +1057,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Writes the specified object to the file
///
- ///
+ ///
///
/// The objects to write to the file
///
- ///
+ ///
///
/// The objects written to the file.
///
- ///
+ ///
public IList Write(IList content)
{
foreach (object line in content)
@@ -1246,7 +1246,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Return the current actual stream position
+ /// Return the current actual stream position
///
///
internal long GetCurrentPosition()
@@ -1469,7 +1469,7 @@ namespace Microsoft.PowerShell.Commands
// The BufferSize will be a multiple of 4, so we can just read toRead number of bytes
// if the current file is encoded by any of these formatting
- // If IsSingleByteCharacterSet() returns true, we are sure that the given encoding is OEM
+ // If IsSingleByteCharacterSet() returns true, we are sure that the given encoding is OEM
// or Default, and it is SBCS(single byte character set) code page -- one byte per character
_currentPosition = _stream.Position;
_byteCount = _stream.Read(_byteBuff, 0, toRead);
diff --git a/src/System.Management.Automation/namespaces/FileSystemProvider.cs b/src/System.Management.Automation/namespaces/FileSystemProvider.cs
index 649617e933..e02d8551cc 100644
--- a/src/System.Management.Automation/namespaces/FileSystemProvider.cs
+++ b/src/System.Management.Automation/namespaces/FileSystemProvider.cs
@@ -57,8 +57,8 @@ namespace Microsoft.PowerShell.Commands
ICmdletProviderSupportsHelp
{
// 4MB gives the best results without spiking the resources on the remote connection for file transfers between pssessions.
- // NOTE: The script used to copy file data from session (PSCopyFromSessionHelper) has a
- // maximum fragment size value for security. If FILETRANSFERSIZE changes make sure the
+ // NOTE: The script used to copy file data from session (PSCopyFromSessionHelper) has a
+ // maximum fragment size value for security. If FILETRANSFERSIZE changes make sure the
// copy script will accomodate the new value.
private const int FILETRANSFERSIZE = 4 * 1024 * 1024;
@@ -88,15 +88,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Converts all / in the path to \
///
- ///
+ ///
///
/// The path to normalize.
///
- ///
+ ///
///
/// The path with all / normalized to \
///
- ///
+ ///
private static string NormalizePath(string path)
{
return path.Replace(StringLiterals.AlternatePathSeparator, StringLiterals.DefaultPathSeparator);
@@ -107,7 +107,7 @@ namespace Microsoft.PowerShell.Commands
/// Checks if the item exist at the specified path. if it exists then creates
/// appropriate directoryinfo or fileinfo object.
///
- ///
+ ///
/// refers to the item for which we are checking for existence and creating filesysteminfo object.
///
///
@@ -158,18 +158,18 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets the dynamic parameters for get-childnames on the
- /// FileSystemProvider.
+ /// Gets the dynamic parameters for get-childnames on the
+ /// FileSystemProvider.
/// We currently only support one dynamic parameter,
- /// "Attributes" that returns an enum evaluator for the
+ /// "Attributes" that returns an enum evaluator for the
/// given expression.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -180,22 +180,22 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Gets the dynamic parameters for get-childitems on the
- /// FileSystemProvider.
+ /// Gets the dynamic parameters for get-childitems on the
+ /// FileSystemProvider.
/// We currently only support one dynamic parameter,
- /// "Attributes" that returns an enum evaluator for the
+ /// "Attributes" that returns an enum evaluator for the
/// given expression.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -227,7 +227,7 @@ namespace Microsoft.PowerShell.Commands
/// Name of command that the help is requested for.
///
///
- /// Not used here.
+ /// Not used here.
///
///
/// The MAML help XML that should be presented to the user.
@@ -257,7 +257,7 @@ namespace Microsoft.PowerShell.Commands
return String.Empty;
}
- // Load the help file from the current UI culture subfolder
+ // Load the help file from the current UI culture subfolder
XmlDocument document = new XmlDocument();
CultureInfo currentUICulture = CultureInfo.CurrentUICulture;
string fullHelpPath = Path.Combine(
@@ -375,11 +375,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the specified drive can be mounted.
///
- ///
+ ///
///
/// The drive that is going to be mounted.
///
- ///
+ ///
///
/// The same drive that was passed in, if the drive can be mounted.
/// null if the drive cannot be mounted.
@@ -413,7 +413,7 @@ namespace Microsoft.PowerShell.Commands
if (IsNetworkMappedDrive(drive))
{
- // MapNetworkDrive facilitates to map the newly
+ // MapNetworkDrive facilitates to map the newly
// created PS Drive to a network share.
this.MapNetworkDrive(drive);
}
@@ -566,7 +566,7 @@ namespace Microsoft.PowerShell.Commands
// Update the current PSDrive to be a persisted drive.
drive.IsNetworkDrive = true;
- // PsDrive.Root is updated to the name of the Drive for
+ // PsDrive.Root is updated to the name of the Drive for
// drives targeting network path and being persisted.
drive.Root = driveName + @"\";
}
@@ -623,7 +623,7 @@ namespace Microsoft.PowerShell.Commands
string driveName;
if (drive.IsNetworkDrive)
{
- // Here we are removing only persisted network drives.
+ // Here we are removing only persisted network drives.
flags = CONNECT_UPDATE_PROFILE;
driveName = drive.Name + ":";
}
@@ -649,7 +649,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// IsSupportedDriveForPersistence is a helper method used to
+ /// IsSupportedDriveForPersistence is a helper method used to
/// check if the psdrive can be persisted or not.
///
///
@@ -695,8 +695,8 @@ namespace Microsoft.PowerShell.Commands
// By default buffer size is set to 300 which would generally be sufficient in most of the cases.
int bufferSize = 300;
#if DEBUG
- // In Debug mode buffer size is initially set to 3 and if additional buffer is required, the
- // required buffer size is allocated and the WNetGetConnection API is executed with the newly
+ // In Debug mode buffer size is initially set to 3 and if additional buffer is required, the
+ // required buffer size is allocated and the WNetGetConnection API is executed with the newly
// allocated buffer size.
bufferSize = 3;
#endif
@@ -707,7 +707,7 @@ namespace Microsoft.PowerShell.Commands
// Call the windows API
int errorCode = NativeMethods.WNetGetConnection(driveName, uncBuffer, ref bufferSize);
- // error code 234 is returned whenever the required buffer size is greater
+ // error code 234 is returned whenever the required buffer size is greater
// than the specified buffer size.
if (errorCode == 234)
{
@@ -762,7 +762,7 @@ namespace Microsoft.PowerShell.Commands
int retValue = NativeMethods.QueryDosDevice(driveName, pathInfo, bufferSize);
if (retValue > 0)
{
- // If the drive letter is a substed path, the result will be in the format of
+ // If the drive letter is a substed path, the result will be in the format of
// - "\??\C:\RealPath" for local path
// - "\??\UNC\RealPath" for network path
associatedPath = pathInfo.ToString();
@@ -798,11 +798,11 @@ namespace Microsoft.PowerShell.Commands
throw new Win32Exception((int)errorCode);
}
- // We got the "insufficient buffer" error. In this case we extend
+ // We got the "insufficient buffer" error. In this case we extend
// the buffer size, unless it's unreasonably too large.
if (bufferSize >= 32767)
{
- // "The Windows API has many functions that also have Unicode versions to permit
+ // "The Windows API has many functions that also have Unicode versions to permit
// an extended-length path for a maximum total path length of 32,767 characters"
// See http://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath
string errorMsg = StringUtil.Format(FileSystemProviderStrings.SubstitutePathTooLong, driveName);
@@ -843,7 +843,7 @@ namespace Microsoft.PowerShell.Commands
{
// The drive is ready but we failed to find the UNC path based on the drive name.
// In this case, it's possibly a MS-DOS device created by 'subst' command that
- // - substitutes a network location directly, or
+ // - substitutes a network location directly, or
// - substitutes a path in a drive that maps to a network location
rootPath = GetSubstitutedPathForNetworkDosDevice(driveName);
}
@@ -859,12 +859,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Returns a collection of all logical drives in the system.
///
- ///
+ ///
///
/// A collection of PSDriveInfo objects, one for each logical drive returned from
/// System.Environment.GetLogicalDrives().
///
- ///
+ ///
protected override Collection InitializeDefaultDrives()
{
Collection results = new Collection();
@@ -881,7 +881,7 @@ namespace Microsoft.PowerShell.Commands
break;
}
- // cover everything by the try-catch block, because some of the
+ // cover everything by the try-catch block, because some of the
// DriveInfo properties may throw exceptions
try
{
@@ -971,7 +971,7 @@ namespace Microsoft.PowerShell.Commands
null,
displayRoot);
- // The network drive is detected when PowerShell is launched.
+ // The network drive is detected when PowerShell is launched.
// Hence it has been persisted during one of the earlier sessions,
if (newDrive.DriveType == DriveType.Network)
{
@@ -1028,17 +1028,17 @@ namespace Microsoft.PowerShell.Commands
/// An example path looks like this
/// C:\WINNT\Media\chimes.wav
///
- ///
+ ///
///
/// The fully qualified path to validate.
///
- ///
+ ///
///
/// True if the path is valid, false otherwise.
///
protected override bool IsValidPath(string path)
{
- //Path passed should be fully qualified path.
+ //Path passed should be fully qualified path.
if (String.IsNullOrEmpty(path))
{
return false;
@@ -1092,17 +1092,17 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the item at the specified path.
///
- ///
+ ///
///
- /// A fully qualified path representing a file or directory in the
+ /// A fully qualified path representing a file or directory in the
/// file system.
///
- ///
+ ///
///
- /// Nothing. FileInfo and DirectoryInfo objects are written to the
+ /// Nothing. FileInfo and DirectoryInfo objects are written to the
/// context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -1304,7 +1304,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The item to invoke.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -1346,24 +1346,24 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the child items of a given directory.
///
- ///
+ ///
///
/// The full path of the directory to enumerate.
///
- ///
+ ///
///
/// If true, recursively enumerates the child items as well.
///
- ///
+ ///
///
/// Limits the depth of recursion; uint.MaxValue performs full recursion.
///
- ///
+ ///
///
- /// Nothing. FileInfo and DirectoryInfo objects that match the filter are written to the
+ /// Nothing. FileInfo and DirectoryInfo objects that match the filter are written to the
/// context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -1382,20 +1382,20 @@ namespace Microsoft.PowerShell.Commands
/// Gets the path names for all children of the specified
/// directory that match the given filter.
///
- ///
+ ///
///
/// The full path of the directory to enumerate.
///
- ///
+ ///
///
/// Determines if all containers should be returned or only those containers that match the
/// filter(s).
///
- ///
+ ///
///
/// Nothing. Child names are written to the context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -1411,7 +1411,7 @@ namespace Microsoft.PowerShell.Commands
/// Gets a new provider-specific path and filter (if any) that corresponds to the given
/// path.
///
- ///
+ ///
///
/// The path to the item. Unlike most other provider APIs, this path is likely to
/// contain PowerShell wildcards.
@@ -1425,17 +1425,17 @@ namespace Microsoft.PowerShell.Commands
///
/// The new filter.
///
- ///
+ ///
///
/// True if the path or filter were altered. False otherwise.
///
- ///
+ ///
///
/// Makes no attempt to filter if the user has already specified a filter, or
- /// if the path contains directory separators. Those are not supported by the
+ /// if the path contains directory separators. Those are not supported by the
/// FileSystem filter.
///
- ///
+ ///
protected override bool ConvertPath(
string path,
string filter,
@@ -1460,7 +1460,7 @@ namespace Microsoft.PowerShell.Commands
//
// *~*: Matches any file with a long filename
// *n*: Matches all files with a long filename, but have been
- // mapped to a [6][~n].[3] disambiguation bucket
+ // mapped to a [6][~n].[3] disambiguation bucket
// *.abc: Matches all files that have an extension that begins
// with ABC, since their extension is truncated in the
// short filename
@@ -1675,7 +1675,7 @@ namespace Microsoft.PowerShell.Commands
// if "Hidden" is explicitly specified anywhere in the attribute filter, then override
// default hidden attribute filter.
// if specification is to return all containers, then do not do attribute filter on
- // the containers.
+ // the containers.
bool attributeSatisfy =
((attributeFilter && switchAttributeFilter) ||
((returnContainers == ReturnContainers.ReturnAllContainers) &&
@@ -1762,7 +1762,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Create an enum expression evaluator for user-specified attribute filtering
- /// switch parameters.
+ /// switch parameters.
///
///
/// If any attribute filtering switch parameters are set,
@@ -1841,20 +1841,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Renames a file or directory.
///
- ///
+ ///
///
/// The current full path to the file or directory.
///
- ///
+ ///
///
/// The new full path to the file or directory.
///
- ///
+ ///
///
- /// Nothing. The renamed DirectoryInfo or FileInfo object is
+ /// Nothing. The renamed DirectoryInfo or FileInfo object is
/// written to the context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
/// newName is null or empty
@@ -1986,13 +1986,13 @@ namespace Microsoft.PowerShell.Commands
///
/// Creates a file or directory with the given path.
///
- ///
+ ///
///
/// The path of the file or directory to create.
///
- ///
+ ///
///
- /// Specify "file" to create a file.
+ /// Specify "file" to create a file.
/// Specify "directory" or "container" to create a directory.
///
///
@@ -2000,12 +2000,12 @@ namespace Microsoft.PowerShell.Commands
/// If is "file" then this parameter becomes the content
/// of the file to be created.
///
- ///
+ ///
///
- /// Nothing. The new DirectoryInfo or FileInfo object is
+ /// Nothing. The new DirectoryInfo or FileInfo object is
/// written to the context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
/// type is null or empty.
@@ -2066,7 +2066,7 @@ namespace Microsoft.PowerShell.Commands
if (ShouldProcess(resource, action))
{
- // Create the file with read/write access and
+ // Create the file with read/write access and
// not allowing sharing.
using (FileStream newFile =
@@ -2436,7 +2436,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Checks if the item exists and throws exception on access.
+ /// Checks if the item exists and throws exception on access.
///
///
///
@@ -2503,15 +2503,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Creates a directory at the specified path
///
- ///
+ ///
///
/// The path of the directory to create
///
- ///
+ ///
///
/// Determines if the directory should be streamed out after being created.
///
- ///
+ ///
private void CreateDirectory(string path, bool streamOutput)
{
Dbg.Diagnostics.Assert(
@@ -2669,15 +2669,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes the specified file or directory.
///
- ///
+ ///
///
/// The full path to the file or directory to be removed.
///
- ///
+ ///
///
/// Specifies if the operation should also remove child items.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -2814,26 +2814,26 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes a directory from the file system.
///
- ///
+ ///
///
/// The DirectoryInfo object representing the directory to be removed.
///
- ///
+ ///
///
/// If true, ShouldProcess will be called for each item in the subtree.
/// If false, ShouldProcess will only be called for the directory item.
///
- ///
+ ///
///
/// If true, attempts to modify the file attributes in case of a failure so that
/// the file can be removed.
///
- ///
+ ///
///
/// True if the DirectoryInfo being passed in is the root of the tree being removed.
/// ShouldProcess will be called if this is true or if recurse is true.
///
- ///
+ ///
private void RemoveDirectoryInfoItem(DirectoryInfo directory, bool recurse, bool force, bool rootOfRemoval)
{
Dbg.Diagnostics.Assert(directory != null, "Caller should always check directory");
@@ -2970,16 +2970,16 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes a file from the file system.
///
- ///
+ ///
///
/// The FileInfo object representing the file to be removed.
///
- ///
+ ///
///
/// If true, attempts to modify the file attributes in case of a failure so that
/// the file can be removed.
///
- ///
+ ///
private void RemoveFileInfoItem(FileInfo file, bool force)
{
Dbg.Diagnostics.Assert(
@@ -2997,17 +2997,17 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes the file system object from the file system.
///
- ///
+ ///
///
/// The FileSystemInfo object representing the file or directory to be removed.
///
- ///
+ ///
///
/// If true, the readonly and hidden attributes will be masked off in the case of
/// an error, and the removal will be attempted again. If false, exceptions are
/// written to the error pipeline.
///
- ///
+ ///
private void RemoveFileSystemItem(FileSystemInfo fileSystemInfo, bool force)
{
Dbg.Diagnostics.Assert(
@@ -3136,19 +3136,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if a file or directory exists at the specified path.
///
- ///
+ ///
///
/// The path of the item to check.
///
- ///
+ ///
///
/// True if a file or directory exists at the specified path, false otherwise.
///
- ///
+ ///
///
/// path is null or empty.
///
- ///
+ ///
protected override bool ItemExists(string path)
{
ErrorRecord error = null;
@@ -3166,23 +3166,23 @@ namespace Microsoft.PowerShell.Commands
/// allows the caller to decide if it wants to WriteError or not based
/// on the returned ErrorRecord
///
- ///
+ ///
///
/// The path of the object to check
///
- ///
+ ///
///
/// An error record is returned in this parameter if there was an error.
///
- ///
+ ///
///
/// True if an object exists at the specified path, false otherwise.
///
- ///
+ ///
///
/// path is null or empty.
///
- ///
+ ///
private bool ItemExists(string path, out ErrorRecord error)
{
error = null;
@@ -3257,17 +3257,17 @@ namespace Microsoft.PowerShell.Commands
///
/// Adds -OlderThan, -NewerThan dynamic properties.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected override object ItemExistsDynamicParameters(string path)
@@ -3286,16 +3286,16 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the given path is a directory, and has children.
///
- ///
+ ///
///
/// The full path to the directory.
///
- ///
+ ///
///
/// True if the path refers to a directory that contains other
/// directories or files. False otherwise.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -3389,24 +3389,24 @@ namespace Microsoft.PowerShell.Commands
///
/// Copies an item at the specified path to the given destination.
///
- ///
+ ///
///
/// The path of the item to copy.
///
- ///
+ ///
///
/// The path of the destination.
///
- ///
+ ///
///
/// Specifies if the operation should also copy child items.
///
- ///
+ ///
///
/// path is null or empty.
/// destination path is null or empty.
///
- ///
+ ///
///
/// Nothing. Copied items are written to the context's pipeline.
///
@@ -3955,7 +3955,7 @@ namespace Microsoft.PowerShell.Commands
string dirName = (string)dir["Name"];
string dirFullName = (string)dir["FullName"];
- // Making sure to obey the StopProcessing.
+ // Making sure to obey the StopProcessing.
if (Stopping)
{
return;
@@ -4383,8 +4383,8 @@ namespace Microsoft.PowerShell.Commands
else if (parentIsDirectoryInfo)
{
// At this point we know that the remotePath is neither a file or a directory on the remote target.
- // However, if the parent of the remotePath exists, then we are doing a copy-item operation in which
- // the destination file name is already being passed, e.g.,
+ // However, if the parent of the remotePath exists, then we are doing a copy-item operation in which
+ // the destination file name is already being passed, e.g.,
// copy-item -path c:\localDir\foo.txt -destination d:\remoteDir\bar.txt -toSession $s
// Note that d:\remoteDir is a directory that exists on the remote target machine.
path = remotePath;
@@ -4426,7 +4426,7 @@ namespace Microsoft.PowerShell.Commands
progress.RecordType = ProgressRecordType.Processing;
WriteProgress(progress);
- // 4MB gives the best results without spiking the resources on the remote connection.
+ // 4MB gives the best results without spiking the resources on the remote connection.
int fragmentSize = FILETRANSFERSIZE;
byte[] fragment = null;
int iteration = 0;
@@ -4716,15 +4716,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the parent of the given path.
///
- ///
+ ///
///
/// The path of which to get the parent.
///
- ///
+ ///
///
/// The root of the drive.
///
- ///
+ ///
///
/// The parent of the given path.
///
@@ -4772,15 +4772,15 @@ namespace Microsoft.PowerShell.Commands
/// one path separator is found we know the path is in the form
/// "\\server\share" and is a valid UNC root.
///
- ///
+ ///
///
/// The path to check to see if its a UNC root.
///
- ///
+ ///
///
/// True if the path is a UNC root, or false otherwise.
///
- ///
+ ///
private static bool IsUNCRoot(string path)
{
bool result = false;
@@ -4824,15 +4824,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the specified path is either a drive root or a UNC root
///
- ///
+ ///
///
/// The path
///
- ///
+ ///
///
/// True if the path is either a drive root or a UNC root, or false otherwise.
///
- ///
+ ///
private static bool IsPathRoot(string path)
{
if (String.IsNullOrEmpty(path))
@@ -4848,19 +4848,19 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Normalizes the path that was passed in and returns it as a normalized
+ /// Normalizes the path that was passed in and returns it as a normalized
/// path relative to the given basePath.
///
- ///
+ ///
///
/// A fully qualifiedpath to an item. The item must exist,
/// or the provider writes out an error.
///
- ///
+ ///
///
/// The path that the normalized path should be relative to.
///
- ///
+ ///
///
/// A normalized path, relative to the given basePath.
///
@@ -5022,16 +5022,16 @@ namespace Microsoft.PowerShell.Commands
/// Normalizes the path that was passed in and returns the normalized path
/// as a relative path to the basePath that was passed.
///
- ///
+ ///
///
/// A fully qualified provider specific path to an item. The item should exist
/// or the provider should write out an error.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
/// A normalized path that is relative to the basePath that was passed. The
/// provider should parse the path parameter, normalize the path, and then
@@ -5042,12 +5042,12 @@ namespace Microsoft.PowerShell.Commands
/// This method does not have to be purely syntactical parsing of the path. It
/// is encouraged that the provider actually use the path to lookup in its store
/// and create a relative path that matches the casing, and standardized path syntax.
- ///
+ ///
/// Note, the base class implementation uses GetParentPath, GetChildName, and MakePath
/// to normalize the path and then make it relative to basePath. All string comparisons
/// are done using StringComparison.InvariantCultureIgnoreCase.
///
- ///
+ ///
private string NormalizeRelativePathHelper(string path, string basePath)
{
if (path == null)
@@ -5265,20 +5265,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Tokenizes the specified path onto a stack
///
- ///
+ ///
///
/// The path to tokenize.
///
- ///
+ ///
///
/// The base part of the path that should not be tokenized.
///
- ///
+ ///
///
/// A stack containing the tokenized path with leaf elements on the bottom
/// of the stack and the most ancestral parent at the top.
///
- ///
+ ///
private Stack TokenizePathToStack(string path, string basePath)
{
Stack tokenizedPathStack = new Stack();
@@ -5331,22 +5331,22 @@ namespace Microsoft.PowerShell.Commands
///
/// Given the tokenized path, the relative path elements are removed.
///
- ///
+ ///
///
/// String containing basepath for which we are trying to find the relative path.
///
- ///
+ ///
///
/// A stack containing path elements where the leaf most element is at
/// the bottom of the stack and the most ancestral parent is on the top.
/// Generally this stack comes from TokenizePathToStack().
///
- ///
+ ///
///
/// A stack in reverse order with the path elements normalized and all relative
/// path tokens removed.
///
- ///
+ ///
private Stack NormalizeThePath(string basepath, Stack tokenizedPathStack)
{
Stack normalizedPathStack = new Stack();
@@ -5401,7 +5401,7 @@ namespace Microsoft.PowerShell.Commands
if (fsinfo != null)
{
// This might happen if you've passed a child name of two or more dots,
- // which the .NET APIs treat as the parent directory
+ // which the .NET APIs treat as the parent directory
if (fsinfo.FullName.Length < currentPath.Length)
{
throw PSTraceSource.NewArgumentException("path", FileSystemProviderStrings.ItemDoesNotExist, currentPath);
@@ -5433,21 +5433,21 @@ namespace Microsoft.PowerShell.Commands
///
/// Pops each leaf element of the stack and uses MakePath to generate the relative path
///
- ///
+ ///
///
/// The stack containing the leaf elements of the path.
///
- ///
+ ///
///
/// A path that is made up of the leaf elements on the given stack.
///
- ///
+ ///
///
/// The elements on the stack start from the leaf element followed by its parent
/// followed by its parent, etc. Each following element on the stack is the parent
/// of the one before it.
///
- ///
+ ///
private string CreateNormalizedRelativePathFromStack(Stack normalizedPathStack)
{
string leafElement = String.Empty;
@@ -5471,15 +5471,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the name of the leaf element of the specified path.
///
- ///
+ ///
///
/// The fully qualified path to the item.
///
- ///
+ ///
///
/// The leaf element of the specified path.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -5543,16 +5543,16 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the item at the specified path is a directory.
///
- ///
+ ///
///
/// The path to the file or directory to check.
///
- ///
+ ///
///
/// True if the item at the specified path is a directory.
/// False otherwise.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -5573,19 +5573,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Moves an item at the specified path to the given destination.
///
- ///
+ ///
///
/// The path of the item to move.
///
- ///
+ ///
///
/// The path of the destination.
///
- ///
+ ///
///
/// Nothing. Moved items are written to the context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
/// destination is null or empty.
@@ -5712,7 +5712,7 @@ namespace Microsoft.PowerShell.Commands
try
{
- // Move the file
+ // Move the file
file.MoveTo(destination);
if (output)
@@ -5725,7 +5725,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (System.UnauthorizedAccessException unauthorizedAccess)
{
- // This error is thrown when the readonly bit is set.
+ // This error is thrown when the readonly bit is set.
if (force)
{
@@ -5845,7 +5845,7 @@ namespace Microsoft.PowerShell.Commands
}
else
{
- // Move the file
+ // Move the file
directory.MoveTo(destination);
}
@@ -5856,7 +5856,7 @@ namespace Microsoft.PowerShell.Commands
}
catch (System.UnauthorizedAccessException unauthorizedAccess)
{
- // This error is thrown when the readonly bit is set.
+ // This error is thrown when the readonly bit is set.
if (force)
{
try
@@ -5966,8 +5966,8 @@ namespace Microsoft.PowerShell.Commands
/// The fully qualified path to the item.
///
/// The list of properties to get. Examples include "Attributes", "LastAccessTime,"
- /// and other properties defined by
- /// and
+ /// and other properties defined by
+ /// and
///
///
public void GetProperty(string path, Collection providerSpecificPickList)
@@ -6086,17 +6086,17 @@ namespace Microsoft.PowerShell.Commands
/// Gets the dynamic property parameters required by the get-itemproperty cmdlet.
/// This feature is not required by the File System provider.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// A list of properties that should be retrieved. If this parameter is null
/// or empty, all properties should be retrieved.
///
- ///
+ ///
///
/// Null. This feature is not required by the File System provider.
///
@@ -6110,25 +6110,25 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the specified properties on the item at the given path.
///
- ///
+ ///
///
/// The path of the item on which to set the properties.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the names and values
+ /// A PSObject which contains a collection of the names and values
/// of the properties to be set. The File System provider supports setting
/// only the "Attributes" property.
///
- ///
+ ///
///
/// path is null or empty.
///
- ///
+ ///
///
/// propertyToSet is null.
///
- ///
+ ///
public void SetProperty(string path, PSObject propertyToSet)
{
// verify parameters
@@ -6288,21 +6288,21 @@ namespace Microsoft.PowerShell.Commands
/// Gets the dynamic property parameters required by the set-itemproperty cmdlet.
/// This feature is not required by the File System provider.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to set the dynamic parameters.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// Null. This feature is not required by the File System provider.
///
- ///
+ ///
public object SetPropertyDynamicParameters(
string path,
PSObject propertyValue)
@@ -6314,20 +6314,20 @@ namespace Microsoft.PowerShell.Commands
/// Clears the specified properties on the item at the given path.
/// The File System provider supports only the "Attributes" property.
///
- ///
+ ///
///
/// The path of the item on which to clear the properties.
///
- ///
+ ///
///
/// A collection of the names of the properties to clear. The File System
/// provider supports clearing only the "Attributes" property.
///
- ///
+ ///
///
/// Path is null or empty.
///
- ///
+ ///
///
/// propertiesToClear is null or count is zero.
///
@@ -6421,12 +6421,12 @@ namespace Microsoft.PowerShell.Commands
/// Gets the dynamic property parameters required by the clear-itemproperty cmdlet.
/// This feature is not required by the File System provider.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to set the dynamic parameters.
///
- ///
+ ///
///
/// A collection of the names of the properties to clear.
///
@@ -6450,15 +6450,15 @@ namespace Microsoft.PowerShell.Commands
/// the specified file for reading, and returns the IContentReader interface
/// to it.
///
- ///
+ ///
///
/// The path of the file to be opened for reading.
///
- ///
+ ///
///
/// An IContentReader for the specified file.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -6592,12 +6592,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the dynamic property parameters required by the get-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -6612,15 +6612,15 @@ namespace Microsoft.PowerShell.Commands
/// the specified file for writing, and returns the IContentReader interface
/// to it.
///
- ///
+ ///
///
/// The path of the file to be opened for writing.
///
- ///
+ ///
///
/// An IContentWriter for the specified file.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -6715,12 +6715,12 @@ namespace Microsoft.PowerShell.Commands
/// Gets the dynamic property parameters required by the set-content and
/// add-content cmdlets.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -6737,7 +6737,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The path to the file of which to clear the contents.
///
- ///
+ ///
///
/// path is null or empty.
///
@@ -6885,12 +6885,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the dynamic property parameters required by the clear-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item for which to get the dynamic parameters.
///
- ///
+ ///
///
/// A FileSystemClearContentDynamicParameters that provides access to the -Stream dynamic parameter.
///
@@ -6960,19 +6960,19 @@ namespace Microsoft.PowerShell.Commands
}
else if (errorCode == 32)
{
- // Errorcode 32 is 'ERROR_SHARING_VIOLATION' i.e.
+ // Errorcode 32 is 'ERROR_SHARING_VIOLATION' i.e.
// The process cannot access the file because it is being used by another process.
// GetFileAttributes may return INVALID_FILE_ATTRIBUTES for a system file or directory because of this error.
// GetFileAttributes function tries to open the file with FILE_READ_ATTRIBUTES access right but it fails if the
// sharing flag for the file is set to 0x00000000.This flag prevents it from opening a file for delete, read, or
- // write access. For example: C:\pagefile.sys is always opened by OS with sharing flag 0x00000000.
+ // write access. For example: C:\pagefile.sys is always opened by OS with sharing flag 0x00000000.
// But FindFirstFile is still able to get attributes as this api retrieves the required information using a find
// handle generated with FILE_LIST_DIRECTORY access.
// Fall back to FindFirstFile to check if the file actually exists.
IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);
Utils.NativeMethods.WIN32_FIND_DATA findData;
IntPtr findHandle = Utils.NativeMethods.FindFirstFile(path, out findData);
- if (findHandle != INVALID_HANDLE_VALUE)
+ if (findHandle != INVALID_HANDLE_VALUE)
{
Utils.NativeMethods.FindClose(findHandle);
return (int)findData.dwFileAttributes;
@@ -7018,7 +7018,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// The API 'PathIsNetworkPath' is not available in CoreSystem.
+ /// The API 'PathIsNetworkPath' is not available in CoreSystem.
/// This implementation is based on the 'PathIsNetworkPath' API.
///
///
@@ -7040,13 +7040,13 @@ namespace Microsoft.PowerShell.Commands
private static class NativeMethods
{
///
- /// WNetAddConnection2 API makes a connection to a network resource
+ /// WNetAddConnection2 API makes a connection to a network resource
/// and can redirect a local device to the network resource.
- /// This API simulates the "new Use" functionality used to connect to
+ /// This API simulates the "new Use" functionality used to connect to
/// network resource.
///
///
- /// The The netResource structure contains information
+ /// The The netResource structure contains information
/// about a network resource.
///
/// The password used to get connected to network resource.
@@ -7055,12 +7055,12 @@ namespace Microsoft.PowerShell.Commands
/// The username used to get connected to network resource.
///
///
- /// The flags parameter is used to indicate if the created network
+ /// The flags parameter is used to indicate if the created network
/// resource has to be persisted or not.
///
- /// If connection is established to the network resource
- /// then success is returned or else the error code describing the
- /// type of failure that occured while establishing
+ /// If connection is established to the network resource
+ /// then success is returned or else the error code describing the
+ /// type of failure that occured while establishing
/// the connection is returned.
[DllImport("mpr.dll", CharSet = CharSet.Unicode)]
internal static extern int WNetAddConnection2(ref NetResource netResource, byte[] password, string username, int flags);
@@ -7075,13 +7075,13 @@ namespace Microsoft.PowerShell.Commands
/// Connection Type.
///
///
- /// Specifies whether the disconnection should occur if there are open files or jobs
- /// on the connection. If this parameter is FALSE, the function fails
+ /// Specifies whether the disconnection should occur if there are open files or jobs
+ /// on the connection. If this parameter is FALSE, the function fails
/// if there are open files or jobs.
///
- /// If connection is removed then success is returned or
- /// else the error code describing the type of failure that occured while
- /// trying to remove the connection is returned.
+ /// If connection is removed then success is returned or
+ /// else the error code describing the type of failure that occured while
+ /// trying to remove the connection is returned.
///
[DllImport("mpr.dll", CharSet = CharSet.Unicode)]
internal static extern int WNetCancelConnection2(string driveName, int flags, bool force);
@@ -7125,7 +7125,7 @@ namespace Microsoft.PowerShell.Commands
internal static extern bool PathIsUNC(string path);
///
- /// The API 'PathIsNetworkPath' is not available in CoreSystem.
+ /// The API 'PathIsNetworkPath' is not available in CoreSystem.
/// This implementation is based on the 'PathIsNetworkPath' API.
///
///
@@ -7176,9 +7176,9 @@ namespace Microsoft.PowerShell.Commands
///
/// The function can obtain the current mapping for a particular MS-DOS device name.
- ///
+ ///
/// If lpDeviceName is non-NULL, the function retrieves information about the particular MS-DOS device specified by lpDeviceName.
- /// The first null-terminated string stored into the buffer is the current mapping for the device.
+ /// The first null-terminated string stored into the buffer is the current mapping for the device.
/// The other null-terminated strings represent undeleted prior mappings for the device.
///
///
@@ -7188,7 +7188,7 @@ namespace Microsoft.PowerShell.Commands
/// The buffer to receive the result of the query.
///
///
- /// The maximum number of characters that can be stored into the buffer
+ /// The maximum number of characters that can be stored into the buffer
///
///
[DllImport(PinvokeDllNames.QueryDosDeviceDllName, CharSet = CharSet.Unicode, SetLastError = true)]
@@ -7299,7 +7299,7 @@ namespace Microsoft.PowerShell.Commands
{
if (output.Count != 1 || output[0].GetType() != typeof(Hashtable))
{
- // unexpected output
+ // unexpected output
Dbg.Diagnostics.Assert(output[0] != null, "Expected an output from the remote call.");
return null;
}
@@ -7311,7 +7311,7 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Defines the values that can be supplied as the encoding parameter in the
+ /// Defines the values that can be supplied as the encoding parameter in the
/// FileSystemContentDynamicParametersBase class.
///
public enum FileSystemCmdletProviderEncoding
@@ -7470,7 +7470,7 @@ namespace Microsoft.PowerShell.Commands
public class FileSystemContentDynamicParametersBase
{
///
- /// Gets or sets the encoding method used when
+ /// Gets or sets the encoding method used when
/// reading data from the file.
///
[Parameter]
@@ -7497,18 +7497,18 @@ namespace Microsoft.PowerShell.Commands
///
/// Converts the stream type string into an Encoding
///
- ///
+ ///
///
/// This is a string representation of the encoding. It can be
/// "string", "unicode", "bigendianunicode", "ascii", "utf7", or "utf8"
- ///
+ ///
/// Note, a ToLowerInvariant is done to the type before comparison is made.
///
- ///
+ ///
///
/// The encoding that was represented by the string
///
- ///
+ ///
///
/// ArgumentException if type is null, empty, or does not represent one
/// of the known encoding types.
@@ -7665,7 +7665,7 @@ namespace Microsoft.PowerShell.Commands
private string _delimiter = "\n";
///
- /// Gets or sets the Wait flag. The wait flag determines if we want
+ /// Gets or sets the Wait flag. The wait flag determines if we want
/// the read-content call to poll (and wait) for changes to the file,
/// rather than exit after the content has been read.
///
@@ -7819,7 +7819,7 @@ namespace Microsoft.PowerShell.Commands
}
[Flags]
- //dwFlagsAndAttributes
+ //dwFlagsAndAttributes
internal enum FileAttributes : uint
{
Readonly = 0x00000001,
@@ -7951,7 +7951,7 @@ namespace Microsoft.PowerShell.Commands
/// Gets the target of the specified reparse point.
///
/// The object of FileInfo or DirectoryInfo type.
- /// The target of the reparse point
+ /// The target of the reparse point
public static IEnumerable GetTarget(PSObject instance)
{
FileSystemInfo fileSysInfo = instance.BaseObject as FileSystemInfo;
@@ -8038,7 +8038,7 @@ namespace Microsoft.PowerShell.Commands
fullName.Append(linkName.ToString());
FileInfo fInfo = new FileInfo(fullName.ToString());
- //Don't add the target link to the list.
+ //Don't add the target link to the list.
if (String.Compare(fInfo.FullName, filePath, StringComparison.OrdinalIgnoreCase) != 0)
links.Add(fInfo.FullName);
@@ -8100,7 +8100,7 @@ namespace Microsoft.PowerShell.Commands
int bytesReturned;
string linkType = null;
- //OACR warning 62001 about using DeviceIOControl has been disabled.
+ //OACR warning 62001 about using DeviceIOControl has been disabled.
// According to MSDN guidance DangerousAddRef() and DangerousRelease() have been used.
handle.DangerousAddRef(ref success);
@@ -8258,7 +8258,7 @@ namespace Microsoft.PowerShell.Commands
{
int bytesReturned;
- //OACR warning 62001 about using DeviceIOControl has been disabled.
+ //OACR warning 62001 about using DeviceIOControl has been disabled.
// According to MSDN guidance DangerousAddRef() and DangerousRelease() have been used.
handle.DangerousAddRef(ref success);
@@ -8275,7 +8275,7 @@ namespace Microsoft.PowerShell.Commands
throw new Win32Exception(lastError);
}
- //Unmarshal to symbolic link to look for tags.
+ //Unmarshal to symbolic link to look for tags.
REPARSE_DATA_BUFFER_SYMBOLICLINK reparseDataBuffer = ClrFacade.PtrToStructure(outBuffer);
if (reparseDataBuffer.ReparseTag != IO_REPARSE_TAG_SYMLINK && reparseDataBuffer.ReparseTag != IO_REPARSE_TAG_MOUNT_POINT)
@@ -8342,7 +8342,7 @@ namespace Microsoft.PowerShell.Commands
mountPoint.ReparseDataLength = (ushort)(mountPointBytes.Length + 12); //Added space for the header and null endo
mountPoint.SubstituteNameOffset = 0;
mountPoint.SubstituteNameLength = (ushort)mountPointBytes.Length;
- mountPoint.PrintNameOffset = (ushort)(mountPointBytes.Length + 2); // 2 as unicode null take 2 bytes.
+ mountPoint.PrintNameOffset = (ushort)(mountPointBytes.Length + 2); // 2 as unicode null take 2 bytes.
mountPoint.PrintNameLength = 0;
mountPoint.PathBuffer = new byte[0x3FF0]; //Buffer for max size.
Array.Copy(mountPointBytes, mountPoint.PathBuffer, mountPointBytes.Length);
@@ -8357,7 +8357,7 @@ namespace Microsoft.PowerShell.Commands
int bytesReturned = 0;
- //OACR warning 62001 about using DeviceIOControl has been disabled.
+ //OACR warning 62001 about using DeviceIOControl has been disabled.
// According to MSDN guidance DangerousAddRef() and DangerousRelease() have been used.
handle.DangerousAddRef(ref success);
@@ -8427,7 +8427,7 @@ namespace Microsoft.PowerShell.Commands
IntPtr dangerousHandle = handle.DangerousGetHandle();
int bytesReturned;
- // Do a FSCTL_GET_REPARSE_POINT first because the ReparseTag could be
+ // Do a FSCTL_GET_REPARSE_POINT first because the ReparseTag could be
// IO_REPARSE_TAG_MOUNT_POINT or IO_REPARSE_TAG_SYMLINK.
// Using the wrong one results in mismatched-tag error.
@@ -8448,7 +8448,7 @@ namespace Microsoft.PowerShell.Commands
ClrFacade.StructureToPtr(junctionData, inBuffer, false);
- // To delete a reparse point:
+ // To delete a reparse point:
// ReparseDataLength must be 0
// inBufferSize must be REPARSE_GUID_DATA_BUFFER_HEADER_SIZE
result = DeviceIoControl(dangerousHandle, FSCTL_DELETE_REPARSE_POINT, inBuffer, REPARSE_GUID_DATA_BUFFER_HEADER_SIZE, IntPtr.Zero, 0, out bytesReturned, IntPtr.Zero);
@@ -8817,8 +8817,8 @@ namespace System.Management.Automation.Internal
function PSCopyFileToRemoteSession
{{
param(
- [string] $copyToFilePath,
- [string] $b64Fragment,
+ [string] $copyToFilePath,
+ [string] $b64Fragment,
[switch] $createFile = $false,
[switch] $emptyFile = $false
)
@@ -8899,7 +8899,7 @@ namespace System.Management.Automation.Internal
[string] $b64Fragment,
[string] $streamName
)
-
+
$op = @{{
BytesWritten = $null
}}
@@ -8973,7 +8973,7 @@ namespace System.Management.Automation.Internal
function PSSetFileMetadata
{{
param (
- [string] $metaDataFilePath,
+ [string] $metaDataFilePath,
[hashtable] $metaDataToSet
)
@@ -9050,10 +9050,10 @@ namespace System.Management.Automation.Internal
# - IsFileInfotrue bool to keep track if the given destination is a FileInfo type.
function PSRemoteDestinationPathIsFile
{{
- param (
+ param (
[string] $isFilePath
)
-
+
$op = @{{
IsFileInfo = $null
}}
@@ -9082,12 +9082,12 @@ namespace System.Management.Automation.Internal
# PathExists is a bool to to keep track of whether the directory already exist.
#
# 1) If DirectoryPath already exists:
- # a) If -Force is specified, force create the directory. Set DirectoryPath to the created directory path.
- # b) If not -Force is specified, then set PathExists to $true.
+ # a) If -Force is specified, force create the directory. Set DirectoryPath to the created directory path.
+ # b) If not -Force is specified, then set PathExists to $true.
# 2) If DirectoryPath does not exist, create it. Set DirectoryPath to the created directory path.
function PSCreateDirectoryOnRemoteSession
{{
- param (
+ param (
[string] $createDirectoryPath,
[switch] $force = $false
)
@@ -9139,7 +9139,7 @@ namespace System.Management.Automation.Internal
$params = $PSCmdlet.MyInvocation.BoundParameters
switch ($PSCmdlet.ParameterSetName)
{{
- ""PSCopyFileToRemoteSession""
+ ""PSCopyFileToRemoteSession""
{{
return PSCopyFileToRemoteSession @params
}}
@@ -9321,7 +9321,7 @@ namespace System.Management.Automation.Internal
function WriteException
{{
param ($ex)
-
+
if ($ex.Exception.InnerException)
{{
Microsoft.PowerShell.Utility\Write-Error -Exception $ex.Exception.InnerException
@@ -9357,14 +9357,14 @@ namespace System.Management.Automation.Internal
try
{{
# Disable the readonly and hidden attributes and try again
- $item = Microsoft.PowerShell.Management\Get-Item $resolvedFilePath
+ $item = Microsoft.PowerShell.Management\Get-Item $resolvedFilePath
if ($item.Attributes.HasFlag([System.IO.FileAttributes]::Hidden))
{{
$isHidden = $true
$item.Attributes = $item.Attributes -band (-bnot ([System.IO.FileAttributes]::Hidden))
}}
-
+
if ($item.Attributes.HasFlag([System.IO.FileAttributes]::ReadOnly))
{{
$isReadOnly = $true
@@ -9380,8 +9380,8 @@ namespace System.Management.Automation.Internal
$e = $_
if (($e.Exception.InnerException -is [System.IO.FileNotFoundException]) -or
($e.Exception.InnerException -is [System.IO.DirectoryNotFoundException]) -or
- ($e.Exception.InnerException -is [System.Security.SecurityException] ) -or
- ($e.Exception.InnerException -is [System.ArgumentException]) -or
+ ($e.Exception.InnerException -is [System.Security.SecurityException] ) -or
+ ($e.Exception.InnerException -is [System.ArgumentException]) -or
($e.Exception.InnerException -is [System.IO.IOException]))
{{
# Write out the original error since we failed to force the copy
@@ -9422,7 +9422,7 @@ namespace System.Management.Automation.Internal
# Returns a hashtable with the following members:
# SourceSupportsAlternateStreams - boolean to keep track of whether the source supports Alternate data streams.
- # Streams - the list of alternate streams
+ # Streams - the list of alternate streams
#
function PSSourceSupportsAlternateStreams
{{
@@ -9482,7 +9482,7 @@ namespace System.Management.Automation.Internal
{{
$metadata.Add('Attributes', $attributes)
}}
-
+
# LastWriteTime
$metadata.Add('LastWriteTime', $item.LastWriteTime)
$metadata.Add('LastWriteTimeUtc', $item.LastWriteTimeUtc)
@@ -9513,7 +9513,7 @@ namespace System.Management.Automation.Internal
return $pathToConvert
}}
- ## A hashtable is returned in the following format:
+ ## A hashtable is returned in the following format:
## Exists - Boolean to keep track if the given path exists.
## Items - The items that Get-Item -Path $path resolves to.
function PSGetPathItems
@@ -9557,7 +9557,7 @@ namespace System.Management.Automation.Internal
{{
Microsoft.PowerShell.Utility\Write-Error -Exception $_.Exception
}}
- }}
+ }}
return $op
}}
@@ -9731,7 +9731,7 @@ namespace System.Management.Automation.Internal
";
internal const string PSValidatePathDefinition = @"
- # Return hashtable in the following format:
+ # Return hashtable in the following format:
# Exists - boolean to keep track if the given path exists
# Root - the root for the given path. If wildcards are used, it returns the first drive root.
# IsAbsolute - boolean to keep track of whether the given path is absolute
@@ -9798,7 +9798,7 @@ namespace System.Management.Automation.Internal
# Now use this path to find its root.
$pathToValidate = $possibleRoot
}
-
+
# Get the root path using Get-Item
$item = Microsoft.PowerShell.Management\Get-Item $pathToValidate -ea SilentlyContinue
if (($item -ne $null) -and ($item[0].PSProvider.Name -eq 'FileSystem'))
@@ -9806,10 +9806,10 @@ namespace System.Management.Automation.Internal
$result['Root'] = SafeGetDriveRoot $item[0].PSDrive
return $result
}
-
+
# If this fails, try to get them via Get-PSDrive
$fileSystemDrives = @(Microsoft.PowerShell.Management\Get-PSDrive -PSProvider FileSystem -ea SilentlyContinue)
-
+
# If this fails, try to get them via Get-PSProvider
if ($fileSystemDrives.Count -eq 0)
{
diff --git a/src/System.Management.Automation/namespaces/FileSystemSecurity.cs b/src/System.Management.Automation/namespaces/FileSystemSecurity.cs
index 6909650746..947a8c50d6 100644
--- a/src/System.Management.Automation/namespaces/FileSystemSecurity.cs
+++ b/src/System.Management.Automation/namespaces/FileSystemSecurity.cs
@@ -15,7 +15,7 @@ namespace Microsoft.PowerShell.Commands
/// The FileSystemProvider provides stateless namespace navigation
/// of the file system.
///
- ///
+ ///
public sealed partial class FileSystemProvider : NavigationCmdletProvider, IContentCmdletProvider, IPropertyCmdletProvider, ISecurityDescriptorCmdletProvider
{
#region ISecurityDescriptorCmdletProvider members
@@ -29,16 +29,16 @@ namespace Microsoft.PowerShell.Commands
/// The path of the item to retrieve. It may be a drive or provider-qualified path and may include.
/// glob characters.
///
- ///
+ ///
///
/// The sections of the security descriptor to include.
///
- ///
+ ///
///
/// Nothing. An object that represents the security descriptor for the item
/// specified by path is written to the context's pipeline.
///
- ///
+ ///
///
/// path is null or empty.
/// path doesn't exist
@@ -89,21 +89,21 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the SecurityDescriptor at the specified path.
///
- ///
+ ///
///
- /// The path of the item to set the security descriptor on.
+ /// The path of the item to set the security descriptor on.
/// It may be a drive or provider-qualified path and may include.
/// glob characters.
///
- ///
+ ///
///
/// The new security descriptor for the item.
///
- ///
+ ///
///
/// path is null or empty.
///
- ///
+ ///
///
/// securitydescriptor is null.
///
@@ -166,7 +166,7 @@ namespace Microsoft.PowerShell.Commands
//
// We can't roll the two steps into one, as the second step can't handle the
// situation where an admin wants to _clear_ the audit entries. It would be nice to
- // detect a difference in audit entries (like we do with Owner and Group,) but
+ // detect a difference in audit entries (like we do with Owner and Group,) but
// retrieving the Audit entries requires SeSecurityPrivilege as well.
try
@@ -231,8 +231,8 @@ namespace Microsoft.PowerShell.Commands
PlatformInvokes.EnableTokenPrivilege("SeRestorePrivilege", ref currentPrivilegeState);
// Transfer it to the new file / directory.
- // We keep these two code branches so that we can have more
- // granular information when we ouput the object type via
+ // We keep these two code branches so that we can have more
+ // granular information when we ouput the object type via
// WriteSecurityDescriptorObject.
if (Directory.Exists(path))
{
@@ -260,16 +260,16 @@ namespace Microsoft.PowerShell.Commands
/// the item specified by the path. If "path" points to a file system directory,
/// then the descriptor returned will be of type DirectorySecurity.
///
- ///
+ ///
///
- /// Path of the item to use to determine the type of resulting
+ /// Path of the item to use to determine the type of resulting
/// SecurityDescriptor.
///
- ///
+ ///
///
/// The sections of the security descriptor to create.
///
- ///
+ ///
///
/// A new ObjectSecurity object of the same type as
/// the item specified by the path.
@@ -295,20 +295,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Creates a new empty security descriptor of the specified type.
///
- ///
+ ///
///
/// The type of Security Descriptor to create. Valid types are
/// "file", "directory," and "container."
///
- ///
+ ///
///
/// The sections of the security descriptor to create.
///
- ///
+ ///
///
/// A new ObjectSecurity object of the specified type.
///
- ///
+ ///
public ObjectSecurity NewSecurityDescriptorOfType(
string type,
AccessControlSections sections)
diff --git a/src/System.Management.Automation/namespaces/FunctionProvider.cs b/src/System.Management.Automation/namespaces/FunctionProvider.cs
index c8391f6184..2bf61f4e44 100644
--- a/src/System.Management.Automation/namespaces/FunctionProvider.cs
+++ b/src/System.Management.Automation/namespaces/FunctionProvider.cs
@@ -16,7 +16,7 @@ namespace Microsoft.PowerShell.Commands
/// This provider is the data accessor for shell functions. It uses
/// the SessionStateProviderBase as the base class to produce a view on
/// session state data.
- ///
+ ///
[CmdletProvider(FunctionProvider.ProviderName, ProviderCapabilities.ShouldProcess)]
[OutputType(typeof(FunctionInfo), ProviderCmdlet = ProviderCmdlet.SetItem)]
[OutputType(typeof(FunctionInfo), ProviderCmdlet = ProviderCmdlet.RenameItem)]
@@ -77,24 +77,24 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the dynamic parameters for the NewItem cmdlet
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An instance of FunctionProviderDynamicParameters which is the dynamic parameters for
/// NewItem.
///
- ///
+ ///
protected override object NewItemDynamicParameters(string path, string type, object newItemValue)
{
return new FunctionProviderDynamicParameters();
@@ -103,20 +103,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the dynamic parameters for the NewItem cmdlet
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An instance of FunctionProviderDynamicParameters which is the dynamic parameters for
/// SetItem.
///
- ///
+ ///
protected override object SetItemDynamicParameters(string path, object value)
{
return new FunctionProviderDynamicParameters();
@@ -129,15 +129,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a function from session state
///
- ///
+ ///
///
/// The name of the function to retrieve.
///
- ///
+ ///
///
/// A ScriptBlock that represents the function.
///
- ///
+ ///
internal override object GetSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -152,19 +152,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the function of the specified name to the specified value
///
- ///
+ ///
///
/// The name of the function to set.
///
- ///
+ ///
///
/// The new value for the function.
///
- ///
+ ///
///
/// If true, the item that was set should be written to WriteItemObject.
///
- ///
+ ///
#pragma warning disable 0162
internal override void SetSessionStateItem(string name, object value, bool writeItem)
{
@@ -274,11 +274,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes the specified function from session state.
///
- ///
+ ///
///
/// The name of the function to remove from session state.
///
- ///
+ ///
internal override void RemoveSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -292,20 +292,20 @@ namespace Microsoft.PowerShell.Commands
/// Since items are often more than their value, this method should
/// be overridden to provide the value for an item
///
- ///
+ ///
///
/// The item to extract the value from.
///
- ///
+ ///
///
/// The value of the specified item.
///
- ///
+ ///
///
/// The default implementation will get
/// the Value property of a DictionaryEntry
///
- ///
+ ///
internal override object GetValueOfItem(object item)
{
Dbg.Diagnostics.Assert(
@@ -326,12 +326,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a flattened view of the functions in session state
///
- ///
+ ///
///
/// An IDictionary representing the flattened view of the functions in
/// session state.
///
- ///
+ ///
internal override IDictionary GetSessionStateTable()
{
return SessionState.Internal.GetFunctionTable();
@@ -341,15 +341,15 @@ namespace Microsoft.PowerShell.Commands
/// Determines if the item can be renamed. Derived classes that need
/// to perform a check should override this method.
///
- ///
+ ///
///
/// The item to verify if it can be renamed.
///
- ///
+ ///
///
/// true if the item can be renamed or false otherwise.
///
- ///
+ ///
internal override bool CanRenameItem(object item)
{
bool result = false;
@@ -387,7 +387,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the option parameter for the function
///
- ///
+ ///
[Parameter]
public ScopedItemOptions Options
{
diff --git a/src/System.Management.Automation/namespaces/IContentProvider.cs b/src/System.Management.Automation/namespaces/IContentProvider.cs
index b5a07564c2..ed889e3b80 100644
--- a/src/System.Management.Automation/namespaces/IContentProvider.cs
+++ b/src/System.Management.Automation/namespaces/IContentProvider.cs
@@ -10,20 +10,20 @@ namespace System.Management.Automation.Provider
/// An interface that can be implemented on a Cmdlet provider to expose an item's
/// content.
///
- ///
+ ///
///
/// An IContentCmdletProvider provider implements a set of methods that allows
/// the use of a set of core commands against the data store that the provider
- /// gives access to. By implementing this interface users can take advantage
+ /// gives access to. By implementing this interface users can take advantage
/// the commands that expose the contents of an item.
/// get-content
/// set-content
/// clear-content
- ///
- /// This interface should only be implemented on derived classes of
- /// , ,
+ ///
+ /// This interface should only be implemented on derived classes of
+ /// , ,
/// , or .
- ///
+ ///
/// A namespace provider should implemented this interface if items in the
/// namespace have content the provide wishes to expose.
///
@@ -32,21 +32,21 @@ namespace System.Management.Automation.Provider
///
/// Gets the content reader for the item at the specified path.
///
- ///
+ ///
///
/// The path to the item to get the content reader for.
///
- ///
+ ///
///
/// Overrides of this method should return an
/// for the item specified by the path.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
+ ///
/// By default overrides of this method should not return a content reader for objects
- /// that are generally hidden from
+ /// that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
@@ -56,17 +56,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// get-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object GetContentReaderDynamicParameters(string path);
@@ -74,25 +74,25 @@ namespace System.Management.Automation.Provider
///
/// Gets the content writer for the item at the specified path.
///
- ///
+ ///
///
/// The path to the item to get the content writer for.
///
- ///
+ ///
///
/// An IContentWriter for the item at the specified path.
///
- ///
+ ///
///
/// Overrides of this method should return an
/// for the item specified by the path.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
+ ///
/// By default overrides of this method should not return a content writer for objects
- /// that are generally hidden from
+ /// that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
@@ -102,17 +102,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// set-content and add-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object GetContentWriterDynamicParameters(string path);
@@ -128,12 +128,12 @@ namespace System.Management.Automation.Provider
///
/// Overrides of this method should remove any content from the object but
/// not remove (delete) the object itself.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not clear or write objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not clear or write objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
@@ -143,17 +143,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// clear-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object ClearContentDynamicParameters(string path);
diff --git a/src/System.Management.Automation/namespaces/IContentReader.cs b/src/System.Management.Automation/namespaces/IContentReader.cs
index 295cd3a955..ad9d360a33 100644
--- a/src/System.Management.Automation/namespaces/IContentReader.cs
+++ b/src/System.Management.Automation/namespaces/IContentReader.cs
@@ -12,7 +12,7 @@ namespace System.Management.Automation.Provider
///
/// A Cmdlet provider that implements the IContentCmdletProvider interface must provide an
/// object that implements this interface when GetContentReader() is called.
- ///
+ ///
/// The interface allows for reading content from an item.
///
public interface IContentReader : IDisposable
@@ -20,19 +20,19 @@ namespace System.Management.Automation.Provider
///
/// Reads the content from the item.
///
- ///
+ ///
///
/// The number of "blocks" of data to be read from the item.
///
- ///
+ ///
///
/// An array of the blocks of data read from the item.
///
- ///
+ ///
///
/// A "block" of content is provider specific. For the file system
/// a "block" may be considered a line of text, a byte, a character, or delimited string.
- ///
+ ///
/// The implementation of this method should break the content down into meaningful blocks
/// that the user may want to manipulate individually. The number of blocks to return is
/// indicated by the parameter.
@@ -43,17 +43,17 @@ namespace System.Management.Automation.Provider
/// Moves the current "block" to be read to a position relative to a place
/// in the reader.
///
- ///
+ ///
///
/// An offset of the number of blocks to seek from the origin.
///
- ///
+ ///
///
/// The place in the stream to start the seek from.
///
- ///
+ ///
///
- /// The implementation of this method moves the content reader
+ /// The implementation of this method moves the content reader
/// number of blocks from the specified . See
/// for a description of what a block is.
///
@@ -63,9 +63,9 @@ namespace System.Management.Automation.Provider
/// Closes the reader. Further reads should fail if the reader
/// has been closed.
///
- ///
+ ///
///
- /// The implementation of this method should close any resources held open by the
+ /// The implementation of this method should close any resources held open by the
/// reader.
///
void Close();
diff --git a/src/System.Management.Automation/namespaces/IContentWriter.cs b/src/System.Management.Automation/namespaces/IContentWriter.cs
index cd88d03efc..f319fccb2c 100644
--- a/src/System.Management.Automation/namespaces/IContentWriter.cs
+++ b/src/System.Management.Automation/namespaces/IContentWriter.cs
@@ -12,7 +12,7 @@ namespace System.Management.Automation.Provider
///
/// A Cmdlet provider that implements the IContentCmdletProvider interface must provide an
/// object that implements this interface when GetContentWriter() is called.
- ///
+ ///
/// The interface allows for writing content to an item.
///
public interface IContentWriter : IDisposable
@@ -20,22 +20,22 @@ namespace System.Management.Automation.Provider
///
/// Writes content to the item.
///
- ///
+ ///
///
/// An array of content "blocks" to be written to the item.
///
- ///
+ ///
///
/// The blocks of content that were successfully written to the item.
///
- ///
+ ///
///
/// A "block" of content is provider specific. For the file system
/// a "block" may be considered a byte, a character, or delimited string.
- ///
- /// The implementation of this method should treat each element in the
+ ///
+ /// The implementation of this method should treat each element in the
/// parameter as a block. Each additional
- /// call to this method should append any new values to the content
+ /// call to this method should append any new values to the content
/// writer's current location until is called.
///
IList Write(IList content);
@@ -44,17 +44,17 @@ namespace System.Management.Automation.Provider
/// Moves the current "block" to be written to a position relative to a place
/// in the writer.
///
- ///
+ ///
///
/// An offset of the number of blocks to seek from the origin.
///
- ///
+ ///
///
/// The place in the stream to start the seek from.
///
- ///
+ ///
///
- /// The implementation of this method moves the content writer
+ /// The implementation of this method moves the content writer
/// number of blocks from the specified . See
/// for a description of what a block is.
///
@@ -64,9 +64,9 @@ namespace System.Management.Automation.Provider
/// Closes the writer. Further writes should fail if the writer
/// has been closed.
///
- ///
+ ///
///
- /// The implementation of this method should close any resources held open by the
+ /// The implementation of this method should close any resources held open by the
/// writer.
///
void Close();
diff --git a/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs b/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs
index 23969e4bfb..bdfa2ed8a0 100644
--- a/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs
+++ b/src/System.Management.Automation/namespaces/IDynamicPropertyProvider.cs
@@ -10,20 +10,20 @@ namespace System.Management.Automation.Provider
/// An interface that can be implemented on a Cmdlet provider to expose the dynamic
/// manipulation of properties.
///
- ///
+ ///
///
/// An IDynamicPropertyCmdletProvider provider implements a set of methods that allows
/// the use of a set of core commands against the data store that the provider
- /// gives access to. By implementing this interface users can take advantage
+ /// gives access to. By implementing this interface users can take advantage
/// the commands that expose the creation and deletion of properties on an item.
/// rename-itemproperty
/// remove-itemproperty
/// new-itemproperty
/// etc.
- /// This interface should only be implemented on derived classes of
- /// , ,
+ /// This interface should only be implemented on derived classes of
+ /// , ,
/// , or .
- ///
+ ///
/// A Cmdlet provider should implemented this interface if items in the
/// namespace have dynamic properties the provide wishes to expose.
///
@@ -43,7 +43,7 @@ namespace System.Management.Automation.Provider
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -52,16 +52,16 @@ namespace System.Management.Automation.Provider
///
/// Nothing. The new property that was created should be passed to the WritePropertyObject method.
///
- ///
+ ///
///
- /// Providers override this method to give the user the ability to add properties to provider objects
+ /// Providers override this method to give the user the ability to add properties to provider objects
/// using the new-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not create new properties on objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not create new properties on objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
@@ -75,19 +75,19 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// new-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be created.
///
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -95,9 +95,9 @@ namespace System.Management.Automation.Provider
///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object NewPropertyDynamicParameters(
@@ -109,28 +109,28 @@ namespace System.Management.Automation.Provider
///
/// Removes a property on the item specified by the path.
///
- ///
+ ///
///
/// The path to the item on which the property should be removed.
///
- ///
+ ///
///
/// The name of the property to be removed.
///
- ///
+ ///
///
/// Nothing.
///
- ///
+ ///
///
- /// Providers override this method to give the user the ability to remove properties from provider objects
+ /// Providers override this method to give the user the ability to remove properties from provider objects
/// using the remove-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not remove properties on objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not remove properties on objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
@@ -142,21 +142,21 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// remove-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be removed.
///
///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object RemovePropertyDynamicParameters(
@@ -182,20 +182,20 @@ namespace System.Management.Automation.Provider
///
/// Nothing. The new property that was renamed should be passed to the WritePropertyObject method.
///
- ///
+ ///
///
- /// Providers override this method to give the user the ability to rename properties of provider objects
+ /// Providers override this method to give the user the ability to rename properties of provider objects
/// using the rename-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not rename properties on objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not rename properties on objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
- ///
+ ///
void RenameProperty(
string path,
string sourceProperty,
@@ -205,12 +205,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// rename-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The property to rename.
///
@@ -221,9 +221,9 @@ namespace System.Management.Automation.Provider
///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object RenamePropertyDynamicParameters(
@@ -232,7 +232,7 @@ namespace System.Management.Automation.Provider
string destinationProperty);
///
- /// Copies a property of the item at the specified path to a new property on the
+ /// Copies a property of the item at the specified path to a new property on the
/// destination item.
///
///
@@ -255,16 +255,16 @@ namespace System.Management.Automation.Provider
///
/// Nothing. The new property that was copied to should be passed to the WritePropertyObject method.
///
- ///
+ ///
///
- /// Providers override this method to give the user the ability to copy properties of provider objects
+ /// Providers override this method to give the user the ability to copy properties of provider objects
/// using the copy-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not copy properties from or to objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not copy properties from or to objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
@@ -278,12 +278,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// copy-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property to copy.
///
@@ -298,9 +298,9 @@ namespace System.Management.Automation.Provider
///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object CopyPropertyDynamicParameters(
@@ -324,7 +324,7 @@ namespace System.Management.Automation.Provider
///
/// The path to the item on which to move the property to.
///
- ///
+ ///
///
/// The destination property to move to.
///
@@ -332,16 +332,16 @@ namespace System.Management.Automation.Provider
///
/// Nothing. The new property that was created should be passed to the WritePropertyObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to move properties from one provider object
/// to another using the move-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not move properties on or to objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not move properties on or to objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
///
@@ -355,12 +355,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// move-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property to copy.
///
@@ -375,9 +375,9 @@ namespace System.Management.Automation.Provider
///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object MovePropertyDynamicParameters(
diff --git a/src/System.Management.Automation/namespaces/IPermissionProvider.cs b/src/System.Management.Automation/namespaces/IPermissionProvider.cs
index 94c8dfc975..2841ce144b 100644
--- a/src/System.Management.Automation/namespaces/IPermissionProvider.cs
+++ b/src/System.Management.Automation/namespaces/IPermissionProvider.cs
@@ -13,35 +13,35 @@ namespace System.Management.Automation.Provider
/// with namespaces that support security descriptors. The methods
/// on this interface allow a common set of commands to manage the security
/// on any namespace that supports this interface.
- /// This interface should only be implemented on derived classes of
- /// , ,
+ /// This interface should only be implemented on derived classes of
+ /// , ,
/// , or .
///
- ///
+ ///
///
/// A namespace provider should implement this interface if items in the
/// namespace are protected by Security Descriptors.
///
- ///
+ ///
public interface ISecurityDescriptorCmdletProvider
{
///
/// Gets the security descriptor for the item at the specified path.
///
- ///
+ ///
///
/// The path of the item to from which to retrieve the security descriptor.
///
- ///
+ ///
///
/// The sections of the security descriptor to retrieve, if your provider
/// supports them.
///
- ///
+ ///
///
- /// Nothing. Write the security descriptor to the context's pipeline for
- /// the item specified by the path using the WriteSecurityDescriptorObject
- /// method.
+ /// Nothing. Write the security descriptor to the context's pipeline for
+ /// the item specified by the path using the WriteSecurityDescriptorObject
+ /// method.
///
void GetSecurityDescriptor(
string path,
@@ -50,42 +50,42 @@ namespace System.Management.Automation.Provider
///
/// Sets the security descriptor for the item at the specified path.
///
- ///
+ ///
///
/// The path of the item to for which to set the security descriptor.
///
- ///
+ ///
///
/// The new security descriptor for the item. This should replace the
/// previously existing security descriptor.
///
- ///
+ ///
///
/// Nothing. After setting the security descriptor to the value passed in,
- /// write the new security descriptor to the context's pipeline for the
+ /// write the new security descriptor to the context's pipeline for the
/// item specified by the path using the WriteSecurityDescriptorObject method.
///
- ///
+ ///
void SetSecurityDescriptor(
string path,
ObjectSecurity securityDescriptor);
///
/// Creates a new empty security descriptor of the same type as
- /// the item specified by the path. For example, if "path" points
- /// to a file system directory, the descriptor returned will be
+ /// the item specified by the path. For example, if "path" points
+ /// to a file system directory, the descriptor returned will be
/// of type DirectorySecurity.
///
- ///
+ ///
///
- /// Path of the item to use to determine the type of resulting
+ /// Path of the item to use to determine the type of resulting
/// SecurityDescriptor.
///
- ///
+ ///
///
/// The sections of the security descriptor to create.
///
- ///
+ ///
///
/// A new ObjectSecurity object of the same type as
/// the item specified by the path.
@@ -99,20 +99,20 @@ namespace System.Management.Automation.Provider
/// This method is used as a convenience function for consumers of
/// your provider.
///
- ///
+ ///
///
/// The type of Security Descriptor to create. Your provider should
- /// understand a string representation for each of the types of
+ /// understand a string representation for each of the types of
/// SecurityDescriptors that it supports. For example, the File System
/// provider performs a case-insensitive comparison against "file" for a
- /// FileSecurity descriptor, and "directory" or "container" for a
+ /// FileSecurity descriptor, and "directory" or "container" for a
/// DirectorySecurity descriptor.
///
- ///
+ ///
///
/// The sections of the security descriptor to create.
///
- ///
+ ///
///
/// A new ObjectSecurity object of the specified type.
///
diff --git a/src/System.Management.Automation/namespaces/IPropertiesProvider.cs b/src/System.Management.Automation/namespaces/IPropertiesProvider.cs
index ca0c90ed4f..d3ac44ffde 100644
--- a/src/System.Management.Automation/namespaces/IPropertiesProvider.cs
+++ b/src/System.Management.Automation/namespaces/IPropertiesProvider.cs
@@ -11,19 +11,19 @@ namespace System.Management.Automation.Provider
///
/// An interface that can be implemented by a Cmdlet provider to expose properties of an item.
///
- ///
+ ///
///
/// An IPropertyCmdletProvider provider implements a set of methods that allows
/// the use of a set of core commands against the data store that the provider
- /// gives access to. By implementing this interface users can take advantage
+ /// gives access to. By implementing this interface users can take advantage
/// the commands that expose the contents of an item.
/// get-itemproperty
/// set-itemproperty
/// etc.
- /// This interface should only be implemented on derived classes of
- /// , ,
+ /// This interface should only be implemented on derived classes of
+ /// , ,
/// , or .
- ///
+ ///
/// A namespace provider should implemented this interface if items in the
/// namespace have properties the provide wishes to expose.
///
@@ -32,32 +32,32 @@ namespace System.Management.Automation.Provider
///
/// Gets the properties of the item specified by the path.
///
- ///
+ ///
///
/// The path to the item to retrieve properties from.
///
- ///
+ ///
///
/// A list of properties that should be retrieved. If this parameter is null
/// or empty, all properties should be retrieved.
///
- ///
+ ///
///
/// Nothing. The property that was retrieved should be passed to the WritePropertyObject method.
///
- ///
+ ///
///
- /// Providers override this method to give the user the ability to add properties to provider objects
+ /// Providers override this method to give the user the ability to add properties to provider objects
/// using the get-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not retrieve properties from objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not retrieve properties from objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
- ///
+ ///
/// An can be used as a property bag for the
/// properties that need to be returned if the contains
/// multiple properties to write.
@@ -70,22 +70,22 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// get-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// A list of properties that should be retrieved. If this parameter is null
/// or empty, all properties should be retrieved.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object GetPropertyDynamicParameters(
@@ -95,36 +95,36 @@ namespace System.Management.Automation.Provider
///
/// Sets the specified properties of the item at the specified path.
///
- ///
+ ///
///
/// The path to the item to set the properties on.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// Nothing. The property that was set should be passed to the WritePropertyObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to set the value of provider object properties
/// using the set-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not retrieve properties from objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not retrieve properties from objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
- ///
+ ///
/// An can be used as a property bag for the
/// properties that need to be returned if the contains
/// multiple properties to write.
- ///
+ ///
/// is a property bag containing the properties that should be set.
/// See for more information.
///
@@ -136,22 +136,22 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// get-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object SetPropertyDynamicParameters(
@@ -173,19 +173,19 @@ namespace System.Management.Automation.Provider
///
/// Nothing. The property that was cleared should be passed to the WritePropertyObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to clear the value of provider object properties
/// using the clear-itemproperty cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not clear properties from objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not clear properties from objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
- ///
+ ///
/// An can be used as a property bag for the
/// properties that need to be returned if the contains
/// multiple properties to write.
@@ -198,21 +198,21 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to the
/// clear-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property to clear.
///
///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
object ClearPropertyDynamicParameters(
diff --git a/src/System.Management.Automation/namespaces/ItemProviderBase.cs b/src/System.Management.Automation/namespaces/ItemProviderBase.cs
index 844dad0eea..1e846bf1c2 100644
--- a/src/System.Management.Automation/namespaces/ItemProviderBase.cs
+++ b/src/System.Management.Automation/namespaces/ItemProviderBase.cs
@@ -11,13 +11,13 @@ namespace System.Management.Automation.Provider
///
/// The base class for Cmdlet providers that expose an item as an MSH path.
///
- ///
+ ///
///
/// The ItemCmdletProvider class is a base class that a provider derives from to
/// inherit a set of methods that allows the Monad engine
/// to provide a core set of commands for getting and setting of data on one or
/// more items. A provider should derive from this class if they want
- /// to take advantage of the item core commands that are
+ /// to take advantage of the item core commands that are
/// already implemented by the Monad engine. This allows users to have common
/// commands and semantics across multiple providers.
///
@@ -30,15 +30,15 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
- /// The path to the item to retrieve.
+ /// The path to the item to retrieve.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing is returned, but all objects should be written to the WriteObject method.
///
@@ -56,24 +56,24 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the get-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
- ///
+ ///
internal object GetItemDynamicParameters(string path, CmdletProviderContext context)
{
Context = context;
@@ -85,23 +85,23 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to set.
///
- ///
+ ///
///
/// The value of the item specified by the path.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// The item that was set at the specified path.
///
- ///
+ ///
internal void SetItem(
string path,
object value,
@@ -120,28 +120,28 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the set-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The value of the item specified by the path.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
- ///
+ ///
internal object SetItemDynamicParameters(
string path,
object value,
@@ -156,15 +156,15 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to clear.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
internal void ClearItem(
string path,
CmdletProviderContext context)
@@ -182,24 +182,24 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the clear-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
- ///
+ ///
internal object ClearItemDynamicParameters(
string path,
CmdletProviderContext context)
@@ -214,15 +214,15 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to perform the default action on.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
internal void InvokeDefaultAction(
string path,
CmdletProviderContext context)
@@ -240,24 +240,24 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the invoke-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
- ///
+ ///
internal object InvokeDefaultActionDynamicParameters(
string path,
CmdletProviderContext context)
@@ -271,19 +271,19 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
- /// The path to the item to see if it exists.
+ /// The path to the item to see if it exists.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// True if the item exists, false otherwise.
///
- ///
+ ///
internal bool ItemExists(string path, CmdletProviderContext context)
{
Context = context;
@@ -308,24 +308,24 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the test-path cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
- ///
+ ///
internal object ItemExistsDynamicParameters(
string path,
CmdletProviderContext context)
@@ -339,27 +339,27 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
- /// The path to check for validity.
+ /// The path to check for validity.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// True if the path is syntactically and semantically valid for the provider, or
/// false otherwise.
///
- ///
+ ///
///
/// This test should not verify the existence of the item at the path. It should
/// only perform syntactic and semantic validation of the path. For instance, for
/// the file system provider, that path should be canonicalized, syntactically verified,
/// and ensure that the path does not refer to a device.
///
- ///
+ ///
internal bool IsValidPath(string path, CmdletProviderContext context)
{
Context = context;
@@ -375,20 +375,20 @@ namespace System.Management.Automation.Provider
/// context of the command can be set. Only called for providers that declare
/// the ExpandWildcards capability.
///
- ///
+ ///
///
/// The path to expand. Expansion must be consistent with the wildcarding
/// rules of PowerShell's WildcardPattern class.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// A list of provider paths that this path expands to. They must all exist.
///
- ///
+ ///
internal string[] ExpandPath(string path, CmdletProviderContext context)
{
Context = context;
@@ -405,27 +405,27 @@ namespace System.Management.Automation.Provider
///
/// Gets the item at the specified path.
///
- ///
+ ///
///
- /// The path to the item to retrieve.
+ /// The path to the item to retrieve.
///
- ///
+ ///
///
/// Nothing is returned, but all objects should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user access to the provider objects using
/// the get-item and get-childitem cmdlets.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not write objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not write objects that are generally hidden from
/// the user unless the Force property is set to true. For instance, the FileSystem provider should
- /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
- ///
+ /// not call WriteItemObject for hidden or system files unless the Force property is set to true.
+ ///
/// The default implementation of this method throws an .
///
protected virtual void GetItem(string path)
@@ -442,17 +442,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the get-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object GetItemDynamicParameters(string path)
@@ -466,31 +466,31 @@ namespace System.Management.Automation.Provider
///
/// Sets the item specified by the path.
///
- ///
+ ///
///
/// The path to the item to set.
///
- ///
+ ///
///
/// The value of the item specified by the path.
///
- ///
+ ///
///
/// Nothing. The item that was set should be passed to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to modify provider objects using
/// the set-item cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not set or write objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not set or write objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void SetItem(
@@ -509,21 +509,21 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the set-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The value of the item specified by the path.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object SetItemDynamicParameters(string path, object value)
@@ -537,27 +537,27 @@ namespace System.Management.Automation.Provider
///
/// Clears the item specified by the path.
///
- ///
+ ///
///
/// The path to the item to clear.
///
- ///
+ ///
///
/// Nothing. The item that was cleared should be passed to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to clear provider objects using
/// the clear-item cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not clear or write objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not clear or write objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void ClearItem(
@@ -575,17 +575,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the clear-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object ClearItemDynamicParameters(string path)
@@ -597,32 +597,32 @@ namespace System.Management.Automation.Provider
} // ClearItemDynamicParameters
///
- /// Invokes the default action on the specified item.
+ /// Invokes the default action on the specified item.
///
- ///
+ ///
///
/// The path to the item to perform the default action on.
///
- ///
+ ///
///
/// Nothing. The item that was set should be passed to the WriteItemObject method.
///
- ///
+ ///
///
/// The default implementation does nothing.
- ///
+ ///
/// Providers override this method to give the user the ability to invoke provider objects using
/// the invoke-item cmdlet. Think of the invocation as a double click in the Windows Shell. This
/// method provides a default action based on the path that was passed.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not invoke objects that are generally hidden from
+ ///
+ /// By default overrides of this method should not invoke objects that are generally hidden from
/// the user unless the Force property is set to true. An error should be sent to the WriteError method if
/// the path represents an item that is hidden from the user and Force is set to false.
- ///
+ ///
protected virtual void InvokeDefaultAction(
string path)
{
@@ -638,17 +638,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the invoke-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object InvokeDefaultActionDynamicParameters(string path)
@@ -662,32 +662,32 @@ namespace System.Management.Automation.Provider
///
/// Determines if an item exists at the specified path.
///
- ///
+ ///
///
- /// The path to the item to see if it exists.
+ /// The path to the item to see if it exists.
///
- ///
+ ///
///
/// True if the item exists, false otherwise.
///
- ///
+ ///
///
/// Nothing. The item that was set should be passed to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to check for the existence of provider objects using
/// the set-item cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
+ ///
/// The implementation of this method should take into account any form of access to the object that may
- /// make it visible to the user. For instance, if a user has write access to a file in the file system
+ /// make it visible to the user. For instance, if a user has write access to a file in the file system
/// provider bug not read access, the file still exists and the method should return true. Sometimes this
/// may require checking the parent to see if the child can be enumerated.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual bool ItemExists(string path)
@@ -704,17 +704,17 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the test-path cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object ItemExistsDynamicParameters(string path)
@@ -729,16 +729,16 @@ namespace System.Management.Automation.Provider
/// Providers must override this method to verify the syntax and semantics
/// of their paths.
///
- ///
+ ///
///
- /// The path to check for validity.
+ /// The path to check for validity.
///
- ///
+ ///
///
/// True if the path is syntactically and semantically valid for the provider, or
/// false otherwise.
///
- ///
+ ///
///
/// This test should not verify the existence of the item at the path. It should
/// only perform syntactic and semantic validation of the path. For instance, for
@@ -752,16 +752,16 @@ namespace System.Management.Automation.Provider
/// paths that the path represents.Only called for providers that declare
/// the ExpandWildcards capability.
///
- ///
+ ///
///
/// The path to expand. Expansion must be consistent with the wildcarding
/// rules of PowerShell's WildcardPattern class.
///
- ///
+ ///
///
/// A list of provider paths that this path expands to. They must all exist.
///
- ///
+ ///
protected virtual string[] ExpandPath(string path)
{
using (PSTransactionManager.GetEngineProtectionScope())
diff --git a/src/System.Management.Automation/namespaces/LocationGlobber.cs b/src/System.Management.Automation/namespaces/LocationGlobber.cs
index 05c28b4825..9234fca198 100644
--- a/src/System.Management.Automation/namespaces/LocationGlobber.cs
+++ b/src/System.Management.Automation/namespaces/LocationGlobber.cs
@@ -46,17 +46,17 @@ namespace System.Management.Automation
#region Constructor
///
- /// Constructs an instance of the LocationGlobber from the current SessionState
+ /// Constructs an instance of the LocationGlobber from the current SessionState
///
- ///
+ ///
///
/// The instance of session state on which this location globber acts.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal LocationGlobber(SessionState sessionState)
{
if (sessionState == null)
@@ -76,52 +76,52 @@ namespace System.Management.Automation
/// Converts a PowerShell path containing glob characters to PowerShell paths that match
/// the glob string.
///
- ///
+ ///
///
/// A PowerShell path containing glob characters.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The provider instance used to resolve the path.
///
- ///
+ ///
///
/// The PowerShell paths that match the glob string.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
- /// If is a provider-qualified path
+ /// If is a provider-qualified path
/// and the specified provider does not exist.
///
- ///
+ ///
///
/// If the provider throws an exception when its MakePath gets
/// called.
///
- ///
+ ///
///
/// If the provider does not support multiple items.
///
- ///
+ ///
///
/// If the home location for the provider is not set and
/// starts with a "~".
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
internal Collection GetGlobbedMonadPathsFromMonadPath(
string path,
bool allowNonexistingPaths,
@@ -137,61 +137,61 @@ namespace System.Management.Automation
/// Converts a PowerShell path containing glob characters to PowerShell paths that match
/// the glob string.
///
- ///
+ ///
///
/// A PowerShell path containing glob characters.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// The instance of the provider used to resolve the path.
///
- ///
+ ///
///
/// The PowerShell paths that match the glob string.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
- /// If is a provider-qualified path
+ /// If is a provider-qualified path
/// and the specified provider does not exist.
///
- ///
+ ///
///
/// If the provider throws an exception when its MakePath gets
/// called.
///
- ///
+ ///
///
/// If the provider does not support multiple items.
///
- ///
+ ///
///
/// If the home location for the provider is not set and
/// starts with a "~".
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
internal Collection GetGlobbedMonadPathsFromMonadPath(
string path,
bool allowNonexistingPaths,
@@ -623,71 +623,71 @@ namespace System.Management.Automation
/// Converts a PowerShell path containing glob characters to the provider
/// specific paths matching the glob strings.
///
- ///
+ ///
///
/// A PowerShell path containing glob characters.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// Returns the information of the provider that was used to do the globbing.
///
- ///
+ ///
///
/// The instance of the provider used to resolve the path.
///
- ///
+ ///
///
/// An array of provider specific paths that matched the PowerShell glob path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider associated with the threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal Collection GetGlobbedProviderPathsFromMonadPath(
string path,
bool allowNonexistingPaths,
@@ -710,75 +710,75 @@ namespace System.Management.Automation
/// Converts a PowerShell path containing glob characters to the provider
/// specific paths matching the glob strings.
///
- ///
+ ///
///
/// A PowerShell path containing glob characters.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// Returns the information of the provider that was used to do the globbing.
///
- ///
+ ///
///
/// The instance of the provider used to resolve the path.
///
- ///
+ ///
///
/// An array of provider specific paths that matched the PowerShell glob path.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider associated with the threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal Collection GetGlobbedProviderPathsFromMonadPath(
string path,
bool allowNonexistingPaths,
@@ -849,16 +849,16 @@ namespace System.Management.Automation
/// will perform the globbing using the specified provider and return the
/// matching provider specific paths.
///
- ///
+ ///
///
/// The path containing the glob characters to resolve.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The ID of the provider to use to do the resolution.
///
@@ -866,43 +866,43 @@ namespace System.Management.Automation
///
/// The instance of the provider that was used to resolve the path.
///
- ///
+ ///
///
/// An array of provider specific paths that match the glob path.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If references a provider that does not exist.
///
- ///
+ ///
///
/// If the references a provider that is not
/// a ContainerCmdletProvider.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal Collection GetGlobbedProviderPathsFromProviderPath(
string path,
bool allowNonexistingPaths,
@@ -945,61 +945,61 @@ namespace System.Management.Automation
/// will perform the globbing using the specified provider and return the
/// matching provider specific paths.
///
- ///
+ ///
///
/// The path containing the glob characters to resolve. The path must be in the
/// form providerId::providerPath.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The provider identifier for the provider to use to do the globbing.
///
- ///
+ ///
///
/// The context under which the command is occurring.
///
- ///
+ ///
///
/// An instance of the provider that was used to perform the globbing.
///
- ///
+ ///
///
/// An array of provider specific paths that match the glob path.
///
- ///
+ ///
///
/// If , , or
/// is null.
///
- ///
+ ///
///
/// If references a provider that does not exist.
///
- ///
+ ///
///
/// If the references a provider that is not
/// a ContainerCmdletProvider.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal Collection GetGlobbedProviderPathsFromProviderPath(
string path,
bool allowNonexistingPaths,
@@ -1047,52 +1047,52 @@ namespace System.Management.Automation
/// Gets a provider specific path when given an Msh path without resolving the
/// glob characters.
///
- ///
+ ///
///
/// An Msh path.
///
- ///
+ ///
///
/// A provider specific path that the Msh path represents.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal string GetProviderPath(string path)
{
ProviderInfo provider = null;
@@ -1104,57 +1104,57 @@ namespace System.Management.Automation
/// Gets a provider specific path when given an Msh path without resolving the
/// glob characters.
///
- ///
+ ///
///
/// An Msh path.
///
- ///
+ ///
///
/// The information of the provider that was used to resolve the path.
///
- ///
+ ///
///
/// A provider specific path that the Msh path represents.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal string GetProviderPath(string path, out ProviderInfo provider)
{
if (path == null)
@@ -1188,57 +1188,57 @@ namespace System.Management.Automation
/// Gets a provider specific path when given an Msh path without resolving the
/// glob characters.
///
- ///
+ ///
///
/// An Msh path.
///
- ///
+ ///
///
/// The context of the command.
///
- ///
+ ///
///
/// A provider specific path that the Msh path represents.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal string GetProviderPath(string path, CmdletProviderContext context)
{
if (path == null)
@@ -1257,61 +1257,61 @@ namespace System.Management.Automation
///
/// Returns a provider specific path for given PowerShell path.
///
- ///
+ ///
///
/// Either a PowerShell path or a provider path in the form providerId::providerPath
///
- ///
+ ///
///
/// The command context under which this operation is occurring.
///
- ///
+ ///
///
/// This parameter is filled with the provider information for the given path.
///
- ///
+ ///
///
- /// This parameter is filled with the PowerShell drive that represents the given path. If a
+ /// This parameter is filled with the PowerShell drive that represents the given path. If a
/// provider path is given drive will be null.
///
- ///
+ ///
///
/// The provider specific path generated from the given path.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
internal string GetProviderPath(
string path,
CmdletProviderContext context,
@@ -1462,19 +1462,19 @@ namespace System.Management.Automation
/// two colons in a row. Anything before the colons is considered the provider ID,
/// and everything after is considered a namespace specific path.
///
- ///
+ ///
///
/// The path to check to see if it is a provider path.
///
- ///
+ ///
///
/// True if the path is a provider path, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal static bool IsProviderQualifiedPath(string path)
{
string providerId = null;
@@ -1486,11 +1486,11 @@ namespace System.Management.Automation
/// two colons in a row. Anything before the colons is considered the provider ID,
/// and everything after is considered a namespace specific path.
///
- ///
+ ///
///
/// The path to check to see if it is a provider path.
///
- ///
+ ///
///
/// The name of the provider if the path is a provider qualified path.
///
@@ -1498,11 +1498,11 @@ namespace System.Management.Automation
///
/// True if the path is a provider path, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal static bool IsProviderQualifiedPath(string path, out string providerId)
{
// Verify parameters
@@ -1595,19 +1595,19 @@ namespace System.Management.Automation
///
/// Determines if the given path is relative or absolute
///
- ///
+ ///
///
/// The path used in the determination
///
- ///
+ ///
///
/// true if the path is an absolute path, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal static bool IsAbsolutePath(string path)
{
// Verify parameters
@@ -1677,20 +1677,20 @@ namespace System.Management.Automation
///
/// Determines if the given path is relative or absolute
///
- ///
+ ///
///
/// The path used in the determination
///
- ///
+ ///
///
/// If the path is absolute, this out parameter will be the
/// drive name of the drive that is referenced.
///
- ///
+ ///
///
/// true if the path is an absolute path, false otherwise.
///
- ///
+ ///
internal bool IsAbsolutePath(string path, out string driveName)
{
// Verify parameters
@@ -1796,19 +1796,19 @@ namespace System.Management.Automation
///
/// Removes the back tick "`" from any of the glob characters in the path.
///
- ///
+ ///
///
/// The path to remove the glob escaping from.
///
- ///
+ ///
///
/// The path with the glob characters unescaped.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
private static string RemoveGlobEscaping(string path)
{
if (path == null)
@@ -1829,36 +1829,36 @@ namespace System.Management.Automation
/// by the shell. For instance, "default", "current", "global", and "scope[##]" are scopes
/// for variables and are considered shell virtual drives.
///
- ///
+ ///
///
/// The name of the drive to check to see if it is a shell virtual drive.
///
- ///
+ ///
///
/// This out parameter is filled with the scope that the drive name represents.
/// It will be null if the driveName does not represent a scope.
///
- ///
+ ///
///
/// true, if the drive name is a shell virtual drive like "Default" or "global",
/// false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// The comparison is done using a case-insensitive comparison using the
/// Invariant culture.
- ///
+ ///
/// This is internal so that it is accessible to SessionState.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal bool IsShellVirtualDrive(string driveName, out SessionStateScope scope)
{
if (driveName == null)
@@ -1903,38 +1903,38 @@ namespace System.Management.Automation
/// Gets a provider specific path that represents the specified path and is relative
/// to the root of the PowerShell drive.
///
- ///
+ ///
///
/// Can be a relative or absolute path.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// Escape the wildcards in the current location. Use when this path will be
/// passed through globbing.
///
- ///
+ ///
///
/// This out parameter returns the drive that was specified
/// by the . If is
/// an absolute path this value may be something other than
/// the current working drive.
- ///
+ ///
/// If the path refers to a non-existent drive, this parameter is set to null, and an exception is thrown.
- ///
+ ///
///
- ///
+ ///
///
/// The provider instance that was used.
///
- ///
+ ///
///
/// A provider specific relative path to the root of the drive.
///
- ///
+ ///
///
/// The path is parsed to determine if it is a relative path to the
/// current working drive or if it is an absolute path. If
@@ -1945,33 +1945,33 @@ namespace System.Management.Automation
/// drive. The provider specific path is then generated the same as the
/// relative path using the specified drive instead of the
/// current working drive.
- ///
+ ///
/// This is internal so that it can be called from SessionState
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If the provider is not a NavigationCmdletProvider.
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
internal string GetDriveRootRelativePathFromPSPath(
string path,
CmdletProviderContext context,
@@ -2166,11 +2166,11 @@ namespace System.Management.Automation
/// Builds a provider specific path from the current working
/// directory using the specified relative path
///
- ///
+ ///
///
/// The drive to generate the provider specific path from.
///
- ///
+ ///
///
/// The relative path to add to the absolute path in the drive.
///
@@ -2179,40 +2179,40 @@ namespace System.Management.Automation
/// Escape the wildcards in the current location. Use when this path will be
/// passed through globbing.
///
- ///
+ ///
///
/// An instance of the provider to use if MakePath or GetParentPath
/// need to be called.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// A string with the joined current working path and relative
/// path.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the provider specified by threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If the provider is not a NavigationCmdletProvider.
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
internal string GenerateRelativePath(
PSDriveInfo drive,
string path,
@@ -2257,7 +2257,7 @@ namespace System.Management.Automation
const string currentDirRelativeSymbolBackslash = ".\\";
const string currentDirRelativeSymbolForwardslash = "./";
- // If the path starts with the "\" then it is
+ // If the path starts with the "\" then it is
// relative to the root of the drive.
// We don't want to process other relative path
// symbols in this case
@@ -2328,7 +2328,7 @@ namespace System.Management.Automation
"Parent path = {0}",
driveRootRelativeWorkingPath);
- // remove the parent path symbol from the
+ // remove the parent path symbol from the
// relative path
path =
@@ -2471,33 +2471,33 @@ namespace System.Management.Automation
/// Uses the drive and a relative working path to construct
/// a string which has a fully qualified provider specific path
///
- ///
+ ///
///
/// The drive to use as the root of the path.
///
- ///
+ ///
///
/// The relative working directory to the specified drive.
///
- ///
+ ///
///
/// The context which the core command is running.
///
- ///
+ ///
///
/// A string which is contains the fully qualified path in provider
/// specific form.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the provider throws an exception when its MakePath gets
/// called.
///
- ///
+ ///
private string GetProviderSpecificPath(
PSDriveInfo drive,
string workingPath,
@@ -2545,20 +2545,20 @@ namespace System.Management.Automation
/// Parses the provider-qualified path into the provider name and
/// the provider-internal path.
///
- ///
+ ///
///
/// The provider-qualified path to parse.
///
- ///
+ ///
///
/// The name of the provider specified by the path is returned through
/// this out parameter.
///
- ///
+ ///
///
/// The provider-internal path.
///
- ///
+ ///
///
/// If is null.
///
@@ -2566,7 +2566,7 @@ namespace System.Management.Automation
///
/// If is not in the correct format.
///
- ///
+ ///
private static string ParseProviderPath(string path, out string providerId)
{
if (path == null)
@@ -2603,58 +2603,58 @@ namespace System.Management.Automation
/// will perform the globbing using the specified provider and return the
/// matching provider specific paths.
///
- ///
+ ///
///
/// The path containing the glob characters to resolve.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The provider that will be used to glob the .
///
- ///
+ ///
///
/// The context under which the command is occurring.
///
- ///
+ ///
///
/// An array of provider specific paths that match the glob path and
/// filter (if supplied via the context).
///
- ///
+ ///
///
/// This method is internal because we don't want to expose the
/// provider instances outside the engine.
///
- ///
+ ///
///
/// If , , or
/// is null.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal Collection GetGlobbedProviderPathsFromProviderPath(
string path,
bool allowNonexistingPaths,
@@ -2690,19 +2690,19 @@ namespace System.Management.Automation
/// Determines if the specified path contains any globing characters. These
/// characters are defined as '?' and '*'.
///
- ///
+ ///
///
/// The path to search for globing characters.
///
- ///
+ ///
///
/// True if the path contains any of the globing characters, false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal static bool StringContainsGlobCharacters(string path)
{
if (path == null)
@@ -2766,16 +2766,16 @@ namespace System.Management.Automation
/// Generates an array of provider specific paths from the single provider specific
/// path using globing rules.
///
- ///
+ ///
///
/// A path that may or may not contain globing characters.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The drive that the path is relative to.
///
@@ -2783,79 +2783,79 @@ namespace System.Management.Automation
///
/// The provider that implements the namespace for the path that we are globing over.
///
- ///
+ ///
///
/// The context the provider uses when performing the operation.
///
- ///
+ ///
///
/// An array of path strings that match the globing rules applied to the path parameter.
///
- ///
+ ///
///
/// First the path is checked to see if it contains any globing characters ('?' or '*').
/// If it doesn't then the path is returned as the only element in the array.
/// If it does, GetParentPath and GetLeafPathName is called on the path and each element
- /// is stored until the path doesn't contain any globing characters. At that point
+ /// is stored until the path doesn't contain any globing characters. At that point
/// GetChildNames() is called on the provider with the last parent path that doesn't
/// contain a globing character. All the results are then matched against leaf element
/// of that parent path (which did contain a glob character). We then walk out of the
/// recursion and apply the same procedure to each leaf element that contained globing
/// characters.
- ///
+ ///
/// The procedure above allows us to match globing strings in multiple sub-containers
/// in the namespace without having to have knowledge of the namespace paths, or
/// their syntax.
- ///
+ ///
/// Example:
/// dir c:\foo\*\bar\*a??.cs
- ///
+ ///
/// Calling this method for the path above would return all files that end in 'a' and
/// any other two characters followed by ".cs" in all the subdirectories of
/// foo that have a bar subdirectory.
- ///
+ ///
///
- ///
+ ///
///
/// If , , or
/// is null.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider associated with the threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If does not contain glob characters and
/// could not be found.
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
private Collection ExpandMshGlobPath(
string path,
bool allowNonexistingPaths,
@@ -2948,7 +2948,7 @@ namespace System.Management.Automation
path,
StringComparison.OrdinalIgnoreCase))
{
- // The provider is implemented in an inconsistent way.
+ // The provider is implemented in an inconsistent way.
// GetChildName returned a non-empty/non-null result but
// GetParentPath with the same path returns the same path.
// This would cause the globber to go into an infinite loop,
@@ -2980,7 +2980,7 @@ namespace System.Management.Automation
s_tracer.WriteLine("Base container path: {0}", path);
// If no glob elements were found there must be an include and/or
- // exclude specified. Use the parent path to iterate over to
+ // exclude specified. Use the parent path to iterate over to
// resolve the include/exclude filters
if (leafElements.Count == 0)
@@ -3185,7 +3185,7 @@ namespace System.Management.Automation
} // ExpandMshGlobPath
///
- /// Gets either a drive-qualified or provider-qualified path based on the drive
+ /// Gets either a drive-qualified or provider-qualified path based on the drive
/// information.
///
///
@@ -3209,7 +3209,7 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
internal static string GetMshQualifiedPath(string path, PSDriveInfo drive)
{
Dbg.Diagnostics.Assert(
@@ -3298,7 +3298,7 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
internal static string GetDriveQualifiedPath(string path, PSDriveInfo drive)
{
if (path == null)
@@ -3342,7 +3342,7 @@ namespace System.Management.Automation
// Check if the path begins with "\" or "/" (UNC Path or Path in Unix).
// Ignore if the path resolves to a drive path, this will happen when path is equal to "\" or "/".
// Drive path still need formatting, so treat them as relative.
- if (path.Length > 1 && (path.StartsWith(StringLiterals.DefaultPathSeparatorString, StringComparison.Ordinal) ||
+ if (path.Length > 1 && (path.StartsWith(StringLiterals.DefaultPathSeparatorString, StringComparison.Ordinal) ||
path.StartsWith(StringLiterals.AlternatePathSeparatorString, StringComparison.Ordinal)))
{
treatAsRelative = false;
@@ -3444,7 +3444,7 @@ namespace System.Management.Automation
///
/// If or is null.
///
- ///
+ ///
internal static string GetProviderQualifiedPath(string path, ProviderInfo provider)
{
if (path == null)
@@ -3523,81 +3523,81 @@ namespace System.Management.Automation
///
/// Generates a collection of containers and/or leaves that are children of the containers
- /// in the currentDirs parameter and match the glob expression in the
+ /// in the currentDirs parameter and match the glob expression in the
/// parameter.
///
- ///
+ ///
///
- /// A collection of paths that should be searched for leaves that match the
+ /// A collection of paths that should be searched for leaves that match the
/// expression.
///
- ///
+ ///
///
/// The drive the Msh path is relative to.
///
///
///
/// A single element of a path that may or may not contain a glob expression. This parameter
- /// is used to search the containers in for children that
+ /// is used to search the containers in for children that
/// match the glob expression.
///
- ///
+ ///
///
- /// True if the is the last element to glob over. If false, we
+ /// True if the is the last element to glob over. If false, we
/// need to get all container names from the provider even if they don't match the filter.
///
- ///
+ ///
///
- /// The provider associated with the paths that are being passed in the
+ /// The provider associated with the paths that are being passed in the
/// and parameters.
- /// The provider must derive from ContainerCmdletProvider or NavigationCmdletProvider
+ /// The provider must derive from ContainerCmdletProvider or NavigationCmdletProvider
/// in order to get globbing.
///
- ///
+ ///
///
/// The context the provider uses when performing the operation.
///
- ///
+ ///
///
- /// A collection of fully qualified namespace paths whose leaf element matches the
+ /// A collection of fully qualified namespace paths whose leaf element matches the
/// expression.
///
- ///
+ ///
///
/// If or
/// is null.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider associated with the threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
private List GenerateNewPSPathsWithGlobLeaf(
List currentDirs,
PSDriveInfo drive,
@@ -3737,7 +3737,7 @@ namespace System.Management.Automation
s_tracer.WriteLine(
"LeafElement does not contain any glob characters so do a MakePath");
- // Loop through the current dirs and add the leafElement to each of
+ // Loop through the current dirs and add the leafElement to each of
// the dirs
foreach (string dir in currentDirs)
@@ -3791,78 +3791,78 @@ namespace System.Management.Automation
/// Generates an array of provider specific paths from the single provider specific
/// path using globing rules.
///
- ///
+ ///
///
/// A path that may or may not contain globing characters.
///
- ///
+ ///
///
/// If true, a ItemNotFoundException will not be thrown for non-existing
/// paths. Instead an appropriate path will be returned as if it did exist.
///
- ///
+ ///
///
/// The provider that implements the namespace for the path that we are globing over.
///
- ///
+ ///
///
/// The context the provider uses when performing the operation.
///
- ///
+ ///
///
/// An array of path strings that match the globing rules applied to the path parameter.
///
- ///
+ ///
///
/// First the path is checked to see if it contains any globing characters ('?' or '*').
/// If it doesn't then the path is returned as the only element in the array.
/// If it does, GetParentPath and GetLeafPathName is called on the path and each element
- /// is stored until the path doesn't contain any globing characters. At that point
+ /// is stored until the path doesn't contain any globing characters. At that point
/// GetChildPathNames() is called on the provider with the last parent path that doesn't
/// contain a globing character. All the results are then matched against leaf element
/// of that parent path (which did contain a glob character). We then walk out of the
/// recursion and apply the same procedure to each leaf element that contained globing
/// characters.
- ///
+ ///
/// The procedure above allows us to match globing strings in multiple sub-containers
/// in the namespace without having to have knowledge of the namespace paths, or
/// their syntax.
- ///
+ ///
/// Example:
/// dir c:\foo\*\bar\*a??.cs
- ///
+ ///
/// Calling this method for the path above would return all files that end in 'a' and
/// any other two characters followed by ".cs" in all the subdirectories of
/// foo that have a bar subdirectory.
- ///
+ ///
///
- ///
+ ///
///
/// If or is null.
///
- ///
- ///
+ ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
/// or if the provider is implemented in such a way as to cause the globber to go
/// into an infinite loop.
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal Collection ExpandGlobPath(
string path,
bool allowNonexistingPaths,
@@ -3985,7 +3985,7 @@ namespace System.Management.Automation
path,
StringComparison.OrdinalIgnoreCase))
{
- // The provider is implemented in an inconsistent way.
+ // The provider is implemented in an inconsistent way.
// GetChildName returned a non-empty/non-null result but
// GetParentPath with the same path returns the same path.
// This would cause the globber to go into an infinite loop,
@@ -4016,7 +4016,7 @@ namespace System.Management.Automation
s_tracer.WriteLine("Base container path: {0}", path);
// If no glob elements were found there must be an include and/or
- // exclude specified. Use the parent path to iterate over to
+ // exclude specified. Use the parent path to iterate over to
// resolve the include/exclude filters
if (leafElements.Count == 0)
@@ -4184,66 +4184,66 @@ namespace System.Management.Automation
///
/// Generates a collection of containers and/or leaves that are children of the containers
- /// in the currentDirs parameter and match the glob expression in the
+ /// in the currentDirs parameter and match the glob expression in the
/// parameter.
///
- ///
+ ///
///
- /// A collection of paths that should be searched for leaves that match the
+ /// A collection of paths that should be searched for leaves that match the
/// expression.
///
- ///
+ ///
///
/// A single element of a path that may or may not contain a glob expression. This parameter
- /// is used to search the containers in for children that
+ /// is used to search the containers in for children that
/// match the glob expression.
///
- ///
+ ///
///
- /// True if the is the last element to glob over. If false, we
+ /// True if the is the last element to glob over. If false, we
/// need to get all container names from the provider even if they don't match the filter.
///
- ///
+ ///
///
- /// The provider associated with the paths that are being passed in the
+ /// The provider associated with the paths that are being passed in the
/// and parameters.
- /// The provider must derive from ContainerCmdletProvider or NavigationCmdletProvider
+ /// The provider must derive from ContainerCmdletProvider or NavigationCmdletProvider
/// in order to get globbing.
///
- ///
+ ///
///
/// The context the provider uses when performing the operation.
///
- ///
+ ///
///
- /// A collection of fully qualified namespace paths whose leaf element matches the
+ /// A collection of fully qualified namespace paths whose leaf element matches the
/// expression.
///
- ///
+ ///
///
/// If or
/// is null.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
internal List GenerateNewPathsWithGlobLeaf(
List currentDirs,
string leafElement,
@@ -4358,7 +4358,7 @@ namespace System.Management.Automation
s_tracer.WriteLine(
"LeafElement does not contain any glob characters so do a MakePath");
- // Loop through the current dirs and add the leafElement to each of
+ // Loop through the current dirs and add the leafElement to each of
// the dirs
foreach (string dir in currentDirs)
@@ -4407,92 +4407,92 @@ namespace System.Management.Automation
///
/// Gets the child names in the specified path by using the provider
///
- ///
+ ///
///
/// The path of the directory to get the child names from. If this is an Msh Path,
/// dirIsProviderPath must be false, If this is a provider-internal path,
/// dirIsProviderPath must be true.
///
- ///
+ ///
///
/// The element that we are ultimately looking for. Used to set filters on the context
/// if desired.
///
- ///
+ ///
///
/// Determines if the GetChildNames call should get all containers even if they don't
/// match the filter.
///
- ///
+ ///
///
/// The context to be used for the command. The context is copied to a new context, the
/// results are accumulated and then returned.
///
- ///
+ ///
///
/// Specifies whether the dir parameter is a provider-internal path (true) or Msh Path (false).
///
- ///
+ ///
///
/// The drive to use to qualify the Msh path if dirIsProviderPath is false.
///
- ///
+ ///
///
/// The provider to use to get the child names.
///
- ///
+ ///
///
/// Returns the modified dir path. If dirIsProviderPath is true, this is the unescaped dir path.
/// If dirIsProviderPath is false, this is the unescaped resolved provider path.
///
- ///
+ ///
///
/// A collection of PSObjects whose BaseObject is a string that contains the name of the child.
///
- ///
+ ///
///
/// If or is null.
///
- ///
+ ///
///
/// If the path is a provider-qualified path for a provider that is
/// not loaded into the system.
///
- ///
+ ///
///
/// If the refers to a drive that could not be found.
///
- ///
+ ///
///
/// If the provider used to build the path threw an exception.
///
- ///
+ ///
///
/// If the provider that the represents is not a NavigationCmdletProvider
/// or ContainerCmdletProvider.
///
- ///
+ ///
///
- /// If the starts with "~" and the home location is not set for
+ /// If the starts with "~" and the home location is not set for
/// the provider.
///
- ///
+ ///
///
/// If the provider associated with the threw an
/// exception when its GetParentPath or MakePath was called while
/// processing the .
///
- ///
+ ///
///
/// If has been signaled for
/// StopProcessing.
///
- ///
+ ///
///
/// Any exception can be thrown by the provider that is called to build
/// the provider path.
///
- ///
+ ///
private Collection GetChildNamesInDir(
string dir,
string leafElement,
@@ -4636,35 +4636,35 @@ namespace System.Management.Automation
} // GetChildNamesInDir
///
- /// Determines if the specified PSObject contains a string that matches the specified
- /// wildcard patterns.
+ /// Determines if the specified PSObject contains a string that matches the specified
+ /// wildcard patterns.
///
- ///
+ ///
///
/// The PSObject that contains the child names.
///
- ///
+ ///
///
/// The glob matcher.
///
- ///
+ ///
///
/// The include matcher wildcard patterns.
///
- ///
+ ///
///
/// The exclude matcher wildcard patterns.
///
- ///
+ ///
///
/// The name of the child which was extracted from the childObject and used for the matches.
///
- ///
+ ///
///
/// True if the string in the childObject matches the stringMatcher and includeMatcher wildcard patterns,
/// and does not match the exclude wildcard patterns. False otherwise.
///
- ///
+ ///
private static bool IsChildNameAMatch(
PSObject childObject,
WildcardPattern stringMatcher,
@@ -4746,30 +4746,30 @@ namespace System.Management.Automation
/// Converts a back tick '`' escape into back slash escape for
/// all occurrences in the string.
///
- ///
+ ///
///
/// A string that may or may not have back ticks as escape characters.
///
- ///
+ ///
///
/// A string that has the back ticks replaced with back slashes except
/// in the case where there are two back ticks in a row. In that case a single
/// back tick is returned.
///
- ///
+ ///
///
/// The following rules apply to the conversion:
/// 1. All \ characters are expanded to be \\
/// 2. Any ` not followed by a ` is converted to a \
/// 3. Any ` that is followed by a ` collapses the two into a single `
/// 4. Any other character is immediately appended to the result.
- ///
+ ///
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
private static string ConvertMshEscapeToRegexEscape(string path)
{
if (path == null)
@@ -4847,7 +4847,7 @@ namespace System.Management.Automation
} // ConvertMshEscapeToRegexEscape
///
- /// Determines if the path is relative to a provider home based on
+ /// Determines if the path is relative to a provider home based on
/// the ~ character.
///
///
@@ -4863,7 +4863,7 @@ namespace System.Management.Automation
///
/// Is is null.
///
- ///
+ ///
internal static bool IsHomePath(string path)
{
if (path == null)
@@ -4904,19 +4904,19 @@ namespace System.Management.Automation
/// Determines if the specified path looks like a remote path. (starts with
/// // or \\.
///
- ///
+ ///
///
/// The path to check to determine if it is a remote path.
///
- ///
+ ///
///
/// True if the path starts with // or \\, or false otherwise.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal static bool IsProviderDirectPath(string path)
{
if (path == null)
@@ -4945,26 +4945,26 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
- /// If is a provider-qualified path
+ /// If is a provider-qualified path
/// and the specified provider does not exist.
///
- ///
+ ///
///
/// If the provider throws an exception when its MakePath gets
/// called.
///
- ///
+ ///
///
/// If the provider does not support multiple items.
///
- ///
+ ///
///
/// If the home location for the provider is not set and
/// starts with a "~".
///
- ///
+ ///
internal string GetHomeRelativePath(string path)
{
if (path == null)
diff --git a/src/System.Management.Automation/namespaces/NavigationProviderBase.cs b/src/System.Management.Automation/namespaces/NavigationProviderBase.cs
index 4a582e9eb6..dbfad2c48f 100644
--- a/src/System.Management.Automation/namespaces/NavigationProviderBase.cs
+++ b/src/System.Management.Automation/namespaces/NavigationProviderBase.cs
@@ -13,12 +13,12 @@ namespace System.Management.Automation.Provider
///
/// The base class for a Cmdlet provider that expose a hierarchy of items and containers.
///
- ///
+ ///
///
/// The NavigationCmdletProvider class is a base class that provider can derive from
/// to implement a set of methods that allow
/// the use of a set of core commands against the data store that the provider
- /// gives access to. By implementing this interface users can take advantage
+ /// gives access to. By implementing this interface users can take advantage
/// the recursive commands, nested containers, and relative paths.
///
public abstract class NavigationCmdletProvider : ContainerCmdletProvider
@@ -30,24 +30,24 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The parent segment of a path to be joined with the child.
///
- ///
+ ///
///
/// The child segment of a path to be joined with the parent.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// A string that represents the parent and child segments of the path
/// joined by a path separator.
///
- ///
+ ///
///
/// This method should use lexical joining of two path segments with a path
/// separator character. It should not validate the path as a legal fully
@@ -58,12 +58,12 @@ namespace System.Management.Automation.Provider
/// parameter and "foo.dll" as the child parameter. The method should join these
/// with the "\" separator and return "windows\system32\foo.dll". Note that
/// the returned path is not a fully qualified file system path.
- ///
+ ///
/// Also beware that the path segments may contain characters that are illegal
/// in the provider namespace. These characters are most likely being used
/// for globbing and should not be removed by the implementation of this method.
///
- ///
+ ///
internal string MakePath(
string parent,
string child,
@@ -81,23 +81,23 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// A fully qualified provider specific path to an item. The item may or
/// may not exist.
///
- ///
+ ///
///
/// The fully qualified path to the root of a drive. This parameter may be null
/// or empty if a mounted drive is not in use for this operation. If this parameter
/// is not null or empty the result of the method should not be a path to a container
/// that is a parent or in a different tree than the root.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// The path of the parent of the path parameter.
///
@@ -107,7 +107,7 @@ namespace System.Management.Automation.Provider
/// for the provider namespace. For example, the file system provider should look
/// for the last "\" and return everything to the left of the "\".
///
- ///
+ ///
internal string GetParentPath(
string path,
string root,
@@ -125,20 +125,20 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// A fully qualified provider specific path to an item. The item should exist
/// or the provider should write out an error.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// A normalized path that is relative to the basePath that was passed. The
/// provider should parse the path parameter, normalize the path, and then
@@ -150,7 +150,7 @@ namespace System.Management.Automation.Provider
/// is encouraged that the provider actually use the path to lookup in its store
/// and create a relative path that matches the casing, and standardized path syntax.
///
- ///
+ ///
internal string NormalizeRelativePath(
string path,
string basePath,
@@ -168,26 +168,26 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The fully qualified path to the item
///
- ///
+ ///
///
/// The leaf element in the path.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// This should be implemented as a split on the path separator. The characters
/// in the fullPath may not be legal characters in the namespace but may be
/// used in globing or regular expression matching. The provider should not error
/// unless there are no path separators in the fully qualified path.
///
- ///
+ ///
internal string GetChildName(
string path,
CmdletProviderContext context)
@@ -204,19 +204,19 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to determine if it is a container.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// true if the item specified by path is a container, false otherwise.
///
- ///
+ ///
internal bool IsItemContainer(
string path,
CmdletProviderContext context)
@@ -233,23 +233,23 @@ namespace System.Management.Automation.Provider
/// of the protected method that is overridden by derived classes so that the
/// context of the command can be set.
///
- ///
+ ///
///
/// The path to the item to be moved.
///
- ///
+ ///
///
/// The path of the destination container.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing. All objects that are moved should be written to the WriteObject method.
///
- ///
+ ///
internal void MoveItem(
string path,
string destination,
@@ -266,25 +266,25 @@ namespace System.Management.Automation.Provider
/// Gives the provider to attach additional parameters to
/// the move-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The path of the destination container.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object MoveItemDynamicParameters(
string path,
string destination,
@@ -301,20 +301,20 @@ namespace System.Management.Automation.Provider
///
/// Joins two strings with a path a provider specific path separator.
///
- ///
+ ///
///
/// The parent segment of a path to be joined with the child.
///
- ///
+ ///
///
/// The child segment of a path to be joined with the parent.
///
- ///
+ ///
///
/// A string that represents the parent and child segments of the path
/// joined by a path separator.
///
- ///
+ ///
///
/// This method should use lexical joining of two path segments with a path
/// separator character. It should not validate the path as a legal fully
@@ -325,7 +325,7 @@ namespace System.Management.Automation.Provider
/// parameter and "foo.dll" as the child parameter. The method should join these
/// with the "\" separator and return "windows\system32\foo.dll". Note that
/// the returned path is not a fully qualified file system path.
- ///
+ ///
/// Also beware that the path segments may contain characters that are illegal
/// in the provider namespace. These characters are most likely being used
/// for globbing and should not be removed by the implementation of this method.
@@ -338,24 +338,24 @@ namespace System.Management.Automation.Provider
///
/// Joins two strings with a path a provider specific path separator.
///
- ///
+ ///
///
/// The parent segment of a path to be joined with the child.
///
- ///
+ ///
///
/// The child segment of a path to be joined with the parent.
///
- ///
+ ///
///
/// Indicate that the is the name of a child item that's guaranteed to exist
///
- ///
+ ///
///
/// If the is True, then we don't normalize the child path, and would do
/// some checks to decide whether to normalize the parent path.
///
- ///
+ ///
///
protected string MakePath(string parent, string child, bool childIsLeaf)
{
@@ -406,7 +406,7 @@ namespace System.Management.Automation.Provider
{
// Both parts are not empty so join them
- // 'childIsLeaf == true' indicates that 'child' is actually the name of a child item and
+ // 'childIsLeaf == true' indicates that 'child' is actually the name of a child item and
// guaranteed to exist. In this case, we don't normalize the child path.
if (childIsLeaf)
{
@@ -470,19 +470,19 @@ namespace System.Management.Automation.Provider
/// Removes the child segment of a path and returns the remaining parent
/// portion.
///
- ///
+ ///
///
/// A fully qualified provider specific path to an item. The item may or
/// may not exist.
///
- ///
+ ///
///
/// The fully qualified path to the root of a drive. This parameter may be null
/// or empty if a mounted drive is not in use for this operation. If this parameter
/// is not null or empty the result of the method should not be a path to a container
/// that is a parent or in a different tree than the root.
///
- ///
+ ///
///
/// The path of the parent of the path parameter.
///
@@ -561,16 +561,16 @@ namespace System.Management.Automation.Provider
/// Normalizes the path that was passed in and returns the normalized path
/// as a relative path to the basePath that was passed.
///
- ///
+ ///
///
/// A fully qualified provider specific path to an item. The item should exist
/// or the provider should write out an error.
///
- ///
+ ///
///
/// The path that the return value should be relative to.
///
- ///
+ ///
///
/// A normalized path that is relative to the basePath that was passed. The
/// provider should parse the path parameter, normalize the path, and then
@@ -581,7 +581,7 @@ namespace System.Management.Automation.Provider
/// This method does not have to be purely syntactical parsing of the path. It
/// is encouraged that the provider actually use the path to lookup in its store
/// and create a relative path that matches the casing, and standardized path syntax.
- ///
+ ///
/// Note, the base class implementation uses GetParentPath, GetChildName, and MakePath
/// to normalize the path and then make it relative to basePath. All string comparisons
/// are done using StringComparison.InvariantCultureIgnoreCase.
@@ -628,11 +628,11 @@ namespace System.Management.Automation.Provider
string normalizedBasePath = basePath;
// NTRAID#Windows 7-697922-2009/06/29-leeholm
- // WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND
+ // WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND
//
// This path normalization got moved here from the MakePath override in V2 to prevent
// over-normalization of paths. This was a net-improvement for providers that use the default
- // implementations, but now incorrectly replaces forward slashes with back slashes during the call to
+ // implementations, but now incorrectly replaces forward slashes with back slashes during the call to
// GetParentPath and GetChildName. This breaks providers that are sensitive to slash direction, the only
// one we are aware of being the Active Directory provider. This change prevents this over-normalization
// from being done on AD paths.
@@ -640,7 +640,7 @@ namespace System.Management.Automation.Provider
// For more information, see Win7:695292. Do not change this code without closely working with the
// Active Directory team.
//
- // WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND
+ // WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND WORKAROUND
if (!String.Equals(context.ProviderInstance.ProviderInfo.FullName,
@"Microsoft.ActiveDirectory.Management\ActiveDirectory", StringComparison.OrdinalIgnoreCase))
{
@@ -784,15 +784,15 @@ namespace System.Management.Automation.Provider
///
/// Gets the name of the leaf element in the specified path.
///
- ///
+ ///
///
/// The fully qualified path to the item
///
- ///
+ ///
///
/// The leaf element in the path.
///
- ///
+ ///
///
/// This should be implemented as a split on the path separator. The characters
/// in the fullPath may not be legal characters in the namespace but may be
@@ -858,23 +858,23 @@ namespace System.Management.Automation.Provider
///
/// Determines if the item specified by the path is a container.
///
- ///
+ ///
///
/// The path to the item to determine if it is a container.
///
- ///
+ ///
///
/// true if the item specified by path is a container, false otherwise.
///
- ///
+ ///
///
- /// Providers override this method to give the user the ability to check
+ /// Providers override this method to give the user the ability to check
/// to see if a provider object is a container using the test-path -container cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path passed meets those
/// requirements by accessing the appropriate property from the base class.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual bool IsItemContainer(string path)
@@ -891,34 +891,34 @@ namespace System.Management.Automation.Provider
///
/// Moves the item specified by path to the specified destination.
///
- ///
+ ///
///
/// The path to the item to be moved.
///
- ///
+ ///
///
/// The path of the destination container.
///
- ///
+ ///
///
/// Nothing is returned, but all the objects that were moved should be written to the WriteItemObject method.
///
- ///
+ ///
///
/// Providers override this method to give the user the ability to move provider objects using
/// the move-item cmdlet.
- ///
+ ///
/// Providers that declare
/// of ExpandWildcards, Filter, Include, or Exclude should ensure that the path and items being moved
/// meets those requirements by accessing the appropriate property from the base class.
- ///
- /// By default overrides of this method should not move objects over existing items unless the Force
+ ///
+ /// By default overrides of this method should not move objects over existing items unless the Force
/// property is set to true. For instance, the FileSystem provider should not move c:\temp\foo.txt over
/// c:\bar.txt if c:\bar.txt already exists unless the Force parameter is true.
- ///
+ ///
/// If exists and is a container then Force isn't required and
/// should be moved into the container as a child.
- ///
+ ///
/// The default implementation of this method throws an .
///
protected virtual void MoveItem(
@@ -937,21 +937,21 @@ namespace System.Management.Automation.Provider
/// Gives the provider an opportunity to attach additional parameters to
/// the move-item cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The path of the destination container.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object MoveItemDynamicParameters(
@@ -970,15 +970,15 @@ namespace System.Management.Automation.Provider
#region private members
///
- /// When a path contains both forward slash and backslash, we may introduce some errors by
+ /// When a path contains both forward slash and backslash, we may introduce some errors by
/// normalizing the path. This method does some smart checks to reduce the chances of making
/// those errors.
///
- ///
+ ///
///
/// The path to normalize
///
- ///
+ ///
///
/// Normalized path or the original path
///
@@ -1036,20 +1036,20 @@ namespace System.Management.Automation.Provider
///
/// Tokenizes the specified path onto a stack
///
- ///
+ ///
///
/// The path to tokenize.
///
- ///
+ ///
///
/// The base part of the path that should not be tokenized.
///
- ///
+ ///
///
/// A stack containing the tokenized path with leaf elements on the bottom
/// of the stack and the most ancestral parent at the top.
///
- ///
+ ///
private Stack TokenizePathToStack(string path, string basePath)
{
Stack tokenizedPathStack = new Stack();
@@ -1089,30 +1089,30 @@ namespace System.Management.Automation.Provider
///
/// Given the tokenized path, the relative path elements are removed.
///
- ///
+ ///
///
/// A stack containing path elements where the leaf most element is at
/// the bottom of the stack and the most ancestral parent is on the top.
/// Generally this stack comes from TokenizePathToStack().
///
- ///
+ ///
///
/// The path being normalized. Just used for error reporting.
///
- ///
+ ///
///
/// The base path to make the path relative to. Just used for error reporting.
///
- ///
+ ///
///
/// Determines whether to throw an exception on non-existing paths.
///
- ///
+ ///
///
/// A stack in reverse order with the path elements normalized and all relative
/// path tokens removed.
///
- ///
+ ///
private static Stack NormalizeThePath(
Stack tokenizedPathStack, string path,
string basePath, bool allowNonExistingPaths)
@@ -1167,21 +1167,21 @@ namespace System.Management.Automation.Provider
///
/// Pops each leaf element of the stack and uses MakePath to generate the relative path
///
- ///
+ ///
///
/// The stack containing the leaf elements of the path.
///
- ///
+ ///
///
/// A path that is made up of the leaf elements on the given stack.
///
- ///
+ ///
///
/// The elements on the stack start from the leaf element followed by its parent
/// followed by its parent, etc. Each following element on the stack is the parent
/// of the one before it.
///
- ///
+ ///
private string CreateNormalizedRelativePathFromStack(Stack normalizedPathStack)
{
string leafElement = String.Empty;
diff --git a/src/System.Management.Automation/namespaces/PathInfo.cs b/src/System.Management.Automation/namespaces/PathInfo.cs
index 50e3867e15..976c169d3a 100644
--- a/src/System.Management.Automation/namespaces/PathInfo.cs
+++ b/src/System.Management.Automation/namespaces/PathInfo.cs
@@ -57,11 +57,11 @@ namespace System.Management.Automation
///
/// Gets the provider internal path for the PSPath that this PathInfo represents.
///
- ///
+ ///
///
/// The provider encountered an error when resolving the path.
///
- ///
+ ///
///
/// The path was a home relative path but the home path was not
/// set for the provider.
@@ -139,7 +139,7 @@ namespace System.Management.Automation
///
/// The provider that contains the path.
///
- ///
+ ///
///
/// The path this object represents.
///
@@ -147,12 +147,12 @@ namespace System.Management.Automation
///
/// The session state associated with the drive, provider, and path information.
///
- ///
+ ///
///
/// If , ,
/// , or is null.
///
- ///
+ ///
internal PathInfo(PSDriveInfo drive, ProviderInfo provider, string path, SessionState sessionState)
{
if (provider == null)
diff --git a/src/System.Management.Automation/namespaces/ProviderBase.cs b/src/System.Management.Automation/namespaces/ProviderBase.cs
index 9b7a72981a..2258891358 100644
--- a/src/System.Management.Automation/namespaces/ProviderBase.cs
+++ b/src/System.Management.Automation/namespaces/ProviderBase.cs
@@ -29,7 +29,7 @@ namespace System.Management.Automation.Provider
/// Name of command that the help is requested for.
///
///
- /// Full path to the current location of the user or the full path to
+ /// Full path to the current location of the user or the full path to
/// the location of the property that the user needs help about.
///
///
@@ -44,11 +44,11 @@ namespace System.Management.Automation.Provider
///
/// The base class for Cmdlet provider.
///
- ///
+ ///
///
/// Although it is possible to derive from this base class to implement a Cmdlet Provider, in most
/// cases one should derive from ,
- /// , or
+ /// , or
///
///
public abstract partial class CmdletProvider : IResourceSupplier
@@ -97,7 +97,7 @@ namespace System.Management.Automation.Provider
///
/// If is null.
///
- ///
+ ///
internal void SetProviderInformation(ProviderInfo providerInfoToSet)
{
if (providerInfoToSet == null)
@@ -109,11 +109,11 @@ namespace System.Management.Automation.Provider
} // SetProviderInformation
///
- /// Checks whether the filter of the provider is set.
+ /// Checks whether the filter of the provider is set.
/// Can be overridden by derived class when additional filters are defined.
///
///
- /// Whether the filter of the provider is set.
+ /// Whether the filter of the provider is set.
///
internal virtual bool IsFilterSet()
{
@@ -126,13 +126,13 @@ namespace System.Management.Automation.Provider
///
/// Gets or sets the context for the running command.
///
- ///
+ ///
///
/// On set, if the context contains credentials and the provider
/// doesn't support credentials, or if the context contains a filter
/// parameter and the provider does not support filters.
///
- ///
+ ///
internal CmdletProviderContext Context
{
get
@@ -196,7 +196,7 @@ namespace System.Management.Automation.Provider
///
/// The information about the provider.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
@@ -211,7 +211,7 @@ namespace System.Management.Automation.Provider
/// Gets an object that defines the additional parameters for the Start implementation
/// for a provider.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
@@ -220,7 +220,7 @@ namespace System.Management.Automation.Provider
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object StartDynamicParameters(CmdletProviderContext cmdletProviderContext)
{
Context = cmdletProviderContext;
@@ -256,20 +256,20 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the GetProperty protected method. This method will
/// only be called if the provider implements the IPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to retrieve properties from.
///
- ///
+ ///
///
/// A list of properties that should be retrieved. If this parameter is null
/// or empty, all properties should be retrieved.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
internal void GetProperty(
string path,
Collection providerSpecificPickList,
@@ -295,26 +295,26 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the get-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// A list of properties that should be retrieved. If this parameter is null
/// or empty, all properties should be retrieved.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object GetPropertyDynamicParameters(
string path,
Collection providerSpecificPickList,
@@ -335,20 +335,20 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the SetProperty protected method. This method will
/// only be called if the provider implements the IPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to set the properties on.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
internal void SetProperty(
string path,
PSObject propertyValue,
@@ -374,26 +374,26 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the set-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object SetPropertyDynamicParameters(
string path,
PSObject propertyValue,
@@ -414,24 +414,24 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the ClearProperty protected method. This method will
/// only be called if the provider implements the IPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item from which the property should be cleared.
///
- ///
+ ///
///
/// The name of the property that should be cleared.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic clearing of properties.
///
- ///
+ ///
internal void ClearProperty(
string path,
Collection propertyName,
@@ -457,26 +457,26 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the clear-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// A list of properties that should be cleared. If this parameter is null
/// or empty, all properties should be cleared.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object ClearPropertyDynamicParameters(
string path,
Collection providerSpecificPickList,
@@ -502,15 +502,15 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the GetPropertyAt protected method. This method will
/// only be called if the provider implements the IPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to retrieve property from.
///
- ///
+ ///
///
/// The property that should be retrieved.
///
- ///
+ ///
///
/// The index of the value to be retrieved from the property.
///
@@ -518,7 +518,7 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
internal void GetPropertyValueAt(
string path,
string propertyName,
@@ -527,7 +527,7 @@ namespace System.Management.Automation.Provider
{
Context = cmdletProviderContext;
- IMultivaluePropertyCmdletProvider propertyProvider =
+ IMultivaluePropertyCmdletProvider propertyProvider =
this as IMultivaluePropertyCmdletProvider;
if (propertyProvider == null)
@@ -547,16 +547,16 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the get-propertyvalue -at cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The property that should be retrieved.
///
- ///
+ ///
///
/// The index of the value to be retrieved from the property.
///
@@ -564,14 +564,14 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object GetPropertyValueAtDynamicParameters(
- string path,
+ string path,
string propertyName,
object at,
CmdletProviderContext cmdletProviderContext)
@@ -586,34 +586,34 @@ namespace System.Management.Automation.Provider
}
return propertyProvider.GetPropertyValueAtDynamicParameters(path, propertyName, at);
} // GetPropertyValueAtDynamicParameters
-
+
///
/// Sets the specified properties of the item at the specified path at the specified
/// position if the property is a multivalued property.
///
- ///
+ ///
///
/// The path to the item to set the properties on.
///
- ///
+ ///
///
/// The position to place the new value of the property.
///
///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing. An instance of PSObject representing the properties that were set
/// should be passed to the WriteObject() method.
///
- ///
+ ///
internal void SetPropertyValueAt(
string path,
object position,
@@ -622,7 +622,7 @@ namespace System.Management.Automation.Provider
{
Context = cmdletProviderContext;
- IMultivaluePropertyCmdletProvider propertyProvider =
+ IMultivaluePropertyCmdletProvider propertyProvider =
this as IMultivaluePropertyCmdletProvider;
if (propertyProvider == null)
@@ -642,32 +642,32 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the set-propertyvalue -at cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The position to place the new value of the property.
///
///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be added.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object SetPropertyValueAtDynamicParameters(
- string path,
+ string path,
object at,
PSObject propertyValue,
CmdletProviderContext cmdletProviderContext)
@@ -685,18 +685,18 @@ namespace System.Management.Automation.Provider
///
/// Internal wrapper for the ClearPropertyAt protected method. This method will
- /// only be called if the provider implements the
+ /// only be called if the provider implements the
/// IMultivaluePropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item from which the property should be cleared.
///
- ///
+ ///
///
/// The name of the property that should be cleared.
///
- ///
+ ///
///
/// The position of the value of the property to be cleared.
///
@@ -704,12 +704,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic clearing of properties.
///
- ///
+ ///
internal void ClearPropertyValueAt(
string path,
string propertyName,
@@ -718,7 +718,7 @@ namespace System.Management.Automation.Provider
{
Context = cmdletProviderContext;
- IMultivaluePropertyCmdletProvider propertyProvider =
+ IMultivaluePropertyCmdletProvider propertyProvider =
this as IMultivaluePropertyCmdletProvider;
if (propertyProvider == null)
@@ -738,16 +738,16 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the clear-propertyvalue -at cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be cleared.
///
- ///
+ ///
///
/// The position of the value of the property to be cleared.
///
@@ -755,14 +755,14 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object ClearPropertyValueAtDynamicParameters(
- string path,
+ string path,
string propertyName,
object at,
CmdletProviderContext cmdletProviderContext)
@@ -777,21 +777,21 @@ namespace System.Management.Automation.Provider
}
return propertyProvider.ClearPropertyValueAtDynamicParameters(path, propertyName, at);
} // ClearPropertyValueAtDynamicParameters
-
+
///
/// Internal wrapper for the RemovePropertyValueAt protected method. This method will
- /// only be called if the provider implements the
+ /// only be called if the provider implements the
/// IMultivaluePropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item from which the property value should be removed.
///
- ///
+ ///
///
/// The name of the property that the value should be remove from.
///
- ///
+ ///
///
/// The position of the value of the property to be removed.
///
@@ -799,12 +799,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic removing of property values.
///
- ///
+ ///
internal void RemovePropertyValueAt(
string path,
string propertyName,
@@ -813,7 +813,7 @@ namespace System.Management.Automation.Provider
{
Context = cmdletProviderContext;
- IMultivaluePropertyCmdletProvider propertyProvider =
+ IMultivaluePropertyCmdletProvider propertyProvider =
this as IMultivaluePropertyCmdletProvider;
if (propertyProvider == null)
@@ -828,21 +828,21 @@ namespace System.Management.Automation.Provider
propertyProvider.RemovePropertyValueAt(path, propertyName, at);
} // RemovePropertyValueAt
-
+
///
/// Gives the provider a chance to attach additional parameters to
/// the remove-propertyvalue -at cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that the value should be remove from.
///
- ///
+ ///
///
/// The position of the value of the property to be removed.
///
@@ -850,14 +850,14 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object RemovePropertyValueAtDynamicParameters(
- string path,
+ string path,
string propertyName,
object at,
CmdletProviderContext cmdletProviderContext)
@@ -872,34 +872,34 @@ namespace System.Management.Automation.Provider
}
return propertyProvider.RemovePropertyValueAtDynamicParameters(path, propertyName, at);
} // RemovePropertyValueAtDynamicParameters
-
+
///
/// Adds the specified properties of the item at the specified path at the specified
/// position if the property is a multivalued property.
///
- ///
+ ///
///
/// The path to the item to add the property to.
///
- ///
+ ///
///
/// The position to place the new value of the property.
///
///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be added.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing. An instance of PSObject representing the properties that were set
/// should be passed to the WriteObject() method.
///
- ///
+ ///
internal void AddPropertyValueAt(
string path,
object position,
@@ -908,7 +908,7 @@ namespace System.Management.Automation.Provider
{
Context = cmdletProviderContext;
- IMultivaluePropertyCmdletProvider propertyProvider =
+ IMultivaluePropertyCmdletProvider propertyProvider =
this as IMultivaluePropertyCmdletProvider;
if (propertyProvider == null)
@@ -923,37 +923,37 @@ namespace System.Management.Automation.Provider
propertyProvider.AddPropertyValueAt(path, position, propertyValue);
} // AddPropertyValueAt
-
+
///
/// Gives the provider a chance to attach additional parameters to
/// the add-propertyvalue -at cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The position to place the new value of the property.
///
///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be added.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object AddPropertyValueAtDynamicParameters(
- string path,
+ string path,
object at,
PSObject propertyValue,
CmdletProviderContext cmdletProviderContext)
@@ -968,7 +968,7 @@ namespace System.Management.Automation.Provider
}
return propertyProvider.AddPropertyValueAtDynamicParameters(path, at, propertyValue);
} // AddPropertyValueAtDynamicParameters
-
+
#endregion IMultivaluePropertyCmdletProvider
#endif // SUPPORTS_IMULTIVALUEPROPERTYCMDLETPROVIDER
@@ -978,7 +978,7 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the NewProperty protected method. This method will
/// only be called if the provider implements the IDynamicPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item on which the new property should be created.
///
@@ -989,7 +989,7 @@ namespace System.Management.Automation.Provider
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -998,12 +998,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic creation of properties.
///
- ///
+ ///
internal void NewProperty(
string path,
string propertyName,
@@ -1031,19 +1031,19 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the new-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be created.
///
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -1052,12 +1052,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object NewPropertyDynamicParameters(
string path,
string propertyName,
@@ -1080,24 +1080,24 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the RemoveProperty protected method. This method will
/// only be called if the provider implements the IDynamicPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item on which the property should be removed.
///
- ///
+ ///
///
/// The name of the property to be removed
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic removal of properties.
///
- ///
+ ///
internal void RemoveProperty(
string path,
string propertyName,
@@ -1123,12 +1123,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the remove-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be removed.
///
@@ -1136,12 +1136,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object RemovePropertyDynamicParameters(
string path,
string propertyName,
@@ -1162,15 +1162,15 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the RenameProperty protected method. This method will
/// only be called if the provider implements the IDynamicPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item on which the property should be renamed.
///
- ///
+ ///
///
/// The name of the property that should be renamed.
///
- ///
+ ///
///
/// The new name for the property.
///
@@ -1178,12 +1178,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic renaming of properties.
///
- ///
+ ///
internal void RenameProperty(
string path,
string propertyName,
@@ -1210,12 +1210,12 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the rename-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be renamed.
///
@@ -1223,16 +1223,16 @@ namespace System.Management.Automation.Provider
///
/// The name of the property to rename it to.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object RenamePropertyDynamicParameters(
string path,
string sourceProperty,
@@ -1254,15 +1254,15 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the CopyProperty protected method. This method will
/// only be called if the provider implements the IDynamicPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item from which the property should be copied.
///
- ///
+ ///
///
/// The name of the property that should be copied.
///
- ///
+ ///
///
/// The path to the item to which the property should be copied.
///
@@ -1274,12 +1274,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic copying of properties.
///
- ///
+ ///
internal void CopyProperty(
string sourcePath,
string sourceProperty,
@@ -1307,16 +1307,16 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the copy-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be copied.
///
- ///
+ ///
///
/// The path to the item to which the property should be copied.
///
@@ -1328,12 +1328,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object CopyPropertyDynamicParameters(
string path,
string sourceProperty,
@@ -1356,15 +1356,15 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the MoveProperty protected method. This method will
/// only be called if the provider implements the IDynamicPropertyCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item from which the property should be moved.
///
- ///
+ ///
///
/// The name of the property that should be moved.
///
- ///
+ ///
///
/// The path to the item to which the property should be moved.
///
@@ -1376,12 +1376,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic moving of properties.
///
- ///
+ ///
internal void MoveProperty(
string sourcePath,
string sourceProperty,
@@ -1409,16 +1409,16 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the move-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be copied.
///
- ///
+ ///
///
/// The path to the item to which the property should be copied.
///
@@ -1430,12 +1430,12 @@ namespace System.Management.Automation.Provider
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object MovePropertyDynamicParameters(
string path,
string sourceProperty,
@@ -1462,19 +1462,19 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the GetContentReader protected method. This method will
/// only be called if the provider implements the IContentCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to retrieve content from.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An instance of the IContentReader for the specified path.
///
- ///
+ ///
internal IContentReader GetContentReader(
string path,
CmdletProviderContext cmdletProviderContext)
@@ -1499,21 +1499,21 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the get-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object GetContentReaderDynamicParameters(
string path,
CmdletProviderContext cmdletProviderContext)
@@ -1534,19 +1534,19 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the GetContentWriter protected method. This method will
/// only be called if the provider implements the IContentCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to set content on.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An instance of the IContentWriter for the specified path.
///
- ///
+ ///
internal IContentWriter GetContentWriter(
string path,
CmdletProviderContext cmdletProviderContext)
@@ -1571,21 +1571,21 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the add-content and set-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object GetContentWriterDynamicParameters(
string path,
CmdletProviderContext cmdletProviderContext)
@@ -1606,15 +1606,15 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the ClearContent protected method. This method will
/// only be called if the provider implements the IContentCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to clear the content from.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
internal void ClearContent(
string path,
CmdletProviderContext cmdletProviderContext)
@@ -1639,21 +1639,21 @@ namespace System.Management.Automation.Provider
/// Gives the provider a chance to attach additional parameters to
/// the clear-content cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
internal object ClearContentDynamicParameters(
string path,
CmdletProviderContext cmdletProviderContext)
@@ -1679,15 +1679,15 @@ namespace System.Management.Automation.Provider
///
/// Gives the provider the opportunity to initialize itself.
///
- ///
+ ///
///
/// The information about the provider that is being started.
///
- ///
+ ///
///
/// The default implementation returns the ProviderInfo instance that
/// was passed.
- ///
+ ///
/// To have session state maintain persisted data on behalf of the provider,
/// the provider should derive from
/// and add any properties or
@@ -1707,12 +1707,12 @@ namespace System.Management.Automation.Provider
/// Gets an object that defines the additional parameters for the Start implementation
/// for a provider.
///
- ///
+ ///
///
/// Overrides of this method should return an object that has properties and fields decorated with
- /// parsing attributes similar to a cmdlet class or a
+ /// parsing attributes similar to a cmdlet class or a
/// .
- ///
+ ///
/// The default implementation returns null. (no additional parameters)
///
protected virtual object StartDynamicParameters()
@@ -1726,11 +1726,11 @@ namespace System.Management.Automation.Provider
///
/// Called by session state when the provider is being removed.
///
- ///
+ ///
///
/// A provider should override this method to free up any resources that the provider
/// was using.
- ///
+ ///
/// The default implementation does nothing.
///
protected virtual void Stop()
@@ -1835,7 +1835,7 @@ namespace System.Management.Automation.Provider
/// The information about the provider that is stored in the runspace
/// on behalf of the provider.
///
- ///
+ ///
///
/// If a derived type of ProviderInfo was returned from the Start method, it
/// will be set here in all subsequent calls to the provider.
@@ -1891,7 +1891,7 @@ namespace System.Management.Automation.Provider
///
/// Gets the force property.
///
- ///
+ ///
///
/// Gives the provider guidance on how vigorous it should be about performing
/// the operation. If true, the provider should do everything possible to perform
@@ -1931,7 +1931,7 @@ namespace System.Management.Automation.Provider
return Context.Filter;
} // TraceProperty
- } // get
+ } // get
} // Filter
///
@@ -1950,7 +1950,7 @@ namespace System.Management.Automation.Provider
return Context.Include;
} // TraceProperty
- } // get
+ } // get
} // Include
///
@@ -1969,7 +1969,7 @@ namespace System.Management.Automation.Provider
return Context.Exclude;
} // TraceProperty
- } // get
+ } // get
} // Exclude
///
@@ -1992,23 +1992,23 @@ namespace System.Management.Automation.Provider
#region IResourceSupplier
///
- /// Gets the resource string corresponding to baseName and
- /// resourceId from the current assembly. You should override
+ /// Gets the resource string corresponding to baseName and
+ /// resourceId from the current assembly. You should override
/// this if you require a different behavior.
///
- ///
+ ///
///
/// the base resource name
///
- ///
+ ///
///
/// the resource id
///
- ///
+ ///
///
/// the resource string corresponding to baseName and resourceId
///
- ///
+ ///
///
/// When overriding this method, the resource string for the specified
/// resource should be retrieved from a localized resource assembly.
@@ -2376,7 +2376,7 @@ namespace System.Management.Automation.Provider
///
/// The position in the property they value came from.
///
- ///
+ ///
private void WriteObject(
object item,
string path,
@@ -2453,7 +2453,7 @@ namespace System.Management.Automation.Provider
///
/// if is null.
///
- ///
+ ///
private PSObject WrapOutputInPSObject(
object item,
string path)
@@ -2542,14 +2542,14 @@ namespace System.Management.Automation.Provider
/// Writes an item to the output as a PSObject with extra data attached
/// as notes.
///
- ///
+ ///
///
/// The item to be written.
///
///
///
/// The path of the item being written.
- ///
+ ///
///
///
/// True if the item is a container, false otherwise.
@@ -2559,7 +2559,7 @@ namespace System.Management.Automation.Provider
/// If streaming is on and the writeObjectHandler was specified then the object
/// gets written to the writeObjectHandler. If streaming is on and the writeObjectHandler
/// was not specified and the command object was specified, the object gets written to
- /// the WriteObject method of the command object.
+ /// the WriteObject method of the command object.
/// If streaming is off the object gets written to an accumulator collection. The collection
/// of written object can be retrieved using the AccumulatedObjects method.
/// -->
@@ -2578,20 +2578,20 @@ namespace System.Management.Automation.Provider
/// Writes a property object to the output as a PSObject with extra data attached
/// as notes.
///
- ///
+ ///
///
/// The properties to be written.
///
///
///
/// The path of the item being written.
- ///
+ ///
///
///
@@ -2609,20 +2609,20 @@ namespace System.Management.Automation.Provider
/// Writes a Security Descriptor object to the output as a PSObject with extra data attached
/// as notes.
///
- ///
+ ///
///
/// The Security Descriptor to be written.
///
///
///
/// The path of the item from which the Security Descriptor was retrieved.
- ///
+ ///
///
///
@@ -2641,14 +2641,14 @@ namespace System.Management.Automation.Provider
/// Writes a property value object to the output as a PSObject with extra data attached
/// as notes.
///
- ///
+ ///
///
/// The value of the property to be written.
///
- ///
+ ///
///
/// The path of the item being written.
- ///
+ ///
///
///
/// The properties to be written.
@@ -2657,16 +2657,16 @@ namespace System.Management.Automation.Provider
///
/// The position at which the property value was retrieved or written.
///
- ///
+ ///
///
/// If streaming is on and the writeObjectHandler was specified then the object
/// gets written to the writeObjectHandler. If streaming is on and the writeObjectHandler
/// was not specified and the command object was specified, the object gets written to
- /// the WriteObject method of the command object.
+ /// the WriteObject method of the command object.
/// If streaming is off the object gets written to an accumulator collection. The collection
/// of written object can be retrieved using the AccumulatedObjects method.
///
- ///
+ ///
public void WritePropertyValueObject(
object item,
string path,
diff --git a/src/System.Management.Automation/namespaces/ProviderBaseSecurity.cs b/src/System.Management.Automation/namespaces/ProviderBaseSecurity.cs
index 70c4b77df3..b27ebfd12b 100644
--- a/src/System.Management.Automation/namespaces/ProviderBaseSecurity.cs
+++ b/src/System.Management.Automation/namespaces/ProviderBaseSecurity.cs
@@ -19,24 +19,24 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the GetSecurityDescriptor protected method. This method will
/// only be called if the provider implements the ISecurityDescriptorCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to retrieve the security descriptor from.
///
- ///
+ ///
///
/// Specifies the parts of a security descriptor to retrieve.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing. An instance of an object that represents the security descriptor
/// for the item specified by the path should be written to the context.
///
- ///
+ ///
internal void GetSecurityDescriptor(
string path,
AccessControlSections sections,
@@ -61,24 +61,24 @@ namespace System.Management.Automation.Provider
/// Internal wrapper for the SetSecurityDescriptor protected method. This method will
/// only be called if the provider implements the ISecurityDescriptorCmdletProvider interface.
///
- ///
+ ///
///
/// The path to the item to set the new security descriptor on.
///
- ///
+ ///
///
/// The new security descriptor for the item.
///
- ///
+ ///
///
/// The context under which this method is being called.
///
- ///
+ ///
///
/// Nothing. The security descriptor object that was set should be written
/// to the context.
///
- ///
+ ///
internal void SetSecurityDescriptor(
string path,
ObjectSecurity securityDescriptor,
diff --git a/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs b/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs
index c753282a2f..3ae25d73ac 100644
--- a/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs
+++ b/src/System.Management.Automation/namespaces/ProviderDeclarationAttribute.cs
@@ -7,7 +7,7 @@ namespace System.Management.Automation.Provider
///
/// Declares a class as a Cmdlet provider.
///
- ///
+ ///
///
/// The class must be derived from System.Management.Automation.Provider.CmdletProvider to
/// be recognized by the runspace.
@@ -31,7 +31,7 @@ namespace System.Management.Automation.Provider
///
/// If is null or empty.
///
- ///
+ ///
///
/// If contains any of the following characters: \ [ ] ? * :
///
@@ -88,8 +88,8 @@ namespace System.Management.Automation.Provider
None = 0x0,
///
- /// The provider does the inclusion filtering for those commands that take an Include
- /// parameter. The Monad engine should not try to do the filtering on behalf of this
+ /// The provider does the inclusion filtering for those commands that take an Include
+ /// parameter. The Monad engine should not try to do the filtering on behalf of this
/// provider.
///
///
@@ -101,8 +101,8 @@ namespace System.Management.Automation.Provider
Include = 0x1,
///
- /// The provider does the exclusion filtering for those commands that take an Exclude
- /// parameter. The Monad engine should not try to do the filtering on behalf of this
+ /// The provider does the exclusion filtering for those commands that take an Exclude
+ /// parameter. The Monad engine should not try to do the filtering on behalf of this
/// provider.
///
///
@@ -147,7 +147,7 @@ namespace System.Management.Automation.Provider
///
/// The provider supports credentials. When this capability is specified and
- /// the user passes credentials to the core cmdlets, those credentials will
+ /// the user passes credentials to the core cmdlets, those credentials will
/// be passed to the provider. If the provider doesn't specify this capability
/// and the user passes credentials, an exception is thrown.
///
diff --git a/src/System.Management.Automation/namespaces/RegistryProvider.cs b/src/System.Management.Automation/namespaces/RegistryProvider.cs
index a466c8c2d5..5f3177a03c 100644
--- a/src/System.Management.Automation/namespaces/RegistryProvider.cs
+++ b/src/System.Management.Automation/namespaces/RegistryProvider.cs
@@ -20,20 +20,20 @@ namespace Microsoft.PowerShell.Commands
/// Provider that provides access to Registry through cmdlets. This provider
/// implements ,
/// ,
- /// ,
+ /// ,
///
- /// interfaces.
+ /// interfaces.
///
///
protected override PSDriveInfo NewDrive(PSDriveInfo drive)
{
@@ -129,7 +129,7 @@ namespace Microsoft.PowerShell.Commands
/// After the Start method is called on a provider, the InitializeDefaultDrives
/// method is called. This is an opportunity for the provider to
/// mount drives that are important to it. For instance, the Active Directory
- /// provider might mount a drive for the defaultNamingContext if the
+ /// provider might mount a drive for the defaultNamingContext if the
/// machine is joined to a domain. The FileSystem mounts all drives then available.
///
protected override Collection InitializeDefaultDrives()
@@ -162,11 +162,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the specified is syntactically and semantically valid.
///
- ///
+ ///
///
/// The path to validate.
///
- ///
+ ///
///
/// True if the path is valid, or False otherwise.
///
@@ -236,12 +236,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets registry values at to the specified.
///
- ///
+ ///
///
/// The path to the item that is to be set. Only registry values can be set using
/// this method.
///
- ///
+ ///
///
/// The new value for the registry value.
///
@@ -369,7 +369,7 @@ namespace Microsoft.PowerShell.Commands
// Write out the result
object result = value;
- // Since SetValue can munge the data to a specified
+ // Since SetValue can munge the data to a specified
// type (RegistryValueKind), retrieve the value again
// to output it in the correct form to the user.
result = ReadExistingKeyValue(key, null);
@@ -382,15 +382,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the dynamic parameters for the SetItem method.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// Ignored.
///
- ///
+ ///
///
/// An instance of the class which
/// contains a parameter for the Type.
@@ -521,7 +521,7 @@ namespace Microsoft.PowerShell.Commands
/// /
///
/// Determines if the call should be recursive. If true, all subkeys of
- /// the key at the specified path will be written. If false, only the
+ /// the key at the specified path will be written. If false, only the
/// immediate children of the key at the specified path will be written.
///
///
@@ -767,11 +767,11 @@ namespace Microsoft.PowerShell.Commands
/// Escapes the characters in the registry key path that are used by globbing and
/// path.
///
- ///
+ ///
///
/// The path to escape.
///
- ///
+ ///
///
/// The escaped path.
///
@@ -819,11 +819,11 @@ namespace Microsoft.PowerShell.Commands
/// Escapes the characters in the registry key name that are used by globbing and
/// path.
///
- ///
+ ///
///
/// The name to escape.
///
- ///
+ ///
///
/// The escaped name.
///
@@ -942,7 +942,7 @@ namespace Microsoft.PowerShell.Commands
///
///
///
- /// The type is ignored because this provider only creates
+ /// The type is ignored because this provider only creates
/// registry keys.
///
///
@@ -1310,7 +1310,7 @@ namespace Microsoft.PowerShell.Commands
///
/// The path to copy the key to.
///
- ///
+ ///
///
/// If true all subkeys should be copied. If false, only the
/// specified key should be copied.
@@ -1598,13 +1598,13 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the key at the specified is a container.
- ///
+ ///
///
/// The path to a key.
///
///
/// Since all registry keys are containers this method just checks
- /// to see if the key exists and returns true if it is does or
+ /// to see if the key exists and returns true if it is does or
/// false otherwise.
///
protected override bool IsItemContainer(string path)
@@ -1795,16 +1795,16 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the properties of the item specified by the .
///
- ///
+ ///
///
/// The path to the item to retrieve properties from.
///
- ///
+ ///
///
/// A list of properties that should be retrieved. If this parameter is null
/// or empty, all properties should be retrieved.
///
- ///
+ ///
///
/// Nothing. An instance of PSObject representing the properties that were retrieved
/// should be passed to the WriteObject() method.
@@ -1864,16 +1864,16 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the specified properties of the item at the specified .
///
- ///
+ ///
///
/// The path to the item to set the properties on.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// Nothing. An instance of PSObject representing the properties that were set
/// should be passed to the WriteObject() method.
@@ -1977,17 +1977,17 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// get-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
- /// A PSObject which contains a collection of the name, type, value
+ /// A PSObject which contains a collection of the name, type, value
/// of the properties to be set.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -2082,17 +2082,17 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// get-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// A list of properties that should be retrieved. If this parameter is null
/// or empty, all properties should be retrieved.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
@@ -2109,12 +2109,12 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// clear-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property to clear.
///
@@ -2140,29 +2140,29 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a value of a property from the item specified by the path.
///
- ///
+ ///
///
/// The path to the item from which the property value should be retrieved.
///
- ///
+ ///
///
/// The property to get the value from.
///
- ///
+ ///
///
/// The position of the property to get.
///
///
///
- /// Nothing. A PSObject representing the property and value that was
+ /// Nothing. A PSObject representing the property and value that was
/// retrieved should be passed to the WriteObject() method.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows multivalued properties.
///
- ///
+ ///
public void GetPropertyValueAt(
string path,
string propertyName,
@@ -2192,7 +2192,7 @@ namespace Microsoft.PowerShell.Commands
{
// The key was not found, write out an error.
- ArgumentException exception =
+ ArgumentException exception =
new ArgumentException(
RegistryProviderStrings.BadAtParam;
WriteError (new ErrorRecord (exception, exception.GetType().FullName, ErrorCategory.InvalidArgument, path));
@@ -2251,15 +2251,15 @@ namespace Microsoft.PowerShell.Commands
} // GetPropertyValueAt
-
+
///
/// Sets a property value on the item specified by the path.
///
- ///
+ ///
///
/// The path to the item on which the property should be set.
///
- ///
+ ///
///
/// The position of the property to set.
///
@@ -2267,17 +2267,17 @@ namespace Microsoft.PowerShell.Commands
///
/// The property to set the value on.
///
- ///
+ ///
///
- /// Nothing. A PSObject representing the property and value that was
+ /// Nothing. A PSObject representing the property and value that was
/// set should be passed to the WriteObject() method.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows multivalued properties.
///
- ///
+ ///
public void SetPropertyValueAt(
string path,
object at,
@@ -2305,7 +2305,7 @@ namespace Microsoft.PowerShell.Commands
{
// The key was not found, write out an error.
- ArgumentException exception =
+ ArgumentException exception =
new ArgumentException(
RegistryProviderStrings.BadAtParam;
WriteError (new ErrorRecord (exception, exception.GetType().FullName, ErrorCategory.InvalidArgument, path));
@@ -2322,7 +2322,7 @@ namespace Microsoft.PowerShell.Commands
string action =
RegistryProviderStrings.SetPropertyValueAtAction;
-
+
string resourceTemplate =
RegistryProviderStrings.SetPropertyValueAtResourceTemplate;
foreach (PSMemberInfo property in propertyValue.Properties)
@@ -2331,9 +2331,9 @@ namespace Microsoft.PowerShell.Commands
{
object newPropertyValue = property.Value;
- string resource =
+ string resource =
String.Format(
- Host.CurrentCulture,
+ Host.CurrentCulture,
resourceTemplate,
path,
property.Name,
@@ -2402,29 +2402,29 @@ namespace Microsoft.PowerShell.Commands
///
/// Clears the specified value of a property on the item specified by the path.
///
- ///
+ ///
///
/// The path to the item from which the property value should be cleared.
///
- ///
+ ///
///
/// The property to clear the value from.
///
- ///
+ ///
///
/// The position of the property to clear.
///
///
///
- /// Nothing. A PSObject representing the property and value that was
+ /// Nothing. A PSObject representing the property and value that was
/// retrieved should be passed to the WriteObject() method.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows multivalued properties.
///
- ///
+ ///
public void ClearPropertyValueAt(
string path,
string propertyName,
@@ -2433,33 +2433,33 @@ namespace Microsoft.PowerShell.Commands
throw tracer.NewNotImplementedException();
}
-
+
///
/// Removes the specified value of a property on the item specified by the path.
///
- ///
+ ///
///
/// The path to the item from which the property value should be removed.
///
- ///
+ ///
///
/// The property to remove the value from.
///
- ///
+ ///
///
/// The position of the property value to remove.
///
///
///
- /// Nothing. A PSObject representing the property and value that was
+ /// Nothing. A PSObject representing the property and value that was
/// removed should be passed to the WriteObject() method.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows multivalued properties.
///
- ///
+ ///
public void RemovePropertyValueAt(
string path,
string propertyName,
@@ -2482,7 +2482,7 @@ namespace Microsoft.PowerShell.Commands
{
// The key was not found, write out an error.
- ArgumentException exception =
+ ArgumentException exception =
new ArgumentException(
RegistryProviderStrings.BadAtParam);
WriteError (new ErrorRecord (exception, exception.GetType().FullName, ErrorCategory.InvalidArgument, path));
@@ -2498,12 +2498,12 @@ namespace Microsoft.PowerShell.Commands
}
string action = RegistryProviderStrings.RemovePropertyValueAtAction;
-
+
string resourceTemplate = RegistryProviderStrings.RemovePropertyValueAtResourceTemplate;
- string resource =
+ string resource =
String.Format(
- Host.CurrentCulture,
+ Host.CurrentCulture,
resourceTemplate,
path,
propertyName,
@@ -2571,16 +2571,16 @@ namespace Microsoft.PowerShell.Commands
}
}
- } // RemovePropertyValueAt
+ } // RemovePropertyValueAt
///
/// Adds a property value on the item specified by the path.
///
- ///
+ ///
///
/// The path to the item on which the property should be added.
///
- ///
+ ///
///
/// The position of the property to add.
///
@@ -2588,17 +2588,17 @@ namespace Microsoft.PowerShell.Commands
///
/// The property to add the value on.
///
- ///
+ ///
///
- /// Nothing. A PSObject representing the property and value that was
+ /// Nothing. A PSObject representing the property and value that was
/// added should be passed to the WriteObject() method.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows multivalued properties.
///
- ///
+ ///
public void AddPropertyValueAt(
string path,
object at,
@@ -2630,7 +2630,7 @@ namespace Microsoft.PowerShell.Commands
}
string action = RegistryProviderStrings.AddPropertyValueAtAction;
-
+
string resourceTemplate = RegistryProviderStrings.AddPropertyValueAtResourceTemplate;
PSMemberInfoCollection properties = null;
@@ -2669,9 +2669,9 @@ namespace Microsoft.PowerShell.Commands
{
object newPropertyValue = property.Value;
- string resource =
+ string resource =
String.Format(
- Host.CurrentCulture,
+ Host.CurrentCulture,
resourceTemplate,
path,
property.Name,
@@ -2684,9 +2684,9 @@ namespace Microsoft.PowerShell.Commands
// First get the current value
object currentValue = null;
-
+
try
- {
+ {
currentValue = key.GetValue(propertyNameToSet);
}
catch (System.IO.IOException ioException)
@@ -2792,7 +2792,7 @@ namespace Microsoft.PowerShell.Commands
}
} // if ShouldProcess
}
- } // RemovePropertyValueAt
+ } // RemovePropertyValueAt
#region Unimplemented methods
@@ -2800,16 +2800,16 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// get-propertyvalue cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The property to get the value from.
///
- ///
+ ///
///
/// The position of the property to get.
///
@@ -2818,25 +2818,25 @@ namespace Microsoft.PowerShell.Commands
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
public object GetPropertyValueAtDynamicParameters(
- string path,
+ string path,
string propertyName,
object at)
{
return null;
}
-
+
///
/// Gives the provider a chance to attach additional parameters to the
/// set-propertyvalue cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The position of the property to get.
///
@@ -2844,35 +2844,35 @@ namespace Microsoft.PowerShell.Commands
///
/// The property to set the value on.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
public object SetPropertyValueAtDynamicParameters(
- string path,
+ string path,
object at,
PSObject propertyValue)
{
return null;
}
-
+
///
/// Gives the provider a chance to attach additional parameters to the
/// clear-propertyvalue cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The property to clear the value from.
///
- ///
+ ///
///
/// The position of the property to clear.
///
@@ -2881,29 +2881,29 @@ namespace Microsoft.PowerShell.Commands
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
public object ClearPropertyValueAtDynamicParameters(
- string path,
+ string path,
string propertyName,
object at)
{
return null;
}
-
+
///
/// Gives the provider a chance to attach additional parameters to the
/// remove-propertyvalue cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The property to remove the value from.
///
- ///
+ ///
///
/// The position of the property to remove.
///
@@ -2912,25 +2912,25 @@ namespace Microsoft.PowerShell.Commands
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
public object RemovePropertyValueAtDynamicParameters(
- string path,
+ string path,
string propertyName,
object at)
{
return null;
}
-
+
///
/// Gives the provider a chance to attach additional parameters to the
/// add-propertyvalue cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The position of the property to add.
///
@@ -2938,14 +2938,14 @@ namespace Microsoft.PowerShell.Commands
///
/// The property to add the value on.
///
- ///
+ ///
///
/// An object that has properties and fields decorated with
/// parsing attributes similar to a cmdlet class.
///
- ///
+ ///
public object AddPropertyValueAtDynamicParameters(
- string path,
+ string path,
object at,
PSObject propertyValue)
{
@@ -2973,7 +2973,7 @@ namespace Microsoft.PowerShell.Commands
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -2983,8 +2983,8 @@ namespace Microsoft.PowerShell.Commands
/// Nothing. A PSObject representing the property that was created should
/// be passed to the WriteObject() method.
///
- ///
- ///
@@ -3092,15 +3092,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes a property on the item specified by the path.
///
- ///
+ ///
///
/// The path to the item on which the property should be removed.
///
- ///
+ ///
///
/// The name of the property to be removed.
///
- ///
+ ///
///
/// Implement this method when you are providing access to a data store
/// that allows dynamic removal of properties.
@@ -3208,7 +3208,7 @@ namespace Microsoft.PowerShell.Commands
///
///
///
- /// Nothing. A PSObject that represents the property that was renamed should be
+ /// Nothing. A PSObject that represents the property that was renamed should be
/// passed to the WriteObject() method.
///
public void RenameProperty(
@@ -3281,7 +3281,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// Copies a property of the item at the specified to a new property on the
+ /// Copies a property of the item at the specified to a new property on the
/// destination .
///
///
@@ -3302,7 +3302,7 @@ namespace Microsoft.PowerShell.Commands
///
///
///
- /// Nothing. A PSObject that represents the property that was copied should be
+ /// Nothing. A PSObject that represents the property that was copied should be
/// passed to the WriteObject() method.
///
public void CopyProperty(
@@ -3401,13 +3401,13 @@ namespace Microsoft.PowerShell.Commands
///
/// The path to the item on which to move the property to.
///
- ///
+ ///
///
/// The destination property to move to.
///
///
///
- /// Nothing. A PSObject that represents the property that was moved should be
+ /// Nothing. A PSObject that represents the property that was moved should be
/// passed to the WriteObject() method.
///
public void MoveProperty(
@@ -3495,15 +3495,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the parent path of the given .
///
- ///
+ ///
///
/// The path to get the parent of.
///
- ///
+ ///
///
/// The root of the drive.
///
- ///
+ ///
///
/// The parent path of the given path.
///
@@ -3553,11 +3553,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the child name for the given .
///
- ///
+ ///
///
/// The path to get the leaf element of.
///
- ///
+ ///
///
/// The leaf element of the given path.
///
@@ -3601,19 +3601,19 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// new-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be created.
///
///
///
/// The type of the property that should be created.
- ///
+ ///
///
///
/// The new value of the property that should be created.
@@ -3636,12 +3636,12 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// remove-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property that should be removed.
///
@@ -3661,12 +3661,12 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// rename-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The property to rename.
///
@@ -3691,12 +3691,12 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// copy-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property to copy.
///
@@ -3726,12 +3726,12 @@ namespace Microsoft.PowerShell.Commands
/// Gives the provider a chance to attach additional parameters to the
/// move-itemproperty cmdlet.
///
- ///
+ ///
///
/// If the path was specified on the command line, this is the path
/// to the item to get the dynamic parameters for.
///
- ///
+ ///
///
/// The name of the property to copy.
///
@@ -3854,15 +3854,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Converts all / in the path to \
///
- ///
+ ///
///
/// The path to normalize.
///
- ///
+ ///
///
/// The path with all / normalized to \
///
- ///
+ ///
private string NormalizePath(string path)
{
string result = path;
@@ -4228,12 +4228,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Creates the parent for the keypath specified by .
///
- /// RegistryKey path
+ /// RegistryKey path
///
- /// True if key is created or already exist,False otherwise.
+ /// True if key is created or already exist,False otherwise.
///
///
- /// This method wont call ShouldProcess. Callers should do this before
+ /// This method wont call ShouldProcess. Callers should do this before
/// calling this method.
///
private bool CreateIntermediateKeys(string path)
@@ -4583,27 +4583,27 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets or creates a registry value on a key.
///
- ///
+ ///
///
/// The key to set or create the value on.
///
- ///
+ ///
///
/// The name of the value to set or create.
///
- ///
+ ///
///
/// The new data for the value.
///
- ///
+ ///
///
/// The RegistryValueKind of the value.
///
- ///
+ ///
///
/// The path to the key that the value is being set on.
///
- ///
+ ///
private void SetRegistryValue(IRegistryWrapper key, string propertyName, object value, RegistryValueKind kind, string path)
{
SetRegistryValue(key, propertyName, value, kind, path, true);
@@ -4613,31 +4613,31 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets or creates a registry value on a key.
///
- ///
+ ///
///
/// The key to set or create the value on.
///
- ///
+ ///
///
/// The name of the value to set or create.
///
- ///
+ ///
///
/// The new data for the value.
///
- ///
+ ///
///
/// The RegistryValueKind of the value.
///
- ///
+ ///
///
/// The path to the key that the value is being set on.
///
- ///
+ ///
///
/// If true, the value that is set will be written out.
///
- ///
+ ///
private void SetRegistryValue(
IRegistryWrapper key,
string propertyName,
@@ -4713,7 +4713,7 @@ namespace Microsoft.PowerShell.Commands
///
- /// helper to wrap property values when sent to the pipeline into an PSObject;
+ /// helper to wrap property values when sent to the pipeline into an PSObject;
/// it adds the name of the property as a note.
///
/// The property to be written
@@ -4737,19 +4737,19 @@ namespace Microsoft.PowerShell.Commands
/// Uses LanguagePrimitives.ConvertTo to convert the value to the type that is appropriate
/// for the specified RegistryValueKind
///
- ///
+ ///
///
/// The value to convert.
///
- ///
+ ///
///
/// The RegistryValueKind type to convert the value to.
///
- ///
+ ///
///
/// The converted value.
///
- ///
+ ///
private static object ConvertValueToKind(object value, RegistryValueKind kind)
{
switch (kind)
@@ -4912,7 +4912,7 @@ namespace Microsoft.PowerShell.Commands
{
try
{
- // Since SetValue can munge the data to a specified
+ // Since SetValue can munge the data to a specified
// type (RegistryValueKind), retrieve the value again
// to output it in the correct form to the user.
@@ -4931,19 +4931,19 @@ namespace Microsoft.PowerShell.Commands
}
///
- /// Wraps a registry item in a PSObject and sets the TreatAs to
+ /// Wraps a registry item in a PSObject and sets the TreatAs to
/// Microsoft.Win32.RegistryKey. This way values will be presented
/// in the same format as keys
///
- ///
+ ///
///
/// The registry key to be written out.
///
- ///
+ ///
///
/// The path to the item being written out.
///
- ///
+ ///
private void WriteRegistryItemObject(
IRegistryWrapper key,
string path)
@@ -4987,11 +4987,11 @@ namespace Microsoft.PowerShell.Commands
/// type.
/// If the conversion fails, WriteError() is called
///
- ///
+ ///
///
/// The type as specified by the user that should be parsed into a RegistryValueKind enum.
///
- ///
+ ///
/// output for the RegistryValueKind for the string
///
/// true if the conversion succeeded
@@ -5049,11 +5049,11 @@ namespace Microsoft.PowerShell.Commands
/// Gets the default value name token from the resource.
/// In English that token is "(default)" without the quotes.
///
- ///
+ ///
///
/// A string containing the default value name.
///
- ///
+ ///
private string GetLocalizedDefaultToken()
{
// This shouldn't be localized as it will break scripts
@@ -5066,16 +5066,16 @@ namespace Microsoft.PowerShell.Commands
/// Converts an empty or null userEnteredPropertyName to the localized
/// string for the default property name.
///
- ///
+ ///
///
/// The property name to convert.
///
- ///
+ ///
///
/// If userEnteredPropertyName is null or empty, the localized default
/// property name is returned, else the userEnteredPropertyName is returned.
///
- ///
+ ///
private string GetPropertyName(string userEnteredPropertyName)
{
string result = userEnteredPropertyName;
@@ -5107,7 +5107,7 @@ namespace Microsoft.PowerShell.Commands
/// Gets or sets the Type parameter as a dynamic parameter for
/// the registry provider's SetItem method
///
- ///
+ ///
///
/// The only acceptable values for this parameter are those found
/// in the RegistryValueKind enum
diff --git a/src/System.Management.Automation/namespaces/RegistrySecurity.cs b/src/System.Management.Automation/namespaces/RegistrySecurity.cs
index b08aef4b5d..9faf553ac5 100644
--- a/src/System.Management.Automation/namespaces/RegistrySecurity.cs
+++ b/src/System.Management.Automation/namespaces/RegistrySecurity.cs
@@ -15,9 +15,9 @@ namespace Microsoft.PowerShell.Commands
/// Provider that provides access to Registry through cmdlets. This provider
/// implements ,
/// ,
- /// ,
+ /// ,
///
- /// interfaces.
+ /// interfaces.
///
public sealed partial class RegistryProvider :
NavigationCmdletProvider,
@@ -33,7 +33,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets the security descriptor for the item specified by .
///
- ///
+ ///
///
/// The path to the item.
///
@@ -41,7 +41,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Specifies the parts of a security descriptor to retrieve.
///
- ///
+ ///
///
/// Nothing. An object that represents the security descriptor for the item
/// specified by path is written to the WriteSecurityDescriptorObject method.
@@ -85,11 +85,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the security descriptor for the item specified by
///
- ///
+ ///
///
/// The path to the item to set the security descriptor on.
///
- ///
+ ///
///
/// The new security descriptor for the item.
///
@@ -192,15 +192,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Creates a new empty security descriptor.
///
- ///
+ ///
///
/// The type of item associated with this security descriptor
///
- ///
+ ///
///
/// Specifies the parts of a security descriptor to create.
///
- ///
+ ///
///
/// An instance of object.
///
diff --git a/src/System.Management.Automation/namespaces/RegistryWrapper.cs b/src/System.Management.Automation/namespaces/RegistryWrapper.cs
index e3992228f4..5ca64c7ab6 100644
--- a/src/System.Management.Automation/namespaces/RegistryWrapper.cs
+++ b/src/System.Management.Automation/namespaces/RegistryWrapper.cs
@@ -2,7 +2,7 @@
Copyright (c) Microsoft Corporation. All rights reserved.
--********************************************************************/
/*
- * The registry wrapper provides a common interface to both the transacted
+ * The registry wrapper provides a common interface to both the transacted
* and non-transacted registry APIs. It is used exclusively by the registry provider
* to perform registry operations. In most cases, the wrapper simply forwards the
* call to the appropriate registry API.
diff --git a/src/System.Management.Automation/namespaces/SafeRegistryHandle.cs b/src/System.Management.Automation/namespaces/SafeRegistryHandle.cs
index 9e35759c9e..b769fea05b 100644
--- a/src/System.Management.Automation/namespaces/SafeRegistryHandle.cs
+++ b/src/System.Management.Automation/namespaces/SafeRegistryHandle.cs
@@ -9,7 +9,7 @@
**
** A wrapper for registry handles
**
-**
+**
===========================================================*/
using System;
@@ -19,7 +19,7 @@ using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using Microsoft.Win32.SafeHandles;
-#if CORECLR
+#if CORECLR
// Use stubs for SafeHandleZeroOrMinusOneIsInvalid and ReliabilityContractAttribute
using Microsoft.PowerShell.CoreClr.Stubs;
#else
diff --git a/src/System.Management.Automation/namespaces/SessionStateProviderBase.cs b/src/System.Management.Automation/namespaces/SessionStateProviderBase.cs
index 8c750cdfc3..390fe8d4a7 100644
--- a/src/System.Management.Automation/namespaces/SessionStateProviderBase.cs
+++ b/src/System.Management.Automation/namespaces/SessionStateProviderBase.cs
@@ -19,7 +19,7 @@ namespace Microsoft.PowerShell.Commands
///
/// This is the base class for all the providers that produce a view
/// on session state data (Variables, Aliases, and Functions)
- ///
+ ///
public abstract class SessionStateProviderBase : ContainerCmdletProvider, IContentCmdletProvider
{
#region tracer
@@ -41,15 +41,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Derived classes must override to get items from session state
///
- ///
+ ///
///
/// The name of the item to get.
///
- ///
+ ///
///
/// The item of the given name in the appropriate session state table.
///
- ///
+ ///
internal abstract object GetSessionStateItem(string name);
///
@@ -57,19 +57,19 @@ namespace Microsoft.PowerShell.Commands
/// Derived classes must override this method to set the item in the
/// proper table.
///
- ///
+ ///
///
/// The name of the item to set.
///
- ///
+ ///
///
/// The new value for the item.
///
- ///
+ ///
///
/// If true, the item that was set should be written to WriteItemObject.
///
- ///
+ ///
internal abstract void SetSessionStateItem(string name, object value, bool writeItem);
///
@@ -77,42 +77,42 @@ namespace Microsoft.PowerShell.Commands
/// Derived classes must override this method to remove items from the
/// proper table.
///
- ///
+ ///
///
/// The name of the item to remove.
///
- ///
+ ///
internal abstract void RemoveSessionStateItem(string name);
///
/// Gets all the items in the appropriate session state table.
///
- ///
+ ///
///
/// An IDictionary representing the items in the session state table.
/// The key is the name of the item and the value is the value.
///
- ///
+ ///
internal abstract IDictionary GetSessionStateTable();
///
/// Since items are often more than their value, this method should
/// be overridden to provide the value for an item
///
- ///
+ ///
///
/// The item to extract the value from.
///
- ///
+ ///
///
/// The value of the specified item.
///
- ///
+ ///
///
/// The default implementation will get
/// the Value property of a DictionaryEntry
///
- ///
+ ///
internal virtual object GetValueOfItem(object item)
{
Dbg.Diagnostics.Assert(
@@ -133,15 +133,15 @@ namespace Microsoft.PowerShell.Commands
/// Determines if the item can be renamed. Derived classes that need
/// to perform a check should override this method.
///
- ///
+ ///
///
/// The item to verify if it can be renamed.
///
- ///
+ ///
///
/// true if the item can be renamed or false otherwise.
///
- ///
+ ///
internal virtual bool CanRenameItem(object item)
{
return true;
@@ -154,16 +154,16 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets an item from session state.
///
- ///
+ ///
///
/// Name of the item to get.
///
- ///
+ ///
///
/// The item instance is written to the WriteObject
/// method.
///
- ///
+ ///
protected override void GetItem(string name)
{
bool isContainer = false;
@@ -193,22 +193,22 @@ namespace Microsoft.PowerShell.Commands
} // GetItem
///
- /// Sets a session state item to a given value
+ /// Sets a session state item to a given value
///
- ///
+ ///
///
- /// Name of the item to set
+ /// Name of the item to set
///
- ///
+ ///
///
- /// The value to which to set the item
+ /// The value to which to set the item
///
- ///
+ ///
///
/// Nothing. The item that was set is written to the
/// WriteObject method.
///
- ///
+ ///
protected override void SetItem(
string name,
object value)
@@ -260,7 +260,7 @@ namespace Microsoft.PowerShell.Commands
} // SetItem
///
- ///
+ ///
///
///
protected override void ClearItem(string path)
@@ -617,20 +617,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Determines if the specified path is syntactically and semantically valid.
///
- ///
+ ///
///
/// The path to validate.
///
- ///
+ ///
///
/// True if the path is valid, or false otherwise.
///
- ///
+ ///
///
/// The path may not contain the following characters:
/// . ( ) :
///
- ///
+ ///
protected override bool IsValidPath(string path)
{
return !String.IsNullOrEmpty(path);
@@ -1062,15 +1062,15 @@ namespace Microsoft.PowerShell.Commands
/// Gets an instance of the content reader for this provider for the
/// specified path.
///
- ///
+ ///
///
/// The path to get the content reader for.
///
- ///
+ ///
///
/// An instance of an IContentReader for the given path.
///
- ///
+ ///
public IContentReader GetContentReader(string path)
{
return new SessionStateProviderBaseContentReaderWriter(path, this);
@@ -1080,15 +1080,15 @@ namespace Microsoft.PowerShell.Commands
/// Gets an instance of the content writer for this provider for the
/// specified path.
///
- ///
+ ///
///
/// The path to get the content writer for.
///
- ///
+ ///
///
/// An instance of an IContentWriter for the given path.
///
- ///
+ ///
public IContentWriter GetContentWriter(string path)
{
return new SessionStateProviderBaseContentReaderWriter(path, this);
@@ -1097,15 +1097,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Always throws a NotSupportedException
///
- ///
+ ///
///
/// ignored.
///
- ///
+ ///
///
/// This exception is always thrown.
///
- ///
+ ///
public void ClearContent(string path)
{
throw
@@ -1123,7 +1123,7 @@ namespace Microsoft.PowerShell.Commands
///
///
/// null
- ///
+ ///
public object GetContentReaderDynamicParameters(string path) { return null; }
///
@@ -1131,7 +1131,7 @@ namespace Microsoft.PowerShell.Commands
///
///
/// null
- ///
+ ///
public object GetContentWriterDynamicParameters(string path) { return null; }
///
@@ -1139,7 +1139,7 @@ namespace Microsoft.PowerShell.Commands
///
///
/// null
- ///
+ ///
public object ClearContentDynamicParameters(string path) { return null; }
#endregion
@@ -1150,31 +1150,31 @@ namespace Microsoft.PowerShell.Commands
///
/// The content reader/writer for all providers deriving from SessionStateProviderBase
///
- ///
+ ///
public class SessionStateProviderBaseContentReaderWriter : IContentReader, IContentWriter
{
///
/// Constructs a content reader/writer for the specified provider using the specified
/// path to read or write the content
///
- ///
+ ///
///
/// The path to the session state item which the content will be read or written.
///
- ///
+ ///
///
/// The SessionStateProviderBase derived provider that the content will be read or written
/// from/to.
///
- ///
+ ///
///
/// if is null or empty.
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
internal SessionStateProviderBaseContentReaderWriter(string path, SessionStateProviderBase provider)
{
if (String.IsNullOrEmpty(path))
@@ -1196,20 +1196,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Reads the content from the item
///
- ///
+ ///
///
/// The number of "blocks" of data to be read from the item.
///
- ///
+ ///
///
/// An array of the blocks of data read from the item.
///
- ///
+ ///
///
/// A "block" of content is provider specific. For the file system
/// a "block" may be considered a byte, a character, or delimited string.
///
- ///
+ ///
public IList Read(long readCount)
{
IList result = null;
@@ -1237,20 +1237,20 @@ namespace Microsoft.PowerShell.Commands
///
/// Writes content to the item.
///
- ///
+ ///
///
/// An array of content "blocks" to be written to the item.
///
- ///
+ ///
///
/// The blocks of content that were successfully written to the item.
///
- ///
+ ///
///
/// A "block" of content is provider specific. For the file system
/// a "block" may be considered a byte, a character, or delimited string.
///
- ///
+ ///
public IList Write(IList content)
{
if (content == null)
@@ -1274,19 +1274,19 @@ namespace Microsoft.PowerShell.Commands
/// None of the derived providers supports seeking for V1 so this
/// always throws a NotSupportedException
///
- ///
+ ///
///
/// ignored
///
- ///
+ ///
///
/// ignored
///
- ///
+ ///
///
/// This exception is always thrown.
///
- ///
+ ///
public void Seek(long offset, SeekOrigin origin)
{
throw
@@ -1298,14 +1298,14 @@ namespace Microsoft.PowerShell.Commands
/// Closes the reader. None of the derived providers need to
/// close their reader so do nothing.
///
- ///
+ ///
public void Close() { }
///
/// Closes the reader. None of the derived providers need to
/// close their reader so do nothing.
///
- ///
+ ///
public void Dispose() { Close(); GC.SuppressFinalize(this); }
}
}
diff --git a/src/System.Management.Automation/namespaces/StackInfo.cs b/src/System.Management.Automation/namespaces/StackInfo.cs
index 5f547dcc55..5d77c8e5d5 100644
--- a/src/System.Management.Automation/namespaces/StackInfo.cs
+++ b/src/System.Management.Automation/namespaces/StackInfo.cs
@@ -18,7 +18,7 @@ namespace System.Management.Automation
///
/// The name of the stack.
///
- ///
+ ///
///
/// A stack object containing PathInfo objects
///
@@ -26,11 +26,11 @@ namespace System.Management.Automation
///
/// If is null.
///
- ///
+ ///
///
/// If is null or empty.
///
- ///
+ ///
internal PathInfoStack(string stackName, Stack locationStack) : base()
{
if (locationStack == null)
@@ -47,7 +47,7 @@ namespace System.Management.Automation
// Since the Stack constructor takes an IEnumerable and
// not a Stack the stack actually gets enumerated in the
- // wrong order. I have to push them on manually in the
+ // wrong order. I have to push them on manually in the
// appropriate order.
PathInfo[] stackContents = new PathInfo[locationStack.Count];
diff --git a/src/System.Management.Automation/namespaces/TransactedRegistry.cs b/src/System.Management.Automation/namespaces/TransactedRegistry.cs
index 641ead3278..87e03cad77 100644
--- a/src/System.Management.Automation/namespaces/TransactedRegistry.cs
+++ b/src/System.Management.Automation/namespaces/TransactedRegistry.cs
@@ -29,7 +29,7 @@ namespace Microsoft.PowerShell.Commands.Internal
private const string resBaseName = "RegistryProviderStrings";
/**
* Current User Key.
- *
+ *
* This key should be used as the root for all user specific settings.
*/
/// TransactedRegistry.CurrentUser
@@ -48,7 +48,7 @@ namespace Microsoft.PowerShell.Commands.Internal
/**
* Local Machine Key.
- *
+ *
* This key should be used as the root for all machine specific settings.
*/
/// TransactedRegistry.LocalMachine
@@ -67,7 +67,7 @@ namespace Microsoft.PowerShell.Commands.Internal
/**
* Classes Root Key.
- *
+ *
* This is the root key of class information.
*/
/// TransactedRegistry.ClassesRoot
@@ -86,7 +86,7 @@ namespace Microsoft.PowerShell.Commands.Internal
/**
* Users Root Key.
- *
+ *
* This is the root of users.
*/
/// TransactedRegistry.Users
@@ -105,7 +105,7 @@ namespace Microsoft.PowerShell.Commands.Internal
/**
* Current Config Root Key.
- *
+ *
* This is where current configuration information is stored.
*/
/// TransactedRegistry.CurrentConfig
diff --git a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
index e67f6d5579..32c90db0c0 100644
--- a/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
+++ b/src/System.Management.Automation/namespaces/TransactedRegistryKey.cs
@@ -29,7 +29,7 @@
/*
Note on ACL support:
The key thing to note about ACL's is you set them on a kernel object like a
- registry key, then the ACL only gets checked when you construct handles to
+ registry key, then the ACL only gets checked when you construct handles to
them. So if you set an ACL to deny read access to yourself, you'll still be
able to read with that handle, but not with new handles.
@@ -41,8 +41,8 @@
may not be able to read or write to a registry key. It's very strange. But
the real test of these handles is attempting to read or set a value in an
affected registry key.
-
- For reference, at least two registry keys must be set to particular values
+
+ For reference, at least two registry keys must be set to particular values
for this behavior:
HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Terminal Server\RegistryExtensionFlags, the least significant bit must be 1.
HKLM\SYSTEM\CurrentControlSet\Control\TerminalServer\TSAppCompat must be 1
@@ -239,7 +239,7 @@ namespace Microsoft.PowerShell.Commands.Internal
{
SafeTransactionHandle safeTransactionHandle = null;
- // If myTransaction is not null and is not the same as Transaction.Current
+ // If myTransaction is not null and is not the same as Transaction.Current
// this is an invalid operation. The transaction within which the RegistryKey object was created
// needs to be the same as the transaction being used now.
if (null != _myTransaction)
@@ -336,7 +336,7 @@ namespace Microsoft.PowerShell.Commands.Internal
Dispose(true);
}
- ///
+ ///
/// Creates a new subkey, or opens an existing one.
/// Utilizes Transaction.Current for its transaction.
/// Name or path to subkey to create or open. Cannot be null or an empty string,
@@ -353,12 +353,12 @@ namespace Microsoft.PowerShell.Commands.Internal
return CreateSubKey(subkey, _checkMode);
}
- ///
+ ///
/// Creates a new subkey, or opens an existing one.
/// Utilizes Transaction.Current for its transaction.
/// Name or path to subkey to create or open. Cannot be null or an empty string,
/// otherwise an ArgumentException is thrown.
- /// One of the Microsoft.Win32.RegistryKeyPermissionCheck values that
+ /// One of the Microsoft.Win32.RegistryKeyPermissionCheck values that
/// specifies whether the key is opened for read or read/write access.
/// A TransactedRegistryKey object for the subkey, which is associated with Transaction.Current.
/// returns null if the operation failed.
@@ -373,12 +373,12 @@ namespace Microsoft.PowerShell.Commands.Internal
return CreateSubKeyInternal(subkey, permissionCheck, (TransactedRegistrySecurity)null);
}
- ///
+ ///
/// Creates a new subkey, or opens an existing one.
/// Utilizes Transaction.Current for its transaction.
/// Name or path to subkey to create or open. Cannot be null or an empty string,
/// otherwise an ArgumentException is thrown.
- /// One of the Microsoft.Win32.RegistryKeyPermissionCheck values that
+ /// One of the Microsoft.Win32.RegistryKeyPermissionCheck values that
/// specifies whether the key is opened for read or read/write access.
/// A TransactedRegistrySecurity object that specifies the access control security for the new key.
/// A TransactedRegistryKey object for the subkey, which is associated with Transaction.Current.
@@ -618,8 +618,8 @@ namespace Microsoft.PowerShell.Commands.Internal
}
}
- // An internal version which does no security checks or argument checking. Skipping the
- // security checks should give us a slight perf gain on large trees.
+ // An internal version which does no security checks or argument checking. Skipping the
+ // security checks should give us a slight perf gain on large trees.
[ResourceExposure(ResourceScope.Machine)]
[ResourceConsumption(ResourceScope.Machine)]
// Suppressed to be consistent with naming in Microsoft.Win32.RegistryKey
@@ -689,7 +689,7 @@ namespace Microsoft.PowerShell.Commands.Internal
int errorCode = Win32Native.RegDeleteValue(_hkey, name);
//
- // From windows 2003 server, if the name is too long we will get error code ERROR_FILENAME_EXCED_RANGE
+ // From windows 2003 server, if the name is too long we will get error code ERROR_FILENAME_EXCED_RANGE
// This still means the name doesn't exist. We need to be consistent with previous OS.
//
if (errorCode == Win32Native.ERROR_FILE_NOT_FOUND || errorCode == Win32Native.ERROR_FILENAME_EXCED_RANGE)
@@ -756,7 +756,7 @@ namespace Microsoft.PowerShell.Commands.Internal
{
ValidateKeyName(name);
EnsureNotDisposed();
- name = FixupName(name); // Fixup multiple slashes to a single slash
+ name = FixupName(name); // Fixup multiple slashes to a single slash
CheckOpenSubKeyPermission(name, writable);
SafeRegistryHandle result = null;
@@ -1132,7 +1132,7 @@ namespace Microsoft.PowerShell.Commands.Internal
/// unnamed or default value of this Registry key is returned, if any.
/// Name of value to retrieve.
/// Value to return if name doesn't exist.
- /// One of the Microsoft.Win32.RegistryValueOptions values that specifies
+ /// One of the Microsoft.Win32.RegistryValueOptions values that specifies
/// optional processing of the retrieved value.
/// The data associated with the value.
///
@@ -1169,8 +1169,8 @@ namespace Microsoft.PowerShell.Commands.Internal
if (ret != 0)
{
// For stuff like ERROR_FILE_NOT_FOUND, we want to return null (data).
- // Some OS's returned ERROR_MORE_DATA even in success cases, so we
- // want to continue on through the function.
+ // Some OS's returned ERROR_MORE_DATA even in success cases, so we
+ // want to continue on through the function.
if (ret != Win32Native.ERROR_MORE_DATA)
return data;
}
@@ -1261,8 +1261,8 @@ namespace Microsoft.PowerShell.Commands.Internal
}
else
{
- // we found an empty string. But if we're at the end of the data,
- // it's just the extra null terminator.
+ // we found an empty string. But if we're at the end of the data,
+ // it's just the extra null terminator.
if (nextNull != len - 1)
strings.Add(String.Empty);
}
@@ -1390,7 +1390,7 @@ namespace Microsoft.PowerShell.Commands.Internal
VerifyTransaction();
if (ContainsRegistryValue(name))
- { // Existing key
+ { // Existing key
CheckValueWritePermission(name);
}
else
@@ -1430,7 +1430,7 @@ namespace Microsoft.PowerShell.Commands.Internal
case RegistryValueKind.MultiString:
{
- // Other thread might modify the input array after we calculate the buffer length.
+ // Other thread might modify the input array after we calculate the buffer length.
// Make a copy of the input array to be safe.
string[] dataStrings = (string[])(((string[])value).Clone());
@@ -1589,7 +1589,7 @@ namespace Microsoft.PowerShell.Commands.Internal
///
/// Returns the access control security for the current registry key.
/// Utilizes Transaction.Current for its transaction.
- /// A TransactedRegistrySecurity object that describes the access control
+ /// A TransactedRegistrySecurity object that describes the access control
/// permissions on the registry key represented by the current TransactedRegistryKey.
///
public TransactedRegistrySecurity GetAccessControl()
@@ -1601,7 +1601,7 @@ namespace Microsoft.PowerShell.Commands.Internal
/// Returns the access control security for the current registry key.
/// Utilizes Transaction.Current for its transaction.
/// A bitwise combination of AccessControlSections values that specifies the type of security information to get.
- /// A TransactedRegistrySecurity object that describes the access control
+ /// A TransactedRegistrySecurity object that describes the access control
/// permissions on the registry key represented by the current TransactedRegistryKey.
///
public TransactedRegistrySecurity GetAccessControl(AccessControlSections includeSections)
@@ -1657,8 +1657,8 @@ namespace Microsoft.PowerShell.Commands.Internal
//* on reentrant calls because of this error code path in RegistryKey
//*
//* Normally we'd make our caller synchronize access to a shared RegistryKey instead of doing something like this,
- //* however we shipped PerformanceCounter.NextValue() un-synchronized in v2.0RTM and customers have taken a dependency on
- //* this behavior (being able to simultaneously query multiple remote-machine counters on multiple threads, instead of
+ //* however we shipped PerformanceCounter.NextValue() un-synchronized in v2.0RTM and customers have taken a dependency on
+ //* this behavior (being able to simultaneously query multiple remote-machine counters on multiple threads, instead of
//* having serialized access).
//*
//* FUTURE: Consider changing PerformanceCounterLib to handle its own Win32 RegistryKey API calls instead of depending
@@ -1764,7 +1764,7 @@ namespace Microsoft.PowerShell.Commands.Internal
private void CheckOpenSubKeyPermission(string subkeyName, bool subKeyWritable)
{
// If the parent key is not opened under default mode, we have access already.
- // If the parent key is opened under default mode, we need to check for permission.
+ // If the parent key is opened under default mode, we need to check for permission.
if (_checkMode == RegistryKeyPermissionCheck.Default)
{
CheckSubKeyReadPermission(subkeyName);
@@ -1882,7 +1882,7 @@ namespace Microsoft.PowerShell.Commands.Internal
private void CheckValueWritePermission(string valueName)
{
BCLDebug.Assert(_checkMode != RegistryKeyPermissionCheck.ReadSubTree, "We shouldn't allow writing value to read-only key!");
- // skip the security check if the key is opened under write mode
+ // skip the security check if the key is opened under write mode
if (_checkMode == RegistryKeyPermissionCheck.Default)
{
new RegistryPermission(RegistryPermissionAccess.Write, _keyName + "\\" + valueName).Demand();
@@ -1918,7 +1918,7 @@ namespace Microsoft.PowerShell.Commands.Internal
{
if (_checkMode == RegistryKeyPermissionCheck.Default)
{
- // only need to check for default mode (dynamic check)
+ // only need to check for default mode (dynamic check)
new RegistryPermission(RegistryPermissionAccess.Read, _keyName + "\\.").Demand();
}
}
diff --git a/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs b/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs
index 1f837baaaa..69738ff398 100644
--- a/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs
+++ b/src/System.Management.Automation/namespaces/TransactedRegistrySecurity.cs
@@ -33,9 +33,9 @@ namespace Microsoft.PowerShell.Commands.Internal
// Constructor for creating access rules for registry objects
///
- /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
+ /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
/// the access rights, and whether the specified access rights are allowed or denied.
- /// The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as
+ /// The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as
/// NTAccount that can be converted to type SecurityIdentifier.
/// A bitwise combination of Microsoft.Win32.RegistryRights values indicating the rights allowed or denied.
/// One of the AccessControlType values indicating whether the rights are allowed or denied.
@@ -46,7 +46,7 @@ namespace Microsoft.PowerShell.Commands.Internal
}
///
- /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
+ /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
/// the access rights, and whether the specified access rights are allowed or denied.
/// The name of the user or group the rule applies to.
/// A bitwise combination of Microsoft.Win32.RegistryRights values indicating the rights allowed or denied.
@@ -58,9 +58,9 @@ namespace Microsoft.PowerShell.Commands.Internal
}
///
- /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
+ /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
/// the access rights, and whether the specified access rights are allowed or denied.
- /// The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as
+ /// The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as
/// NTAccount that can be converted to type SecurityIdentifier.
/// A bitwise combination of Microsoft.Win32.RegistryRights values indicating the rights allowed or denied.
/// A bitwise combination of InheritanceFlags flags specifying how access rights are inherited from other objects.
@@ -73,7 +73,7 @@ namespace Microsoft.PowerShell.Commands.Internal
}
///
- /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
+ /// Initializes a new instance of the RegistryAccessRule class, specifying the user or group the rule applies to,
/// the access rights, and whether the specified access rights are allowed or denied.
/// The name of the user or group the rule applies to.
/// A bitwise combination of Microsoft.Win32.RegistryRights values indicating the rights allowed or denied.
@@ -125,9 +125,9 @@ namespace Microsoft.PowerShell.Commands.Internal
public sealed class TransactedRegistryAuditRule : AuditRule
{
///
- /// Initializes a new instance of the RegistryAuditRule class, specifying the user or group to audit, the rights to
+ /// Initializes a new instance of the RegistryAuditRule class, specifying the user or group to audit, the rights to
/// audit, whether to take inheritance into account, and whether to audit success, failure, or both.
- /// The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as
+ /// The user or group the rule applies to. Must be of type SecurityIdentifier or a type such as
/// NTAccount that can be converted to type SecurityIdentifier.
/// A bitwise combination of RegistryRights values specifying the kinds of access to audit.
/// A bitwise combination of InheritanceFlags values specifying whether the audit rule applies to subkeys of the current key.
@@ -140,7 +140,7 @@ namespace Microsoft.PowerShell.Commands.Internal
}
///
- /// Initializes a new instance of the RegistryAuditRule class, specifying the user or group to audit, the rights to
+ /// Initializes a new instance of the RegistryAuditRule class, specifying the user or group to audit, the rights to
/// audit, whether to take inheritance into account, and whether to audit success, failure, or both.
/// The name of the user or group the rule applies to.
/// A bitwise combination of RegistryRights values specifying the kinds of access to audit.
@@ -248,7 +248,7 @@ namespace Microsoft.PowerShell.Commands.Internal
}
///
- /// Creates a new audit rule, specifying the user the rule applies to, the access rights to audit, the inheritance and propagation of the
+ /// Creates a new audit rule, specifying the user the rule applies to, the access rights to audit, the inheritance and propagation of the
/// rule, and the outcome that triggers the rule.
/// An IdentityReference that identifies the user or group the rule applies to.
/// A bitwise combination of RegistryRights values specifying the access rights to audit, cast to an integer.
@@ -256,7 +256,7 @@ namespace Microsoft.PowerShell.Commands.Internal
/// A bitwise combination of InheritanceFlags values specifying how the rule is inherited by subkeys.
/// A bitwise combination of PropagationFlags values that modify the way the rule is inherited by subkeys. Meaningless if the value of inheritanceFlags is InheritanceFlags.None.
/// A bitwise combination of AuditFlags values specifying whether to audit successful access, failed access, or both.
- /// A TransactedRegistryAuditRule object representing the specified audit rule for the specified user, with the specified flags.
+ /// A TransactedRegistryAuditRule object representing the specified audit rule for the specified user, with the specified flags.
/// The return type of the method is the base class, AuditRule, but the return value can be cast safely to the derived class.
///
public override AuditRule AuditRuleFactory(IdentityReference identityReference, int accessMask, bool isInherited, InheritanceFlags inheritanceFlags, PropagationFlags propagationFlags, AuditFlags flags)
@@ -336,9 +336,9 @@ namespace Microsoft.PowerShell.Commands.Internal
}
///
- /// Searches for an access control rule with the same user and AccessControlType (allow or deny) as the specified access rule, and with compatible
+ /// Searches for an access control rule with the same user and AccessControlType (allow or deny) as the specified access rule, and with compatible
/// inheritance and propagation flags; if such a rule is found, the rights contained in the specified access rule are removed from it.
- /// A TransactedRegistryAccessRule that specifies the user and AccessControlType to search for, and a set of inheritance
+ /// A TransactedRegistryAccessRule that specifies the user and AccessControlType to search for, and a set of inheritance
/// and propagation flags that a matching rule, if found, must be compatible with. Specifies the rights to remove from the compatible rule, if found.
///
// Suppressed because we want to ensure TransactedRegistry* objects.
@@ -350,7 +350,7 @@ namespace Microsoft.PowerShell.Commands.Internal
///
/// Searches for all access control rules with the same user and AccessControlType (allow or deny) as the specified rule and, if found, removes them.
- /// A TransactedRegistryAccessRule that specifies the user and AccessControlType to search for. Any rights, inheritance flags, or
+ /// A TransactedRegistryAccessRule that specifies the user and AccessControlType to search for. Any rights, inheritance flags, or
/// propagation flags specified by this rule are ignored.
///
// Suppressed because we want to ensure TransactedRegistry* objects.
@@ -394,9 +394,9 @@ namespace Microsoft.PowerShell.Commands.Internal
}
///
- /// Searches for an audit control rule with the same user as the specified rule, and with compatible inheritance and propagation flags;
+ /// Searches for an audit control rule with the same user as the specified rule, and with compatible inheritance and propagation flags;
/// if a compatible rule is found, the rights contained in the specified rule are removed from it.
- /// A TransactedRegistryAuditRule that specifies the user to search for, and a set of inheritance and propagation flags that
+ /// A TransactedRegistryAuditRule that specifies the user to search for, and a set of inheritance and propagation flags that
/// a matching rule, if found, must be compatible with. Specifies the rights to remove from the compatible rule, if found.
///
// Suppressed because we want to ensure TransactedRegistry* objects.
@@ -408,7 +408,7 @@ namespace Microsoft.PowerShell.Commands.Internal
///
/// Searches for all audit rules with the same user as the specified rule and, if found, removes them.
- /// A TransactedRegistryAuditRule that specifies the user to search for. Any rights, inheritance
+ /// A TransactedRegistryAuditRule that specifies the user to search for. Any rights, inheritance
/// flags, or propagation flags specified by this rule are ignored.
///
// Suppressed because we want to ensure TransactedRegistry* objects.
diff --git a/src/System.Management.Automation/namespaces/VariableProvider.cs b/src/System.Management.Automation/namespaces/VariableProvider.cs
index 51d74cc64c..457928e3a1 100644
--- a/src/System.Management.Automation/namespaces/VariableProvider.cs
+++ b/src/System.Management.Automation/namespaces/VariableProvider.cs
@@ -16,7 +16,7 @@ namespace Microsoft.PowerShell.Commands
/// This provider is the data accessor for shell variables. It uses
/// the HashtableProvider as the base class to get a hashtable as
/// a data store.
- ///
+ ///
[CmdletProvider(VariableProvider.ProviderName, ProviderCapabilities.ShouldProcess)]
[OutputType(typeof(PSVariable), ProviderCmdlet = ProviderCmdlet.SetItem)]
[OutputType(typeof(PSVariable), ProviderCmdlet = ProviderCmdlet.RenameItem)]
@@ -77,15 +77,15 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a variable from session state
///
- ///
+ ///
///
/// The name of the variable to retrieve.
///
- ///
+ ///
///
/// A PSVariable that represents the variable.
///
- ///
+ ///
internal override object GetSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -98,19 +98,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Sets the variable of the specified name to the specified value
///
- ///
+ ///
///
/// The name of the variable to set.
///
- ///
+ ///
///
/// The new value for the variable.
///
- ///
+ ///
///
/// If true, the item that was set should be written to WriteItemObject.
///
- ///
+ ///
internal override void SetSessionStateItem(string name, object value, bool writeItem)
{
Dbg.Diagnostics.Assert(
@@ -154,11 +154,11 @@ namespace Microsoft.PowerShell.Commands
///
/// Removes the specified variable from session state.
///
- ///
+ ///
///
/// The name of the variable to remove from session state.
///
- ///
+ ///
internal override void RemoveSessionStateItem(string name)
{
Dbg.Diagnostics.Assert(
@@ -171,12 +171,12 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets a flattened view of the variables in session state
///
- ///
+ ///
///
/// An IDictionary representing the flattened view of the variables in
/// session state.
///
- ///
+ ///
internal override IDictionary GetSessionStateTable()
{
return (IDictionary)SessionState.Internal.GetVariableTable();
@@ -186,15 +186,15 @@ namespace Microsoft.PowerShell.Commands
/// Gets the value of the item that is returned from GetItem by
/// extracting the PSVariable value.
///
- ///
+ ///
///
/// The item to extract the value from.
///
- ///
+ ///
///
/// The value of the specified item.
///
- ///
+ ///
internal override object GetValueOfItem(object item)
{
Dbg.Diagnostics.Assert(
@@ -212,21 +212,21 @@ namespace Microsoft.PowerShell.Commands
value = var.Value;
}
return value;
- } // GetValueOfItem
+ } // GetValueOfItem
///
/// Determines if the item can be renamed. Derived classes that need
/// to perform a check should override this method.
///
- ///
+ ///
///
/// The item to verify if it can be renamed.
///
- ///
+ ///
///
/// true if the item can be renamed or false otherwise.
///
- ///
+ ///
internal override bool CanRenameItem(object item)
{
bool result = false;
diff --git a/src/System.Management.Automation/namespaces/Win32Native.cs b/src/System.Management.Automation/namespaces/Win32Native.cs
index 4e406c85ed..13d05d5de3 100644
--- a/src/System.Management.Automation/namespaces/Win32Native.cs
+++ b/src/System.Management.Automation/namespaces/Win32Native.cs
@@ -101,12 +101,12 @@ namespace Microsoft.PowerShell.Commands.Internal
internal SID_AND_ATTRIBUTES User;
}
- #endregion Struct
+ #endregion Struct
- #region PInvoke methods
+ #region PInvoke methods
///
- /// The LookupAccountSid function accepts a security identifier (SID) as input. It retrieves the name
+ /// The LookupAccountSid function accepts a security identifier (SID) as input. It retrieves the name
/// of the account for this SID and the name of the first domain on which this SID is found.
///
///
@@ -149,7 +149,7 @@ namespace Microsoft.PowerShell.Commands.Internal
internal static extern bool OpenProcessToken(SafeHandle processHandle, uint desiredAccess, out IntPtr tokenHandle);
///
- /// The GetTokenInformation function retrieves a specified type of information about an access token.
+ /// The GetTokenInformation function retrieves a specified type of information about an access token.
/// The calling process must have appropriate access rights to obtain the information.
///
///
@@ -182,7 +182,7 @@ namespace Microsoft.PowerShell.Commands.Internal
internal const int SECURITY_ANONYMOUS = ((int)SECURITY_IMPERSONATION_LEVEL.Anonymous << 16);
internal const int SECURITY_SQOS_PRESENT = 0x00100000;
-#if !CORECLR // Only enable/port what is needed by CORE CLR.
+#if !CORECLR // Only enable/port what is needed by CORE CLR.
private const string resBaseName = "RegistryProviderStrings";
internal const int KEY_QUERY_VALUE = 0x0001;
@@ -260,7 +260,7 @@ namespace Microsoft.PowerShell.Commands.Internal
internal const int STANDARD_RIGHTS_WRITE = READ_CONTROL;
// STANDARD_RIGHTS_REQUIRED (0x000F0000L)
- // SEMAPHORE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
+ // SEMAPHORE_ALL_ACCESS (STANDARD_RIGHTS_REQUIRED|SYNCHRONIZE|0x3)
// SEMAPHORE and Event both use 0x0002
// MUTEX uses 0x001 (MUTANT_QUERY_STATE)
diff --git a/src/System.Management.Automation/security/Authenticode.cs b/src/System.Management.Automation/security/Authenticode.cs
index 45dee9e36c..c10bd45ed4 100644
--- a/src/System.Management.Automation/security/Authenticode.cs
+++ b/src/System.Management.Automation/security/Authenticode.cs
@@ -14,7 +14,7 @@ using System.Management.Automation.Security;
using System.Runtime.InteropServices;
using System.Security.Cryptography.X509Certificates;
#if CORECLR
-// Use stub for
+// Use stub for
using Microsoft.PowerShell.CoreClr.Stubs;
#endif
@@ -23,7 +23,7 @@ using DWORD = System.UInt32;
namespace System.Management.Automation
{
///
- /// Defines the options that control what data is embedded in the
+ /// Defines the options that control what data is embedded in the
/// signature blob
///
///
@@ -46,14 +46,14 @@ namespace System.Management.Automation
AddFullCertificateChainExceptRoot,
///
- /// Default: Embeds the entire certificate chain, except for the
+ /// Default: Embeds the entire certificate chain, except for the
/// root certificate.
///
Default = AddFullCertificateChainExceptRoot
}
///
- /// Helper functions for signature functionality
+ /// Helper functions for signature functionality
///
internal static class SignatureHelper
{
@@ -67,7 +67,7 @@ namespace System.Management.Automation
"tracer for SignatureHelper");
///
- /// Sign a file
+ /// Sign a file
///
///
/// option that controls what gets embedded in the signature blob
@@ -82,21 +82,21 @@ namespace System.Management.Automation
/// algorithm to use.
///
/// Does not return a value
- ///
- ///
+ ///
+ ///
///
/// Thrown if argument fileName or certificate is null.
///
- ///
- ///
+ ///
+ ///
///
/// Thrown if
/// -- argument fileName is empty OR
/// -- the specified certificate is not suitable for
/// signing code
///
- ///
- ///
+ ///
+ ///
///
/// This exception can be thrown if any cryptographic error occurs.
/// It is not possible to know exactly what went wrong.
@@ -107,12 +107,12 @@ namespace System.Management.Automation
/// -- certificate password mismatch
/// -- etc
///
- ///
- ///
+ ///
+ ///
///
/// Thrown if the file specified by argument fileName is not found
///
- ///
+ ///
///
///
[ArchitectureSensitive]
@@ -182,9 +182,9 @@ namespace System.Management.Automation
try
{
- // CryptUI is not documented either way, but does not
- // support empty strings for the timestamp server URL.
- // It expects null, only. Instead, it randomly AVs if you
+ // CryptUI is not documented either way, but does not
+ // support empty strings for the timestamp server URL.
+ // It expects null, only. Instead, it randomly AVs if you
// try.
string timeStampServerUrlForCryptUI = null;
if (!String.IsNullOrEmpty(timeStampServerUrl))
@@ -293,17 +293,17 @@ namespace System.Management.Automation
///
/// Thrown if argument fileName is empty.
///
- ///
- ///
+ ///
+ ///
///
/// Thrown if argument fileName is null
///
- ///
- ///
+ ///
+ ///
///
/// Thrown if the file specified by argument fileName is not found.
///
- ///
+ ///
///
///
[ArchitectureSensitive]
@@ -332,7 +332,7 @@ namespace System.Management.Automation
{
if (Signature.CatalogApiAvailable.HasValue && !Signature.CatalogApiAvailable.Value)
{
- // Signature.CatalogApiAvailable would be set to false the first time it is detected that
+ // Signature.CatalogApiAvailable would be set to false the first time it is detected that
// WTGetSignatureInfo API does not exist on the platform, or if the API is not functional on the target platform.
// Just return from the function instead of revalidating.
return null;
@@ -400,8 +400,8 @@ namespace System.Management.Automation
}
else
{
- // ProductFile has to be Catalog signed. Hence validating
- // to see if the Catalog API is functional using the ProductFile.
+ // ProductFile has to be Catalog signed. Hence validating
+ // to see if the Catalog API is functional using the ProductFile.
Signature productFileSignature = GetSignatureFromCatalog(productFile);
Signature.CatalogApiAvailable = (productFileSignature != null && productFileSignature.Status == SignatureStatus.Valid);
}
diff --git a/src/System.Management.Automation/security/CatalogHelper.cs b/src/System.Management.Automation/security/CatalogHelper.cs
index b2cc4e5a77..f2391b4196 100644
--- a/src/System.Management.Automation/security/CatalogHelper.cs
+++ b/src/System.Management.Automation/security/CatalogHelper.cs
@@ -23,7 +23,7 @@ using DWORD = System.UInt32;
namespace System.Management.Automation
{
///
- /// Defines the possible status when validating integrity of catalog
+ /// Defines the possible status when validating integrity of catalog
///
public enum CatalogValidationStatus
{
@@ -39,38 +39,38 @@ namespace System.Management.Automation
}
///
- /// Object returned by Catalog Cmdlets
+ /// Object returned by Catalog Cmdlets
///
public class CatalogInformation
{
///
- /// status of catalog
+ /// status of catalog
///
public CatalogValidationStatus Status { get; set; }
///
- /// Hash Algorithm used to calculate the hashes of files in Catalog
+ /// Hash Algorithm used to calculate the hashes of files in Catalog
///
public string HashAlgorithm { get; set; }
///
- /// Dictionary mapping files relative paths to their hash values found from Catalog
+ /// Dictionary mapping files relative paths to their hash values found from Catalog
///
public Dictionary CatalogItems { get; set; }
///
- /// Dictionary mapping files relative paths to their hash values
+ /// Dictionary mapping files relative paths to their hash values
///
public Dictionary PathItems { get; set; }
///
- /// Signature for the catalog
+ /// Signature for the catalog
///
public Signature Signature { get; set; }
}
///
- /// Helper functions for Windows Catalog functionality
+ /// Helper functions for Windows Catalog functionality
///
internal static class CatalogHelper
{
@@ -80,15 +80,15 @@ namespace System.Management.Automation
// Catalog Version is (0X200 = 512) for Catalog Version 2
private static int catalogVersion2 = 512;
- // Hash Algorithms supported by Windows Catalog
+ // Hash Algorithms supported by Windows Catalog
private static string HashAlgorithmSHA1 = "SHA1";
private static string HashAlgorithmSHA256 = "SHA256";
private static PSCmdlet _cmdlet = null;
///
- /// Find out the Version of Catalog by reading its Meta data. We can have either version 1 or version 2 catalog
- ///
- /// Handle to open catalog file
+ /// Find out the Version of Catalog by reading its Meta data. We can have either version 1 or version 2 catalog
+ ///
+ /// Handle to open catalog file
/// Version of the catalog
private static int GetCatalogVersion(IntPtr catalogHandle)
{
@@ -103,14 +103,14 @@ namespace System.Management.Automation
}
// One Windows 7 this API sent version information as decimal 1 not hex (0X100 = 256)
// so we are checking for that value as well. Reason we are not checking for version 2 above in
- // this scenario because catalog version 2 is not supported on win7.
+ // this scenario because catalog version 2 is not supported on win7.
else if ((catalogInfo.dwPublicVersion == catalogVersion1) || (catalogInfo.dwPublicVersion == 1))
{
catalogVersion = 1;
}
else
{
- // catalog version we don't understand
+ // catalog version we don't understand
Exception exception = new InvalidOperationException(StringUtil.Format(CatalogStrings.UnKnownCatalogVersion,
catalogVersion1.ToString("X"),
catalogVersion2.ToString("X")));
@@ -122,9 +122,9 @@ namespace System.Management.Automation
}
///
- /// HashAlgorithm used by the Catalog. It is based on the version of Catalog.
- ///
- /// Path of the output catalog file
+ /// HashAlgorithm used by the Catalog. It is based on the version of Catalog.
+ ///
+ /// Path of the output catalog file
/// Version of the catalog
private static string GetCatalogHashAlgorithm(int catalogVersion)
{
@@ -140,7 +140,7 @@ namespace System.Management.Automation
}
else
{
- // version we don't understand
+ // version we don't understand
Exception exception = new InvalidOperationException(StringUtil.Format(CatalogStrings.UnKnownCatalogVersion,
"1.0",
"2.0"));
@@ -152,18 +152,18 @@ namespace System.Management.Automation
}
///
- /// Generate the Catalog Definition File representing files and folders
+ /// Generate the Catalog Definition File representing files and folders
///
- ///
- /// Path of expected output .cdf file
- ///
- /// Path of the output catalog file
- ///
- /// Path of the catalog definition file
- ///
+ ///
+ /// Path of expected output .cdf file
+ ///
+ /// Path of the output catalog file
+ ///
+ /// Path of the catalog definition file
+ ///
/// Version of catalog
- ///
- /// hash method used to generate hashes for the Catalog
+ ///
+ /// hash method used to generate hashes for the Catalog
/// HashSet for the relative Path for files in Catalog
internal static string GenerateCDFFile(Collection Path, string catalogFilePath, string cdfFilePath, int catalogVersion, string hashAlgorithm)
{
@@ -173,7 +173,7 @@ namespace System.Management.Automation
string cdfFilesContent = string.Empty;
int catAttributeCount = 0;
- // First create header and files section for the catalog then write in file
+ // First create header and files section for the catalog then write in file
cdfHeaderContent += "[CatalogHeader]" + Environment.NewLine;
cdfHeaderContent += @"Name=" + catalogFilePath + Environment.NewLine;
cdfHeaderContent += "CatalogVersion=" + catalogVersion + Environment.NewLine;
@@ -206,14 +206,14 @@ namespace System.Management.Automation
}
///
- /// Get file attribute (Relative path in our case) from catalog
- ///
+ /// Get file attribute (Relative path in our case) from catalog
+ ///
/// file to hash
/// directory information about file needed to calculate relative file path.
- /// working set of relative paths of all files.
- /// content to be added in CatalogHeader section of cdf File
- /// content to be added in CatalogFiles section of cdf File
- /// indicating the current no of catalog header level attributes
+ /// working set of relative paths of all files.
+ /// content to be added in CatalogHeader section of cdf File
+ /// content to be added in CatalogFiles section of cdf File
+ /// indicating the current no of catalog header level attributes
/// void
internal static void ProcessFileToBeAddedInCatalogDefinitionFile(FileInfo fileToHash, DirectoryInfo dirInfo, ref HashSet relativePaths, ref string cdfHeaderContent, ref string cdfFilesContent, ref int catAttributeCount)
{
@@ -221,7 +221,7 @@ namespace System.Management.Automation
if (dirInfo != null)
{
- //Relative path of the file is the path inside the containing folder excluding folder Name
+ //Relative path of the file is the path inside the containing folder excluding folder Name
relativePath = fileToHash.FullName.Substring(dirInfo.FullName.Length).TrimStart('\\');
}
else
@@ -239,23 +239,23 @@ namespace System.Management.Automation
}
else
{
- // zero length files are added as catalog level attributes because they can not be hashed
+ // zero length files are added as catalog level attributes because they can not be hashed
cdfHeaderContent += "CATATTR" + (++catAttributeCount) + "=0x10010001:FilePath:" + relativePath + Environment.NewLine;
}
}
else
{
// If Files have same relative paths we can not distinguish them for
- // Validation. So failing.
+ // Validation. So failing.
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(StringUtil.Format(CatalogStrings.FoundDuplicateFilesRelativePath, relativePath)), "FoundDuplicateFilesRelativePath", ErrorCategory.InvalidOperation, null);
_cmdlet.ThrowTerminatingError(errorRecord);
}
}
///
- /// Generate the Catalog file for Input Catalog Definition File
+ /// Generate the Catalog file for Input Catalog Definition File
///
///
- /// Path to the Input .cdf file
+ /// Path to the Input .cdf file
internal static void GenerateCatalogFile(string cdfFilePath)
{
string pwszFilePath = cdfFilePath;
@@ -264,10 +264,10 @@ namespace System.Management.Automation
// Open CDF File
IntPtr resultCDF = NativeMethods.CryptCATCDFOpen(pwszFilePath, catOpenCallBack);
- // navigate CDF header and files sections
+ // navigate CDF header and files sections
if (resultCDF != IntPtr.Zero)
{
- // First navigate all catalog level attributes entries first, they represent zero size files
+ // First navigate all catalog level attributes entries first, they represent zero size files
IntPtr catalogAttr = IntPtr.Zero;
do
{
@@ -280,7 +280,7 @@ namespace System.Management.Automation
}
} while (catalogAttr != IntPtr.Zero);
- // navigate all the files hash entries in the .cdf file
+ // navigate all the files hash entries in the .cdf file
IntPtr memberInfo = IntPtr.Zero;
try
{
@@ -305,9 +305,9 @@ namespace System.Management.Automation
fileRelativePath = ProcessFilePathAttributeInCatalog(memberAttr);
if (!String.IsNullOrEmpty(fileRelativePath))
{
- // Found the attribute we are looking for
+ // Found the attribute we are looking for
// Filename we read from the above API has appended to its name as per CDF file tags convention
- // Truncating that Information from the string.
+ // Truncating that Information from the string.
string itemName = fileName.Substring(6);
_cmdlet.WriteVerbose(StringUtil.Format(CatalogStrings.AddFileToCatalog, itemName, fileRelativePath));
break;
@@ -324,19 +324,19 @@ namespace System.Management.Automation
}
else
{
- // If we are not able to open CDF file we can not continue generating catalog
+ // If we are not able to open CDF file we can not continue generating catalog
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(CatalogStrings.UnableToOpenCatalogDefinitionFile), "UnableToOpenCatalogDefinitionFile", ErrorCategory.InvalidOperation, null);
_cmdlet.ThrowTerminatingError(errorRecord);
}
}
///
- /// To generate Catalog for the folder
+ /// To generate Catalog for the folder
///
///
- /// Path to folder or File
- /// Catalog File Path
- /// Catalog File Path
+ /// Path to folder or File
+ /// Catalog File Path
+ /// Catalog File Path
/// Instance of cmdlet calling this method
/// true if able to generate .cat file or false
internal static FileInfo GenerateCatalog(PSCmdlet cmdlet, Collection Path, string catalogFilePath, int catalogVersion)
@@ -346,7 +346,7 @@ namespace System.Management.Automation
if (!String.IsNullOrEmpty(hashAlgorithm))
{
- // Generate Path for Catalog Definition File
+ // Generate Path for Catalog Definition File
string cdfFilePath = System.IO.Path.Combine(System.IO.Path.GetTempPath(), System.IO.Path.GetRandomFileName());
cdfFilePath = cdfFilePath + ".cdf";
try
@@ -355,8 +355,8 @@ namespace System.Management.Automation
if (!File.Exists(cdfFilePath))
{
- // If we are not able to generate catalog definition file we can not continue generating catalog
- // throw PSTraceSource.NewInvalidOperationException("catalog", CatalogStrings.CatalogDefinitionFileNotGenerated);
+ // If we are not able to generate catalog definition file we can not continue generating catalog
+ // throw PSTraceSource.NewInvalidOperationException("catalog", CatalogStrings.CatalogDefinitionFileNotGenerated);
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(CatalogStrings.CatalogDefinitionFileNotGenerated), "CatalogDefinitionFileNotGenerated", ErrorCategory.InvalidOperation, null);
_cmdlet.ThrowTerminatingError(errorRecord);
}
@@ -376,9 +376,9 @@ namespace System.Management.Automation
}
///
- /// Get file attribute (Relative path in our case) from catalog
+ /// Get file attribute (Relative path in our case) from catalog
///
- /// Pointer to current attribute of catalog member.
+ /// Pointer to current attribute of catalog member.
/// value of the attribute
internal static string ProcessFilePathAttributeInCatalog(IntPtr memberAttrInfo)
{
@@ -386,11 +386,11 @@ namespace System.Management.Automation
NativeMethods.CRYPTCATATTRIBUTE currentMemberAttr = ClrFacade.PtrToStructure(memberAttrInfo);
- // check if this is the attribute we are looking for
- // catalog generated other way not using New-FileCatalog can have attributes we don't understand
+ // check if this is the attribute we are looking for
+ // catalog generated other way not using New-FileCatalog can have attributes we don't understand
if (currentMemberAttr.pwszReferenceTag.Equals("FilePath", StringComparison.OrdinalIgnoreCase))
{
- // find the size for the current attribute value and then allocate buffer and copy from byte array
+ // find the size for the current attribute value and then allocate buffer and copy from byte array
int attrValueSize = (int)currentMemberAttr.cbValue;
byte[] attrValue = new byte[attrValueSize];
Marshal.Copy(currentMemberAttr.pbValue, attrValue, 0, attrValueSize);
@@ -402,18 +402,18 @@ namespace System.Management.Automation
}
///
- /// Make a hash for the file
+ /// Make a hash for the file
///
///
/// Path of the file
- /// Used to calculate Hash
+ /// Used to calculate Hash
/// HashValue for the file
internal static string CalculateFileHash(string filePath, string hashAlgorithm)
{
string hashValue = string.Empty;
IntPtr catAdmin = IntPtr.Zero;
- // To get handle to the hash algorithm to be used to calculate hashes
+ // To get handle to the hash algorithm to be used to calculate hashes
if (!NativeMethods.CryptCATAdminAcquireContext2(ref catAdmin, IntPtr.Zero, hashAlgorithm, IntPtr.Zero, 0))
{
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(StringUtil.Format(CatalogStrings.UnableToAcquireHashAlgorithmContext, hashAlgorithm)), "UnableToAcquireHashAlgorithmContext", ErrorCategory.InvalidOperation, null);
@@ -424,7 +424,7 @@ namespace System.Management.Automation
DWORD OPEN_EXISTING = 3;
IntPtr INVALID_HANDLE_VALUE = new IntPtr(-1);
- // Open the file that is to be hashed for reading and get its handle
+ // Open the file that is to be hashed for reading and get its handle
IntPtr fileHandle = NativeMethods.CreateFile(filePath, GENERIC_READ, 0, 0, OPEN_EXISTING, 0, IntPtr.Zero);
if (fileHandle != INVALID_HANDLE_VALUE)
{
@@ -433,7 +433,7 @@ namespace System.Management.Automation
DWORD hashBufferSize = 0;
IntPtr hashBuffer = IntPtr.Zero;
- // Call first time to get the size of expected buffer to hold new hash value
+ // Call first time to get the size of expected buffer to hold new hash value
if (!NativeMethods.CryptCATAdminCalcHashFromFileHandle2(catAdmin, fileHandle, ref hashBufferSize, hashBuffer, 0))
{
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(StringUtil.Format(CatalogStrings.UnableToCreateFileHash, filePath)), "UnableToCreateFileHash", ErrorCategory.InvalidOperation, null);
@@ -444,7 +444,7 @@ namespace System.Management.Automation
hashBuffer = Marshal.AllocHGlobal(size);
try
{
- // Call second time to actually get the hash value
+ // Call second time to actually get the hash value
if (!NativeMethods.CryptCATAdminCalcHashFromFileHandle2(catAdmin, fileHandle, ref hashBufferSize, hashBuffer, 0))
{
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(StringUtil.Format(CatalogStrings.UnableToCreateFileHash, filePath)), "UnableToCreateFileHash", ErrorCategory.InvalidOperation, null);
@@ -471,7 +471,7 @@ namespace System.Management.Automation
}
else
{
- // If we are not able to open file that is to be hashed we can not continue with catalog validation
+ // If we are not able to open file that is to be hashed we can not continue with catalog validation
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(StringUtil.Format(CatalogStrings.UnableToReadFileToHash, filePath)), "UnableToReadFileToHash", ErrorCategory.InvalidOperation, null);
_cmdlet.ThrowTerminatingError(errorRecord);
}
@@ -479,10 +479,10 @@ namespace System.Management.Automation
}
///
- /// Make list of hashes for given Catalog File
+ /// Make list of hashes for given Catalog File
///
/// Path to the folder having catalog file
- ///
+ ///
/// The version of input catalog we read from catalog meta data after opening it.
/// Dictionary mapping files relative paths to HashValues
internal static Dictionary GetHashesFromCatalog(string catalogFilePath, WildcardPattern[] excludedPatterns, out int catalogVersion)
@@ -503,8 +503,8 @@ namespace System.Management.Automation
{
catAttrInfo = NativeMethods.CryptCATEnumerateCatAttr(resultCatalog, catAttrInfo);
- // If we found attribute it is a file information retrieve its relative path
- // and add it to catalog hash collection if its not in excluded files criteria
+ // If we found attribute it is a file information retrieve its relative path
+ // and add it to catalog hash collection if its not in excluded files criteria
if (catAttrInfo != IntPtr.Zero)
{
string relativePath = ProcessFilePathAttributeInCatalog(catAttrInfo);
@@ -518,7 +518,7 @@ namespace System.Management.Automation
catalogVersion = GetCatalogVersion(resultCatalog);
IntPtr memberInfo = IntPtr.Zero;
- // Next Navigate all members in Catalog files and get their relative paths and hashes
+ // Next Navigate all members in Catalog files and get their relative paths and hashes
do
{
memberInfo = NativeMethods.CryptCATEnumerateMember(resultCatalog, memberInfo);
@@ -528,7 +528,7 @@ namespace System.Management.Automation
NativeMethods.SIP_INDIRECT_DATA pIndirectData = ClrFacade.PtrToStructure(currentMember.pIndirectData);
// For Catalog version 2 CryptoAPI puts hashes of file attributes(relative path in our case) in Catalog as well
- // We validate those along with file hashes so we are skipping duplicate entries
+ // We validate those along with file hashes so we are skipping duplicate entries
if (!((catalogVersion == 2) && (pIndirectData.DigestAlgorithm.pszObjId.Equals(new Oid("SHA1").Value, StringComparison.OrdinalIgnoreCase))))
{
string relativePath = String.Empty;
@@ -550,7 +550,7 @@ namespace System.Management.Automation
// If we did not find any Relative Path for the item in catalog we should quit
// This catalog must not be valid for our use as catalogs generated using New-FileCatalog
- // always contains relative file Paths
+ // always contains relative file Paths
if (String.IsNullOrEmpty(relativePath))
{
ErrorRecord errorRecord = new ErrorRecord(new InvalidOperationException(StringUtil.Format(CatalogStrings.UnableToOpenCatalogFile, catalogFilePath)), "UnableToOpenCatalogFile", ErrorCategory.InvalidOperation, null);
@@ -576,22 +576,22 @@ namespace System.Management.Automation
}
///
- /// Process file in path for its relative paths
- ///
+ /// Process file in path for its relative paths
+ ///
/// relative path of file found in catalog
- /// hash of file found in catalog.
+ /// hash of file found in catalog.
/// skip file from validation if it matches these patterns
/// collection of hashes of catalog
/// void
internal static void ProcessCatalogFile(string relativePath, string fileHash, WildcardPattern[] excludedPatterns, ref Dictionary catalogHashes)
{
- // Found the attribute we are looking for
+ // Found the attribute we are looking for
_cmdlet.WriteVerbose(StringUtil.Format(CatalogStrings.FoundFileHashInCatalogItem, relativePath, fileHash));
- // Only add the file for validation if it does not meet exclusion criteria
+ // Only add the file for validation if it does not meet exclusion criteria
if (!CheckExcludedCriteria((new FileInfo(relativePath)).Name, excludedPatterns))
{
- // Add relativePath mapping to hashvalue for each file
+ // Add relativePath mapping to hashvalue for each file
catalogHashes.Add(relativePath, fileHash);
}
else
@@ -601,11 +601,11 @@ namespace System.Management.Automation
}
}
///
- /// Process file in path for its relative paths
- ///
+ /// Process file in path for its relative paths
+ ///
/// file to hash
/// directory information about file needed to calculate relative file path.
- /// Used to calculate Hash
+ /// Used to calculate Hash
/// skip file if it matches these patterns
/// collection of hashes of files
/// void
@@ -654,17 +654,17 @@ namespace System.Management.Automation
}
///
- /// Generate the hashes of all the files in given folder
+ /// Generate the hashes of all the files in given folder
///
///
/// Path to folder or File
/// catalog file path it should be skipped when calculating the hashes
- /// Used to calculate Hash
- ///
+ /// Used to calculate Hash
+ ///
/// Dictionary mapping file relative paths to hashes.
internal static Dictionary CalculateHashesFromPath(Collection folderPaths, string catalogFilePath, string hashAlgorithm, WildcardPattern[] excludedPatterns)
{
- // Create a HashTable of file Hashes
+ // Create a HashTable of file Hashes
Dictionary fileHashes = new Dictionary(StringComparer.CurrentCultureIgnoreCase);
foreach (string folderPath in folderPaths)
@@ -674,7 +674,7 @@ namespace System.Management.Automation
var directoryItems = Directory.EnumerateFiles(folderPath, "*.*", SearchOption.AllDirectories);
foreach (string fileItem in directoryItems)
{
- // if its the catalog file we are validating we will skip it
+ // if its the catalog file we are validating we will skip it
if (String.Equals(fileItem, catalogFilePath, StringComparison.OrdinalIgnoreCase))
continue;
@@ -690,13 +690,13 @@ namespace System.Management.Automation
}
///
- /// Compare Dictionary objects
+ /// Compare Dictionary objects
///
- ///
+ ///
/// Hashes extracted from Catalog
///
/// Hashes created from folders path
- ///
+ ///
/// True if both collections are same
internal static bool CompareDictionaries(Dictionary catalogItems, Dictionary pathItems)
{
@@ -705,8 +705,8 @@ namespace System.Management.Automation
List relativePathsFromFolder = pathItems.Keys.ToList();
List relativePathsFromCatalog = catalogItems.Keys.ToList();
- // Find entires those are not in both list lists. These should be empty lists for success
- // Hashes in Catalog should be exact similar to the ones from folder
+ // Find entires those are not in both list lists. These should be empty lists for success
+ // Hashes in Catalog should be exact similar to the ones from folder
List relativePathsNotInFolder = relativePathsFromFolder.Except(relativePathsFromCatalog, StringComparer.CurrentCultureIgnoreCase).ToList();
List relativePathsNotInCatalog = relativePathsFromCatalog.Except(relativePathsFromFolder, StringComparer.CurrentCultureIgnoreCase).ToList();
@@ -735,9 +735,9 @@ namespace System.Management.Automation
return Status;
}
///
- /// To Validate the Integrity of Catalog
+ /// To Validate the Integrity of Catalog
///
- ///
+ ///
/// Folder for which catalog is created
/// File Name of the Catalog
///
@@ -773,7 +773,7 @@ namespace System.Management.Automation
}
///
- /// Check if file meets the skip validation criteria
+ /// Check if file meets the skip validation criteria
///
///
///
@@ -793,8 +793,8 @@ namespace System.Management.Automation
return false;
}
///
- /// Call back when error is thrown by catalog API's
- ///
+ /// Call back when error is thrown by catalog API's
+ ///
private static void ParseErrorCallback(DWORD dwErrorArea, DWORD dwLocalError, string pwszLine)
{
switch (dwErrorArea)
diff --git a/src/System.Management.Automation/security/CredentialParameter.cs b/src/System.Management.Automation/security/CredentialParameter.cs
index 89132d4a20..4abde8527d 100644
--- a/src/System.Management.Automation/security/CredentialParameter.cs
+++ b/src/System.Management.Automation/security/CredentialParameter.cs
@@ -17,15 +17,15 @@ namespace System.Management.Automation
///
/// Transforms the input data to an PSCredential.
///
- ///
+ ///
///
/// The engine APIs for the context under which the transformation is being
/// made.
///
- ///
+ ///
///
/// If Null, the transformation prompts for both Username and Password
- /// If a string, the transformation uses the input for a username, and prompts
+ /// If a string, the transformation uses the input for a username, and prompts
/// for a Password
/// If already an PSCredential, the transform does nothing.
///
diff --git a/src/System.Management.Automation/security/MshSignature.cs b/src/System.Management.Automation/security/MshSignature.cs
index e97df1391d..dbbdc98fe2 100644
--- a/src/System.Management.Automation/security/MshSignature.cs
+++ b/src/System.Management.Automation/security/MshSignature.cs
@@ -100,7 +100,7 @@ namespace System.Management.Automation
///
/// Represents a digital signature on a signed
/// file.
- ///
+ ///
public sealed class Signature
{
private string _path;
@@ -113,7 +113,7 @@ namespace System.Management.Automation
// Three states:
// - True: we can rely on the catalog API to check catalog signature.
- // - False: we cannot rely on the catalog API, either because it doesn't exist in the OS (win7),
+ // - False: we cannot rely on the catalog API, either because it doesn't exist in the OS (win7),
// or it's not working properly (OneCore SKUs or dev environment where powershell might
// be updated/refreshed).
// - Null: it's not determined yet whether catalog API can be relied on or not.
diff --git a/src/System.Management.Automation/security/SecureStringHelper.cs b/src/System.Management.Automation/security/SecureStringHelper.cs
index c5e822a9c8..7801daa204 100644
--- a/src/System.Management.Automation/security/SecureStringHelper.cs
+++ b/src/System.Management.Automation/security/SecureStringHelper.cs
@@ -48,7 +48,7 @@ namespace Microsoft.PowerShell
SecureString ss = new SecureString();
//
- // each unicode char is 2 bytes.
+ // each unicode char is 2 bytes.
//
int len = data.Length / 2;
@@ -79,7 +79,7 @@ namespace Microsoft.PowerShell
internal static byte[] GetData(SecureString s)
{
//
- // each unicode char is 2 bytes.
+ // each unicode char is 2 bytes.
//
byte[] data = new byte[s.Length * 2];
@@ -445,7 +445,7 @@ namespace Microsoft.PowerShell
#if CORECLR
- // The DPAPIs implemented in this section are temporary workaround.
+ // The DPAPIs implemented in this section are temporary workaround.
// CoreCLR team will bring 'ProtectedData' type to Project K eventually.
#region DPAPI
diff --git a/src/System.Management.Automation/security/SecurityManager.cs b/src/System.Management.Automation/security/SecurityManager.cs
index e7557915f8..eb2eacb3dd 100644
--- a/src/System.Management.Automation/security/SecurityManager.cs
+++ b/src/System.Management.Automation/security/SecurityManager.cs
@@ -22,7 +22,7 @@ using Environment = System.Management.Automation.Environment;
namespace Microsoft.PowerShell
{
- ///
+ ///
/// Defines the authorization policy that controls the way scripts
/// (and other command types) are handled by Monad. This authorization
/// policy enforces one of four levels, as defined by the 'ExecutionPolicy'
@@ -31,7 +31,7 @@ namespace Microsoft.PowerShell
/// In priority-order (highest priority first,) these come from:
///
/// - Machine-wide Group Policy
- /// HKLM\Software\Policies\Microsoft\Windows\PowerShell
+ /// HKLM\Software\Policies\Microsoft\Windows\PowerShell
/// - Current-user Group Policy
/// HKCU\Software\Policies\Microsoft\Windows\PowerShell.
/// - Current session preference
@@ -40,24 +40,24 @@ namespace Microsoft.PowerShell
/// HKEY_CURRENT_USER\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
/// - Local machine preference
/// HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell
- ///
- /// Restricted - All .ps1 files are blocked. ps1xml files must be digitally
+ ///
+ /// Restricted - All .ps1 files are blocked. ps1xml files must be digitally
/// signed, and by a trusted publisher. If you haven't made a trust decision
/// on the publisher yet, prompting is done as in AllSigned mode.
/// AllSigned - All .ps1 and .ps1xml files must be digitally signed. If
- /// signed and executed, Monad prompts to determine if files from the
+ /// signed and executed, Monad prompts to determine if files from the
/// signing publisher should be run or not.
/// RemoteSigned - Only .ps1 and .ps1xml files originating from the internet
- /// must be digitally signed. If remote, signed, and executed, Monad
- /// prompts to determine if files from the signing publisher should be
+ /// must be digitally signed. If remote, signed, and executed, Monad
+ /// prompts to determine if files from the signing publisher should be
/// run or not. This is the default setting.
/// Unrestricted - No files must be signed. If a file originates from the
/// internet, Monad provides a warning prompt to alert the user. To
/// suppress this warning message, right-click on the file in File Explorer,
/// select "Properties," and then "Unblock."
/// Bypass - No files must be signed, and internet origin is not verified
- ///
- ///
+ ///
+ ///
public sealed class PSAuthorizationManager : AuthorizationManager
{
internal enum RunPromptDecision
@@ -296,7 +296,7 @@ namespace Microsoft.PowerShell
policyCheckPassed = SetPolicyFromAuthenticodePrompt(path, host, ref reason, signature);
}
}
- // The file is UnknownError, NotSigned, HashMismatch,
+ // The file is UnknownError, NotSigned, HashMismatch,
// NotTrusted, NotSupportedFileFormat
else
{
@@ -552,7 +552,7 @@ namespace Microsoft.PowerShell
/// If access is denied, this parameter provides a specialized
/// Exception as the reason.
///
- ///
+ ///
///
/// True if the command should be run. False otherwise.
///
@@ -561,11 +561,11 @@ namespace Microsoft.PowerShell
/// CommandInfo is invalid. This may occur if
/// commandInfo.Name is null or empty.
///
- ///
+ ///
///
/// CommandInfo is null.
///
- ///
+ ///
///
/// The file specified by commandInfo.Path is not found.
///
diff --git a/src/System.Management.Automation/security/SecuritySupport.cs b/src/System.Management.Automation/security/SecuritySupport.cs
index 7a37833b0f..b1c7247192 100644
--- a/src/System.Management.Automation/security/SecuritySupport.cs
+++ b/src/System.Management.Automation/security/SecuritySupport.cs
@@ -31,7 +31,7 @@ namespace Microsoft.PowerShell
///
/// Defines the different Execution Policies supported by the
/// PSAuthorizationManager class.
- ///
+ ///
///
public enum ExecutionPolicy
{
@@ -42,17 +42,17 @@ namespace Microsoft.PowerShell
Unrestricted = 0,
/// RemoteSigned - Only .msh and .mshxml files originating from the internet
- /// must be digitally signed. If remote, signed, and executed, Monad
- /// prompts to determine if files from the signing publisher should be
+ /// must be digitally signed. If remote, signed, and executed, Monad
+ /// prompts to determine if files from the signing publisher should be
/// run or not. This is the default setting.
RemoteSigned = 1,
/// AllSigned - All .msh and .mshxml files must be digitally signed. If
- /// signed and executed, Monad prompts to determine if files from the
+ /// signed and executed, Monad prompts to determine if files from the
/// signing publisher should be run or not.
AllSigned = 2,
- /// Restricted - All .msh files are blocked. Mshxml files must be digitally
+ /// Restricted - All .msh files are blocked. Mshxml files must be digitally
/// signed, and by a trusted publisher. If you haven't made a trust decision
/// on the publisher yet, prompting is done as in AllSigned mode.
Restricted = 3,
@@ -74,7 +74,7 @@ namespace Microsoft.PowerShell
/// policy. They are in the following priority, with successive
/// elements overriding the items that precede them:
/// LocalMachine -> CurrentUser -> Runspace
- ///
+ ///
///
public enum ExecutionPolicyScope
{
@@ -104,7 +104,7 @@ namespace System.Management.Automation.Internal
{
///
/// The SAFER policy associated with this file
- ///
+ ///
///
internal enum SaferPolicy
{
@@ -290,7 +290,7 @@ namespace System.Management.Automation.Internal
return ExecutionPolicy.Undefined;
}
- // TODO: Group Policy is only supported on Full systems, but !LINUX && CORECLR
+ // TODO: Group Policy is only supported on Full systems, but !LINUX && CORECLR
// will run there as well, so I don't think we should remove it.
case ExecutionPolicyScope.UserPolicy:
case ExecutionPolicyScope.MachinePolicy:
@@ -506,7 +506,7 @@ namespace System.Management.Automation.Internal
{
if (hRestrictedToken == IntPtr.Zero)
{
- // This is not necessarily the "fully trusted" level,
+ // This is not necessarily the "fully trusted" level,
// it means that the thread token is complies with the requested level
status = SaferPolicy.Allowed;
}
@@ -981,7 +981,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Defines the valid purposes by which
/// we can filter certificates.
- ///
+ ///
internal enum CertificatePurpose
{
///
@@ -992,19 +992,19 @@ namespace Microsoft.PowerShell.Commands
///
/// Certificates that can be used to sign
/// code and scripts.
- ///
+ ///
CodeSigning = 0x1,
///
/// Certificates that can be used to encrypt
/// data.
- ///
+ ///
DocumentEncryption = 0x2,
///
/// Certificates that can be used for any
/// purpose.
- ///
+ ///
All = 0xffff
}
}
diff --git a/src/System.Management.Automation/security/nativeMethods.cs b/src/System.Management.Automation/security/nativeMethods.cs
index 03f977f539..6285563b1e 100644
--- a/src/System.Management.Automation/security/nativeMethods.cs
+++ b/src/System.Management.Automation/security/nativeMethods.cs
@@ -183,7 +183,7 @@ namespace System.Management.Automation.Security
bool CertGetEnhancedKeyUsage(IntPtr pCertContext, // PCCERT_CONTEXT
DWORD dwFlags,
IntPtr pUsage, // PCERT_ENHKEY_USAGE
- out int pcbUsage); // DWORD*
+ out int pcbUsage); // DWORD*
[DllImport("Crypt32.dll", SetLastError = true, CharSet = CharSet.Unicode)]
internal static extern
@@ -1120,7 +1120,7 @@ namespace System.Management.Automation.Security
[DllImport("wintrust.dll", SetLastError = true, CharSet = CharSet.Unicode)]
internal static extern
- IntPtr // CRYPT_PROVIDER_CERT*
+ IntPtr // CRYPT_PROVIDER_CERT*
WTHelperGetProvCertFromChain(
IntPtr pSgnr, // CRYPT_PROVIDER_SGNR*
DWORD idxCert
@@ -1953,7 +1953,7 @@ namespace System.Management.Automation.Security
}
}
- // Constants needed for Catalog Error Handling
+ // Constants needed for Catalog Error Handling
internal partial class NativeConstants
{
// CRYPTCAT_E_AREA_HEADER = "0x00000000";
@@ -1971,7 +1971,7 @@ namespace System.Management.Automation.Security
// CRYPTCAT_E_CDF_DUPLICATE = "0x00000002";
public const int CRYPTCAT_E_CDF_DUPLICATE = 2;
- // CRYPTCAT_E_CDF_TAGNOTFOUND = "0x00000004";
+ // CRYPTCAT_E_CDF_TAGNOTFOUND = "0x00000004";
public const int CRYPTCAT_E_CDF_TAGNOTFOUND = 4;
// CRYPTCAT_E_CDF_MEMBER_FILE_PATH = "0x00010001";
@@ -1980,13 +1980,13 @@ namespace System.Management.Automation.Security
// CRYPTCAT_E_CDF_MEMBER_INDIRECTDATA = "0x00010002";
public const int CRYPTCAT_E_CDF_MEMBER_INDIRECTDATA = 65538;
- // CRYPTCAT_E_CDF_MEMBER_FILENOTFOUND = "0x00010004";
+ // CRYPTCAT_E_CDF_MEMBER_FILENOTFOUND = "0x00010004";
public const int CRYPTCAT_E_CDF_MEMBER_FILENOTFOUND = 65540;
- // CRYPTCAT_E_CDF_BAD_GUID_CONV = "0x00020001";
+ // CRYPTCAT_E_CDF_BAD_GUID_CONV = "0x00020001";
public const int CRYPTCAT_E_CDF_BAD_GUID_CONV = 131073;
- // CRYPTCAT_E_CDF_ATTR_TOOFEWVALUES = "0x00020002";
+ // CRYPTCAT_E_CDF_ATTR_TOOFEWVALUES = "0x00020002";
public const int CRYPTCAT_E_CDF_ATTR_TOOFEWVALUES = 131074;
// CRYPTCAT_E_CDF_ATTR_TYPECOMBO = "0x00020004";
@@ -1995,7 +1995,7 @@ namespace System.Management.Automation.Security
///
/// pinvoke methods from wintrust.dll
- /// These are added to Generate and Validate Window Catalog Files
+ /// These are added to Generate and Validate Window Catalog Files
///
internal static partial class NativeMethods
{
diff --git a/src/System.Management.Automation/security/wldpNativeMethods.cs b/src/System.Management.Automation/security/wldpNativeMethods.cs
index a50d7ed427..e79c1678f3 100644
--- a/src/System.Management.Automation/security/wldpNativeMethods.cs
+++ b/src/System.Management.Automation/security/wldpNativeMethods.cs
@@ -7,7 +7,7 @@ namespace System.Management.Automation.Security
{
///
/// How the policy is being enforced.
- ///
+ ///
///
// Internal Note: Current code that consumes this enum assumes that anything but 'Enforce' means
// that the script is allowed, and that a system lockdown policy that is anything but 'None' means
diff --git a/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs b/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs
index 34e9a0bd73..8f4303d726 100644
--- a/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs
+++ b/src/System.Management.Automation/singleshell/Commands/ConsoleCommands.cs
@@ -78,7 +78,7 @@ namespace Microsoft.PowerShell.Commands
/// Property that gets/sets console file name.
///
///
- /// If a parameter is not supplied then the file represented by $console
+ /// If a parameter is not supplied then the file represented by $console
/// will be used for saving.
///
[Parameter(Position = 0, Mandatory = false, ValueFromPipeline = true,
@@ -186,7 +186,7 @@ namespace Microsoft.PowerShell.Commands
if (!ShouldProcess(this.Path)) // should this be resolvedPath?
return;
- //check if destination file exists.
+ //check if destination file exists.
if (File.Exists(resolvedPath))
{
if (NoClobber)
@@ -398,23 +398,23 @@ namespace Microsoft.PowerShell.Commands
///
/// Resolves the specified path to PathInfo objects
///
- ///
+ ///
///
/// The path to be resolved. Each path may contain glob characters.
///
- ///
+ ///
///
/// If true, resolves the path even if it doesn't exist.
///
- ///
+ ///
///
/// The context under which the command is running.
///
- ///
+ ///
///
/// A string representing the resolved path.
///
- ///
+ ///
private PathInfo ResolvePath(
string pathToResolve,
bool allowNonexistingPaths,
diff --git a/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs b/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs
index 439150781d..5e8890a31c 100644
--- a/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs
+++ b/src/System.Management.Automation/singleshell/Commands/MshSnapinCommands.cs
@@ -23,14 +23,14 @@ namespace Microsoft.PowerShell.Commands
///
/// Set to true when object is disposed
///
- ///
+ ///
private bool _disposed;
///
/// Dispose method unloads the app domain and the
/// resource reader if it was created.
///
- ///
+ ///
public void Dispose()
{
if (_disposed == false)
@@ -52,7 +52,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Disposes the resource reader.
///
- ///
+ ///
protected override void EndProcessing()
{
if (_resourceReader != null)
@@ -245,7 +245,7 @@ namespace Microsoft.PowerShell.Commands
/// For perf reasons we only want to create one instance for the duration of the command
/// and be sure it gets disposed when the command completes.
///
- ///
+ ///
internal RegistryStringResourceIndirect ResourceReader
{
get {
@@ -293,7 +293,7 @@ namespace Microsoft.PowerShell.Commands
///
/// Gets or sets the Passthru flag for the operation.
- /// If true, the PSSnapInInfo object is passed down the
+ /// If true, the PSSnapInInfo object is passed down the
/// output pipeline.
///
[Parameter()]
@@ -345,7 +345,7 @@ namespace Microsoft.PowerShell.Commands
{
// cache snapin registry information...
- // For 3.0 PowerShell, we still use "1" as the registry version key for
+ // For 3.0 PowerShell, we still use "1" as the registry version key for
// Snapin and Custom shell lookup/discovery.
// For 3.0 PowerShell, we use "3" as the registry version key only for Engine
// related data like ApplicationBase etc.
@@ -753,7 +753,7 @@ namespace Microsoft.PowerShell.Commands
#region Overrides
///
- /// Constructs PSSnapInfo objects as requested by the user and writes them to the
+ /// Constructs PSSnapInfo objects as requested by the user and writes them to the
/// output buffer.
///
protected override void BeginProcessing()
diff --git a/src/System.Management.Automation/singleshell/config/MshConsoleInfo.cs b/src/System.Management.Automation/singleshell/config/MshConsoleInfo.cs
index 003990398a..dba09f680d 100644
--- a/src/System.Management.Automation/singleshell/config/MshConsoleInfo.cs
+++ b/src/System.Management.Automation/singleshell/config/MshConsoleInfo.cs
@@ -15,17 +15,17 @@ namespace System.Management.Automation.Runspaces
///
/// Class that understands Monad Console File Format. The format for the console
/// file is applied/read by this class only.
- ///
+ ///
/// Functionality:
/// 1. Schema version verification check.
/// 2. Data values for the content represented by Console file. Later this data
/// is used by other components ( MshConsoleInfo ) to construct Monad Types ( like
/// PSSnapInInfo ).
/// 3. Owns responsibility to read/write Files.
- ///
+ ///
/// Risk:
/// File Acces related security issues.
- ///
+ ///
/// Requires:
/// Might require Permissions to read/write into files.
///
@@ -43,7 +43,7 @@ namespace System.Management.Automation.Runspaces
internal class PSConsoleFileElement
{
#region Console format (xml) tags
- // Create constants for each of the xml tags
+ // Create constants for each of the xml tags
private const string MSHCONSOLEFILE = "PSConsoleFile";
private const string CSCHEMAVERSION = "ConsoleSchemaVersion";
private const string CSCHEMAVERSIONNUMBER = "1.0";
@@ -90,7 +90,7 @@ namespace System.Management.Automation.Runspaces
///
/// Writes MshConsoleInfo object in Monad Console format into the file specified by the .
///
- /// The absolute path of the file into which the content is saved.
+ /// The absolute path of the file into which the content is saved.
/// The version of PowerShell.
/// The external snapins that are loaded in the console
///
@@ -261,7 +261,7 @@ namespace System.Management.Automation.Runspaces
throw new XmlException(StringUtil.Format(ConsoleInfoErrorStrings.MultipleMshSnapinsElementNotSupported, SNAPINS));
}
- // We are about to process mshsnapins element..so we should not
+ // We are about to process mshsnapins element..so we should not
// process some more mshsnapins elements..this boolean keeps track
// of this.
isPSSnapInsProcessed = true;
@@ -299,15 +299,15 @@ namespace System.Management.Automation.Runspaces
///
/// Class that manages(reads/writes) Monad Console files and constructs objects
/// that represent data in the console files.
- ///
+ ///
/// Functionality:
/// 1. Access point to the console files for Runspace and cmdlets
/// 2. Depends on PSConsoleFileElement for reading/writing files
///
///
internal class MshConsoleInfo
@@ -352,7 +352,7 @@ namespace System.Management.Automation.Runspaces
}
///
- /// List of mshsnapins that are available. This includes both the monad
+ /// List of mshsnapins that are available. This includes both the monad
/// default mshsnapins as well as external mshsnapins as represented by the
/// console file.
///
@@ -400,7 +400,7 @@ namespace System.Management.Automation.Runspaces
///
///
/// Once a MshConsoleInfo object is constructed, a user may update the object by
- /// adding,removing mshsnapins. These operations directly effect the state of the
+ /// adding,removing mshsnapins. These operations directly effect the state of the
/// MshConsoleInfo object but not update the console file.
///
internal string Filename { get; private set; }
@@ -502,7 +502,7 @@ namespace System.Management.Automation.Runspaces
{
s_mshsnapinTracer.WriteLine("Creating console info from file {0}", fileName);
- // Construct default mshsnapins
+ // Construct default mshsnapins
MshConsoleInfo consoleInfo = CreateDefaultConfiguration();
// Check whether the filename specified is an absolute path.
@@ -519,14 +519,14 @@ namespace System.Management.Automation.Runspaces
#endregion
- #region Internal Instance Methods
+ #region Internal Instance Methods
///
/// Saves the current object to a file specified
/// by . IsDirty is set to false once file is saved.
///
///
- /// If path is not an absolute path, then an absolute path is constructed by
+ /// If path is not an absolute path, then an absolute path is constructed by
/// using Path.GetFullPath() API.
///
///
@@ -803,7 +803,7 @@ namespace System.Management.Automation.Runspaces
///
/// 1. Path does not specify proper file extension.
/// 2. PSSnapInId doesnt contain valid characters.
- /// 3. Path is not an Absolute Path.
+ /// 3. Path is not an Absolute Path.
/// Example of valid paths:"\\MyDir\\MyFile.txt" and "C:\\MyDir".
///
///
diff --git a/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs b/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs
index 5bf45370a3..d7353d5301 100644
--- a/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs
+++ b/src/System.Management.Automation/singleshell/config/MshConsoleLoadException.cs
@@ -7,7 +7,7 @@ using System.Text;
using System.Collections.ObjectModel;
#if CORECLR
-// Use stubs for SystemException, SerializationInfo and SecurityPermissionAttribute
+// Use stubs for SystemException, SerializationInfo and SecurityPermissionAttribute
using Microsoft.PowerShell.CoreClr.Stubs;
#else
using System.Security.Permissions;
@@ -16,14 +16,14 @@ using System.Security.Permissions;
namespace System.Management.Automation.Runspaces
{
///
- /// Defines exception thrown when a PSSnapin was not able to load into current runspace.
+ /// Defines exception thrown when a PSSnapin was not able to load into current runspace.
///
///
@@ -99,7 +99,7 @@ namespace System.Management.Automation.Runspaces
private ErrorRecord _errorRecord;
///
- /// Gets error record embedded in this exception.
+ /// Gets error record embedded in this exception.
///
///
@@ -104,7 +104,7 @@ namespace System.Management.Automation.Runspaces
private void CreateErrorRecord()
{
// if _PSSnapin or _reason is empty, this exception is created using default
- // constructor. Don't create the error record since there is
+ // constructor. Don't create the error record since there is
// no useful information anyway.
if (!String.IsNullOrEmpty(_PSSnapin) && !String.IsNullOrEmpty(_reason))
{
@@ -129,7 +129,7 @@ namespace System.Management.Automation.Runspaces
private bool _isErrorRecordOriginallyNull;
///
- /// Gets error record embedded in this exception.
+ /// Gets error record embedded in this exception.
///
///
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
/// If position is null, the one from the InvocationInfo is used.
@@ -49,43 +49,43 @@ namespace System.Management.Automation
/// token.OffsetInLine == {5}
/// -->
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
///
///
- ///
+ ///
///
/// The Type the parameter was expecting.
///
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
///
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
///
///
- ///
+ ///
///
/// If or
/// is null or empty.
@@ -144,70 +144,70 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingException
///
- ///
+ ///
///
/// The inner exception.
///
- ///
+ ///
///
/// The category for the error.
///
- ///
+ ///
///
/// The information about the command that encountered the error.
- ///
+ ///
/// InvocationInfo.MyCommand.Name == {0}
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
/// If position is null, the one from the InvocationInfo is used.
- ///
+ ///
/// token.LineNumber == {4}
/// token.OffsetInLine == {5}
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
- ///
+ ///
/// parameterName == {1}
///
- ///
+ ///
///
/// The Type the parameter was expecting.
- ///
+ ///
/// parameterType == {2}
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
- ///
+ ///
/// typeSpecified == {3}
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
- ///
+ ///
/// starts at {6}
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If or
/// is null or empty.
///
- ///
+ ///
internal ParameterBindingException(
Exception innerException,
ErrorCategory errorCategory,
@@ -262,7 +262,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
///
///
@@ -324,13 +324,13 @@ namespace System.Management.Automation
///
/// Constructors a ParameterBindingException using serialized data.
///
- ///
- ///
- /// serialization information
+ ///
+ ///
+ /// serialization information
///
- ///
- ///
- /// streaming context
+ ///
+ ///
+ /// streaming context
///
protected ParameterBindingException(
SerializationInfo info,
@@ -346,13 +346,13 @@ namespace System.Management.Automation
///
/// Serializes the exception
///
- ///
- ///
- /// serialization information
+ ///
+ ///
+ /// serialization information
///
- ///
- ///
- /// streaming context
+ ///
+ ///
+ /// streaming context
///
[SecurityPermissionAttribute(SecurityAction.Demand, SerializationFormatter = true)]
public override void GetObjectData(SerializationInfo info, StreamingContext context)
@@ -375,7 +375,7 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingException.
///
- ///
+ ///
///
/// DO NOT USE!!!
///
@@ -384,11 +384,11 @@ namespace System.Management.Automation
///
/// Constructors a ParameterBindingException
///
- ///
- ///
+ ///
+ ///
/// Message to be included in exception.
///
- ///
+ ///
///
/// DO NOT USE!!!
///
@@ -397,15 +397,15 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingException
///
- ///
+ ///
///
/// Message to be included in the exception.
///
- ///
- ///
- /// exception that led to this exception
+ ///
+ ///
+ /// exception that led to this exception
///
- ///
+ ///
///
/// DO NOT USE!!!
///
@@ -557,61 +557,61 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingValidationException
///
- ///
+ ///
///
/// The category for the error.
///
- ///
+ ///
///
/// The information about the command that encountered the error.
- ///
+ ///
/// InvocationInfo.MyCommand.Name == {0}
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
- ///
+ ///
/// token.LineNumber == {4}
/// token.OffsetInLine == {5}
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
- ///
+ ///
/// parameterName == {1}
///
- ///
+ ///
///
/// The Type the parameter was expecting.
- ///
+ ///
/// parameterType == {2}
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
- ///
+ ///
/// typeSpecified == {3}
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
- ///
+ ///
/// starts at {6}
///
- ///
+ ///
///
/// If or
/// is null or empty.
///
- ///
+ ///
internal ParameterBindingValidationException(
ErrorCategory errorCategory,
InvocationInfo invocationInfo,
@@ -638,69 +638,69 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingValidationException
///
- ///
+ ///
///
/// The inner exception.
///
- ///
+ ///
///
/// The category for the error.
///
- ///
+ ///
///
/// The information about the command that encountered the error.
- ///
+ ///
/// InvocationInfo.MyCommand.Name == {0}
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
- ///
+ ///
/// token.LineNumber == {4}
/// token.OffsetInLine == {5}
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
- ///
+ ///
/// parameterName == {1}
///
- ///
+ ///
///
/// The Type the parameter was expecting.
- ///
+ ///
/// parameterType == {2}
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
- ///
+ ///
/// typeSpecified == {3}
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
- ///
+ ///
/// starts at {6}
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If or
/// is null or empty.
///
- ///
+ ///
internal ParameterBindingValidationException(
Exception innerException,
ErrorCategory errorCategory,
@@ -736,13 +736,13 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingValidationException from serialized data
///
- ///
- ///
- /// serialization information
+ ///
+ ///
+ /// serialization information
///
- ///
- ///
- /// streaming context
+ ///
+ ///
+ /// streaming context
///
protected ParameterBindingValidationException(
SerializationInfo info,
@@ -758,7 +758,7 @@ namespace System.Management.Automation
///
/// Make the positional binding ignore this validation exception when it's set to true.
///
- ///
+ ///
///
/// This property is only used internally in the positional binding phase
///
@@ -779,61 +779,61 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingArgumentTransformationException
///
- ///
+ ///
///
/// The category for the error.
///
- ///
+ ///
///
/// The information about the command that encountered the error.
- ///
+ ///
/// InvocationInfo.MyCommand.Name == {0}
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
- ///
+ ///
/// token.LineNumber == {4}
/// token.OffsetInLine == {5}
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
- ///
+ ///
/// parameterName == {1}
///
- ///
+ ///
///
/// The Type the parameter was expecting.
- ///
+ ///
/// parameterType == {2}
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
- ///
+ ///
/// typeSpecified == {3}
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
- ///
+ ///
/// starts at {6}
///
- ///
+ ///
///
/// If or
/// is null or empty.
///
- ///
+ ///
internal ParameterBindingArgumentTransformationException(
ErrorCategory errorCategory,
InvocationInfo invocationInfo,
@@ -860,69 +860,69 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingArgumentTransformationException
///
- ///
+ ///
///
/// The inner exception.
///
- ///
+ ///
///
/// The category for the error.
///
- ///
+ ///
///
/// The information about the command that encountered the error.
- ///
+ ///
/// InvocationInfo.MyCommand.Name == {0}
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
- ///
+ ///
/// token.LineNumber == {4}
/// token.OffsetInLine == {5}
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
- ///
+ ///
/// parameterName == {1}
///
- ///
+ ///
///
/// The Type the parameter was expecting.
- ///
+ ///
/// parameterType == {2}
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
- ///
+ ///
/// typeSpecified == {3}
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
- ///
+ ///
/// starts at {6}
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If or
/// is null or empty.
///
- ///
+ ///
internal ParameterBindingArgumentTransformationException(
Exception innerException,
ErrorCategory errorCategory,
@@ -952,13 +952,13 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingArgumentTransformationException using serialized data
///
- ///
- ///
- /// serialization information
+ ///
+ ///
+ /// serialization information
///
- ///
- ///
- /// streaming context
+ ///
+ ///
+ /// streaming context
///
protected ParameterBindingArgumentTransformationException(
SerializationInfo info,
@@ -978,61 +978,61 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingParameterDefaultValueException
///
- ///
+ ///
///
/// The category for the error.
///
- ///
+ ///
///
/// The information about the command that encountered the error.
- ///
+ ///
/// InvocationInfo.MyCommand.Name == {0}
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
- ///
+ ///
/// token.LineNumber == {4}
/// token.OffsetInLine == {5}
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
- ///
+ ///
/// parameterName == {1}
///
- ///
+ ///
///
/// The Type the parameter was expecting.
- ///
+ ///
/// parameterType == {2}
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
- ///
+ ///
/// typeSpecified == {3}
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
- ///
+ ///
/// starts at {6}
///
- ///
+ ///
///
/// If or
/// is null or empty.
///
- ///
+ ///
internal ParameterBindingParameterDefaultValueException(
ErrorCategory errorCategory,
InvocationInfo invocationInfo,
@@ -1059,69 +1059,69 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingParameterDefaultValueException
///
- ///
+ ///
///
/// The inner exception.
///
- ///
+ ///
///
/// The category for the error.
///
- ///
+ ///
///
/// The information about the command that encountered the error.
- ///
+ ///
/// InvocationInfo.MyCommand.Name == {0}
///
- ///
+ ///
///
/// The position for the command or parameter that caused the error.
- ///
+ ///
/// token.LineNumber == {4}
/// token.OffsetInLine == {5}
///
- ///
+ ///
///
/// The parameter on which binding caused the error.
- ///
+ ///
/// parameterName == {1}
///
- ///
+ ///
///
/// The Type the parameter was expecting.
- ///
+ ///
/// parameterType == {2}
///
- ///
+ ///
///
/// The Type that was attempted to be bound to the parameter.
- ///
+ ///
/// typeSpecified == {3}
///
- ///
+ ///
///
/// The format string for the exception message.
///
- ///
+ ///
///
/// The error ID.
///
- ///
+ ///
///
/// Additional arguments to pass to the format string.
- ///
+ ///
/// starts at {6}
///
- ///
+ ///
///
/// If is null.
///
- ///
+ ///
///
/// If or
/// is null or empty.
///
- ///
+ ///
internal ParameterBindingParameterDefaultValueException(
Exception innerException,
ErrorCategory errorCategory,
@@ -1152,13 +1152,13 @@ namespace System.Management.Automation
///
/// Constructs a ParameterBindingParameterDefaultValueException using serialized data
///
- ///
- ///
- /// serialization information
+ ///
+ ///
+ /// serialization information
///
- ///
- ///
- /// streaming context
+ ///
+ ///
+ /// streaming context
///
protected ParameterBindingParameterDefaultValueException(
SerializationInfo info,
diff --git a/src/System.Management.Automation/utils/PathUtils.cs b/src/System.Management.Automation/utils/PathUtils.cs
index fe1063aba8..632938e40e 100644
--- a/src/System.Management.Automation/utils/PathUtils.cs
+++ b/src/System.Management.Automation/utils/PathUtils.cs
@@ -18,7 +18,7 @@ namespace System.Management.Automation
internal static class PathUtils
{
///
- /// THE method for opening a file for writing.
+ /// THE method for opening a file for writing.
/// Should be used by all cmdlets that write to a file.
///
/// cmdlet that is opening the file (used mainly for error reporting)
@@ -52,7 +52,7 @@ namespace System.Management.Automation
}
///
- /// THE method for opening a file for writing.
+ /// THE method for opening a file for writing.
/// Should be used by all cmdlets that write to a file.
///
/// cmdlet that is opening the file (used mainly for error reporting)
diff --git a/src/System.Management.Automation/utils/PlatformInvokes.cs b/src/System.Management.Automation/utils/PlatformInvokes.cs
index 6416092eed..aec86dee95 100644
--- a/src/System.Management.Automation/utils/PlatformInvokes.cs
+++ b/src/System.Management.Automation/utils/PlatformInvokes.cs
@@ -105,7 +105,7 @@ namespace System.Management.Automation
}
[Flags]
- //dwFlagsAndAttributes
+ //dwFlagsAndAttributes
internal enum FileAttributes : uint
{
ReadOnly = 0x00000001,
@@ -170,26 +170,26 @@ namespace System.Management.Automation
///
/// Creates or opens a file, file stream, directory, physical disk, volume, console buffer,
- /// tape drive, communications resource, mailslot, or named pipe. The function returns a
+ /// tape drive, communications resource, mailslot, or named pipe. The function returns a
/// handle that can be used to access the object.
///
///
/// The name of the object to be created or opened.
- /// In the ANSI version of this function, the name is limited to MAX_PATH characters.
- /// To extend this limit to 32,767 wide characters, call the Unicode version of the
- /// function and prepend "\\?\" to the path. For more information, see Naming a File.
+ /// In the ANSI version of this function, the name is limited to MAX_PATH characters.
+ /// To extend this limit to 32,767 wide characters, call the Unicode version of the
+ /// function and prepend "\\?\" to the path. For more information, see Naming a File.
/// For information on special device names, see Defining an MS-DOS Device Name.
- /// To specify a COM port number greater than 9, use the following syntax: "\\.\COM10".
+ /// To specify a COM port number greater than 9, use the following syntax: "\\.\COM10".
/// This syntax works for all port numbers and hardware that allows COM port numbers to be specified.
/// To create a file stream, specify the name of the file, a colon, and then the name of the
/// stream. For more information, see File Streams.
///
///
/// The access to the object, which can be read, write, or both.
- /// You cannot request an access mode that conflicts with the sharing mode that is
+ /// You cannot request an access mode that conflicts with the sharing mode that is
/// specified in an open request that has an open handle.
- /// If this parameter is zero (0), the application can query file and device attributes
- /// without accessing a device. This is useful for an application to determine the size
+ /// If this parameter is zero (0), the application can query file and device attributes
+ /// without accessing a device. This is useful for an application to determine the size
/// of a floppy disk drive and the formats it supports without requiring a floppy in a drive.
/// It can also be used to test for the existence of a file or directory without opening
/// them for read or write access.
@@ -197,54 +197,54 @@ namespace System.Management.Automation
///
///
/// The sharing mode of an object, which can be read, write, both, or none.
- /// You cannot request a sharing mode that conflicts with the access mode that is specified
- /// in an open request that has an open handle, because that would result in the following
- /// sharing violation: ERROR_SHARING_VIOLATION.
- /// If this parameter is zero (0) and CreateFile succeeds, the object cannot be shared
- /// and cannot be opened again until the handle is closed. For more information, see the
+ /// You cannot request a sharing mode that conflicts with the access mode that is specified
+ /// in an open request that has an open handle, because that would result in the following
+ /// sharing violation: ERROR_SHARING_VIOLATION.
+ /// If this parameter is zero (0) and CreateFile succeeds, the object cannot be shared
+ /// and cannot be opened again until the handle is closed. For more information, see the
/// Remarks section of this topic.
/// The sharing options remain in effect until you close the handle to an object.
/// To enable a process to share an object while another process has the object open,
/// use a combination of one or more of the following values to specify the access mode
- /// they can request to open the object.
+ /// they can request to open the object.
///
///
- /// A pointer to a SECURITY_ATTRIBUTES structure that determines whether or not the returned
+ /// A pointer to a SECURITY_ATTRIBUTES structure that determines whether or not the returned
/// handle can be inherited by child processes.
/// If lpSecurityAttributes is NULL, the handle cannot be inherited.
/// The lpSecurityDescriptor member of the structure specifies a security descriptor
- /// for an object. If lpSecurityAttributes is NULL, the object gets a default security descriptor.
- /// The access control lists (ACL) in the default security descriptor for a file or directory
+ /// for an object. If lpSecurityAttributes is NULL, the object gets a default security descriptor.
+ /// The access control lists (ACL) in the default security descriptor for a file or directory
/// are inherited from its parent directory.
/// The target file system must support security on files and directories for this parameter to
/// have an effect on them, which is indicated when GetVolumeInformation returns FS_PERSISTENT_ACLS.
- /// CreateFile ignores lpSecurityDescriptor when opening an existing file, but continues to
+ /// CreateFile ignores lpSecurityDescriptor when opening an existing file, but continues to
/// use the other structure members.
///
///
- /// An action to take on files that exist and do not exist.
+ /// An action to take on files that exist and do not exist.
/// See "CreateFile creation disposition" below
///
///
/// The file attributes and flags.
- /// This parameter can include any combination of the file attributes.
+ /// This parameter can include any combination of the file attributes.
/// All other file attributes override FILE_ATTRIBUTE_NORMAL.
- /// When CreateFile opens a file, it combines the file flags with existing
+ /// When CreateFile opens a file, it combines the file flags with existing
/// file attributes, and ignores any supplied file attributes.
///
///
- /// A handle to a template file with the GENERIC_READ access right.
+ /// A handle to a template file with the GENERIC_READ access right.
/// The template file supplies file attributes and extended attributes for the file that is
/// being created. This parameter can be NULL.
/// When opening an existing file, CreateFile ignores the template file.
/// When opening a new EFS-encrypted file, the file inherits the DACL from its parent directory.
///
///
- /// If the function succeeds, the return value is an open handle to a specified file.
+ /// If the function succeeds, the return value is an open handle to a specified file.
/// If a specified file exists before the function call and dwCreationDisposition is CREATE_ALWAYS
- /// or OPEN_ALWAYS, a call to GetLastError returns ERROR_ALREADY_EXISTS, even when the
+ /// or OPEN_ALWAYS, a call to GetLastError returns ERROR_ALREADY_EXISTS, even when the
/// function succeeds. If a file does not exist before the call, GetLastError returns zero (0).
- /// If the function fails, the return value is INVALID_HANDLE_VALUE.
+ /// If the function fails, the return value is INVALID_HANDLE_VALUE.
/// To get extended error information, call GetLastError.
///
[DllImport(PinvokeDllNames.CreateFileDllName, SetLastError = true, CharSet = CharSet.Unicode)]
@@ -265,10 +265,10 @@ namespace System.Management.Automation
///
///
/// If the function succeeds, the return value is nonzero.
- /// If the function fails, the return value is zero. To get extended error information,
+ /// If the function fails, the return value is zero. To get extended error information,
/// call GetLastError.
- /// If the application is running under a debugger, the function will throw an exception
- /// if it receives either a handle value that is not valid or a pseudo-handle value.
+ /// If the application is running under a debugger, the function will throw an exception
+ /// if it receives either a handle value that is not valid or a pseudo-handle value.
/// This can happen if you close a handle twice, or if you call CloseHandle on a handle
/// returned by the FindFirstFile function.
///
@@ -281,12 +281,12 @@ namespace System.Management.Automation
internal static extern bool DosDateTimeToFileTime(
short wFatDate, // _In_ WORD
short wFatTime, // _In_ WORD
- FILETIME lpFileTime); // _Out_ LPFILETIME
+ FILETIME lpFileTime); // _Out_ LPFILETIME
[DllImport(PinvokeDllNames.LocalFileTimeToFileTimeDllName, SetLastError = false, CharSet = CharSet.Unicode)]
internal static extern bool LocalFileTimeToFileTime(
FILETIME lpLocalFileTime, // _In_ const FILETIME *
- FILETIME lpFileTime); // _Out_ LPFILETIME
+ FILETIME lpFileTime); // _Out_ LPFILETIME
[DllImport(PinvokeDllNames.SetFileTimeDllName, SetLastError = false, CharSet = CharSet.Unicode)]
internal static extern bool SetFileTime(
@@ -462,7 +462,7 @@ namespace System.Management.Automation
internal static extern bool PrivilegeCheck(IntPtr tokenHandler, ref PRIVILEGE_SET requiredPrivileges, out bool pfResult);
///
- /// The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in
+ /// The AdjustTokenPrivileges function enables or disables privileges in the specified access token. Enabling or disabling privileges in
/// an access token requires TOKEN_ADJUST_PRIVILEGES access. The TOKEN_ADJUST_PRIVILEGES and TOKEN_QUERY accesses are gained when calling
/// the OpenProcessToken function.
///
@@ -511,7 +511,7 @@ namespace System.Management.Automation
}
///
- /// Get the pseudo handler of the current process
+ /// Get the pseudo handler of the current process
///
///
[DllImport(PinvokeDllNames.GetCurrentProcessDllName)]
@@ -519,8 +519,8 @@ namespace System.Management.Automation
internal static extern IntPtr GetCurrentProcess();
///
- /// Retrieves the current process token.
- /// This function exists just for backward compatibility. It is prefered to use the other override that takes 'SafeHandle' as parameter.
+ /// Retrieves the current process token.
+ /// This function exists just for backward compatibility. It is prefered to use the other override that takes 'SafeHandle' as parameter.
///
/// process handle
/// token access
@@ -796,7 +796,7 @@ namespace System.Management.Automation
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 260)] public string szExeFile;
};
- internal const int ERROR_NO_MORE_FILES = 0x12;
+ internal const int ERROR_NO_MORE_FILES = 0x12;
#endif
diff --git a/src/System.Management.Automation/utils/PowerShellETWTracer.cs b/src/System.Management.Automation/utils/PowerShellETWTracer.cs
index 531c5a569a..59375d10e8 100644
--- a/src/System.Management.Automation/utils/PowerShellETWTracer.cs
+++ b/src/System.Management.Automation/utils/PowerShellETWTracer.cs
@@ -670,17 +670,17 @@ namespace System.Management.Automation.Tracing
ManagedPlugIn = 0x100,
///
- ///
+ ///
///
UseAlwaysDebug = 0x2000000000000000,
///
- ///
+ ///
///
UseAlwaysOperational = 0x8000000000000000,
///
- ///
+ ///
///
UseAlwaysAnalytic = 0x4000000000000000,
}
@@ -764,7 +764,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
public virtual PowerShellTraceKeywords Keywords
{
@@ -799,7 +799,7 @@ namespace System.Management.Automation.Tracing
///
/// ChannelWrite is the concrete implementation of IChannelWrite. It writes all the traces to the specified traceChannel.
- /// TraceChannel is specified in the constructor.
+ /// TraceChannel is specified in the constructor.
/// It always uses PowerShell event provider Id.
///
public sealed class PowerShellChannelWriter : BaseChannelWriter
@@ -815,7 +815,7 @@ namespace System.Management.Automation.Tracing
private PowerShellTraceKeywords _keywords;
///
- ///
+ ///
///
public override PowerShellTraceKeywords Keywords
{
@@ -1090,7 +1090,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1102,7 +1102,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1115,7 +1115,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1129,7 +1129,7 @@ namespace System.Management.Automation.Tracing
///
- ///
+ ///
///
///
///
@@ -1151,7 +1151,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1450,7 +1450,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1474,7 +1474,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
///
@@ -1505,10 +1505,10 @@ namespace System.Management.Automation.Tracing
public static class PowerShellTraceSourceFactory
{
///
- /// Returns an instance of BaseChannelWriter.
+ /// Returns an instance of BaseChannelWriter.
/// If the Etw is not supported by the platform it will return NullWriter.Instance
- ///
- /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
+ ///
+ /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
/// The supplied task and keywords are used to pass to the Etw provider in case they are
/// not defined in the manifest file.
///
@@ -1518,10 +1518,10 @@ namespace System.Management.Automation.Tracing
}
///
- /// Returns an instance of BaseChannelWriter.
+ /// Returns an instance of BaseChannelWriter.
/// If the Etw is not supported by the platform it will return NullWriter.Instance
- ///
- /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
+ ///
+ /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
/// The supplied task and keywords are used to pass to the Etw provider in case they are
/// not defined in the manifest file.
///
@@ -1531,10 +1531,10 @@ namespace System.Management.Automation.Tracing
}
///
- /// Returns an instance of BaseChannelWriter.
+ /// Returns an instance of BaseChannelWriter.
/// If the Etw is not supported by the platform it will return NullWriter.Instance
- ///
- /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
+ ///
+ /// A Task and a set of Keywords can be specified in the GetTraceSource method (See overloads).
/// The supplied task and keywords are used to pass to the Etw provider in case they are
/// not defined in the manifest file.
///
diff --git a/src/System.Management.Automation/utils/PsUtils.cs b/src/System.Management.Automation/utils/PsUtils.cs
index c06ab86345..96a29ff268 100644
--- a/src/System.Management.Automation/utils/PsUtils.cs
+++ b/src/System.Management.Automation/utils/PsUtils.cs
@@ -31,7 +31,7 @@ namespace System.Management.Automation
///
/// Safely retrieves the MainModule property of a
- /// process. Version 2.0 and below of the .NET Framework are
+ /// process. Version 2.0 and below of the .NET Framework are
/// impacted by a Win32 API usability knot that throws an
/// exception if API tries to enumerate the process' modules
/// while it is still loading them. This generates the error
@@ -51,15 +51,15 @@ namespace System.Management.Automation
/// The process from which to
/// retrieve the MainModule
///
- /// You are trying to access the MainModule property for a process that is running
- /// on a remote computer. This property is available only for processes that are
+ /// You are trying to access the MainModule property for a process that is running
+ /// on a remote computer. This property is available only for processes that are
/// running on the local computer.
///
///
- /// The process Id is not available (or) The process has exited.
+ /// The process Id is not available (or) The process has exited.
///
///
- ///
+ ///
///
internal static ProcessModule GetMainModule(Process targetProcess)
{
@@ -92,8 +92,8 @@ namespace System.Management.Automation
///
/// Retrieve the parent process of a process.
- ///
- /// Previously this code used WMI, but WMI is causing a CPU spike whenever the query gets called as it results in
+ ///
+ /// Previously this code used WMI, but WMI is causing a CPU spike whenever the query gets called as it results in
/// tzres.dll and tzres.mui.dll being loaded into every process to conver the time information to local format.
/// For perf reasons, we result to P/Invoke.
///
@@ -196,7 +196,7 @@ namespace System.Management.Automation
const string install = "Install";
const string oneToThreePointFivePrefix = @"SOFTWARE\Microsoft\NET Framework Setup\NDP\";
- // In .NET 4.5, there is no concept of Client and Full. There is only the full redistributable package available
+ // In .NET 4.5, there is no concept of Client and Full. There is only the full redistributable package available
// http://msdn.microsoft.com/en-us/library/cc656912(VS.110).aspx
const string v45KeyName = @"v4\Full";
const string v45ReleaseKeyName = "Release";
@@ -251,7 +251,7 @@ namespace System.Management.Automation
}
// To add v1.0 in the future note that
- // http://msdn.microsoft.com/en-us/library/ms994395.aspx does not mention
+ // http://msdn.microsoft.com/en-us/library/ms994395.aspx does not mention
// NDP keys since they were not introduced until later.
// There were no official setup keys, but this blog suggests an alternative for finding out
// about the service pack information:
@@ -465,7 +465,7 @@ namespace System.Management.Automation
///
/// Check if the given version if the framework is installed
///
- /// version to check.
+ /// version to check.
/// for .NET Framework 3.5 and any service pack this can be new Version(3,5) or new Version(3, 5, 21022, 8).
/// for .NET 3.5 with SP1 this should be new Version(3, 5, 30729, 1).
/// For other versions please check the table at http://support.microsoft.com/kb/318785.
@@ -678,11 +678,11 @@ namespace System.Management.Automation
#region ASTUtils
///
- /// This method is to get the unique key for a UsingExpressionAst. The key is a base64
+ /// This method is to get the unique key for a UsingExpressionAst. The key is a base64
/// encoded string based on the text of the UsingExpressionAst.
- ///
+ ///
/// This method is used when handling a script block that contains $using for Invoke-Command.
- ///
+ ///
/// When run Invoke-Command targeting a machine that runs PSv3 or above, we pass a dictionary
/// to the remote end that contains the key of each UsingExpressionAst and its value. This method
/// is used to generate the key.
@@ -693,14 +693,14 @@ namespace System.Management.Automation
{
Diagnostics.Assert(usingAst != null, "Caller makes sure the parameter is not null");
- // We cannot call ToLowerInvariant unconditionally, because usingAst might
+ // We cannot call ToLowerInvariant unconditionally, because usingAst might
// contain IndexExpressionAst in its SubExpression, such as
// $using:bar["AAAA"]
// and the index "AAAA" might not get us the same value as "aaaa".
//
// But we do want a unique key to represent the same UsingExpressionAst's as much
- // as possible, so as to avoid sending redundant key-value's to remote machine.
- // As a workaround, we call ToLowerInvariant when the SubExpression of usingAst
+ // as possible, so as to avoid sending redundant key-value's to remote machine.
+ // As a workaround, we call ToLowerInvariant when the SubExpression of usingAst
// is a VariableExpressionAst, because:
// (1) Variable name is case insensitive;
// (2) People use $using to refer to a variable most of the time.
@@ -1039,7 +1039,7 @@ namespace System.Management.Automation
// contents will return the same value for Object.GetHashCode.
//
// RuntimeHelpers.GetHashCode is useful in scenarios where you care about object identity. Two strings with
- // identical contents will return different values for RuntimeHelpers.GetHashCode, because they are different
+ // identical contents will return different values for RuntimeHelpers.GetHashCode, because they are different
// string objects, although their contents are the same.
return RuntimeHelpers.GetHashCode(obj);
diff --git a/src/System.Management.Automation/utils/ResourceManagerCache.cs b/src/System.Management.Automation/utils/ResourceManagerCache.cs
index 1b7e6f580d..11c72b60b3 100644
--- a/src/System.Management.Automation/utils/ResourceManagerCache.cs
+++ b/src/System.Management.Automation/utils/ResourceManagerCache.cs
@@ -9,13 +9,13 @@ using System.Resources;
namespace System.Management.Automation
{
///
- ///
+ ///
///
internal static class ResourceManagerCache
{
///
/// Maintains a cache of ResourceManager objects. This is a dictionary that is keyed based on the path
- /// to the default resource assembly. The value is another dictionary that is keyed based on the base
+ /// to the default resource assembly. The value is another dictionary that is keyed based on the base
/// name for the resource that is being retrieved. The value for this dictionary is the ResourceManager.
///
private static Dictionary> s_resourceManagerCache =
@@ -30,19 +30,19 @@ namespace System.Management.Automation
/// Gets the ResourceManager from the cache or gets an instance of the ResourceManager
/// and returns it if it isn't already present in the cache.
///
- ///
+ ///
///
/// The assembly to be used as the base for resource lookup.
///
- ///
+ ///
///
/// The base name of the resources to get the ResourceManager for.
///
- ///
+ ///
///
/// A ResourceManager instance for the assembly and base name that were specified.
///
- ///
+ ///
internal static ResourceManager GetResourceManager(
Assembly assembly,
string baseName)
@@ -129,27 +129,27 @@ namespace System.Management.Automation
/// Gets the string from the resource manager based on the assembly,
/// base name, resource ID, and culture specified
///
- ///
+ ///
///
/// The base assembly from which to get the resources from.
///
- ///
+ ///
///
/// The base name of the resource to retrieve the string from.
///
- ///
+ ///
///
/// Resource ID for which the localized string needs to be retrieved
///
- ///
+ ///
///
/// Localized String, or null if the string does not exist
///
- ///
+ ///
///
/// The current thread's UI culture is used.
///
- ///
+ ///
///
/// ArgumentException if or
/// are null or empty..
@@ -191,9 +191,9 @@ namespace System.Management.Automation
/// Creates a Resource manager instance based on the assembly specified.
///
///
- /// The root name of the resources.
- /// For example, the root name for the resource file
- /// named "MyResource.en-US.resources" is "MyResource".
+ /// The root name of the resources.
+ /// For example, the root name for the resource file
+ /// named "MyResource.en-US.resources" is "MyResource".
///
///
/// The main Assembly for the resources
diff --git a/src/System.Management.Automation/utils/RuntimeException.cs b/src/System.Management.Automation/utils/RuntimeException.cs
index 69032d482a..f16a477058 100644
--- a/src/System.Management.Automation/utils/RuntimeException.cs
+++ b/src/System.Management.Automation/utils/RuntimeException.cs
@@ -268,7 +268,7 @@ namespace System.Management.Automation
}
///
- ///
+ ///
///
public bool WasThrownFromThrowStatement
{
diff --git a/src/System.Management.Automation/utils/SessionStateExceptions.cs b/src/System.Management.Automation/utils/SessionStateExceptions.cs
index d116681942..d6b3415776 100644
--- a/src/System.Management.Automation/utils/SessionStateExceptions.cs
+++ b/src/System.Management.Automation/utils/SessionStateExceptions.cs
@@ -16,7 +16,7 @@ using Microsoft.PowerShell.CoreClr.Stubs;
namespace System.Management.Automation
{
///
- /// An exception that wraps all exceptions that are thrown by providers. This allows
+ /// An exception that wraps all exceptions that are thrown by providers. This allows
/// callers of the provider APIs to be able to catch a single exception no matter
/// what any of the various providers may have thrown.
///
@@ -34,13 +34,13 @@ namespace System.Management.Automation
///
/// Constructs a ProviderInvocationException using serialized data
///
- ///
- ///
- /// serialization information
+ ///
+ ///
+ /// serialization information
///
- ///
- ///
- /// streaming context
+ ///
+ ///
+ /// streaming context
///
protected ProviderInvocationException(
SerializationInfo info,
@@ -52,7 +52,7 @@ namespace System.Management.Automation
///
/// Constructs a ProviderInvocationException with a message
///
- ///
+ ///
///
/// The message for the exception.
///
@@ -65,11 +65,11 @@ namespace System.Management.Automation
///
/// Constructs a ProviderInvocationException with provider information and an inner exception.
///
- ///
+ ///
///
/// Information about the provider to be used in formatting the message.
///
- ///
+ ///
///
/// The inner exception for this exception.
///
@@ -98,11 +98,11 @@ namespace System.Management.Automation
/// Constructs a ProviderInvocationException with provider information and an
/// ErrorRecord.
///
- ///
+ ///
///
/// Information about the provider to be used in formatting the message.
///
- ///
+ ///
///
/// Detailed error information
///
@@ -124,11 +124,11 @@ namespace System.Management.Automation
/// Constructs a ProviderInvocationException with a message
/// and inner exception.
///
- ///
+ ///
///
/// The message for the exception.
///
- ///
+ ///
///
/// The inner exception for this exception.
///
@@ -141,30 +141,30 @@ namespace System.Management.Automation
///
/// Constructs a ProviderInvocationException
///
- ///
+ ///
///
/// This string will be used to construct the FullyQualifiedErrorId,
/// which is a global identifier of the error condition. Pass a
/// non-empty string which is specific to this error condition in
/// this context.
///
- ///
+ ///
///
/// This string is the message template string.
///
- ///
+ ///
///
/// The provider information used to format into the message.
///
- ///
+ ///
///
/// The path that was being processed when the exception occurred.
///
- ///
+ ///
///
/// The exception that was thrown by the provider.
///
- ///
+ ///
internal ProviderInvocationException(
string errorId,
string resourceStr,
@@ -178,35 +178,35 @@ namespace System.Management.Automation
///
/// Constructor to make it easy to wrap a provider exception
///
- ///
+ ///
///
/// This string will be used to construct the FullyQualifiedErrorId,
/// which is a global identifier of the error condition. Pass a
/// non-empty string which is specific to this error condition in
/// this context.
///
- ///
+ ///
///
/// This is the message template string
///
- ///
+ ///
///
/// The provider information used to format into the message.
///
- ///
+ ///
///
/// The path that was being processed when the exception occurred.
///
- ///
+ ///
///
/// The exception that was thrown by the provider.
///
- ///
+ ///
///
/// If true, the message from the inner exception will be used if the exception contains
/// an ErrorRecord. If false, the error message retrieved using the errorId will be used.
///
- ///
+ ///
internal ProviderInvocationException(
string errorId,
string resourceStr,
@@ -417,7 +417,7 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateException
///
- ///
+ ///
/// name of session state object
/// category of session state object
/// This string is the message template string.
@@ -457,7 +457,7 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateException
///
- ///
+ ///
///
/// The message used in the exception.
///
@@ -469,11 +469,11 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateException
///
- ///
+ ///
///
/// The message used in the exception.
///
- ///
+ ///
///
/// The exception that caused the error.
///
@@ -596,24 +596,24 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateOverflowException
///
- ///
+ ///
/// The name of the session state object the error occurred on.
///
- ///
- ///
+ ///
+ ///
/// The category of session state object.
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
/// SessionStateStrings.txt.
///
- ///
+ ///
///
/// This string is the message template string
///
- ///
+ ///
///
/// Additional insertion strings used to construct the message.
/// Note that itemName is always the first insertion string.
@@ -641,7 +641,7 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateOverflowException with a message.
///
- ///
+ ///
/// The message used by the exception.
///
public SessionStateOverflowException(string message) : base(message)
@@ -651,11 +651,11 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateOverflowException
///
- ///
- ///
+ ///
+ ///
/// The message the exception will use.
///
- ///
+ ///
///
/// The exception that caused the error.
///
@@ -670,7 +670,7 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateOverflowException using serialized data.
///
- ///
+ ///
/// serialization information
/// streaming context
protected SessionStateOverflowException(SerializationInfo info,
@@ -696,21 +696,21 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateUnauthorizedAccessException
///
- ///
- ///
+ ///
+ ///
/// The name of the session state object the error occurred on.
///
- ///
- ///
+ ///
+ ///
/// The category of session state object.
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
/// SessionStateStrings.txt.
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
@@ -752,7 +752,7 @@ namespace System.Management.Automation
///
/// The message used by the exception.
///
- ///
+ ///
///
/// The exception that caused the error.
///
@@ -767,7 +767,7 @@ namespace System.Management.Automation
///
/// Constructs a SessionStateUnauthorizedAccessException using serialized data.
///
- ///
+ ///
/// serialization information
/// streaming context
protected SessionStateUnauthorizedAccessException(
@@ -790,25 +790,25 @@ namespace System.Management.Automation
///
/// Constructs a ProviderNotFoundException
///
- ///
- ///
+ ///
+ ///
/// The name of provider that could not be found.
///
- ///
- ///
- /// The category of session state object
+ ///
+ ///
+ /// The category of session state object
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
/// SessionStateStrings.txt.
///
- ///
+ ///
///
/// This string is the message template string
///
- ///
+ ///
///
/// Additional arguments to build the message from.
///
@@ -853,7 +853,7 @@ namespace System.Management.Automation
///
/// The message used by the exception.
///
- ///
+ ///
/// The exception that caused the error.
///
public ProviderNotFoundException(string message,
@@ -889,26 +889,26 @@ namespace System.Management.Automation
///
/// Constructs a ProviderNameAmbiguousException
///
- ///
- ///
+ ///
+ ///
/// The name of provider that was ambiguous.
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
/// SessionStateStrings.txt.
///
- ///
+ ///
///
/// This string is the message template string
///
- ///
+ ///
///
/// The provider information for the providers that match the specified
/// name.
///
- ///
+ ///
///
/// Additional arguments to build the message from.
///
@@ -953,7 +953,7 @@ namespace System.Management.Automation
///
/// The message used by the exception.
///
- ///
+ ///
/// The exception that caused the error.
///
public ProviderNameAmbiguousException(string message,
@@ -1009,13 +1009,13 @@ namespace System.Management.Automation
///
/// The name of the drive that could not be found.
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
/// SessionStateStrings.txt.
///
- ///
+ ///
///
/// This string is the message template string
///
@@ -1040,7 +1040,7 @@ namespace System.Management.Automation
///
/// Constructs a DriveNotFoundException
///
- ///
+ ///
/// The message that will be used by the exception.
///
public DriveNotFoundException(string message)
@@ -1054,7 +1054,7 @@ namespace System.Management.Automation
///
/// The message that will be used by the exception.
///
- ///
+ ///
///
/// The exception that caused the error.
///
@@ -1091,16 +1091,16 @@ namespace System.Management.Automation
///
/// Constructs a ItemNotFoundException
///
- ///
+ ///
/// The path that was not found.
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
/// SessionStateStrings.txt.
///
- ///
+ ///
///
/// This string is the ErrorId passed to the ErrorRecord, and is also
/// the resourceId used to look up the message template string in
@@ -1127,7 +1127,7 @@ namespace System.Management.Automation
///
/// Constructs a ItemNotFoundException
///
- ///
+ ///
/// The message used by the exception.
///
public ItemNotFoundException(string message)
diff --git a/src/System.Management.Automation/utils/StringUtil.cs b/src/System.Management.Automation/utils/StringUtil.cs
index bc2d3c8924..5784d2d96b 100644
--- a/src/System.Management.Automation/utils/StringUtil.cs
+++ b/src/System.Management.Automation/utils/StringUtil.cs
@@ -60,7 +60,7 @@ namespace System.Management.Automation.Internal
else
{
// The segment does not fit, back off a tad until it does
- // We need to back off 1 by 1 because there could theoretically
+ // We need to back off 1 by 1 because there could theoretically
// be characters taking more 2 buffer cells
--i;
}
diff --git a/src/System.Management.Automation/utils/StructuredTraceSource.cs b/src/System.Management.Automation/utils/StructuredTraceSource.cs
index 0ce79d7b85..ba62d4864c 100644
--- a/src/System.Management.Automation/utils/StructuredTraceSource.cs
+++ b/src/System.Management.Automation/utils/StructuredTraceSource.cs
@@ -29,7 +29,7 @@ namespace System.Management.Automation
///
///
+ /// -->
None = 0x00000000,
///
@@ -223,13 +223,13 @@ namespace System.Management.Automation
/// control over the tracing in a program. An instance of StructuredTraceSource
/// is created for each category of tracing such that separate flags
/// (filters) can be set. Each flag enables one or more method for tracing.
- ///
+ ///
/// For instance, the Exception flag will enable tracing on these methods:
/// TraceException
- ///
- ///
+ ///
+ ///
///
- ///
+ ///
///
/// To get an instance of this class a user should define a static
/// field of the type StructuredTraceSource, and assign the results of GetTracer() to it.
@@ -254,27 +254,27 @@ namespace System.Management.Automation
/// Constructor that determines the name of the trace
/// flag in the config file.
///
- ///
+ ///
///
/// The full name for the trace category. This is different from the name parameter as
/// it is not limited to 16 characters.
///
- ///
+ ///
///
/// The name of the category that this class
/// will control the tracing for. This parameter must always be 16 characters to ensure
/// proper formatting of the output.
///
- ///
+ ///
///
/// The description to describe what the category
/// is used for.
///
- ///
+ ///
///
/// If true, the line headers will be traced, if false, only the trace message will be traced.
///
- ///
+ ///
internal PSTraceSource(string fullName, string name, string description, bool traceHeaders)
{
if (String.IsNullOrEmpty(fullName))
@@ -380,18 +380,18 @@ namespace System.Management.Automation
///
/// Outputs a header when a new StructuredTraceSource object is created
///
- ///
+ ///
///
/// The assembly that created the instance of the StructuredTraceSource.
///
- ///
+ ///
///
/// A header will be output that contains information such as;
/// the category and description of the new trace object,
/// the assembly in which the new trace object
/// will be stored.
///
- ///
+ ///
internal void TracerObjectHeader(
Assembly callingAssembly)
{
@@ -458,7 +458,7 @@ namespace System.Management.Automation
}
#endregion StructuredTraceSource constructor methods
- #region PSTraceSourceOptions.Scope
+ #region PSTraceSourceOptions.Scope
internal IDisposable TraceScope(string msg)
{
@@ -760,8 +760,8 @@ namespace System.Management.Automation
///
///
/// Use this only if the TraceLock that returns
- /// an IDisposable won't work in your situation.
- /// You will not get automatic indentation or
+ /// an IDisposable won't work in your situation.
+ /// You will not get automatic indentation or
/// release tracing of the lock.
///
internal void TraceLockAcquired(string lockName)
@@ -825,7 +825,7 @@ namespace System.Management.Automation
#region PSTraceSourceOptions.Error,Warning,Normal methods/helpers
///
- /// Traces the specified formatted output when PSTraceSourceOptions.Error
+ /// Traces the specified formatted output when PSTraceSourceOptions.Error
/// is enabled.
///
///
@@ -849,18 +849,18 @@ namespace System.Management.Automation
}
///
- /// Traces the specified formatted output when PSTraceSourceOptions.Warning
+ /// Traces the specified formatted output when PSTraceSourceOptions.Warning
/// is enabled.
///
- ///
+ ///
///
/// The format string containing the error message
///
- ///
+ ///
///
/// The arguments for the format string
///
- ///
+ ///
internal void TraceWarning(
string warningMessageFormat,
params object[] args)
@@ -876,18 +876,18 @@ namespace System.Management.Automation
}
///
- /// Traces the specified formatted output when PSTraceSourceOptions.Verbose
+ /// Traces the specified formatted output when PSTraceSourceOptions.Verbose
/// is enabled.
///
- ///
+ ///
///
/// The format string containing the error message
///
- ///
+ ///
///
/// The arguments for the format string
///
- ///
+ ///
internal void TraceVerbose(
string verboseMessageFormat,
params object[] args)
@@ -905,11 +905,11 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
///
/// The format string
///
- ///
+ ///
internal void WriteLine(string format)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -925,10 +925,10 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
/// The format string
///
- ///
+ ///
internal void WriteLine(string format, object arg1)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -944,11 +944,11 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
/// The format string
///
///
- ///
+ ///
internal void WriteLine(string format, object arg1, object arg2)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -964,12 +964,12 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
/// The format string
///
///
///
- ///
+ ///
internal void WriteLine(string format, object arg1, object arg2, object arg3)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -985,13 +985,13 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
/// The format string
///
///
///
///
- ///
+ ///
internal void WriteLine(string format, object arg1, object arg2, object arg3, object arg4)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -1007,14 +1007,14 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
/// The format string
///
///
///
///
///
- ///
+ ///
internal void WriteLine(string format, object arg1, object arg2, object arg3, object arg4, object arg5)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -1030,7 +1030,7 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
/// The format string
///
///
@@ -1038,7 +1038,7 @@ namespace System.Management.Automation
///
///
///
- ///
+ ///
internal void WriteLine(string format, object arg1, object arg2, object arg3, object arg4, object arg5, object arg6)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -1054,11 +1054,11 @@ namespace System.Management.Automation
///
/// Traces the formatted output when PSTraceSourceOptions.WriteLine is enabled
///
- ///
+ ///
///
- /// The object to be output
+ /// The object to be output
///
- ///
+ ///
internal void WriteLine(object arg)
{
if ((_flags & PSTraceSourceOptions.WriteLine) != PSTraceSourceOptions.None)
@@ -1070,24 +1070,24 @@ namespace System.Management.Automation
///
/// Formats the specified text and then traces it
///
- ///
+ ///
///
/// The flag that met the criteria to have this line traced.
///
- ///
+ ///
///
/// This is the trace class formatter. For instance,
/// TraceError has a formatter like "ERROR: {0}"
///
- ///
+ ///
///
/// Additional format string
///
- ///
+ ///
///
/// Arguments for the additional format string
///
- ///
+ ///
private void FormatOutputLine(
PSTraceSourceOptions flag,
string classFormatter,
@@ -1137,7 +1137,7 @@ namespace System.Management.Automation
/// plus the skipFrames.
///
///
- /// For instance, GetCallingMethodNameAndParameters(1)
+ /// For instance, GetCallingMethodNameAndParameters(1)
/// will return the method that called the method that is calling
/// GetCallingMethodNameAndParameters.
///
@@ -1312,19 +1312,19 @@ namespace System.Management.Automation
///
/// Composes a line of trace output and then writes it
///
- ///
+ ///
///
/// The flag that caused the line to be traced
///
- ///
+ ///
///
/// The string to write with format symbols if necessary
///
- ///
+ ///
///
/// Arguments to the format string
///
- ///
+ ///
///
/// The line is composed by prefixing the process name, thread ID,
/// and tick count. Then the indenting is added. Then the
@@ -1444,7 +1444,7 @@ namespace System.Management.Automation
///
/// Gets the full name of the trace source category
///
- ///
+ ///
internal string FullName { get; } = String.Empty;
private string _name;
@@ -1452,7 +1452,7 @@ namespace System.Management.Automation
///
/// Creates an instance of the TraceSource on demand
///
- ///
+ ///
internal TraceSource TraceSource
{
get { return _traceSource ?? (_traceSource = new MonadTraceSource(_name)); }
@@ -1509,7 +1509,7 @@ namespace System.Management.Automation
///
/// Gets the TraceSource name (also known as category).
///
- ///
+ ///
///
/// Note, this name is truncated to 16 characters due to limitations
/// in the TraceSource class.
@@ -1549,11 +1549,11 @@ namespace System.Management.Automation
///
/// Storage for trace source instances which have not been instantiated but for which
/// the user has specified Options.
- ///
+ ///
/// If the PSTraceSource cannot be found in the TraceCatalog, the same name is used
/// to look in this dictionary to see if the PSTraceSource has been pre-configured.
///
- ///
+ ///
internal static Dictionary PreConfiguredTraceSource { get; } = new Dictionary(StringComparer.OrdinalIgnoreCase);
#endregion TraceCatalog
@@ -1564,7 +1564,7 @@ namespace System.Management.Automation
/// A light-weight object to manage the indention of
/// trace output for each thread.
///
- ///
+ ///
///
/// An instance of this object is returned when any scoping
/// Trace method (like TraceMethod, TraceProperty, etc.)
@@ -1572,7 +1572,7 @@ namespace System.Management.Automation
/// level for the thread is incremented.
/// The Dispose method will decrement the thread indent level.
///
- ///
+ ///
internal class ScopeTracer : IDisposable
{
///
@@ -1580,16 +1580,16 @@ namespace System.Management.Automation
/// and raises the indent level in thread
/// local storage.
///
- ///
+ ///
///
/// The trace object that is to be used for output
///
- ///
+ ///
///
- /// The PSTraceSourceOptions that is causing the scope object to
+ /// The PSTraceSourceOptions that is causing the scope object to
/// be created.
///
- ///
+ ///
///
/// This format string is used to determine the
/// general output format for the scope. For instance,
@@ -1597,16 +1597,16 @@ namespace System.Management.Automation
/// to "Entering: {0}: {1}" where {0} is the name of the
/// method and {1} is the additional formatted info provided.
///
- ///
+ ///
///
/// The format string used to determine the general output
/// format for the scope when the Dispose method is called.
///
- ///
+ ///
///
/// The name of the scope that is being traced
///
- ///
+ ///
internal ScopeTracer(
PSTraceSource tracer,
PSTraceSourceOptions flag,
@@ -1631,16 +1631,16 @@ namespace System.Management.Automation
/// and raises the indent level in thread
/// local storage.
///
- ///
+ ///
///
/// The trace object that is to be used for output
///
- ///
+ ///
///
- /// The PSTraceSourceOptions that is causing the scope object to
+ /// The PSTraceSourceOptions that is causing the scope object to
/// be created.
///
- ///
+ ///
///
/// This format string is used to determine the
/// general output format for the scope. For instance,
@@ -1648,25 +1648,25 @@ namespace System.Management.Automation
/// to "Entering: {0}: {1}" where {0} is the name of the
/// method and {1} is the additional formatted info provided.
///
- ///
+ ///
///
/// The format string used to determine the general output
/// format for the scope when the Dispose method is called.
///
- ///
+ ///
///
/// The name of the scope that is being traced
///
- ///
+ ///
///
/// The format of any additional arguments which will be appended
/// to the line of trace output
///
- ///
+ ///
///
/// Arguments to the format string.
///
- ///
+ ///
internal ScopeTracer(
PSTraceSource tracer,
PSTraceSourceOptions flag,
@@ -1704,11 +1704,11 @@ namespace System.Management.Automation
///
/// Helper for the ScopeTracer constructor
///
- ///
+ ///
///
/// The flag that caused this line of tracing to be traced.
///
- ///
+ ///
///
/// This format string is used to determine the
/// general output format for the scope. For instance,
@@ -1716,25 +1716,25 @@ namespace System.Management.Automation
/// to "Entering: {0}: {1}" where {0} is the name of the
/// method and {1} is the additional formatted info provided.
///
- ///
+ ///
///
/// The format string used to determine the general output
/// format for the scope when the Dispose method is called.
///
- ///
+ ///
///
/// The name of the scope being entered
///
- ///
+ ///
///
/// The format of any additional arguments which will be appended
/// to the "Entering" line of trace output
///
- ///
+ ///
///
/// Arguments to the format string.
///
- ///
+ ///
internal void ScopeTracerHelper(
PSTraceSourceOptions flag,
string scopeOutputFormatter,
@@ -1880,10 +1880,10 @@ namespace System.Management.Automation
///
/// This derived class of TraceSource is required so that we can tell
- /// the configuration infrastructure which attributes are supported in
+ /// the configuration infrastructure which attributes are supported in
/// the XML app-config file for our trace source.
///
- ///
+ ///
internal class MonadTraceSource : TraceSource
{
internal MonadTraceSource(string name)
@@ -1896,7 +1896,7 @@ namespace System.Management.Automation
/// Tells the config infrastructure which attributes are supported
/// for our TraceSource
///
- ///
+ ///
///
/// A string array with the names of the attributes supported by our
/// trace source.
diff --git a/src/System.Management.Automation/utils/Verbs.cs b/src/System.Management.Automation/utils/Verbs.cs
index 8c48a77630..7103a526f9 100644
--- a/src/System.Management.Automation/utils/Verbs.cs
+++ b/src/System.Management.Automation/utils/Verbs.cs
@@ -14,9 +14,9 @@ namespace System.Management.Automation
///
/// Verbs that are commonly used in cmdlet names.
///
- ///
+ ///
///
- /// These verbs are recommended over their synonyms when used as the verb name
+ /// These verbs are recommended over their synonyms when used as the verb name
/// for cmdlets.
///
public static class VerbsCommon
@@ -77,12 +77,12 @@ namespace System.Management.Automation
public const string Lock = "Lock";
///
- /// Move a resource
+ /// Move a resource
///
public const string Move = "Move";
///
- /// Create a new resource
+ /// Create a new resource
///
public const string New = "New";
@@ -169,7 +169,7 @@ namespace System.Management.Automation
public const string Split = "Split";
///
- ///
+ ///
///
public const string Switch = "Switch";
@@ -198,9 +198,9 @@ namespace System.Management.Automation
///
/// Verbs that are commonly used in cmdlet names when the cmdlet manipulates data.
///
- ///
+ ///
///
- /// These verbs are recommended over their synonyms when used as the verb name
+ /// These verbs are recommended over their synonyms when used as the verb name
/// for cmdlets.
///
public static class VerbsData
@@ -250,7 +250,7 @@ namespace System.Management.Automation
///
public const string Expand = "Expand";
- ///
+ ///
/// Make a copy of a set of resources using an interchange format
///
public const string Export = "Export";
@@ -260,7 +260,7 @@ namespace System.Management.Automation
///
public const string Group = "Group";
- ///
+ ///
/// Create a set of resources using an interchange format
///
public const string Import = "Import";
@@ -306,7 +306,7 @@ namespace System.Management.Automation
[SuppressMessage("Microsoft.Naming", "CA1704:IdentifiersShouldBeSpelledCorrectly", MessageId = "Unpublish")]
public const string Unpublish = "Unpublish";
- ///
+ ///
/// Update a resource with new elements or refresh from a source of truth
///
public const string Update = "Update";
@@ -330,9 +330,9 @@ namespace System.Management.Automation
///
/// Verbs that are commonly used in cmdlet names when the cmdlet manipulates the lifecycle of something.
///
- ///
+ ///
///
- /// These verbs are recommended over their synonyms when used as the verb name
+ /// These verbs are recommended over their synonyms when used as the verb name
/// for cmdlets.
///
public static class VerbsLifecycle
@@ -398,12 +398,12 @@ namespace System.Management.Automation
///
public const string Restart = "Restart";
- ///
+ ///
/// Begin an activity again after it was suspended
///
public const string Resume = "Resume";
- ///
+ ///
/// Begin an activity
///
public const string Start = "Start";
@@ -418,7 +418,7 @@ namespace System.Management.Automation
///
public const string Submit = "Submit";
- ///
+ ///
/// Suspend an activity temporarily
///
public const string Suspend = "Suspend";
@@ -444,9 +444,9 @@ namespace System.Management.Automation
///
/// Verbs that are commonly used in cmdlet names when the cmdlet is used to diagnose the health of something.
///
- ///
+ ///
///
- /// These verbs are recommended over their synonyms when used as the verb name
+ /// These verbs are recommended over their synonyms when used as the verb name
/// for cmdlets.
///
public static class VerbsDiagnostic
@@ -456,22 +456,22 @@ namespace System.Management.Automation
///
public const string Debug = "Debug";
- ///
- /// calculate/identify resources consumed by a specified operation or retrieve statistics about a resource
+ ///
+ /// calculate/identify resources consumed by a specified operation or retrieve statistics about a resource
///
public const string Measure = "Measure";
- ///
+ ///
/// Determine whether a resource is alive and responding to requests
///
public const string Ping = "Ping";
- ///
+ ///
/// Detect and correct problems
///
public const string Repair = "Repair";
- ///
+ ///
/// Map a shorthand name will be bound to a longname
///
public const string Resolve = "Resolve";
@@ -481,7 +481,7 @@ namespace System.Management.Automation
///
public const string Test = "Test";
- ///
+ ///
/// Trace activities performed by a specified operation
///
public const string Trace = "Trace";
@@ -491,9 +491,9 @@ namespace System.Management.Automation
///
/// Verbs that are commonly used in cmdlet names when the cmdlet is used to communicate with something.
///
- ///
+ ///
///
- /// These verbs are recommended over their synonyms when used as the verb name
+ /// These verbs are recommended over their synonyms when used as the verb name
/// for cmdlets.
///
public static class VerbsCommunications
@@ -532,9 +532,9 @@ namespace System.Management.Automation
///
/// Verbs that are commonly used in cmdlet names when the cmdlet is used to secure a resource.
///
- ///
+ ///
///
- /// These verbs are recommended over their synonyms when used as the verb name
+ /// These verbs are recommended over their synonyms when used as the verb name
/// for cmdlets.
///
public static class VerbsSecurity
diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs
index 72c01ac3eb..c028ac2a37 100644
--- a/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs
+++ b/src/System.Management.Automation/utils/perfCounters/CounterSetInstanceBase.cs
@@ -119,7 +119,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If isNumerator is true, then updates the numerator component
- /// of target counter 'counterId' by a value given by 'stepAmount'.
+ /// of target counter 'counterId' by a value given by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
public abstract bool UpdateCounterByValue(
@@ -130,7 +130,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If isNumerator is true, then updates the numerator component
- /// of target counter 'counterName' by a value given by 'stepAmount'.
+ /// of target counter 'counterName' by a value given by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
public abstract bool UpdateCounterByValue(
@@ -139,7 +139,7 @@ namespace System.Management.Automation.PerformanceData
bool isNumerator);
///
- /// If isNumerator is true, then sets the numerator component of target
+ /// If isNumerator is true, then sets the numerator component of target
/// counter 'counterId' to 'counterValue'.
/// Otherwise, sets the denominator component to 'counterValue'.
///
@@ -149,7 +149,7 @@ namespace System.Management.Automation.PerformanceData
bool isNumerator);
///
- /// If isNumerator is true, then sets the numerator component of target
+ /// If isNumerator is true, then sets the numerator component of target
/// Counter 'counterName' to 'counterValue'.
/// Otherwise, sets the denominator component to 'counterValue'.
///
@@ -198,13 +198,13 @@ namespace System.Management.Automation.PerformanceData
{
this.SetCounterValue(counterName, 0, true);
this.SetCounterValue(counterName, 0, false);
- }
+ }
*/
#endregion
}
///
- /// PSCounterSetInstance is a thin wrapper
+ /// PSCounterSetInstance is a thin wrapper
/// on System.Diagnostics.PerformanceData.CounterSetInstance
///
public class PSCounterSetInstance : CounterSetInstanceBase
@@ -343,7 +343,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If isNumerator is true, then updates the numerator component
- /// of target counter 'counterId' by a value given by 'stepAmount'.
+ /// of target counter 'counterId' by a value given by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
public override bool UpdateCounterByValue(int counterId, long stepAmount, bool isNumerator)
@@ -384,7 +384,7 @@ namespace System.Management.Automation.PerformanceData
}
///
/// If isNumerator is true, then updates the numerator component
- /// of target counter 'counterName' by a value given by 'stepAmount'.
+ /// of target counter 'counterName' by a value given by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
public override bool UpdateCounterByValue(string counterName, long stepAmount, bool isNumerator)
@@ -424,7 +424,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If isNumerator is true, then sets the numerator component
- /// of target counter 'counterId' to 'counterValue'.
+ /// of target counter 'counterId' to 'counterValue'.
/// Otherwise, sets the denominator component to 'counterValue'.
///
public override bool SetCounterValue(int counterId, long counterValue, bool isNumerator)
@@ -467,7 +467,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If isNumerator is true, then updates the numerator component
- /// of target counter 'counterName' by a value given by 'counterValue'.
+ /// of target counter 'counterName' by a value given by 'counterValue'.
/// Otherwise, sets the denominator component to 'counterValue'.
///
public override bool SetCounterValue(string counterName, long counterValue, bool isNumerator)
diff --git a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs
index adbbe2874e..840aa87bd6 100644
--- a/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs
+++ b/src/System.Management.Automation/utils/perfCounters/CounterSetRegistrarBase.cs
@@ -67,7 +67,7 @@ namespace System.Management.Automation.PerformanceData
/// derived non-abstract type.
/// The created instance is then passed to PSPerfCounterMgr's AddCounterSetInstance()
/// method.
- ///
+ ///
///
public abstract class CounterSetRegistrarBase
{
@@ -95,7 +95,7 @@ namespace System.Management.Automation.PerformanceData
#region Constructors
///
/// Constructor that creates an instance of CounterSetRegistrarBase derived type
- /// based on Provider Id, counterSetId, counterSetInstanceType, a collection
+ /// based on Provider Id, counterSetId, counterSetInstanceType, a collection
/// with counters information and an optional counterSetName.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
@@ -189,7 +189,7 @@ namespace System.Management.Automation.PerformanceData
///
- /// Getter method that returns an instance of the CounterSetInstanceBase's
+ /// Getter method that returns an instance of the CounterSetInstanceBase's
/// derived type
///
public CounterSetInstanceBase CounterSetInstance
diff --git a/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs b/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs
index 1b886e5ef9..7632fbef10 100644
--- a/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs
+++ b/src/System.Management.Automation/utils/perfCounters/PSPerfCountersMgr.cs
@@ -156,7 +156,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then updates the numerator component
/// of target counter 'counterId' in Counter Set 'counterSetId'
- /// by 'stepAmount'.
+ /// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
@@ -187,7 +187,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then updates the numerator component
/// of target counter 'counterName' in Counter Set 'counterSetId'
- /// by 'stepAmount'.
+ /// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
@@ -218,7 +218,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then updates the numerator component
/// of target counter 'counterId' in Counter Set 'counterSetName'
- /// by 'stepAmount'.
+ /// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
@@ -258,7 +258,7 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then updates the numerator component
/// of target counter 'counterName' in Counter Set 'counterSetName'
- /// by 'stepAmount'.
+ /// by 'stepAmount'.
/// Otherwise, updates the denominator component by 'stepAmount'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
@@ -298,8 +298,8 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then sets the numerator component
/// of target counter 'counterId' in Counter Set 'counterSetId'
- /// to 'counterValue'.
- /// Otherwise, updates the denominator component to 'counterValue'.
+ /// to 'counterValue'.
+ /// Otherwise, updates the denominator component to 'counterValue'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
@@ -329,8 +329,8 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then sets the numerator component
/// of target counter 'counterName' in Counter Set 'counterSetId'
- /// to 'counterValue'.
- /// Otherwise, updates the denominator component to 'counterValue'.
+ /// to 'counterValue'.
+ /// Otherwise, updates the denominator component to 'counterValue'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
@@ -360,8 +360,8 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then sets the numerator component
/// of target counter 'counterId' in Counter Set 'counterSetName'
- /// to 'counterValue'.
- /// Otherwise, updates the denominator component to 'counterValue'.
+ /// to 'counterValue'.
+ /// Otherwise, updates the denominator component to 'counterValue'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
@@ -400,8 +400,8 @@ namespace System.Management.Automation.PerformanceData
///
/// If IsNumerator is true, then sets the numerator component
/// of target counter 'counterName' in Counter Set 'counterSetName'
- /// to 'counterValue'.
- /// Otherwise, updates the denominator component to 'counterValue'.
+ /// to 'counterValue'.
+ /// Otherwise, updates the denominator component to 'counterValue'.
///
[SuppressMessage("Microsoft.Design", "CA1026:DefaultParametersShouldNotBeUsed")]
public bool SetCounterValue(
diff --git a/src/System.Management.Automation/utils/tracing/EtwActivity.cs b/src/System.Management.Automation/utils/tracing/EtwActivity.cs
index 20a9352efb..69e26f4496 100644
--- a/src/System.Management.Automation/utils/tracing/EtwActivity.cs
+++ b/src/System.Management.Automation/utils/tracing/EtwActivity.cs
@@ -273,7 +273,7 @@ namespace System.Management.Automation.Tracing
///
/// Sets the activityId provided in the current thread.
- /// If current thread already has the same activityId it does
+ /// If current thread already has the same activityId it does
/// nothing.
///
///
diff --git a/src/System.Management.Automation/utils/tracing/PSEtwLog.cs b/src/System.Management.Automation/utils/tracing/PSEtwLog.cs
index 244693984d..c7e7f39df8 100644
--- a/src/System.Management.Automation/utils/tracing/PSEtwLog.cs
+++ b/src/System.Management.Automation/utils/tracing/PSEtwLog.cs
@@ -30,7 +30,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal static void LogEngineHealthEvent(LogContext logContext, int eventId, Exception exception, Dictionary additionalInfo)
{
provider.LogEngineHealthEvent(logContext, eventId, exception, additionalInfo);
@@ -42,7 +42,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal static void LogEngineLifecycleEvent(LogContext logContext, EngineState newState, EngineState previousState)
{
provider.LogEngineLifecycleEvent(logContext, newState, previousState);
@@ -63,7 +63,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal static void LogCommandLifecycleEvent(LogContext logContext, CommandState newState)
{
provider.LogCommandLifecycleEvent(() => logContext, newState);
@@ -96,7 +96,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal static void LogProviderLifecycleEvent(LogContext logContext, string providerName, ProviderState newState)
{
provider.LogProviderLifecycleEvent(logContext, providerName, newState);
@@ -109,7 +109,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal static void LogSettingsEvent(LogContext logContext, string variableName, string value, string previousValue)
{
provider.LogSettingsEvent(logContext, variableName, value, previousValue);
diff --git a/src/System.Management.Automation/utils/tracing/PSEtwLogProvider.cs b/src/System.Management.Automation/utils/tracing/PSEtwLogProvider.cs
index b4b84b752b..67ac09ffb3 100644
--- a/src/System.Management.Automation/utils/tracing/PSEtwLogProvider.cs
+++ b/src/System.Management.Automation/utils/tracing/PSEtwLogProvider.cs
@@ -56,8 +56,8 @@ namespace System.Management.Automation.Tracing
///
///
///
- /// Typically, a provider does not call this method to determine whether a session requested the specified event;
- /// the provider simply writes the event, and ETW determines whether the event is logged to a session. A provider
+ /// Typically, a provider does not call this method to determine whether a session requested the specified event;
+ /// the provider simply writes the event, and ETW determines whether the event is logged to a session. A provider
/// may want to call this function if the provider needs to perform extra work to generate the event. In this case,
/// calling this function first to determine if a session requested the event or not, may save resources and time.
///
@@ -73,7 +73,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal override void LogEngineHealthEvent(LogContext logContext, int eventId, Exception exception, Dictionary additionalInfo)
{
StringBuilder payload = new StringBuilder();
@@ -91,7 +91,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal override void LogEngineLifecycleEvent(LogContext logContext, EngineState newState, EngineState previousState)
{
if (IsEnabled(PSLevel.Informational, PSKeyword.Cmdlets | PSKeyword.UseAlwaysAnalytic))
@@ -133,7 +133,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal override void LogCommandLifecycleEvent(Func getLogContext, CommandState newState)
{
if (IsEnabled(PSLevel.Informational, PSKeyword.Cmdlets | PSKeyword.UseAlwaysAnalytic))
@@ -213,7 +213,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal override void LogProviderLifecycleEvent(LogContext logContext, string providerName, ProviderState newState)
{
if (IsEnabled(PSLevel.Informational, PSKeyword.Cmdlets | PSKeyword.UseAlwaysAnalytic))
@@ -240,7 +240,7 @@ namespace System.Management.Automation.Tracing
///
///
///
- ///
+ ///
internal override void LogSettingsEvent(LogContext logContext, string variableName, string value, string previousValue)
{
if (IsEnabled(PSLevel.Informational, PSKeyword.Cmdlets | PSKeyword.UseAlwaysAnalytic))
@@ -454,7 +454,7 @@ namespace System.Management.Automation.Tracing
}
///
- ///
+ ///
///
///
internal void SetActivityIdForCurrentThread(Guid newActivityId)
diff --git a/src/TypeCatalogGen/TypeCatalogGen.cs b/src/TypeCatalogGen/TypeCatalogGen.cs
index b93cac0706..a17a67bf73 100644
--- a/src/TypeCatalogGen/TypeCatalogGen.cs
+++ b/src/TypeCatalogGen/TypeCatalogGen.cs
@@ -279,7 +279,7 @@ Usage: TypeCatalogGen.exe <{0}> <{1}>
// This file is auto-generated by TypeCatalogGen.exe during build of Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.dll.
// This file will be compiled into Microsoft.PowerShell.CoreCLR.AssemblyLoadContext.dll.
//
-// In CoreCLR, there is no way to get all loaded TPA assemblies (.NET Framework Assemblies). In order to get type based on type
+// In CoreCLR, there is no way to get all loaded TPA assemblies (.NET Framework Assemblies). In order to get type based on type
// name, powershell needs to know what .NET types are available and in which TPA assemblies. So we have to generate this type
// catalog based on the reference assemblies of .NET Core.
//
diff --git a/test/PSReadLine/AssemblyInfo.cs b/test/PSReadLine/AssemblyInfo.cs
index 694177ab74..b381851067 100644
--- a/test/PSReadLine/AssemblyInfo.cs
+++ b/test/PSReadLine/AssemblyInfo.cs
@@ -1,7 +1,7 @@
using System.Reflection;
using System.Runtime.InteropServices;
-// General Information about an assembly is controlled through the following
+// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("TestPSReadLine")]
@@ -13,8 +13,8 @@ using System.Runtime.InteropServices;
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
-// Setting ComVisible to false makes the types in this assembly not visible
-// to COM components. If you need to access a type in this assembly from
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
@@ -24,11 +24,11 @@ using System.Runtime.InteropServices;
// Version information for an assembly consists of the following four values:
//
// Major Version
-// Minor Version
+// Minor Version
// Build Number
// Revision
//
-// You can specify all the values or you can default the Build and Revision Numbers
+// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
diff --git a/test/csharp/test_FileSystemProvider.cs b/test/csharp/test_FileSystemProvider.cs
index 4b3037b4de..df57af32f6 100644
--- a/test/csharp/test_FileSystemProvider.cs
+++ b/test/csharp/test_FileSystemProvider.cs
@@ -32,7 +32,7 @@ namespace PSTests
{
File.Delete(testPath);
}
-
+
private ExecutionContext GetExecutionContext()
{
CultureInfo currentCulture = CultureInfo.CurrentCulture;
@@ -47,20 +47,20 @@ namespace PSTests
{
ExecutionContext executionContext = GetExecutionContext();
SessionStateInternal sessionState = new SessionStateInternal(executionContext);
-
+
SessionStateProviderEntry providerEntry = new SessionStateProviderEntry("FileSystem",typeof(FileSystemProvider), null);
sessionState.AddSessionStateEntry(providerEntry);
ProviderInfo matchingProvider = sessionState.ProviderList.ToList()[0];
return matchingProvider;
}
-
+
[Fact]
public void TestCreateJunctionFails()
{
Assert.False(InternalSymbolicLinkLinkCodeMethods.CreateJunction("",""));
}
-
+
[Fact]
public void TestGetHelpMaml()
{
@@ -69,7 +69,7 @@ namespace PSTests
Assert.Equal(fileSystemProvider.GetHelpMaml("helpItemName",String.Empty),String.Empty);
Assert.Equal(fileSystemProvider.GetHelpMaml(String.Empty,"path"),String.Empty);
}
-
+
[Fact]
public void TestMode()
{
@@ -81,7 +81,7 @@ namespace PSTests
Assert.Equal(FileSystemProvider.Mode(PSObject.AsPSObject(fileObject)).Replace("r","-"),"------");
Assert.Equal(FileSystemProvider.Mode(PSObject.AsPSObject(executableObject)).Replace("r","-"),"------");
}
-
+
[Fact]
public void TestGetProperty()
{
@@ -103,7 +103,7 @@ namespace PSTests
}
}
}
-
+
[Fact]
public void TestSetProperty()
{
@@ -122,7 +122,7 @@ namespace PSTests
}
}
}
-
+
[Fact]
public void TestClearProperty()
{
@@ -132,7 +132,7 @@ namespace PSTests
fileSystemProvider.Context = new CmdletProviderContext(GetExecutionContext());
fileSystemProvider.ClearProperty(testPath, new Collection(){"Attributes"});
}
-
+
[Fact]
public void TestGetContentReader()
{
@@ -140,12 +140,12 @@ namespace PSTests
ProviderInfo providerInfoToSet = GetProvider();
fileSystemProvider.SetProviderInformation(providerInfoToSet);
fileSystemProvider.Context = new CmdletProviderContext(GetExecutionContext());
-
+
IContentReader contentReader = fileSystemProvider.GetContentReader(testPath);
Assert.Equal(contentReader.Read(1)[0],testContent);
contentReader.Close();
}
-
+
[Fact]
public void TestGetContentWriter()
{
@@ -153,13 +153,13 @@ namespace PSTests
ProviderInfo providerInfoToSet = GetProvider();
fileSystemProvider.SetProviderInformation(providerInfoToSet);
fileSystemProvider.Context = new CmdletProviderContext(GetExecutionContext());
-
+
IContentWriter contentWriter = fileSystemProvider.GetContentWriter(testPath);
contentWriter.Write(new List(){"contentWriterTestContent"});
contentWriter.Close();
Assert.Equal(File.ReadAllText(testPath), testContent+@"contentWriterTestContent"+ System.Environment.NewLine);
}
-
+
[Fact]
public void TestClearContent()
{
diff --git a/test/csharp/test_Runspace.cs b/test/csharp/test_Runspace.cs
index 20de95510b..9b42341962 100644
--- a/test/csharp/test_Runspace.cs
+++ b/test/csharp/test_Runspace.cs
@@ -62,7 +62,7 @@ namespace PSTests
}
}
-
+
[Fact(Skip="Fails in Travis CI, need investigation")]
public void TestRunspaceWithPowerShellAndInitialSessionState()
{
diff --git a/test/fullclr/PowerShellGithubDev.Tests.ps1 b/test/fullclr/PowerShellGithubDev.Tests.ps1
index faab0a524e..b24b6e6fba 100644
--- a/test/fullclr/PowerShellGithubDev.Tests.ps1
+++ b/test/fullclr/PowerShellGithubDev.Tests.ps1
@@ -1,5 +1,5 @@
-$originalPSModulePath = $env:PSModulePath
-try
+$originalPSModulePath = $env:PSModulePath
+try
{
# load all modules only from $env:DEVPATH !!!
$env:PSModulePath = "$($env:DEVPATH)\Modules"
@@ -84,7 +84,7 @@ try
{
Remove-Module -ErrorAction SilentlyContinue PsScheduledJob
}
- }
+ }
It 'loads PSWorkflowUtility' {
@@ -153,10 +153,10 @@ try
}
}
}
- }
+ }
}
finally
{
$env:PSModulePath = $originalPSModulePath
-}
+}
diff --git a/test/powershell/Common/Test.Helpers.psm1 b/test/powershell/Common/Test.Helpers.psm1
index 688e4e0e09..79d3c67395 100644
--- a/test/powershell/Common/Test.Helpers.psm1
+++ b/test/powershell/Common/Test.Helpers.psm1
@@ -1,7 +1,7 @@
function Wait-UntilTrue
{
[CmdletBinding()]
- param (
+ param (
[ScriptBlock]$sb,
[int]$TimeoutInMilliseconds = 10000,
[int]$IntervalInMilliseconds = 1000
@@ -31,10 +31,10 @@ function Test-IsElevated
# elevated context
$identity = [System.Security.Principal.WindowsIdentity]::GetCurrent()
$windowsPrincipal = new-object 'Security.Principal.WindowsPrincipal' $identity
- if ($windowsPrincipal.IsInRole("Administrators") -eq 1)
- {
- $IsElevated = $true
- }
+ if ($windowsPrincipal.IsInRole("Administrators") -eq 1)
+ {
+ $IsElevated = $true
+ }
}
else {
# on Linux, tests run via sudo will generally report "root" for whoami
@@ -50,7 +50,7 @@ function ShouldBeErrorId
param([Parameter(ValueFromPipeline, Mandatory)]
[ScriptBlock]
$sb,
-
+
[Parameter(Mandatory, Position=0)]
[string]
$FullyQualifiedErrorId)
diff --git a/test/powershell/Common/TestHostCS.psm1 b/test/powershell/Common/TestHostCS.psm1
index 5726f88558..2a56623fb7 100755
--- a/test/powershell/Common/TestHostCS.psm1
+++ b/test/powershell/Common/TestHostCS.psm1
@@ -278,7 +278,7 @@ namespace TestHost
## '
function New-TestHost
{
- If ($IsCoreCLR)
+ If ($IsCoreCLR)
{
$references = "System","mscorlib","System.Management.Automation",
"System.Collections.NonGeneric","System.Console","System.Collections",
diff --git a/test/powershell/Common/TestRemoting.psm1 b/test/powershell/Common/TestRemoting.psm1
index d075f86d2a..a1aacc0f44 100644
--- a/test/powershell/Common/TestRemoting.psm1
+++ b/test/powershell/Common/TestRemoting.psm1
@@ -46,7 +46,7 @@ function New-RemoteSession
if ($ConfigurationName) {
$parameters["ConfigurationName"] = $ConfigurationName
}
-
+
if ($SessionOption) {
$parameters["SessionOption"] = $SessionOption
}
diff --git a/test/powershell/Host/ConsoleHost.Tests.ps1 b/test/powershell/Host/ConsoleHost.Tests.ps1
index fba8a3b61b..c3afdf6a08 100644
--- a/test/powershell/Host/ConsoleHost.Tests.ps1
+++ b/test/powershell/Host/ConsoleHost.Tests.ps1
@@ -2,12 +2,12 @@ using namespace System.Diagnostics
# Minishell (Singleshell) is a powershell concept.
# Its primary use-case is when somebody executes a scriptblock in the new powershell process.
-# The objects are automatically marshelled to the child process and
+# The objects are automatically marshelled to the child process and
# back to the parent session, so users can avoid custom
# serialization to pass objects between two processes.
Describe 'minishell for native executables' -Tag 'CI' {
-
+
BeforeAll {
$powershell = Join-Path -Path $PsHome -ChildPath "powershell"
}
@@ -82,14 +82,14 @@ Describe "ConsoleHost unit tests" -tags "Feature" {
}
}
}
-
+
AfterEach {
$Error.Clear()
}
Context "ShellInterop" {
It "Verify Parsing Error Output Format Single Shell should throw exception" {
- try
+ try
{
& $powershell -outp blah -comm { $input }
Throw "Test execution should not reach here!"
@@ -99,7 +99,7 @@ Describe "ConsoleHost unit tests" -tags "Feature" {
$_.FullyQualifiedErrorId | Should Be "IncorrectValueForFormatParameter"
}
}
-
+
It "Verify Validate Dollar Error Populated should throw exception" {
$origEA = $ErrorActionPreference
$ErrorActionPreference = "Stop"
@@ -119,16 +119,16 @@ Describe "ConsoleHost unit tests" -tags "Feature" {
$ErrorActionPreference = $origEA
}
}
-
+
It "Verify Validate Output Format As Text Explicitly Child Single Shell should works" {
{
$a="blahblah"
$a | & $powershell -noprofile -out text -com { $input }
} | Should Not Throw
}
-
+
It "Verify Parsing Error Input Format Single Shell should throw exception" {
- try
+ try
{
& $powershell -input blah -comm { $input }
Throw "Test execution should not reach here!"
@@ -373,7 +373,7 @@ foo
Describe "Console host api tests" -Tag CI {
Context "String escape sequences" {
$esc = [char]0x1b
- $testCases =
+ $testCases =
@{InputObject = "abc"; Length = 3; Name = "No escapes"},
@{InputObject = "${esc} [31mabc"; Length = 9; Name = "Malformed escape - extra space"},
@{InputObject = "${esc}abc"; Length = 4; Name = "Malformed escape - no csi"},
diff --git a/test/powershell/Host/HostUtilities.Tests.ps1 b/test/powershell/Host/HostUtilities.Tests.ps1
index 834585baee..99247fad55 100644
--- a/test/powershell/Host/HostUtilities.Tests.ps1
+++ b/test/powershell/Host/HostUtilities.Tests.ps1
@@ -53,7 +53,7 @@ Describe "InvokeOnRunspace method as nested command" -tags "Feature" {
}
Describe "InvokeOnRunspace method on remote runspace" -tags "Feature" {
-
+
BeforeAll {
if ($IsWindows) {
diff --git a/test/powershell/Host/TabCompletion/BugFix.Tests.ps1 b/test/powershell/Host/TabCompletion/BugFix.Tests.ps1
index 4ad85a189c..0769281eee 100644
--- a/test/powershell/Host/TabCompletion/BugFix.Tests.ps1
+++ b/test/powershell/Host/TabCompletion/BugFix.Tests.ps1
@@ -1,5 +1,5 @@
Describe "Tab completion bug fix" -Tags "CI" {
-
+
It "Issue#682 - '[system.manage' should work" {
$result = TabExpansion2 -inputScript "[system.manage" -cursorColumn "[system.manage".Length
$result | Should Not BeNullOrEmpty
diff --git a/test/powershell/Language/Classes/Scripting.Classes.Attributes.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.Attributes.Tests.ps1
index 77dac3bc26..d2edfd2416 100644
--- a/test/powershell/Language/Classes/Scripting.Classes.Attributes.Tests.ps1
+++ b/test/powershell/Language/Classes/Scripting.Classes.Attributes.Tests.ps1
@@ -1,6 +1,6 @@
Describe 'Attributes Test' -Tags "CI" {
-
- BeforeAll {
+
+ BeforeAll {
$dummyAttributesSource = @'
using System.Management.Automation;
namespace Dummy
@@ -44,12 +44,12 @@ namespace Dummy
}
}
}
-'@
+'@
Add-Type -TypeDefinition $dummyAttributesSource -ReferencedAssemblies "System.Management.Automation","mscorlib"
}
-
-
+
+
Context 'Property.Instance.ValidateSet.String' {
class C1 { [ValidateSet("Present", "Absent")][string]$Ensure }
# This call should not throw exception
@@ -62,7 +62,7 @@ namespace Dummy
throw "Exception expected"
}
catch
- {
+ {
$_.FullyQualifiedErrorId | Should be 'ExceptionWhenSetting'
}
}
@@ -73,14 +73,14 @@ namespace Dummy
# This call should not throw exception
[C1]::Ensure = "Present"
It 'Error when ValidateSet should be ExceptionWhenSetting'{
- try {
+ try {
[C1]::Ensure = "foo"
throw "Exception expected"
}
- catch {
+ catch {
$_.FullyQualifiedErrorId | Should be 'ExceptionWhenSetting'
- }
- }
+ }
+ }
}
Context 'Property.Instance.ValidateRange.Int' {
@@ -93,10 +93,10 @@ namespace Dummy
[C1]::new().f = 20
throw "Exception expected"
}
- catch {
+ catch {
$_.FullyQualifiedErrorId | Should be 'ExceptionWhenSetting'
- }
- }
+ }
+ }
}
Context 'Property.Static.ValidateRange.Int' {
@@ -108,7 +108,7 @@ namespace Dummy
[C1]::f = 20
throw "Exception expected"
}
- catch {
+ catch {
$_.FullyQualifiedErrorId | Should be 'ExceptionWhenSetting'
}
}
@@ -124,7 +124,7 @@ namespace Dummy
[C1]::o = 1
throw "Exception expected"
}
- catch {
+ catch {
$_.FullyQualifiedErrorId | Should be 'ExceptionWhenSetting'
}
}
@@ -136,10 +136,10 @@ namespace Dummy
#
# Invoke() returns an array, we need first element of it.
#
-
+
Context 'Property.Instance.Transformation.ImplicitObject' {
$c = [scriptblock]::Create('class C1 { [Dummy.DoubleStringTransformation()]$arg }; [C1]::new()').Invoke()[0]
-
+
It 'Implicitly Transform to 100' {
$c.arg = 100
$c.arg | should be 100
@@ -159,20 +159,20 @@ namespace Dummy
}
Context Property.Instance.Transformation.Int {
- $c = [scriptblock]::Create('class C1 { [Dummy.DoubleInt()][int]$arg }; [C1]::new()').Invoke()[0]
+ $c = [scriptblock]::Create('class C1 { [Dummy.DoubleInt()][int]$arg }; [C1]::new()').Invoke()[0]
It 'arg should be 200' {
$c.arg = 100
$c.arg | should be 200
}
- It 'Set to string should fail with ExceptionWhenSetting' {
+ It 'Set to string should fail with ExceptionWhenSetting' {
try {
$c.arg = "abc"
throw "Exception expected"
}
- catch {
+ catch {
$_.FullyQualifiedErrorId | Should be 'ExceptionWhenSetting'
}
- }
+ }
}
Context Property.Instance.Transformation.Nullable {
@@ -180,7 +180,7 @@ namespace Dummy
It 'arg should be 100' {
$c.arg = 100
$c.arg | should be 100
- }
+ }
}
Context Property.Instance.Transformation.Order {
@@ -189,26 +189,26 @@ namespace Dummy
$c.arg = 100
$c.arg | should be 100
}
-
+
It 'arg should be foo___foo___g' {
$c.arg = "foo"
$c.arg | should be "foo___foo___"
}
- }
+ }
}
Describe 'Type resolution with attributes' -Tag "CI" {
- # There is kind of a collision between names
+ # There is kind of a collision between names
# System.Diagnostics.Tracing.EventSource
# System.Diagnostics.Tracing.EventSourceAttribute
# We need to make sure that we resolve type name to the right class at each usage
Context 'Name collision' {
-
+
It 'Resolve System.Diagnostics.Tracing.EventSource to Attribute and to Type in the different contexts' {
[System.Diagnostics.Tracing.EventSource(Name = "MyPSEventSource")]
- class MyEventSource : System.Diagnostics.Tracing.EventSource
- {
- [void] OnEvent([string]$Message) {}
+ class MyEventSource : System.Diagnostics.Tracing.EventSource
+ {
+ [void] OnEvent([string]$Message) {}
}
[MyEventSource]::new() | Should Not Be $null
diff --git a/test/powershell/Language/Classes/Scripting.Classes.BasicParsing.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.BasicParsing.Tests.ps1
index 323bd4f3db..827083793b 100644
--- a/test/powershell/Language/Classes/Scripting.Classes.BasicParsing.Tests.ps1
+++ b/test/powershell/Language/Classes/Scripting.Classes.BasicParsing.Tests.ps1
@@ -11,21 +11,21 @@ Describe 'Positive Parse Properties Tests' -Tags "CI" {
# script will fail to parse.
# No members
- class C1 {}
+ class C1 {}
# Simple field
class C2 { $x; }
-
+
# Simple typed field
class C3 { [int] $x; }
-
+
# Multiple fields, one line, last w/o semicolon
class C4 { $x; $y }
# Multiple fields, multiple lines
class C5
{
- $x
+ $x
$y
}
@@ -83,7 +83,7 @@ Describe 'Positive Parse Properties Tests' -Tags "CI" {
# Method using return type defined in this scope
class C8a { [C1] f1() { return [C1]::new() } }
- class C8b { [c1] f1() { return [c1]::new() } }
+ class C8b { [c1] f1() { return [c1]::new() } }
# Hidden methods
class C10a { hidden F() { } }
@@ -121,7 +121,7 @@ Describe 'Positive Parse Properties Tests' -Tags "CI" {
}
It 'Positive ParseProperty Attributes Test' {
- class C1a { [ValidateNotNull()][int]$x; }
+ class C1a { [ValidateNotNull()][int]$x; }
class C1b
{
[ValidateNotNull()]
@@ -141,7 +141,7 @@ Describe 'Positive Parse Properties Tests' -Tags "CI" {
}
It 'PositiveParseMethodAttributesTest' {
- class C1a { [Obsolete()][int] f() { return 0 } }
+ class C1a { [Obsolete()][int] f() { return 0 } }
class C1b
{
[Obsolete()]
@@ -214,7 +214,7 @@ Describe 'Positive Parse Properties Tests' -Tags "CI" {
It 'allows some useful implicit variables inside methods' {
class C {
- [void] m()
+ [void] m()
{
$LASTEXITCODE
$lastexitcode
@@ -239,7 +239,7 @@ Describe 'Positive Parse Properties Tests' -Tags "CI" {
class A
{
$h
- A()
+ A()
{
$this.h = [ordered] @{}
}
@@ -264,7 +264,7 @@ Describe 'Negative Parsing Tests' -Tags "CI" {
ShouldBeParseError 'class foo { [zz]$x; }' TypeNotFound 13
ShouldBeParseError 'class foo { [zz]f() { return 0 } }' TypeNotFound 13
ShouldBeParseError 'class foo { f([zz]$x) {} }' TypeNotFound 15
-
+
ShouldBeParseError 'class C {} class C {}' MemberAlreadyDefined 11
ShouldBeParseError 'class C { f(){} f(){} }' MemberAlreadyDefined 16 -SkipAndCheckRuntimeError
ShouldBeParseError 'class C { F(){} F($o){} [int] F($o) {return 1} }' MemberAlreadyDefined 24 -SkipAndCheckRuntimeError
@@ -273,12 +273,12 @@ Describe 'Negative Parsing Tests' -Tags "CI" {
ShouldBeParseError 'class C { $x; [int]$x; }' MemberAlreadyDefined 14 -SkipAndCheckRuntimeError
ShouldBeParseError 'class C { static C($x) {} }' StaticConstructorCantHaveParameters 19 -SkipAndCheckRuntimeError
ShouldBeParseError 'class C { static C([int]$x = 100) {} }' StaticConstructorCantHaveParameters 19 -SkipAndCheckRuntimeError
-
+
ShouldBeParseError 'class C {f(){ return 1} }' VoidMethodHasReturn 14
ShouldBeParseError 'class C {[int] f(){ return } }' NonVoidMethodMissingReturnValue 20
ShouldBeParseError 'class C {[int] f(){} }' MethodHasCodePathNotReturn 15
ShouldBeParseError 'class C {f(){ $x=1; if($x -lt 2){ return } elseif($x -gt 0 ) {return 1} else{return 2} return 3 } }' @("VoidMethodHasReturn", "VoidMethodHasReturn", "VoidMethodHasReturn") @(62,77,87)
-
+
ShouldBeParseError 'class foo { [int] bar() { $y = $z; return $y} }' VariableNotLocal 31
ShouldBeParseError 'class foo { bar() { foreach ($zz in $yy) { } } }' VariableNotLocal 36
ShouldBeParseError 'class foo { bar() { foreach ($zz in $global:yy) { $abc = $zzzzz } } }' VariableNotLocal 57
@@ -286,12 +286,12 @@ Describe 'Negative Parsing Tests' -Tags "CI" {
ShouldBeParseError 'class foo { bar() { try { $zz = 42 } catch { } $zz } }' VariableNotLocal 47
ShouldBeParseError 'class foo { bar() { switch (@()) { default { $aa = 42 } } $aa } }' VariableNotLocal 58
ShouldBeParseError 'class C { $x; static bar() { $this.x = 1 } }' NonStaticMemberAccessInStaticMember 29
- ShouldBeParseError 'class C { $x; static $y = $this.x }' NonStaticMemberAccessInStaticMember 26
-
+ ShouldBeParseError 'class C { $x; static $y = $this.x }' NonStaticMemberAccessInStaticMember 26
+
ShouldBeParseError 'class C { $x; static bar() { $this.x = 1 } }' NonStaticMemberAccessInStaticMember 29
- ShouldBeParseError 'class C { $x; static $y = $this.x }' NonStaticMemberAccessInStaticMember 26
+ ShouldBeParseError 'class C { $x; static $y = $this.x }' NonStaticMemberAccessInStaticMember 26
ShouldBeParseError 'class C { $x; static bar() { $This.x = 1 } }' NonStaticMemberAccessInStaticMember 29
- ShouldBeParseError 'class C { $x; static $y = $This.x }' NonStaticMemberAccessInStaticMember 26
+ ShouldBeParseError 'class C { $x; static $y = $This.x }' NonStaticMemberAccessInStaticMember 26
ShouldBeParseError 'class C { [void]foo() { try { throw "foo"} finally { return } } }' ControlLeavingFinally 53
ShouldBeParseError 'class C { [int]foo() { return; return 1 } }' NonVoidMethodMissingReturnValue 23
@@ -302,7 +302,7 @@ Describe 'Negative Parsing Tests' -Tags "CI" {
ShouldBeParseError 'class C { [int]foo() { try { mkdir foo } finally { rm -rec foo } } }' MethodHasCodePathNotReturn 15
ShouldBeParseError 'class C { [int]foo() { try { mkdir foo; return 1 } catch { } } }' MethodHasCodePathNotReturn 15
ShouldBeParseError 'class C { [bool] Test() { if ($false) { return $true; } } }' MethodHasCodePathNotReturn 17
-
+
ShouldBeParseError 'class C { [int]$i; [void] foo() {$i = 10} }' MissingThis 33
ShouldBeParseError 'class C { static [int]$i; [void] foo() {$i = 10} }' MissingTypeInStaticPropertyAssignment 40
@@ -349,7 +349,7 @@ Describe 'Negative Assignment Tests' -Tags "CI" {
# Default ctor
ShouldBeParseError '[DscResource()]class C { [DscProperty(Key)][string]$Key; [bool] Test() { return $false } [C] Get() { return $this } Set() {} C($a) { } }' DscResourceMissingDefaultConstructor 0
}
-
+
Describe 'Negative DscResources Tests' -Tags "CI" {
# Usage errors
ShouldBeParseError '[Flags()]class C{}' AttributeNotAllowedOnDeclaration 0
@@ -373,10 +373,10 @@ Describe 'Negative ClassAttributes Tests' -Tags "CI" {
It "Should have one attribute" {$t.Count | should be 1}
It "Should have instance of CmdletAttribute" {$t[0].GetType().FullName | should be System.Management.Automation.CmdletAttribute }
-
+
[System.Management.Automation.CmdletAttribute]$c = $t[0]
It "Verb should be Get" {$c.VerbName | should be 'Get'}
- It "Noun should be Thing" {$c.NounName | should be 'Thing'}
+ It "Noun should be Thing" {$c.NounName | should be 'Thing'}
[System.Management.Automation.Cmdlet("Get", "Thing", SupportsShouldProcess = $true, SupportsPaging = $true)]class C2{}
$t = [C2].GetCustomAttributes($false)
@@ -384,22 +384,22 @@ Describe 'Negative ClassAttributes Tests' -Tags "CI" {
It "Should have instance of CmdletAttribute" { $t[0].GetType().FullName | should be System.Management.Automation.CmdletAttribute }
[System.Management.Automation.CmdletAttribute]$c = $t[0]
It "Verb should be Get" {$c.VerbName | should be 'Get'}
- It "Noun should be Thing" {$c.NounName | should be 'Thing'}
-
+ It "Noun should be Thing" {$c.NounName | should be 'Thing'}
+
It "SupportsShouldProcess should be $true" { $c.ConfirmImpact | should be $true }
It "SupportsPaging should be `$true" { $c.SupportsPaging | should be $true }
Context "Support ConfirmImpact as an attribute" {
- It "ConfirmImpact should be high" -pending {
+ It "ConfirmImpact should be high" -pending {
[System.Management.Automation.Cmdlet("Get", "Thing", ConfirmImpact = 'High', SupportsPaging = $true)]class C3{}
$t = [C3].GetCustomAttributes($false)
It "Should have one attribute" { $t.Count | should be 1 }
It "Should have instance of CmdletAttribute" { $t[0].GetType().FullName | should be System.Management.Automation.CmdletAttribute }
[System.Management.Automation.CmdletAttribute]$c = $t[0]
$c.ConfirmImpact | should be 'High'
-
+
}
}
-}
+}
Describe 'Property Attributes Test' -Tags "CI" {
class C { [ValidateSet('a', 'b')]$p; }
@@ -413,11 +413,11 @@ Describe 'Property Attributes Test' -Tags "CI" {
}
Describe 'Method Attributes Test' -Tags "CI" {
- class C { [Obsolete("aaa")][int]f() { return 1 } }
+ class C { [Obsolete("aaa")][int]f() { return 1 } }
$t = [C].GetMethod('f').GetCustomAttributes($false)
It "Should have one attribute" {$t.Count | should be 1 }
- It "Attribute type should be ObsoleteAttribute" { $t[0].GetType().FullName | should be System.ObsoleteAttribute }
+ It "Attribute type should be ObsoleteAttribute" { $t[0].GetType().FullName | should be System.ObsoleteAttribute }
}
Describe 'Positive SelfClass Type As Parameter Test' -Tags "CI" {
@@ -425,10 +425,10 @@ Describe 'Positive SelfClass Type As Parameter Test' -Tags "CI" {
{
Point($x, $y) { $this.x = $x; $this.y = $y }
Point() {}
-
+
[int] $x = 0
[int] $y = 0
- Add([Point] $val) { $this.x += $val.x; $this.y += $val.y; }
+ Add([Point] $val) { $this.x += $val.x; $this.y += $val.y; }
Print() { Write-Host "[`$x=$($this.x) `$y=$($this.y)]" }
Set($x, $y) { $this.x = $x; $this.y = $y }
@@ -440,7 +440,7 @@ Describe 'Positive SelfClass Type As Parameter Test' -Tags "CI" {
$point.x | should be 101
$point.y | should be 202
- }
+ }
It "[Point]::Add works" {
$point = New-Object Point 100,200
@@ -449,7 +449,7 @@ Describe 'Positive SelfClass Type As Parameter Test' -Tags "CI" {
$point.x | should be 101
$point.y | should be 202
- }
+ }
}
Describe 'PositiveReturnSelfClassTypeFromMemberFunction Test' -Tags "CI" {
@@ -466,7 +466,7 @@ Describe 'PositiveReturnSelfClassTypeFromMemberFunction Test' -Tags "CI" {
}
$f = [ReturnObjectFromMemberFunctionTest]::new()
$z = $f.CreateInstance() # Line 13
- It "CreateInstance works" { $z.SayHello() | should be 'Hello1' }
+ It "CreateInstance works" { $z.SayHello() | should be 'Hello1' }
}
Describe 'TestMultipleArguments Test' -Tags "CI" {
@@ -582,7 +582,7 @@ Describe 'Hidden Members Test ' -Tags "CI" {
$tableOutput = $instance | Format-Table -HideTableHeaders -AutoSize | Out-String
It "Table formatting should not have included hidden member hiddenZ - should contain 10" { $tableOutput.Contains(10) | should be $true}
It "Table formatting should not have included hidden member hiddenZ- should contain 12" { $tableOutput.Contains(12) | should be $true}
- It "Table formatting should not have included hidden member hiddenZ - should not contain 42" { $tableOutput.Contains(42) | should be $false}
+ It "Table formatting should not have included hidden member hiddenZ - should not contain 42" { $tableOutput.Contains(42) | should be $false}
# Get-Member should not include hidden members by default
$member = $instance | Get-Member hiddenZ
@@ -590,18 +590,18 @@ Describe 'Hidden Members Test ' -Tags "CI" {
# Get-Member should include hidden members with -Force
$member = $instance | Get-Member hiddenZ -Force
- It "Get-Member should find hidden member w/ -Force" { $member | should not be $null }
+ It "Get-Member should find hidden member w/ -Force" { $member | should not be $null }
# Tab completion should not return a hidden member
$line = 'class C2 { hidden [int]$hiddenZ } [C2]::new().h'
$completions = [System.Management.Automation.CommandCompletion]::CompleteInput($line, $line.Length, $null)
- It "Tab completion should not return a hidden member" { $completions.CompletionMatches.Count | should be 0 }
+ It "Tab completion should not return a hidden member" { $completions.CompletionMatches.Count | should be 0 }
}
Describe 'BaseMethodCall Test ' -Tags "CI" {
- It "Derived class method call" {"abc".ToString() | should be "abc" }
+ It "Derived class method call" {"abc".ToString() | should be "abc" }
# call [object] ToString() method as a base class method.
- It "Base class method call" {([object]"abc").ToString() | should be "System.String" }
+ It "Base class method call" {([object]"abc").ToString() | should be "System.String" }
}
Describe 'Scoped Types Test' -Tags "CI" {
@@ -627,7 +627,7 @@ Describe 'Scoped Types Test' -Tags "CI" {
It "[C1]::new() in nested scope" { (f1) | should be "f1 scope" }
It "'new-object C1' in nested scope" { (f2) | should be "f2 scope" }
-
+
It "[C1]::new() in nested scope (in pipeline)" { (1 | f1 | f2 | f1) | should be "f1 scope" }
It "'new-object C1' in nested scope (in pipeline)" { (1 | f2 | f1 | f2) | should be "f2 scope" }
}
@@ -658,7 +658,7 @@ Describe 'Type building' -Tags "CI" {
$a -eq [C] | Should Be $true
}
$a = [C]
- }
+ }
}
It 'should create a new type every time scriptblock executed?' -Pending {
@@ -672,9 +672,9 @@ Describe 'Type building' -Tags "CI" {
}
Describe 'RuntimeType created for TypeDefinitionAst' -Tags "CI" {
-
+
It 'can make cast to the right RuntimeType in two different contexts' -pending {
-
+
$ssfe = [System.Management.Automation.Runspaces.SessionStateFunctionEntry]::new("foo", @'
class Base
{
@@ -708,7 +708,7 @@ class Derived : Base
}
Describe 'TypeTable lookups' -Tags "CI" {
-
+
Context 'Call methods from a different thread' {
$b = [powershell]::Create().AddScript(
@'
@@ -748,17 +748,17 @@ namespace Foo
It 'doesn''t allow protected methods access outside of inheritance chain' -pending {
$a = [scriptblock]::Create(@'
class A
-{
- SetX([Foo.Bar]$bar, [int]$x)
+{
+ SetX([Foo.Bar]$bar, [int]$x)
{
$bar.x = $x
- }
-
- [int] GetX([Foo.Bar]$bar)
+ }
+
+ [int] GetX([Foo.Bar]$bar)
{
Set-StrictMode -Version latest
return $bar.x
- }
+ }
}
[A]::new()
@@ -782,17 +782,17 @@ class A
It 'can call protected methods sequentially from two different contexts' {
$ssfe = [System.Management.Automation.Runspaces.SessionStateFunctionEntry]::new("foo", @'
-class A : Foo.Bar
-{
- SetX([int]$x)
+class A : Foo.Bar
+{
+ SetX([int]$x)
{
$this.x = $x
- }
-
- [int] GetX()
+ }
+
+ [int] GetX()
{
- return $this.x
- }
+ return $this.x
+ }
}
return [A]::new()
'@)
@@ -827,7 +827,7 @@ Describe 'variable analysis' -Tags "CI" {
[A] $var = [A]::new()
return $var
}
- }
+ }
[B]::getA().getFoo() | Should Be 'foo'
}
diff --git a/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1
index 18a034013c..b4d15b3edd 100644
--- a/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1
+++ b/test/powershell/Language/Classes/Scripting.Classes.Break.Tests.ps1
@@ -1,12 +1,12 @@
Describe 'Break statements with classes' -Tags "CI" {
-
+
function Get-Errors([string]$sourceCode) {
- $tokens = $null
+ $tokens = $null
$errors = $null
$ast = [System.Management.Automation.Language.Parser]::ParseInput($sourceCode, [ref] $tokens, [ref] $errors)
return $errors
}
-
+
Context 'break is inside a class method' {
It 'reports parse error for break on non-existing label' {
$errors = Get-Errors @'
@@ -18,7 +18,7 @@ class A
return 1
}
}
-'@
+'@
$errors.Count | Should be 1
$errors[0].ErrorId | Should be 'LabelNotFound'
}
@@ -33,7 +33,7 @@ class A
return 1
}
}
-'@
+'@
$errors.Count | Should be 1
$errors[0].ErrorId | Should be 'LabelNotFound'
}
@@ -64,7 +64,7 @@ class A
return 1
}
}
-'@
+'@
$errors.Count | Should be 1
$errors[0].ErrorId | Should be 'LabelNotFound'
}
@@ -72,7 +72,7 @@ class A
Context 'break is in called function' {
It 'doesn''t terminate caller method' -Skip {
-
+
function ImBreak() {
break
}
@@ -85,7 +85,7 @@ class A
return 123
}
}
-
+
$canary = $false
try {
[C]::getInt() | Should Be 123
@@ -96,7 +96,7 @@ class A
}
It 'doesn''t allow goto outside of function with break' -Skip {
-
+
function ImBreak() {
break label1
}
@@ -107,8 +107,8 @@ class A
{
$count = 123
:label1
- foreach ($i in 0..3) {
- foreach ($i in 0..3) {
+ foreach ($i in 0..3) {
+ foreach ($i in 0..3) {
ImBreak
$count++
}
@@ -116,7 +116,7 @@ class A
return $count
}
}
-
+
$canary = $false
try {
[C]::getInt() | Should Be (123 + 4*4)
@@ -128,7 +128,7 @@ class A
}
Context 'no classes involved' {
-
+
It 'doesn''t report parse error for non-existing label' {
$errors = Get-Errors @'
function foo()
@@ -137,7 +137,7 @@ function foo()
while (1) { continue another_label }
return 1
}
-'@
+'@
$errors.Count | Should be 0
}
diff --git a/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1
index ca9c20db68..6faeaf8b9d 100644
--- a/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1
+++ b/test/powershell/Language/Classes/Scripting.Classes.Exceptions.Tests.ps1
@@ -1,5 +1,5 @@
Describe 'Exceptions flow for classes' -Tags "CI" {
-
+
$canaryHashtable = @{}
$iss = [initialsessionstate]::CreateDefault()
@@ -13,10 +13,10 @@ Describe 'Exceptions flow for classes' -Tags "CI" {
}
Context 'All calls are inside classes' {
-
+
It 'does not execute statements after instance method with exception' {
-
- # Put try-catch outside to avoid try-catch logic altering analysis
+
+ # Put try-catch outside to avoid try-catch logic altering analysis
try {
$ps.AddScript( @'
@@ -30,22 +30,22 @@ class C
$canaryHashtable['canary'] = 100
}
- [void] ImThrow()
+ [void] ImThrow()
{
throw 'I told you'
}
}
[C]::new().m1()
'@).Invoke()
-
+
} catch {}
$canaryHashtable['canary'] | Should Be 42
}
It 'does not execute statements after static method with exception' {
-
- # Put try-catch outside to avoid try-catch logic altering analysis
+
+ # Put try-catch outside to avoid try-catch logic altering analysis
try {
$ps.AddScript( @'
@@ -59,22 +59,22 @@ class C
$canaryHashtable['canary'] = 100
}
- static [void] ImThrow()
+ static [void] ImThrow()
{
1 / 0
}
}
[C]::s1()
'@).Invoke()
-
+
} catch {}
$canaryHashtable['canary'] | Should Be 43
}
It 'does not execute statements after instance method with exception and deep stack' {
-
- # Put try-catch outside to avoid try-catch logic altering analysis
+
+ # Put try-catch outside to avoid try-catch logic altering analysis
try {
$ps.AddScript( @'
@@ -88,41 +88,41 @@ class C
$canaryHashtable['canary'] = -6101
}
- [void] m2()
+ [void] m2()
{
$canaryHashtable = Get-Canary
$canaryHashtable['canary'] += 10
$this.m3()
- $canaryHashtable['canary'] = -6102
+ $canaryHashtable['canary'] = -6102
}
- [void] m3()
+ [void] m3()
{
$canaryHashtable = Get-Canary
$canaryHashtable['canary'] += 100
$this.m4()
- $canaryHashtable['canary'] = -6103
+ $canaryHashtable['canary'] = -6103
}
- [void] m4()
- {
+ [void] m4()
+ {
$canaryHashtable = Get-Canary
$canaryHashtable['canary'] += 1000
$this.ImThrow()
$canaryHashtable['canary'] = -6104
}
- [void] ImThrow()
+ [void] ImThrow()
{
$canaryHashtable = Get-Canary
$canaryHashtable['canary'] += 10000
-
+
1 / 0
}
}
[C]::new().m1()
'@).Invoke()
-
+
} catch {}
$canaryHashtable['canary'] | Should Be 11111
@@ -130,11 +130,11 @@ class C
}
Context 'Class method call PS function' {
-
+
$body = @'
class C
{
- [void] m1()
+ [void] m1()
{
m2
}
@@ -144,7 +144,7 @@ class C
s2
}
}
-
+
function m2()
{
@@ -167,7 +167,7 @@ function CallImThrow()
ImThrow
}
-function ImThrow()
+function ImThrow()
{
1 / 0
}
@@ -175,28 +175,28 @@ function ImThrow()
'@
It 'does not execute statements after function with exception called from instance method' {
-
- # Put try-catch outside to avoid try-catch logic altering analysis
+
+ # Put try-catch outside to avoid try-catch logic altering analysis
try {
$ps.AddScript($body).Invoke()
$ps.AddScript('$c = [C]::new(); $c.m1()').Invoke()
-
+
} catch {}
-
+
$canaryHashtable['canaryM'] | Should Be 45
}
It 'does not execute statements after function with exception called from static method' {
-
- # Put try-catch outside to avoid try-catch logic altering analysis
+
+ # Put try-catch outside to avoid try-catch logic altering analysis
try {
$ps.AddScript($body).Invoke()
$ps.AddScript('[C]::s1()').Invoke()
-
+
} catch {}
-
+
$canaryHashtable['canaryS'] | Should Be 46
}
@@ -216,7 +216,7 @@ foo
$canaryHashtable['canary'] += 100
'@).Invoke()
-
+
} catch {}
$canaryHashtable['canary'] | Should Be 111
@@ -234,7 +234,7 @@ Describe "Exception error position" -Tags "CI" {
}
It "Setting a property that doesn't exist" {
- try {
+ try {
[MSFT_3090412]::f1()
throw "f1 should have thrown"
} catch {
@@ -243,7 +243,7 @@ Describe "Exception error position" -Tags "CI" {
}
It "Throwing an exception" {
- try {
+ try {
[MSFT_3090412]::f2()
throw "f2 should have thrown"
} catch {
@@ -252,7 +252,7 @@ Describe "Exception error position" -Tags "CI" {
}
It "Calling a .Net method that throws" {
- try {
+ try {
[MSFT_3090412]::f3()
throw "f3 should have thrown"
} catch {
@@ -261,7 +261,7 @@ Describe "Exception error position" -Tags "CI" {
}
It "Terminating error" {
- try {
+ try {
[MSFT_3090412]::f4()
throw "f4 should have thrown"
} catch {
@@ -276,7 +276,7 @@ Describe "Exception from initializer" -Tags "CI" {
[int]$a = "zz"
MSFT_6397334a() {}
}
-
+
class MSFT_6397334b
{
[int]$a = "zz"
@@ -287,12 +287,12 @@ Describe "Exception from initializer" -Tags "CI" {
static [int]$a = "zz"
static MSFT_6397334a() {}
}
-
+
class MSFT_6397334d
{
static [int]$a = "zz"
}
-
+
It "instance member w/ ctor" {
try {
[MSFT_6397334a]::new()
@@ -302,10 +302,10 @@ Describe "Exception from initializer" -Tags "CI" {
{
$e = $_
$e.FullyQualifiedErrorId | Should Be InvalidCastFromStringToInteger
- $e.InvocationInfo.Line | Should Match 'a = "zz"'
+ $e.InvocationInfo.Line | Should Match 'a = "zz"'
}
}
-
+
It "instance member w/o ctor" {
try {
[MSFT_6397334b]::new()
@@ -315,7 +315,7 @@ Describe "Exception from initializer" -Tags "CI" {
{
$e = $_
$e.FullyQualifiedErrorId | Should Be InvalidCastFromStringToInteger
- $e.InvocationInfo.Line | Should Match 'a = "zz"'
+ $e.InvocationInfo.Line | Should Match 'a = "zz"'
}
}
@@ -329,10 +329,10 @@ Describe "Exception from initializer" -Tags "CI" {
$_.Exception.GetType().FullName | Should Be System.TypeInitializationException
$e = $_.Exception.InnerException.InnerException.ErrorRecord
$e.FullyQualifiedErrorId | Should Be InvalidCastFromStringToInteger
- $e.InvocationInfo.Line | Should Match 'a = "zz"'
+ $e.InvocationInfo.Line | Should Match 'a = "zz"'
}
}
-
+
It "static member w/o ctor" {
try {
$null = [MSFT_6397334d]::a
@@ -343,7 +343,7 @@ Describe "Exception from initializer" -Tags "CI" {
$_.Exception.GetType().FullName | Should Be System.TypeInitializationException
$e = $_.Exception.InnerException.InnerException.ErrorRecord
$e.FullyQualifiedErrorId | Should Be InvalidCastFromStringToInteger
- $e.InvocationInfo.Line | Should Match 'a = "zz"'
+ $e.InvocationInfo.Line | Should Match 'a = "zz"'
}
}
}
diff --git a/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1
index ee798cf120..26968ecfb1 100644
--- a/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1
+++ b/test/powershell/Language/Classes/Scripting.Classes.MiscOps.Tests.ps1
@@ -1,45 +1,45 @@
Describe 'Misc Test' -Tags "CI" {
-
+
Context 'Where' {
- class C1 {
- [int[]] $Wheels = @(1,2,3);
- [string] Foo() {
+ class C1 {
+ [int[]] $Wheels = @(1,2,3);
+ [string] Foo() {
return (1..10).Where({ $PSItem -in $this.Wheels; }) -join ';'
}
[string] Bar()
- {
+ {
return (1..10 | Where { $PSItem -in $this.Wheels; }) -join ';'
}
}
- It 'Invoke Where' {
+ It 'Invoke Where' {
[C1]::new().Foo() | should be "1;2;3"
}
- It 'Pipe to where' {
+ It 'Pipe to where' {
[C1]::new().Bar() | should be "1;2;3"
}
}
Context 'ForEach' {
- class C1 {
- [int[]] $Wheels = @(1,2,3);
+ class C1 {
+ [int[]] $Wheels = @(1,2,3);
[string] Foo() {
$ret=""
Foreach($PSItem in $this.Wheels) { $ret +="$PSItem;"}
return $ret
}
- [string] Bar()
+ [string] Bar()
{
$ret = ""
$this.Wheels | foreach { $ret += "$_;" }
return $ret
}
}
- It 'Invoke Foreach' {
+ It 'Invoke Foreach' {
[C1]::new().Foo() | should be "1;2;3;"
}
- It 'Pipe to Foreach' {
+ It 'Pipe to Foreach' {
[C1]::new().Bar() | should be "1;2;3;"
}
}
diff --git a/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1 b/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1
index 3098d2c381..5a1e4f2e85 100644
--- a/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1
+++ b/test/powershell/Language/Classes/Scripting.Classes.Modules.Tests.ps1
@@ -8,14 +8,14 @@
Describe 'use of a module from two runspaces' -Tags "CI" {
function New-TestModule {
param(
- [string]$Name,
+ [string]$Name,
[string]$Content
)
-
+
$TestModulePath = Join-Path -Path $TestDrive -ChildPath "TestModule"
$ModuleFolder = Join-Path -Path $TestModulePath -ChildPath $Name
New-Item -Path $ModuleFolder -ItemType Directory -Force > $null
-
+
Set-Content -Path "$ModuleFolder\$Name.psm1" -Value $Content
$manifestParams = @{
@@ -31,7 +31,7 @@ Describe 'use of a module from two runspaces' -Tags "CI" {
$originalPSMODULEPATH = $env:PSMODULEPATH
try {
-
+
New-TestModule -Name 'Random' -Content @'
$script:random = Get-Random
class RandomWrapper
@@ -53,13 +53,13 @@ Import-Module Random
$res = 1..2 | % {
0..1 | % {
$ps[$_].Commands.Clear()
- # The idea: instance created inside the context, in one runspace.
+ # The idea: instance created inside the context, in one runspace.
# Method is called on instance in the different runspace, but it should know about the origin.
$w = $ps[$_].AddScript('& (Get-Module Random) { [RandomWrapper]::new() }').Invoke()[0]
$w.getRandom()
}
}
-
+
$res.Count | Should Be 4
$res[0] | Should Not Be $res[1]
$res[0] | Should Be $res[2]
diff --git a/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1 b/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1
index 886ea067f5..1888c07722 100644
--- a/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1
+++ b/test/powershell/Language/Classes/scripting.Classes.NestedModules.tests.ps1
@@ -1,32 +1,32 @@
Describe 'NestedModules' -Tags "CI" {
-
+
Import-Module $PSScriptRoot\..\LanguageTestSupport.psm1
function New-TestModule {
param(
- [string]$Name,
+ [string]$Name,
[string]$Content,
[string[]]$NestedContents
)
-
- new-item -type directory -Force "TestDrive:\$Name" > $null
+
+ new-item -type directory -Force "TestDrive:\$Name" > $null
$manifestParams = @{
Path = "TestDrive:\$Name\$Name.psd1"
}
-
+
if ($Content) {
Set-Content -Path "${TestDrive}\$Name\$Name.psm1" -Value $Content
$manifestParams['RootModule'] = "$Name.psm1"
}
if ($NestedContents) {
- $manifestParams['NestedModules'] = 1..$NestedContents.Count | % {
+ $manifestParams['NestedModules'] = 1..$NestedContents.Count | % {
$null = new-item -type directory TestDrive:\$Name\Nested$_
$null = Set-Content -Path "${TestDrive}\$Name\Nested$_\Nested$_.psm1" -Value $NestedContents[$_ - 1]
"Nested$_"
}
}
-
+
New-ModuleManifest @manifestParams
$resolvedTestDrivePath = Split-Path ((get-childitem TestDrive:\)[0].FullName)
@@ -38,8 +38,8 @@ Describe 'NestedModules' -Tags "CI" {
$originalPSMODULEPATH = $env:PSMODULEPATH
try {
-
-
+
+
# Create modules in TestDrive:\
New-TestModule -Name NoRoot -NestedContents @(
'class A { [string] foo() { return "A1"} }',
diff --git a/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1 b/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1
index 3d67ba6e3c..88d25a629f 100644
--- a/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1
+++ b/test/powershell/Language/Classes/scripting.Classes.inheritance.tests.ps1
@@ -10,7 +10,7 @@ Describe 'Classes inheritance syntax' -Tags "CI" {
class C1 {}
class C2a : C1 {}
class C2b:C1 {}
-
+
[C2a]::new().GetType().BaseType.Name | Should Be "C1"
[C2b].BaseType.Name | Should Be "C1"
}
@@ -30,12 +30,12 @@ Describe 'Classes inheritance syntax' -Tags "CI" {
It 'inheritance syntax allows newlines in various places' {
class C {}
class C2a:C,system.IDisposable{ [void] Dispose() { }}
- class C2b
- :
+ class C2b
+ :
C
- ,
- system.IDisposable
- {
+ ,
+ system.IDisposable
+ {
[void] Dispose() {}
C2b()
: # there are extra spaces here
@@ -56,7 +56,7 @@ Describe 'Classes inheritance syntax' -Tags "CI" {
}
It 'can implement .NET interface' {
- class MyComparable : system.IComparable
+ class MyComparable : system.IComparable
{
[int] CompareTo([object] $obj)
{
@@ -74,7 +74,7 @@ Describe 'Classes inheritance syntax' -Tags "CI" {
[A]::b = "bla"
} catch {
$_.Exception.GetType().Name | Should Be SetValueInvocationException
- return
+ return
}
# Fail, if come heres
'' | Should Be "Exception expected"
@@ -94,7 +94,7 @@ Describe 'Classes inheritance syntax errors' -Tags "CI" {
ShouldBeParseError "class A {}; class B : A, NonExistingInterface {}" TypeNotFound 25
# base should be accepted only on instance ctors
- ShouldBeParseError 'class A { A($a){} } ; class B : A { foo() : base(1) {} }' MissingFunctionBody 41
+ ShouldBeParseError 'class A { A($a){} } ; class B : A { foo() : base(1) {} }' MissingFunctionBody 41
ShouldBeParseError 'class A { static A() {} }; class B { static B() : base() {} }' MissingFunctionBody 47
# Incomplete input
@@ -107,7 +107,7 @@ Describe 'Classes inheritance syntax errors' -Tags "CI" {
# Non-existing Interface
ShouldBeParseError "class bar {}; class baz : bar, Non.Existing.Interface {}" TypeNotFound 31 -SkipAndCheckRuntimeError
- # .NET abstract method not implemented
+ # .NET abstract method not implemented
ShouldBeParseError "class MyType : Type {}" TypeCreationError 0 -SkipAndCheckRuntimeError
# inheritance doesn't allow non linear order
@@ -123,7 +123,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
Context 'Method calls' {
It 'can call instance method on base class' {
- class bar
+ class bar
{
[int]foo() {return 100500}
}
@@ -132,7 +132,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
It 'can call static method on base class' {
- class bar
+ class bar
{
static [int]foo() {return 100500}
}
@@ -141,12 +141,12 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
It 'can access static and instance base class property' {
- class A
- {
- static [int]$si
- [int]$i
+ class A
+ {
+ static [int]$si
+ [int]$i
}
- class B : A
+ class B : A
{
[void]foo()
{
@@ -171,11 +171,11 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
It 'overrides instance method' {
- class bar
+ class bar
{
[int]foo() {return 100500}
}
- class baz : bar
+ class baz : bar
{
[int]foo() {return 200600}
}
@@ -183,51 +183,51 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
It 'allows base class method call and doesn''t fall into recursion' {
- class bar
+ class bar
{
[int]foo() {return 1001}
}
- class baz : bar
+ class baz : bar
{
[int] $fooCallCounter
- [int]foo()
+ [int]foo()
{
- if ($this.fooCallCounter++ -gt 0)
+ if ($this.fooCallCounter++ -gt 0)
{
throw "Recursion happens"
}
- return 3 * ([bar]$this).foo()
+ return 3 * ([bar]$this).foo()
}
}
-
+
$res = [baz]::new().foo()
$res | Should Be 3003
}
It 'case insensitive for base class method calls' {
- class bar
+ class bar
{
[int]foo() {return 1001}
}
- class baz : bar
+ class baz : bar
{
[int] $fooCallCounter
- [int]fOo()
+ [int]fOo()
{
- if ($this.fooCallCounter++ -gt 0)
+ if ($this.fooCallCounter++ -gt 0)
{
throw "Recursion happens"
}
return ([bAr]$this).fOo() + ([bAr]$this).FOO()
}
}
-
+
$res = [baz]::new().foo()
$res | Should Be 2002
}
It 'allows any call from the inheritance hierarchy' {
- class A
+ class A
{
[string]GetName() {return "A"}
}
@@ -239,7 +239,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
{
[string]GetName() {return "C"}
}
- class D : C
+ class D : C
{
[string]GetName() {return "D"}
}
@@ -253,7 +253,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
It 'can call base method with params' {
- class A
+ class A
{
[string]ToStr([int]$a) {return "A" + $a}
}
@@ -267,7 +267,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
It 'can call base method with many params' {
- class A
+ class A
{
[string]ToStr([int]$a1, [int]$a2, [int]$a3, [int]$a4, [int]$a5, [int]$a6, [int]$a7, [int]$a8, [int]$a9, [int]$a10, [int]$a11, [int]$a12, [int]$a13, [int]$a14)
{
@@ -289,14 +289,14 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
{
}
}
- $b = [B]::new()
+ $b = [B]::new()
# we don't really care about methods results, we only checks that calls doesn't throw
-
+
# 14 args is a limit
$b.ToStr(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14) | Should Be 'B'
([A]$b).ToStr(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14) | Should Be 'A'
-
+
# 14 args is a limit
$b.Noop(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
([A]$b).Noop(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14)
@@ -304,7 +304,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
It 'overrides void method call' {
$script:voidOverrideVar = $null
- class A
+ class A
{
[void]SetStr([int]$a) {$script:voidOverrideVar = "A" + $a}
[void]SetStr() {$script:voidOverrideVar = "A"}
@@ -326,10 +326,10 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
It 'hides final .NET method' {
- class MyIntList : system.collections.generic.list[int]
+ class MyIntList : system.collections.generic.list[int]
{
# Add is final, can we hide it?
- [void] Add([int]$arg)
+ [void] Add([int]$arg)
{
([system.collections.generic.list[int]]$this).Add($arg * 2)
}
@@ -343,7 +343,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
}
Context 'base static method call' {
- class A
+ class A
{
static [string]ToStr([int]$a) {return "A" + $a}
}
@@ -354,7 +354,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
$b = [B]::new()
- # MSFT:1911652
+ # MSFT:1911652
# MSFT:2973835
It 'doesn''t affect static method call on type' -Skip {
([A]$b)::ToStr(101) | Should Be "A101"
@@ -368,7 +368,7 @@ Describe 'Classes methods with inheritance' -Tags "CI" {
Describe 'Classes inheritance ctors syntax errors' -Tags "CI" {
-
+
#DotNet.Interface.NotImplemented
ShouldBeParseError "class MyComparable : system.IComparable {}" TypeCreationError 0 -SkipAndCheckRuntimeError
@@ -383,18 +383,18 @@ Describe 'Classes inheritance ctors syntax errors' -Tags "CI" {
}
Describe 'Classes inheritance ctors' -Tags "CI" {
-
+
It 'can call base ctor' {
- class A {
- [int]$a
- A([int]$a)
+ class A {
+ [int]$a
+ A([int]$a)
{
$this.a = $a
}
}
- class B : A
- {
+ class B : A
+ {
B([int]$a) : base($a * 2) {}
}
@@ -404,16 +404,16 @@ Describe 'Classes inheritance ctors' -Tags "CI" {
# TODO: can we detect it in the parse time?
It 'cannot call base ctor with the wrong number of parameters' {
- class A {
- [int]$a
- A([int]$a)
+ class A {
+ [int]$a
+ A([int]$a)
{
$this.a = $a
}
}
- class B : A
- {
+ class B : A
+ {
B([int]$a) : base($a * 2, 100) {}
}
@@ -421,28 +421,28 @@ Describe 'Classes inheritance ctors' -Tags "CI" {
[B]::new(101)
} catch {
$_.Exception.GetType().Name | Should Be MethodException
- return
+ return
}
# Fail
'' | Should Be "Exception expected"
}
It 'call default base ctor implicitly' {
- class A {
- [int]$a
- A()
+ class A {
+ [int]$a
+ A()
{
$this.a = 1007
}
}
- class B : A
- {
+ class B : A
+ {
B() {}
}
- class C : A
- {
+ class C : A
+ {
}
$b = [B]::new()
@@ -458,23 +458,23 @@ Describe 'Classes inheritance ctors' -Tags "CI" {
$o.{.ctor}()
} catch {
$_.FullyQualifiedErrorId | Should Be MethodNotFound
- return
+ return
}
# Fail
'' | Should Be "Exception expected"
}
-
+
It 'allow use conversion [string -> int] in base ctor call' {
- class A {
- [int]$a
- A([int]$a)
+ class A {
+ [int]$a
+ A([int]$a)
{
$this.a = $a
}
}
- class B : A
- {
+ class B : A
+ {
B() : base("103") {}
}
@@ -483,21 +483,21 @@ Describe 'Classes inheritance ctors' -Tags "CI" {
}
It 'resolves ctor call based on argument type' {
- class A {
+ class A {
[int]$i
[string]$s
- A([int]$a)
+ A([int]$a)
{
$this.i = $a
}
- A([string]$a)
+ A([string]$a)
{
$this.s = $a
}
}
- class B : A
- {
+ class B : A
+ {
B($a) : base($a) {}
}
@@ -521,7 +521,7 @@ class Derived : Base
[int] foo() { return 2 * ([Base]$this).foo() }
}
-[Derived]::new().foo()
+[Derived]::new().foo()
'@)
$sb.Invoke() | Should Be 200
$sb.Invoke() | Should Be 200
diff --git a/test/powershell/Language/Classes/scripting.Classes.using.tests.ps1 b/test/powershell/Language/Classes/scripting.Classes.using.tests.ps1
index 72f921ddd8..23806d5a43 100644
--- a/test/powershell/Language/Classes/scripting.Classes.using.tests.ps1
+++ b/test/powershell/Language/Classes/scripting.Classes.using.tests.ps1
@@ -1,20 +1,20 @@
Describe 'using module' -Tags "CI" {
BeforeAll {
$originalPSMODULEPATH = $env:PSMODULEPATH
-
+
Import-Module $PSScriptRoot\..\LanguageTestSupport.psm1
function New-TestModule {
param(
- [string]$Name,
- [string]$Content,
- [switch]$Manifest,
+ [string]$Name,
+ [string]$Content,
+ [switch]$Manifest,
[version]$Version = '1.0', # ignored, if $Manifest -eq $false
[string]$ModulePathPrefix = 'modules' # module is created under TestDrive:\$ModulePathPrefix\$Name
)
-
+
if ($manifest) {
- new-item -type directory -Force "${TestDrive}\$ModulePathPrefix\$Name\$Version" > $null
+ new-item -type directory -Force "${TestDrive}\$ModulePathPrefix\$Name\$Version" > $null
Set-Content -Path "${TestDrive}\$ModulePathPrefix\$Name\$Version\$Name.psm1" -Value $Content
New-ModuleManifest -RootModule "$Name.psm1" -Path "${TestDrive}\$ModulePathPrefix\$Name\$Version\$Name.psd1" -ModuleVersion $Version
} else {
@@ -31,14 +31,14 @@ Describe 'using module' -Tags "CI" {
}
AfterAll {
- $env:PSMODULEPATH = $originalPSMODULEPATH
+ $env:PSMODULEPATH = $originalPSMODULEPATH
}
It 'Import-Module has ImplementedAssembly, when classes are present in the module' {
# Create modules in TestDrive:\
New-TestModule -Name Foo -Content 'class Foo { [string] GetModuleName() { return "Foo" } }'
New-TestModule -Manifest -Name FooWithManifest -Content 'class Foo { [string] GetModuleName() { return "FooWithManifest" } }'
-
+
$module = Import-Module Foo -PassThru
try {
$module.ImplementingAssembly | Should Not Be $null
@@ -53,7 +53,7 @@ using module Foo
class Bar : Foo {}
[Bar]
"@).Invoke()
-
+
$barType.BaseType.Name | Should Be 'Foo'
}
@@ -76,7 +76,7 @@ using module Foo
class Bar : Foo.Foo {}
[Foo.Foo]::new()
"@).Invoke()
- $fooObject.GetModuleName() | Should Be 'Foo'
+ $fooObject.GetModuleName() | Should Be 'Foo'
}
It "can use modules with classes collision" {
@@ -110,7 +110,7 @@ class Bar : Foo {}
$sb1 = [scriptblock]::Create(@"
using module Foo
class Bar : Foo {}
-[Bar]::new().GetModuleName()
+[Bar]::new().GetModuleName()
"@)
$sb2 = [scriptblock]::Create(@"
@@ -118,7 +118,7 @@ using module Foo
class Foo { [string] GetModuleName() { return "This" } }
class Bar : Foo {}
-[Bar]::new().GetModuleName()
+[Bar]::new().GetModuleName()
"@)
$sb1.Invoke() | Should Be 'Foo'
@@ -311,7 +311,7 @@ using module FooWithManifest
using module Foo
[Foo]::new().GetModuleName()
"@).Invoke()
-
+
$moduleName | Should Be 'Foo2'
}
}
@@ -381,13 +381,13 @@ using module ModuleWithRuntimeError
}
Context 'shared InitialSessionState' {
-
+
It 'can pick the right module' {
-
+
$scriptToProcessPath = "${TestDrive}\toProcess.ps1"
Set-Content -Path $scriptToProcessPath -Value @'
using module Foo
-function foo()
+function foo()
{
[Foo]::new()
}
@@ -411,7 +411,7 @@ function foo()
$ps.Streams.Error | Should Be $null
}
}
-
+
# here we are back to normal $env:PSMODULEPATH, but all modules are there
Context "Module by path" {
@@ -422,13 +422,13 @@ function foo()
new-item -type directory -Force TestDrive:\FooRelativeConsumer
Set-Content -Path "${TestDrive}\FooRelativeConsumer\FooRelativeConsumer.ps1" -Value @'
-using module ..\modules\FooForPaths
+using module ..\modules\FooForPaths
class Bar : Foo {}
[Bar]::new()
'@
-
+
Set-Content -Path "${TestDrive}\FooRelativeConsumerErr.ps1" -Value @'
-using module FooForPaths
+using module FooForPaths
class Bar : Foo {}
[Bar]::new()
'@
@@ -439,8 +439,8 @@ class Bar : Foo {}
}
It "can be accessed by relative path" {
- $barObject = & TestDrive:\FooRelativeConsumer\FooRelativeConsumer.ps1
- $barObject.GetModuleName() | Should Be 'FooForPaths'
+ $barObject = & TestDrive:\FooRelativeConsumer\FooRelativeConsumer.ps1
+ $barObject.GetModuleName() | Should Be 'FooForPaths'
}
It "cannot be accessed by relative path without .\ from a script" {
@@ -456,8 +456,8 @@ using module $resolvedTestDrivePath\FooForPaths
"@
$err = Get-ParseResults $s
$err.Count | Should Be 0
- $barObject = [scriptblock]::Create($s).Invoke()
- $barObject.GetModuleName() | Should Be 'FooForPaths'
+ $barObject = [scriptblock]::Create($s).Invoke()
+ $barObject.GetModuleName() | Should Be 'FooForPaths'
}
It "can be accessed by absolute path with file extension" {
@@ -465,8 +465,8 @@ using module $resolvedTestDrivePath\FooForPaths
$barObject = [scriptblock]::Create(@"
using module $resolvedTestDrivePath\FooForPaths\FooForPaths.psm1
[Foo]::new()
-"@).Invoke()
- $barObject.GetModuleName() | Should Be 'FooForPaths'
+"@).Invoke()
+ $barObject.GetModuleName() | Should Be 'FooForPaths'
}
It "can be accessed by relative path without file" {
@@ -476,14 +476,14 @@ using module .\FooForPaths
[Foo]::new()
"@
$err.FullyQualifiedErrorId | Should Be ModuleNotFoundDuringParse
-
+
Push-Location TestDrive:\modules
try {
$barObject = [scriptblock]::Create(@"
using module .\FooForPaths
[Foo]::new()
-"@).Invoke()
- $barObject.GetModuleName() | Should Be 'FooForPaths'
+"@).Invoke()
+ $barObject.GetModuleName() | Should Be 'FooForPaths'
} finally {
Pop-Location
}
diff --git a/test/powershell/Language/CompletionTestSupport.psm1 b/test/powershell/Language/CompletionTestSupport.psm1
index bbda7ac589..148714ae55 100644
--- a/test/powershell/Language/CompletionTestSupport.psm1
+++ b/test/powershell/Language/CompletionTestSupport.psm1
@@ -49,7 +49,7 @@ class CompletionTestCase
}
function Get-Completions
-{
+{
[CmdletBinding()]
param([string]$InputScript, [int]$CursorColumn, $Options = $null)
@@ -93,7 +93,7 @@ function Test-Completions
[CompletionTestCase[]]$TestCases,
[string]
$Description)
-
+
process
{
foreach ($test in $TestCases)
@@ -101,12 +101,12 @@ function Test-Completions
Describe $test.Description -Tags "CI" {
$hash = $Test.TestInput
$results = Get-Completions @hash
-
+
foreach ($expected in $test.ExpectedResults)
{
foreach ($result in $results.CompletionMatches)
{
-
+
if ($expected.Equals($result))
{
It "Checking for duplicates of: $($expected.CompletionText)" {
@@ -134,9 +134,9 @@ function Test-Completions
}
}
}
-
+
}
- }
- }
+ }
+ }
}
diff --git a/test/powershell/Language/LanguageTestSupport.psm1 b/test/powershell/Language/LanguageTestSupport.psm1
index d4b4ef0cb7..426bae8a52 100644
--- a/test/powershell/Language/LanguageTestSupport.psm1
+++ b/test/powershell/Language/LanguageTestSupport.psm1
@@ -7,7 +7,7 @@ function Get-ParseResults
[CmdletBinding()]
param(
[Parameter(ValueFromPipeline=$True,Mandatory=$True)]
- [string]$src,
+ [string]$src,
[switch]$Ast
)
@@ -30,7 +30,7 @@ function Get-RuntimeError
)
$errors = $null
- try
+ try
{
# some tests cannot be run in a isolated runspace
# easily because they require more than just a single
@@ -64,7 +64,7 @@ function Get-RuntimeError
}
}
}
- catch
+ catch
{
return $_.Exception.InnerException.ErrorRecord
}
@@ -98,9 +98,9 @@ function ShouldBeParseError
{
[CmdletBinding()]
param(
- [string]$src,
- [string[]]$expectedErrors,
- [int[]]$expectedOffsets,
+ [string]$src,
+ [string[]]$expectedErrors,
+ [int[]]$expectedOffsets,
# This is a temporary solution after moving type creation from parse time to runtime
[switch]$SkipAndCheckRuntimeError,
# for test coverarage purpose, tests validate columnNumber or offset
@@ -110,16 +110,16 @@ function ShouldBeParseError
Context "Parse error expected: <<$src>>" {
# Test case error if this fails
$expectedErrors.Count | Should Be $expectedOffsets.Count
-
- if ($SkipAndCheckRuntimeError)
+
+ if ($SkipAndCheckRuntimeError)
{
It "error should happen at parse time, not at runtime" -Skip {}
$errors = Get-RuntimeError -Src $src -Timeout 10
# for runtime errors we will only get the first one
$expectedErrors = ,$expectedErrors[0]
$expectedOffsets = ,$expectedOffsets[0]
- }
- else
+ }
+ else
{
$errors = Get-ParseResults -Src $src
}
@@ -133,7 +133,7 @@ function ShouldBeParseError
{
$errorId = $err.FullyQualifiedErrorId
}
- else
+ else
{
$errorId = $err.ErrorId
}
@@ -152,7 +152,7 @@ function Flatten-Ast
param([System.Management.Automation.Language.Ast] $ast)
$ast
- $ast | gm -type property | ? { ($prop = $_.Name) -ne 'Parent' } | % {
+ $ast | gm -type property | ? { ($prop = $_.Name) -ne 'Parent' } | % {
$ast.$prop | ? { $_ -is [System.Management.Automation.Language.Ast] } | % { Flatten-Ast $_ }
}
}
@@ -165,7 +165,7 @@ function Test-ErrorStmt
$ast = Get-ParseResults $src -Ast
$asts = @(Flatten-Ast $ast.EndBlock.Statements[0])
- It 'Type is ErrorStatementAst' { $asts[0].GetType() | Should Be System.Management.Automation.Language.ErrorStatementAst }
+ It 'Type is ErrorStatementAst' { $asts[0].GetType() | Should Be System.Management.Automation.Language.ErrorStatementAst }
It "`$asts.count" { $asts.Count | Should Be ($a.Count + 1) }
It "`$asts[0].Extent.Text" { $asts[0].Extent.Text | Should Be $errorStmtExtent }
for ($i = 0; $i -lt $a.Count; ++$i)
@@ -209,6 +209,6 @@ function Test-Ast
$asts[$i].Extent.Text | Should Be $a[$i]
}
}
- }
+ }
Export-ModuleMember -Function Test-ErrorStmt, Test-Ast, ShouldBeParseError, Get-ParseResults, Get-RuntimeError, Test-ErrorStmtForSwitchFlag
diff --git a/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1 b/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1
index 1b9db849f9..16ee0a6775 100644
--- a/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1
+++ b/test/powershell/Language/Operators/ComparisonOperator.Tests.ps1
@@ -27,7 +27,7 @@ Describe "ComparisonOperator" -tag "CI" {
It "Should be $true for 1 -ne 2" {
1 -ne 2 | Should Be $true
}
-
+
It "Should be $true for 1 -and 1, $false for 1 -and 0, $false for 0 -and 0" {
1 -and 1 | Should Be $true
1 -and 0 | Should Be $false
@@ -46,7 +46,7 @@ Describe "ComparisonOperator" -tag "CI" {
!1 | Should Be $false
!0 | Should Be $true
}
-
+
It "Should be $true for 'Hello','world' -contains 'Hello'" {
$arr= 'Hello','world'
$arr -contains 'Hello' | Should Be $true
diff --git a/test/powershell/Language/Parser/Ast.Tests.ps1 b/test/powershell/Language/Parser/Ast.Tests.ps1
index fa3341c97e..1febf462e2 100644
--- a/test/powershell/Language/Parser/Ast.Tests.ps1
+++ b/test/powershell/Language/Parser/Ast.Tests.ps1
@@ -2,8 +2,8 @@ using Namespace System.Management.Automation.Language
Describe "The SafeGetValue method on AST returns safe values" -Tags "CI" {
It "A hashtable is returned from a HashtableAst" {
$HashtableAstType = [HashtableAst]
- $HtAst = {
- @{ one = 1 }
+ $HtAst = {
+ @{ one = 1 }
}.ast.Find({$args[0] -is $HashtableAstType}, $true)
$HtAst.SafeGetValue().GetType().Name | Should be Hashtable
}
diff --git a/test/powershell/Language/Parser/BNotOperator.Tests.ps1 b/test/powershell/Language/Parser/BNotOperator.Tests.ps1
index 79475e58ee..af372f6182 100644
--- a/test/powershell/Language/Parser/BNotOperator.Tests.ps1
+++ b/test/powershell/Language/Parser/BNotOperator.Tests.ps1
@@ -68,7 +68,7 @@ Describe "bnot on integral types" -Tags "CI" {
{
Context $baseType.Name {
- $max = $baseType::MaxValue
+ $max = $baseType::MaxValue
$maxMinus1 = $max - 1
$min = $baseType::MinValue
$minPlus1 = $min + 1
diff --git a/test/powershell/Language/Parser/Conversions.Tests.ps1 b/test/powershell/Language/Parser/Conversions.Tests.ps1
index 1b6bc63f1e..37efea9cfa 100644
--- a/test/powershell/Language/Parser/Conversions.Tests.ps1
+++ b/test/powershell/Language/Parser/Conversions.Tests.ps1
@@ -10,7 +10,7 @@ Describe 'conversion syntax' -Tags "CI" {
It 'calls virtual method non-virtually' {
([object]"abc").ToString() | Should Be "System.String"
-
+
# generate random string to avoid JIT optimization
$r = [guid]::NewGuid().Guid
([object]($r + "a")).Equals(($r + "a")) | Should Be $false
diff --git a/test/powershell/Language/Parser/ExtensibleCompletion.Tests.ps1 b/test/powershell/Language/Parser/ExtensibleCompletion.Tests.ps1
index 436d9bffd8..7853cd862c 100644
--- a/test/powershell/Language/Parser/ExtensibleCompletion.Tests.ps1
+++ b/test/powershell/Language/Parser/ExtensibleCompletion.Tests.ps1
@@ -85,7 +85,7 @@ function Test-Completions
param(
[Parameter(ValueFromPipeline)]
[CompletionTestCase[]]$TestCases)
-
+
process
{
foreach ($test in $TestCases)
diff --git a/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1 b/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1
index b66f9db2cb..b0ac92cec5 100644
--- a/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1
+++ b/test/powershell/Language/Parser/LanguageAndParser.TestFollowup.Tests.ps1
@@ -107,7 +107,7 @@ Describe "Hashtable key property syntax" -Tags "CI" {
}
Describe "Assign automatic variables" -Tags "CI" {
-
+
$autos = '_', 'args', 'this', 'input', 'pscmdlet', 'psboundparameters', 'myinvocation', 'psscriptroot', 'pscommandpath'
foreach ($auto in $autos)
diff --git a/test/powershell/Language/Parser/MethodInvocation.Tests.ps1 b/test/powershell/Language/Parser/MethodInvocation.Tests.ps1
index f7b5bfd5a7..1c560cd41b 100644
--- a/test/powershell/Language/Parser/MethodInvocation.Tests.ps1
+++ b/test/powershell/Language/Parser/MethodInvocation.Tests.ps1
@@ -39,7 +39,7 @@ namespace MSFT_716893
serviceHost = new ServiceHost(typeof(ServiceImplementation), baseAddress);
serviceHost.Open();
}
-
+
public static IInterface1 GetProxy()
{
ChannelFactory factory = new ChannelFactory(
diff --git a/test/powershell/Language/Parser/Parser.Tests.ps1 b/test/powershell/Language/Parser/Parser.Tests.ps1
index f5321ef92d..97c097380a 100644
--- a/test/powershell/Language/Parser/Parser.Tests.ps1
+++ b/test/powershell/Language/Parser/Parser.Tests.ps1
@@ -8,10 +8,10 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
param (
[Parameter(Position = 0)]
[string] $Property1 = "unset",
-
+
[Parameter(Position = 1)]
[string] $Property2 = "unset",
-
+
[Parameter(Position = 2)]
[string] $Property3 = "unset",
@@ -21,55 +21,55 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
)
BEGIN {}
-
+
PROCESS {
if ( ! $ReturnType ) {
$ReturnType = "default"
}
-
+
switch ( $ReturnType )
{
- "default" {
+ "default" {
$result = "$Property1;$Property2;$Property3"
break
}
- "array" {
+ "array" {
$result = 1,2,3
break
}
- "object" {
+ "object" {
$result = new-object psobject
break
}
- "nestedobject" {
+ "nestedobject" {
$result = [pscustomobject]@{Name="John";Person=[pscustomobject]@{Name="John";Age=30}}
break
}
- "struct" {
+ "struct" {
$result = [pscustomobject]@{Name="John";Age=30}
break
}
- "mshobject" {
+ "mshobject" {
$result = new-object psobject
break
}
- "nulltostring" {
+ "nulltostring" {
$result = $null
break
}
- default {
+ default {
throw ([invalidoperationexception]::new("ReturnType parameter wasn't of any Expected value!"))
- break
+ break
}
}
return $result
}
-
+
END {}
}
'@
$functionDefinition>$functionDefinitionFile
-
+
$PowerShell = [powershell]::Create()
function ExecuteCommand {
param ([string]$command)
@@ -128,24 +128,24 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
Remove-Item $testfolder1
}
}
-
+
AfterAll {
if(Test-Path $functionDefinitionFile)
{
Remove-Item $functionDefinitionFile
}
}
-
+
It "Throws a syntax error when parsing a string without a closing quote. (line 164)" {
try {
- ExecuteCommand '"This is a test'
+ ExecuteCommand '"This is a test'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "IncompleteParseException"
}
}
-
+
It "Throws an error if an open parenthesis is not closed (line 176)" {
try {
ExecuteCommand "("
@@ -155,7 +155,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$_.FullyQualifiedErrorId | should be "IncompleteParseException"
}
}
-
+
It "Throws an exception if the the first statement starts with an empty pipe element (line 188)" {
try {
ExecuteCommand "| get-location"
@@ -165,13 +165,13 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$_.FullyQualifiedErrorId | should be "ParseException"
}
}
-
+
It "Throws an CommandNotFoundException exception if using a label in front of an if statement is not allowed. (line 225)"{
ExecuteCommand ":foo if ($x -eq 3) { 1 }"
$PowerShell.HadErrors | should be $true
$PowerShell.Streams.Error.FullyQualifiedErrorId | should be "CommandNotFoundException"
}
-
+
It "Pipe an expression into a value expression. (line 237)" {
try {
ExecuteCommand "testcmd-parserbvt | 3"
@@ -180,7 +180,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
catch {
$_.FullyQualifiedErrorId | should be "ParseException"
}
-
+
try {
ExecuteCommand "testcmd-parserbvt | $(1 + 1)"
throw "Execution OK"
@@ -188,7 +188,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
catch {
$_.FullyQualifiedErrorId | should be "ParseException"
}
-
+
try {
ExecuteCommand "testcmd-parserbvt | 'abc'"
throw "Execution OK"
@@ -209,72 +209,72 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
}
}
}
-
+
It "Throws an incomplete parse exception when a comma follows an expression (line 247)" {
try {
- ExecuteCommand "(1+ 1),"
+ ExecuteCommand "(1+ 1),"
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "IncompleteParseException"
}
}
-
-
+
+
It "Test that invoke has a higher precedence for a script than for an executable. (line 279)" {
"1">$testfile
$result = ExecuteCommand ". $testfile"
$result | should be 1
}
-
+
It "This test will check that a path is correctly interpreted when using '..' and '.' (line 364)" {
$result = ExecuteCommand "set-location $TestDrive; get-childitem dir1\.\.\.\..\dir1\.\dir2\..\..\dir1\.\dir2"
$result.Count | should be 2
$result[0].Name | should be "testdirfile1.txt"
$result[1].Name | should be "testdirfile2.txt"
}
-
+
It "This test will check that the parser can handle a mix of forward slashes and back slashes in the path (line 417)" {
$result = ExecuteCommand "get-childitem $TestDrive/dir1/./.\.\../dir1/.\dir2\../..\dir1\.\dir2"
$result.Count | should be 2
$result[0].Name | should be "testdirfile1.txt"
$result[1].Name | should be "testdirfile2.txt"
}
-
+
It "This test checks that the asterisk globs as expected. (line 545)" {
$result = ExecuteCommand "get-childitem $TestDrive/dir1\dir2\*.txt"
$result.Count | should be 2
$result[0].Name | should be "testdirfile1.txt"
$result[1].Name | should be "testdirfile2.txt"
}
-
+
It "This test checks that we can use a range for globbing: [1-2] (line 557)" {
$result = ExecuteCommand "get-childitem $TestDrive/dir1\dir2\testdirfile[1-2].txt"
$result.Count | should be 2
$result[0].Name | should be "testdirfile1.txt"
$result[1].Name | should be "testdirfile2.txt"
}
-
+
It "This test will check that escaping the $ sigil inside single quotes simply returns the $ character. (line 583)" {
$result = ExecuteCommand "'`$'"
$result | should be "`$"
}
-
+
It "Test that escaping a space just returns that space. (line 593)" {
$result = ExecuteCommand '"foo` bar"'
$result | should be "foo bar"
}
-
+
It "Test that escaping the character 'e' returns the ESC character (0x1b)." {
$result = ExecuteCommand '"`e"'
$result | should be ([char]0x1b)
}
-
+
It "Test that escaping any character with no special meaning just returns that char. (line 602)" {
$result = ExecuteCommand '"fo`obar"'
$result | should be "foobar"
}
-
+
Context "Test that we support all of the C# escape sequences. We use the ` instead of \. (line 613)" {
# the first two sequences are tricky, because we need to provide something to
# execute without causing an incomplete parse error
@@ -298,26 +298,26 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
}
}
-
+
It "This test checks that array substitution occurs inside double quotes. (line 646)" {
$result = ExecuteCommand '$MyArray = "a","b";"Hello $MyArray"'
$result | should be "Hello a b"
}
-
+
It "This tests declaring an array in nested variable tables. (line 761)" {
$result = ExecuteCommand "`$Variable:vtbl1:vtbl2:b=@(5,6);`$Variable:vtbl1:vtbl2:b"
$result.Count | should be 2
$result[0] | should be 5
$result[1] | should be 6
}
-
+
It "Test a simple multiple assignment. (line 773)" {
$result = ExecuteCommand '$one,$two = 1,2,3; "One = $one"; "Two = $two"'
$result.Count | should be 2
$result[0] | should be "One = 1"
$result[1] | should be "Two = 2 3"
}
-
+
It "Tests script, global and local scopes from a function inside a script. (line 824)" {
"`$var = 'script';function func { `$var; `$var = 'local'; `$local:var; `$script:var; `$global:var };func;`$var;">$testfile
ExecuteCommand "`$var = 'global'"
@@ -329,10 +329,10 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$result[3] | should be "global"
$result[4] | should be "script"
}
-
+
It "Use break inside of a loop that is inside another loop. (line 945)" {
- $commands = " while (1) { 1; while(1) { 2; break; 3; }; 4; break; 5; } ",
- " for (;;) { 1; for(;;) { 2; break; 3; }; 4; break; 5; } ",
+ $commands = " while (1) { 1; while(1) { 2; break; 3; }; 4; break; 5; } ",
+ " for (;;) { 1; for(;;) { 2; break; 3; }; 4; break; 5; } ",
" foreach(`$a in 1,2,3) { 1; foreach( `$b in 1,2,3 ) { 2; break; 3; }; 4; break; 5; } "
$results = "1", "2", "4"
$i = 0
@@ -342,10 +342,10 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$result | should be $results
}
}
-
+
It "Use break in two loops with same label. (line 967)" {
- $commands = " :foo while (1) { 1; :foo while(1) { 2; break foo; 3; }; 4; break; 5; } ",
- " :foo for (;;) { 1; :foo for(;;) { 2; break foo; 3; }; 4; break; 5; } ",
+ $commands = " :foo while (1) { 1; :foo while(1) { 2; break foo; 3; }; 4; break; 5; } ",
+ " :foo for (;;) { 1; :foo for(;;) { 2; break foo; 3; }; 4; break; 5; } ",
" :foo foreach(`$a in 1,2,3) { 1; :foo foreach( `$b in 1,2,3 ) { 2; break foo; 3; }; 4; break; 5; } "
$results = "1", "2", "4"
$i = 0
@@ -355,10 +355,10 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$result | should be $results
}
}
-
+
It "Try continue inside of different loop statements. (line 1039)" {
- $commands = " `$a = 0; while (`$a -lt 2) { `$a; `$a += 1; continue; 2; } ",
- " for (`$a = 0;`$a -lt 2; `$a += 1) { 9; continue; 3; } ",
+ $commands = " `$a = 0; while (`$a -lt 2) { `$a; `$a += 1; continue; 2; } ",
+ " for (`$a = 0;`$a -lt 2; `$a += 1) { 9; continue; 3; } ",
" foreach(`$a in 0,1) { `$a; continue; 2; } "
$result = ExecuteCommand $commands[0]
$result | should be "0", "1"
@@ -367,10 +367,10 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$result = ExecuteCommand $commands[2]
$result | should be "0", "1"
}
-
+
It "Use a label to continue an inner loop. (line 1059)" {
- $commands = " `$x = 0; while (`$x -lt 1) { `$x += 1; `$x; `$a = 0; :foo while(`$a -lt 2) { `$a += 1; `$a; continue foo; 3; }; 4; continue; 5; } ",
- " for (`$x = 0;`$x -lt 1;`$x += 1) { 1; :foo for(`$a = 0; `$a -lt 2; `$a += 1) { `$a; continue foo; 3; }; 4; continue; 5; } ",
+ $commands = " `$x = 0; while (`$x -lt 1) { `$x += 1; `$x; `$a = 0; :foo while(`$a -lt 2) { `$a += 1; `$a; continue foo; 3; }; 4; continue; 5; } ",
+ " for (`$x = 0;`$x -lt 1;`$x += 1) { 1; :foo for(`$a = 0; `$a -lt 2; `$a += 1) { `$a; continue foo; 3; }; 4; continue; 5; } ",
" foreach(`$a in 1) { 1; :foo foreach( `$b in 1,2 ) { `$b; continue foo; 3; }; 4; continue; 5; } "
$result = ExecuteCommand $commands[0]
$result | should be "1", "1", "2", "4"
@@ -379,10 +379,10 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$result = ExecuteCommand $commands[2]
$result | should be "1", "1", "2", "4"
}
-
+
It "Use continue with a label on a nested loop. (line 1059)" {
- $commands = " `$x = 0; :foo while (`$x -lt 2) { `$x; `$x += 1; :bar while(1) { 2; continue foo; 3; }; 4; continue; 5; } ",
- " :foo for (`$x = 0;`$x -lt 2;`$x += 1) { 1; :bar for(;;) { 2; continue foo; 3; }; 4; continue; 5; } ",
+ $commands = " `$x = 0; :foo while (`$x -lt 2) { `$x; `$x += 1; :bar while(1) { 2; continue foo; 3; }; 4; continue; 5; } ",
+ " :foo for (`$x = 0;`$x -lt 2;`$x += 1) { 1; :bar for(;;) { 2; continue foo; 3; }; 4; continue; 5; } ",
" :foo foreach(`$a in 1,2) { 1; :bar foreach( `$b in 1,2,3 ) { 2; continue foo; 3; }; 4; continue; 5; } "
$result = ExecuteCommand $commands[0]
$result | should be "0", "2", "1", "2"
@@ -391,136 +391,136 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$result = ExecuteCommand $commands[2]
$result | should be "1", "2", "1", "2"
}
-
+
It "This test will check that it is a syntax error to use if without a code block. (line 1141)" {
try {
- ExecuteCommand 'if ("true")'
+ ExecuteCommand 'if ("true")'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "IncompleteParseException"
}
}
-
+
It "This test will check that it is a syntax error if the if condition is not complete. (line 1150)" {
try {
- ExecuteCommand 'if ('
+ ExecuteCommand 'if ('
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "IncompleteParseException"
}
}
-
+
It "This test will check that it is a syntax error to have an if condition without parentheses. (line 1159)" {
try {
- ExecuteCommand 'if "true" { 1} else {2}'
+ ExecuteCommand 'if "true" { 1} else {2}'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It "This test will check that the parser throws a syntax error when the if condition is missing the closing parentheses. (line 1168)" {
try {
- ExecuteCommand 'if ("true" { 1};'
+ ExecuteCommand 'if ("true" { 1};'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It "This test will check that it is a syntax error to have an else keyword without the corresponding code block. (line 1177)" {
try {
- ExecuteCommand 'if ("true") {1} else'
+ ExecuteCommand 'if ("true") {1} else'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "IncompleteParseException"
}
}
-
+
It "This test will check that the parser throws a syntax error when a foreach loop is not complete. (line 1238)" {
try {
- ExecuteCommand '$count=0;$files = $(get-childitem / -filter *.txt );foreach ($i ;$count'
+ ExecuteCommand '$count=0;$files = $(get-childitem / -filter *.txt );foreach ($i ;$count'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It "This test will check that the parser throws a syntax error if the foreach loop is not complete. (line 1248)" {
try {
- ExecuteCommand '$count=0;$files = $(get-childitem / -filter *.txt );foreach ($i in ;$count'
+ ExecuteCommand '$count=0;$files = $(get-childitem / -filter *.txt );foreach ($i in ;$count'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It "This will test that the parser throws a syntax error if the foreach loop is missing a closing parentheses. (line 1258)" {
try {
- ExecuteCommand '$count=0;$files = $(get-childitem / -filter *.txt );foreach ($i in $files ;$count'
+ ExecuteCommand '$count=0;$files = $(get-childitem / -filter *.txt );foreach ($i in $files ;$count'
throw "Execution OK"
}
catch {
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It "Test that if an exception is thrown from the try block it will be caught in the appropropriate catch block and that the finally block will run regardless of whether an exception is thrown. (line 1317)" {
$result = ExecuteCommand 'try { try { throw (new-object System.ArgumentException) } catch [System.DivideByZeroException] { } finally { "Finally" } } catch { $_.Exception.GetType().FullName }'
$result | should be "Finally", "System.ArgumentException"
}
-
+
It "Test that null can be passed to a method that expects a reference type. (line 1439)" {
$result = ExecuteCommand '$test = "String";$test.CompareTo($())'
$result | should be 1
}
-
+
It "Tests that command expansion operators can be used as a parameter to an object method. (line 1507)" {
$result = ExecuteCommand '$test = "String";$test.SubString($("hello" | foreach-object { $_.length - 2 } ))'
$result | should be "ing"
}
-
+
It "Test that & can be used as a parameter as long as it is quoted. (line 1606)" {
$result = ExecuteCommand 'testcmd-parserbvt `&get-childitem'
$result | should be "&get-childitem;unset;unset"
$result = ExecuteCommand 'testcmd-parserbvt `&*'
$result | should be "&*;unset;unset"
}
-
+
It "Run a command with parameters. (line 1621)" {
$result = ExecuteCommand 'testcmd-parserBVT -Property1 set'
$result | should be "set;unset;unset"
}
-
+
It "Test that typing a number at the command line will return that number. (line 1630)" {
$result = ExecuteCommand '3'
$result | should be "3"
- $result.gettype() |should be ([int])
+ $result.gettype() |should be ([int])
}
-
+
It "This test will check that an msh script can be run without invoking. (line 1641)" {
"1">$testfile
$result = ExecuteCommand ". $testfile"
$result | should be 1
}
-
+
It "Test that an alias is resolved before a function. (line 1657)" {
$result = ExecuteCommand 'set-alias parserInvokeTest testcmd-parserBVT;function parserInvokeTest { 3 };parserInvokeTest'
$result | should be "unset;unset;unset"
}
-
+
It "Test that functions are resolved before cmdlets. (line 1678)"{
$result = ExecuteCommand 'function testcmd-parserBVT { 3 };testcmd-parserBVT'
$result | should be "3"
}
-
+
It "Check that a command that uses shell execute can be run from the command line and that no exception is thrown. (line 1702)" {
if ( $IsLinux -or $IsOSX ) {
# because we execute on *nix based on executable bit, and the file name doesn't matter
@@ -533,7 +533,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
}
{ ExecuteCommand "$shellfile" } | Should Not Throw
}
-
+
Context "Boolean Tests (starting at line 1723 to line 1772)" {
$testData = @(
@{ Script = '"False"'; Expected = $true }
@@ -551,7 +551,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
ExecuteCommand $Script | Should be $Expected
}
}
-
+
Context "Comparison operator Tests (starting at line 1785 to line 1842)" {
$testData = @(
@{ Script = 'if (1 -and 1) { $true } else { $false }'; Expected = $true }
@@ -591,7 +591,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
ExecuteCommand $Script | Should be $Expected
}
}
-
+
Context "Arithmetic and String Comparison Tests (starting at line 1848 to line 1943)" {
$testData = @(
@{ Script = '$a=10; if( !$a -eq 10) { $a=1 } else {$a=2};$a'; Expected = 2 }
@@ -622,7 +622,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
ExecuteCommand $Script | Should be $Expected
}
}
-
+
Context "Comparison Operators with Arrays Tests (starting at line 2015 to line 2178)" {
$testData = @(
@{ Script = "@(3) -eq 3"; Expected = "3" }
@@ -637,24 +637,24 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
ExecuteCommand $Script | Should be $Expected
}
}
-
+
It "A simple test for trapping a specific exception. Expected Result: The exception is caught and ignored. (line 2265)" {
{ ExecuteCommand "trap [InvalidCastException] { continue; }; [int] 'abc'" } | Should Not Throw
}
-
+
It "Test that assign to input var and use then execute a script block with piped input. (line 2297)"{
$result = ExecuteCommand '$input = 1,2,3;4,-5,6 | & { $input }'
- $result -join "" | should be (4,-5,6 -join "")
+ $result -join "" | should be (4,-5,6 -join "")
}
-
+
It "Test that pipe objects into a script and use arguments. (line 2313)"{
"`$input; `$args;">$testfile
$result = ExecuteCommand "1,2,3 | $testfile"
- $result -join "" | should be (1, 2, 3 -join "")
+ $result -join "" | should be (1, 2, 3 -join "")
$result = ExecuteCommand "$testfile 4 -5 6 -blah -- foo -bar"
$result | should be "4", "-5", "6", "-blah", "foo", "-bar"
}
-
+
Context "Numerical Notations Tests (starting at line 2374 to line 2452)" {
$testData = @(
#Test various numbers using the standard notation.
@@ -696,12 +696,12 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
ExecuteCommand $Script | Should be $Expected
}
}
-
+
It "This is a simple test of the concatenation of two arrays. (line 2460)"{
$result = ExecuteCommand '1,2,3 + 4,5,6'
- $result -join "" | should be (1, 2, 3, 4, 5, 6 -join "")
+ $result -join "" | should be (1, 2, 3, 4, 5, 6 -join "")
}
-
+
It "Test that an incomplete parse exception is thrown if the array is unfinished. (line 2473)"{
try {
ExecuteCommand '1,2,'
@@ -711,7 +711,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$_.FullyQualifiedErrorId | Should be "IncompleteParseException"
}
}
-
+
It "Test that the unary comma is not valid in cmdlet parameters. (line 2482)"{
try {
ExecuteCommand 'write-output 2,,1'
@@ -721,7 +721,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It 'Test that "$var:" will expand to nothing inside a string. (line 2551)'{
try {
ExecuteCommand '"$var:"'
@@ -731,18 +731,18 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It "Tests the assignment to a read-only property (line 2593)"{
$result = ExecuteCommand '$A=$(testcmd-parserBVT -returntype array); $A.rank =5;$A.rank'
$result | Should be "1"
}
-
+
It 'Tests accessing using null as index. (line 2648)'{
ExecuteCommand '$A=$(testcmd-parserBVT -returntype array); $A[$NONEXISTING_VARIABLE];'
$PowerShell.HadErrors | should be $true
$PowerShell.Streams.Error.FullyQualifiedErrorId | should be "NullArrayIndex"
}
-
+
It 'Tests the parser response to ArrayName[. (line 2678)'{
try {
ExecuteCommand '$A=$(testcmd-parserBVT -returntype array); $A[ ;'
@@ -752,7 +752,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
It 'Tests the parser response to ArrayName[]. (line 2687)'{
try {
ExecuteCommand '$A=$(testcmd-parserBVT -returntype array); $A[] ;'
@@ -762,7 +762,7 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$_.FullyQualifiedErrorId | Should be "ParseException"
}
}
-
+
#Issue#1430
It "Tests function scopes in a script. (line 2800)" -Pending{
" function global:func { 'global' }; " +
@@ -771,11 +771,11 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
" script:func; " +
" global:func; ">$testfile
$result = ExecuteCommand "function func { 'notcalled' };. $testfile"
- $result -join "" | should be ("default", "default", "global" -join "")
+ $result -join "" | should be ("default", "default", "global" -join "")
$result = ExecuteCommand "func"
$result | should be "global"
}
-
+
It 'Test piping arguments to a script block. The objects should be accessible from "$input". (line 2870)'{
ExecuteCommand '$script = { $input; };$results = @(0,0),-1 | &$script'
$result = ExecuteCommand '$results[0][0]'
@@ -785,29 +785,29 @@ Describe "ParserTests (admin\monad\tests\monad\src\engine\core\ParserTests.cs)"
$result = ExecuteCommand '$results[1]'
$result | Should be "-1"
}
-
+
It 'Test piping null into a scriptblock. The script block should not be passed anything. (line 2903)'{
$result = ExecuteCommand '$() | &{ $count = 0; foreach ($i in $input) { $count++ }; $count }'
$result | Should be "1"
$result = ExecuteCommand '$() | &{ $input }'
$result | Should BeNullOrEmpty
}
-
+
It 'Test that types in System.dll are found automatically. (line 2951)'{
$result = ExecuteCommand '[ System.IO.FileInfo]'
$result | Should be "System.IO.FileInfo"
}
-
+
Context "Mathematical Operations Tests (starting at line 2975 to line 3036)" {
$testData = @(
@{ Script = '$a=6; $a -= 2;$a'; Expected = 4 }
@{ Script = "20 %
6"; Expected = "2" }
- @{ Script = "(20 %
- 6 *
- 4 +
- 2 ) /
- 2 -
+ @{ Script = "(20 %
+ 6 *
+ 4 +
+ 2 ) /
+ 2 -
3"; Expected = "2" }
)
It "