Public/ps1/Configuration/Start/Start-ArpprxSession.ps1

<#
    .SYNOPSIS
    Starts an Apprxr session and keeps it running.
 
    .DESCRIPTION
    Starts all Apprxr pipelines and then enters an infinite loop, keeping the session alive by sleeping for one hour at a time.
 
    .EXAMPLE
    Start-ApprxrSession
 
    .NOTES
    Used for long-running Apprxr service sessions.
#>

function Start-ApprxrSession {
    
    Start-ApprxrPipelines
    while ($true) {
        Start-Sleep -Seconds (60*60)
    }
}