utils/New-TaskInternal.ps1


class TaskInternal {
   hidden [Runspace] $_runspace
   hidden [PowerShell] $_powershell
   hidden [IAsyncResult] $_asyncResult
   hidden [ScriptBlock] $_script
   hidden [ScriptBlock] $_cancelScript
   hidden [HashTable] $_syncContext = [HashTable]::Synchronized(@{ Progress = 0 })
   hidden [HashTable] $_parameters
   hidden [object[]] $_argumentList
   hidden [TaskFactory] $_observer
   hidden [Task] $_public


   # [object] $Result - Getter only
   hidden [TaskState] $_state = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'State' `
         -Value {
            # get
            if ($this._state -eq [TaskState]::Running) {
               # The task is running update the state
               if ($this._asyncResult.IsCompleted) {
                  # Collect the result/errors
                  $this.CollectResult()
               }
            }
            return $this._state
         })

   # [object] $Result - Getter only
   hidden [object] $_result = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'Result' `
         -Value {
            # get
            if ($this._state -eq [TaskState]::Running) {
               # Collect the result/errors
               $this.CollectResult()
            }
            return $this._result
         })

   # [string] $Name - Getter only
   hidden [string] $_id = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'Id' `
         -Value {
            # get
            return $this._id
         })

   # [string] $Name - Getter only
   hidden [string] $_name = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'Name' `
         -Value {
            # get
            return $this._name
         })

   # [string] $Description - Getter only
   hidden [string] $_description = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'Description' `
         -Value {
            # get
            return $this._description
         })

   # [bool] $IsCancelable - Getter only
   hidden [bool] $_isCancelable = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'IsCancelable' `
         -Value {
            # get
            return $this._isCancelable
         })

   # [int] $PercentComplete - Getter only
   hidden [int] $_percentComplete = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'PercentComplete' `
         -Value {
            # get
            if ($this.State -eq [TaskState]::Running) {
               $this._percentComplete = $this._syncContext.Progress
            } elseif (($this.State -eq [TaskState]::Error) `
               -or ($this.State -eq [TaskState]::Success)) {
               $this._percentComplete = 100
            }
            return $this._percentComplete
         })

   # [DateTime] $StartTime - Getter only
   hidden [DateTime] $_startTime = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'StartTime' `
         -Value {
            # get
            return $this._startTime
         })

   # [System.Nullable[DateTime]] $FinishTime - Getter only
   hidden [System.Nullable[DateTime]] $_finishTime = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'FinishTime' `
         -Value {
            # get
            return $this._finishTime
         })

   hidden [object] $_errors = $($this | `
      Add-Member `
         -MemberType ScriptProperty `
         -Name 'Errors' `
         -Value {
            # get
            return $this._errors
         })

   TaskInternal([Task] $public) {
      $this._id = New-Guid
      $this._public = $public
   }

   [void] Cancel() {
      if (-not $this._isCancelable) {
         throw [System.ArgumentException] 'This task is not cancellable.'
      }

      if ($this._state -eq [TaskState]::NotStarted) {
         throw [System.ArgumentException] 'This task has not been started yet.'
      }

      if ($this._state -eq [TaskState]::Canceled) {
         throw [System.ArgumentException] 'This task has been already cancelled.'
      }

      if (($this._state -eq [TaskState]::Error) -or ($this._state -eq [TaskState]::Success)) {
         throw [System.ArgumentException] 'This task has already finished.'
      }

      $this._state = [TaskState]::Canceled
      $this._observer.SubjectChanged($this._public)

      $this._powershell.Dispose()

      Invoke-Command -ScriptBlock $this._cancelScript -NoNewScope
   }

   [string] ToString() {
      $str = $this.Name
      if (-not [string]::IsNullOrEmpty($this.Description)) {
         $str + " / $($this.Description)"
      }
      return $str
   }

   hidden [void] CollectResult() {
      try {
         $this._result = $this._powershell.EndInvoke($this._asyncResult)
         if ($this._powershell.Streams.Error.Count -gt 0) {
            $this._state = [TaskState]::Error
            $this._observer.SubjectChanged($this._public)

            $this._errors = [System.Collections.ArrayList]::new()
            foreach($err in $this._powershell.Streams.Error) {
               $this._errors.Add($err)
            }
         } else {
            $this._state = [TaskState]::Success
            $this._observer.SubjectChanged($this._public)
         }
      } catch [System.Management.Automation.MethodInvocationException] {
         # this error is:
         # Exception calling "EndInvoke" with "1" argument(s): ...
         # the error that have occurred is in the inner exception

         $this._state = [TaskState]::Error
         $this._observer.SubjectChanged($this._public)

         $this._errors = $_.Exception.InnerException
      } catch {
         $this._state = [TaskState]::Error
         $this._observer.SubjectChanged($this._public)

         $this._errors = $_
      } finally {
         $this._powershell.Dispose()
         $this._finishTime = Get-Date
      }
   }
}

function New-TaskInternal {
   param(
      [Parameter(Mandatory = $true, Position = 0, ValueFromPipeline = $true)]
      [Task]
      $Task
   )

   return [TaskInternal]::new($Task)
}

# SIG # Begin signature block
# MIIrGgYJKoZIhvcNAQcCoIIrCzCCKwcCAQExDzANBglghkgBZQMEAgEFADB5Bgor
# BgEEAYI3AgEEoGswaTA0BgorBgEEAYI3AgEeMCYCAwEAAAQQH8w7YFlLCE63JNLG
# KX7zUQIBAAIBAAIBAAIBAAIBADAxMA0GCWCGSAFlAwQCAQUABCAclbshcC/fH6uy
# BAX3/bqqnIwcpQR1OjbqH6xAMVS1iqCCDdowggawMIIEmKADAgECAhAIrUCyYNKc
# TJ9ezam9k67ZMA0GCSqGSIb3DQEBDAUAMGIxCzAJBgNVBAYTAlVTMRUwEwYDVQQK
# EwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3dy5kaWdpY2VydC5jb20xITAfBgNV
# BAMTGERpZ2lDZXJ0IFRydXN0ZWQgUm9vdCBHNDAeFw0yMTA0MjkwMDAwMDBaFw0z
# NjA0MjgyMzU5NTlaMGkxCzAJBgNVBAYTAlVTMRcwFQYDVQQKEw5EaWdpQ2VydCwg
# SW5jLjFBMD8GA1UEAxM4RGlnaUNlcnQgVHJ1c3RlZCBHNCBDb2RlIFNpZ25pbmcg
# UlNBNDA5NiBTSEEzODQgMjAyMSBDQTEwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAw
# ggIKAoICAQDVtC9C0CiteLdd1TlZG7GIQvUzjOs9gZdwxbvEhSYwn6SOaNhc9es0
# JAfhS0/TeE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