KestrunHostRazorExtensions.AddPowerShellRazorPages method (1 of 4)

Adds PowerShell Razor Pages to the application with default configuration and no route prefix.

public static KestrunHost AddPowerShellRazorPages(this KestrunHost host)
parameter description
host The KestrunHost instance to add Razor Pages to.

Return Value

The current KestrunHost instance.

See Also


KestrunHostRazorExtensions.AddPowerShellRazorPages method (2 of 4)

Adds PowerShell Razor Pages to the application. This middleware allows you to serve Razor Pages using PowerShell scripts.

public static KestrunHost AddPowerShellRazorPages(this KestrunHost host, PathString? routePrefix)
parameter description
host The KestrunHost instance to add Razor Pages to.
routePrefix The route prefix to use for the PowerShell Razor Pages.

Return Value

The current KestrunHost instance.

See Also


KestrunHostRazorExtensions.AddPowerShellRazorPages method (3 of 4)

Adds PowerShell Razor Pages to the application. This middleware allows you to serve Razor Pages using PowerShell scripts.

public static KestrunHost AddPowerShellRazorPages(this KestrunHost host, PathString? routePrefix, 
    Action<RazorPagesOptions>? cfg = null)
parameter description
host The KestrunHost instance to add Razor Pages to.
routePrefix The route prefix to use for the PowerShell Razor Pages.
cfg Configuration options for the Razor Pages.

Return Value

The current KestrunHost instance.

See Also


KestrunHostRazorExtensions.AddPowerShellRazorPages method (4 of 4)

Adds PowerShell Razor Pages to the application. This middleware allows you to serve Razor Pages using PowerShell scripts.

public static KestrunHost AddPowerShellRazorPages(this KestrunHost host, PathString? routePrefix, 
    RazorPagesOptions? cfg)
parameter description
host The KestrunHost instance to add Razor Pages to.
routePrefix The route prefix to use for the PowerShell Razor Pages.
cfg Configuration options for the Razor Pages.

Return Value

The current KestrunHost instance.

See Also