Add PodeEndware - mdaneri/Pode GitHub Wiki
Adds a ScriptBlock as Endware to run at the end of each web Request.
Add-PodeEndware [-ScriptBlock] <ScriptBlock> [[-ArgumentList] <Object[]>] [-ProgressAction <ActionPreference>]
[<CommonParameters>]
Adds a ScriptBlock as Endware to run at the end of each web Request.
Add-PodeEndware -ScriptBlock { /* logic */ }
An array of arguments to supply to the Endware's ScriptBlock.
Type: Object[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False{{ Fill ProgressAction Description }}
Type: ActionPreference
Parameter Sets: (All)
Aliases: proga
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: FalseThe ScriptBlock to add. It will be supplied the current web event.
Type: ScriptBlock
Parameter Sets: (All)
Aliases:
Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: FalseThis cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.