Skip to content

Commit

Permalink
rename dispatcher to workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
FriedrichWeinmann committed Nov 5, 2023
1 parent 2cac301 commit 690c2d5
Show file tree
Hide file tree
Showing 17 changed files with 93 additions and 93 deletions.
Binary file modified PSFramework/bin/PSFramework.dll
Binary file not shown.
Binary file modified PSFramework/bin/PSFramework.pdb
Binary file not shown.
72 changes: 36 additions & 36 deletions PSFramework/bin/PSFramework.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion PSFramework/functions/runspace/Add-PSFRunspaceWorker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
$WorkflowName,

[Parameter(ValueFromPipeline = $true)]
[PSFramework.Runspace.RSDispatcher[]]
[PSFramework.Runspace.RSWorkflow[]]
$InputObject
)

Expand Down
2 changes: 1 addition & 1 deletion PSFramework/functions/runspace/Get-PSFRunspaceWorker.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
$WorkflowName,

[Parameter(ValueFromPipeline = $true)]
[PSFramework.Runspace.RSDispatcher[]]
[PSFramework.Runspace.RSWorkflow[]]
$InputObject
)
process {
Expand Down
4 changes: 2 additions & 2 deletions PSFramework/functions/runspace/New-PSFRunspaceWorkflow.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
.LINK
Remove-PSFRunspaceWorkflow
#>
[OutputType([PSFramework.Runspace.RSDispatcher])]
[OutputType([PSFramework.Runspace.RSWorkflow])]
[CmdletBinding()]
param (
[string]
Expand All @@ -51,7 +51,7 @@
$script:runspaceWorkflows[$Name].Stop()
}

$script:runspaceWorkflows[$Name] = [PSFramework.Runspace.RSDispatcher]::new($Name)
$script:runspaceWorkflows[$Name] = [PSFramework.Runspace.RSWorkflow]::new($Name)
$script:runspaceWorkflows[$Name]
}
}
2 changes: 1 addition & 1 deletion PSFramework/functions/runspace/Read-PSFRunspaceQueue.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
$WorkflowName,

[Parameter(ValueFromPipeline = $true)]
[PSFramework.Runspace.RSDispatcher[]]
[PSFramework.Runspace.RSWorkflow[]]
$InputObject
)
process {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
$Name,

[Parameter(ValueFromPipeline = $true)]
[PSFramework.Runspace.RSDispatcher[]]
[PSFramework.Runspace.RSWorkflow[]]
$InputObject
)
process {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
$Name,

[Parameter(ValueFromPipeline = $true)]
[PSFramework.Runspace.RSDispatcher[]]
[PSFramework.Runspace.RSWorkflow[]]
$InputObject
)
process {
Expand Down
2 changes: 1 addition & 1 deletion PSFramework/functions/runspace/Write-PSFRunspaceQueue.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
$WorkflowName,

[Parameter(ValueFromPipeline = $true)]
[PSFramework.Runspace.RSDispatcher[]]
[PSFramework.Runspace.RSWorkflow[]]
$InputObject
)
process {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@
If no workflow can be resolved, throw a terminating exception.
If called from within a worker runspace, return the workflow of the worker if both $InputObject and $WorkflowName are null or empty.
#>
[OutputType([PSFramework.Runspace.RSDispatcher])]
[OutputType([PSFramework.Runspace.RSWorkflow])]
[CmdletBinding()]
param (
[string[]]
$Name,

[PSFramework.Runspace.RSDispatcher[]]
[PSFramework.Runspace.RSWorkflow[]]
$InputObject,

$Cmdlet,
Expand Down
2 changes: 1 addition & 1 deletion PSFramework/internal/scripts/runspaceWorkerCode.ps1
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[PSFramework.Runspace.RSWorker]::WorkerCode = {
# $__PSF_Workflow --> Workload Dispatcher provided by worker
# $__PSF_Workflow --> Workload Workflow provided by worker
# $__PSF_Worker --> Current Worker Definition

$ErrorActionPreference = 'Stop'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
& (Get-Module PSFramework) { $script:runspaceWorkflows = @{ } }
}

It "Should return all registered Runspace Dispatchers" {
It "Should return all registered Runspace Workflows" {
Get-PSFRunspaceWorkflow | Should -HaveCount 3
}
It "Should return the specified Runspace Dispatchers" {
It "Should return the specified Runspace Workflows" {
Get-PSFRunspaceWorkflow -Name Test1 | Should -HaveCount 1
(Get-PSFRunspaceWorkflow -Name Test1).Name | Should -Be 'Test1'
}
Expand Down
6 changes: 3 additions & 3 deletions PSFramework/xml/PSFramework.Format.ps1xml
Original file line number Diff line number Diff line change
Expand Up @@ -573,11 +573,11 @@
</TableControl>
</View>

<!-- PSFramework.Runspace.RSDispatcher -->
<!-- PSFramework.Runspace.RSWorkflow -->
<View>
<Name>PSFramework.Runspace.RSDispatcher</Name>
<Name>PSFramework.Runspace.RSWorkflow</Name>
<ViewSelectedBy>
<TypeName>PSFramework.Runspace.RSDispatcher</TypeName>
<TypeName>PSFramework.Runspace.RSWorkflow</TypeName>
</ViewSelectedBy>
<TableControl>
<AutoSize/>
Expand Down
2 changes: 1 addition & 1 deletion library/PSFramework/PSFramework.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
<Compile Include="PSFCore\PsfInternalAttribute.cs" />
<Compile Include="Extension\ScriptBlockExt.cs" />
<Compile Include="ResultCache\ResultCache.cs" />
<Compile Include="Runspace\RSDispatcher.cs" />
<Compile Include="Runspace\RSWorkflow.cs" />
<Compile Include="Runspace\RSPowerShellWrapper.cs" />
<Compile Include="Runspace\RSQueue.cs" />
<Compile Include="Runspace\RSQueueManager.cs" />
Expand Down
Loading

0 comments on commit 690c2d5

Please sign in to comment.