KestrunHost.AddPowerShellRazorPages method (1 of 6)

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

public KestrunHost AddPowerShellRazorPages()

Return Value

The current KestrunHost instance.

See Also


KestrunHost.AddPowerShellRazorPages method (2 of 6)

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

public KestrunHost AddPowerShellRazorPages(PathString? routePrefix)
parameter description
routePrefix The route prefix to use for the PowerShell Razor Pages.

Return Value

The current KestrunHost instance.

See Also


KestrunHost.AddPowerShellRazorPages method (3 of 6)

Adds PowerShell Razor Pages to the application.

public KestrunHost AddPowerShellRazorPages(string? rootPath)
parameter description
rootPath The root directory for the Razor Pages.

Return Value

The current KestrunHost instance.

See Also


KestrunHost.AddPowerShellRazorPages method (4 of 6)

Adds PowerShell Razor Pages to the application.

public KestrunHost AddPowerShellRazorPages(string? rootPath, PathString? routePrefix)
parameter description
rootPath The root directory for the Razor Pages.
routePrefix The route prefix to use for the PowerShell Razor Pages.

Return Value

The current KestrunHost instance.

See Also


KestrunHost.AddPowerShellRazorPages method (5 of 6)

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

public KestrunHost AddPowerShellRazorPages(string? rootPath, PathString? routePrefix, 
    Action<RazorPagesOptions>? cfg = null)
parameter description
rootPath The root directory for the Razor Pages.
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


KestrunHost.AddPowerShellRazorPages method (6 of 6)

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

public KestrunHost AddPowerShellRazorPages(string? rootPath, PathString? routePrefix, 
    RazorPagesOptions? cfg)
parameter description
rootPath The root directory for the Razor Pages.
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