KestrunHost.AddPowerShellRuntime method

Adds a PowerShell runtime to the application. This middleware allows you to execute PowerShell scripts in response to HTTP requests.

public KestrunHost AddPowerShellRuntime(PathString? routePrefix = default)
parameter description
routePrefix The route prefix to use for the PowerShell runtime.

Return Value

The current KestrunHost instance.

See Also