Private/Get-IBSession.ps1

1
2
3
4
5
6
7
8
9
10
11
12
function Get-IBSession {
    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$true)]
        [uri]$Uri,
        [Parameter(Mandatory=$true)]
        [pscredential]$Credential
    )

    $script:Sessions."$($Uri.Authority)|$($Credential.Username)"
}