Skip to content

Add-PodeEndware

SYNOPSIS

Adds a ScriptBlock as Endware to run at the end of each web Request.

SYNTAX

Add-PodeEndware [-ScriptBlock] <ScriptBlock> [-ArgumentList <Object[]>] [-ProgressAction <ActionPreference>]
 [<CommonParameters>]

DESCRIPTION

Adds a ScriptBlock as Endware to run at the end of each web Request.

EXAMPLES

EXAMPLE 1

Add-PodeEndware -ScriptBlock { /* logic */ }

PARAMETERS

-ArgumentList

An array of arguments to supply to the Endware's ScriptBlock.

Type: Object[]
Parameter Sets: (All)
Aliases:

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ProgressAction

{{ Fill ProgressAction Description }}

Type: ActionPreference
Parameter Sets: (All)
Aliases: proga

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-ScriptBlock

The 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: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

OUTPUTS

NOTES