Skip to content

Commit

Permalink
Merge pull request #1105 from Azure/Francisco-Gamino/update-ps-template
Browse files Browse the repository at this point in the history
Rename Durable commands
  • Loading branch information
Francisco-Gamino authored Sep 27, 2021
2 parents 1817988 + b84d8c4 commit 063b178
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ using namespace System.Net
param($Request, $TriggerMetadata)

$FunctionName = $Request.Params.FunctionName
$InstanceId = Start-NewOrchestration -FunctionName $FunctionName
$InstanceId = Start-DurableOrchestration -FunctionName $FunctionName
Write-Host "Started orchestration with ID = '$InstanceId'"

$Response = New-OrchestrationCheckStatusResponse -Request $Request -InstanceId $InstanceId
$Response = New-DurableOrchestrationCheckStatusResponse -Request $Request -InstanceId $InstanceId
Push-OutputBinding -Name Response -Value $Response
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ using namespace System.Net
param($Request, $TriggerMetadata)

$FunctionName = $Request.Params.FunctionName
$InstanceId = Start-NewOrchestration -FunctionName $FunctionName
$InstanceId = Start-DurableOrchestration -FunctionName $FunctionName
Write-Host "Started orchestration with ID = '$InstanceId'"

$Response = New-OrchestrationCheckStatusResponse -Request $Request -InstanceId $InstanceId
$Response = New-DurableOrchestrationCheckStatusResponse -Request $Request -InstanceId $InstanceId
Push-OutputBinding -Name Response -Value $Response
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ param($Context)

$output = @()

$output += Invoke-ActivityFunction -FunctionName 'Hello' -Input 'Tokyo'
$output += Invoke-ActivityFunction -FunctionName 'Hello' -Input 'Seattle'
$output += Invoke-ActivityFunction -FunctionName 'Hello' -Input 'London'
$output += Invoke-DurableActivity -FunctionName 'Hello' -Input 'Tokyo'
$output += Invoke-DurableActivity -FunctionName 'Hello' -Input 'Seattle'
$output += Invoke-DurableActivity -FunctionName 'Hello' -Input 'London'

$output
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ param($Context)

$output = @()

$output += Invoke-ActivityFunction -FunctionName 'Hello' -Input 'Tokyo'
$output += Invoke-ActivityFunction -FunctionName 'Hello' -Input 'Seattle'
$output += Invoke-ActivityFunction -FunctionName 'Hello' -Input 'London'
$output += Invoke-DurableActivity -FunctionName 'Hello' -Input 'Tokyo'
$output += Invoke-DurableActivity -FunctionName 'Hello' -Input 'Seattle'
$output += Invoke-DurableActivity -FunctionName 'Hello' -Input 'London'

$output

0 comments on commit 063b178

Please sign in to comment.