A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/microsoft/PowerShellForGitHub/commit/618398eedd4571a42e000a4ce4527b56244f7720 below:

Save & restore the state of [Net.ServicePointManager]::SecurityProtoc… · microsoft/PowerShellForGitHub@618398e · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+5

-0

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+5

-0

lines changed Original file line number Diff line number Diff line change

@@ -201,6 +201,7 @@ function Invoke-GHRestMethod

201 201

}

202 202 203 203

$NoStatus = Resolve-ParameterWithDefaultConfigurationValue -Name NoStatus -ConfigValueName DefaultNoStatus

204 +

$originalSecurityProtocol = [Net.ServicePointManager]::SecurityProtocol

204 205 205 206

try

206 207

{

@@ -560,6 +561,10 @@ function Invoke-GHRestMethod

560 561

Set-TelemetryException -Exception $ex -ErrorBucket $errorBucket -Properties $localTelemetryProperties -NoStatus:$NoStatus

561 562

throw $newLineOutput

562 563

}

564 +

finally

565 +

{

566 +

[Net.ServicePointManager]::SecurityProtocol = $originalSecurityProtocol

567 +

}

563 568

}

564 569 565 570

function Invoke-GHRestMethodMultipleResult

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4