KestrunHost.AddRazorPages method (1 of 2)
Adds Razor Pages to the application. This overload allows you to specify configuration options. If you need to configure Razor Pages options, use the other overload.
public KestrunHost AddRazorPages(Action<RazorPagesOptions>? cfg = null)
| parameter | description |
|---|---|
| cfg | The configuration options for Razor Pages. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- namespace Kestrun.Hosting
KestrunHost.AddRazorPages method (2 of 2)
Adds Razor Pages to the application.
public KestrunHost AddRazorPages(RazorPagesOptions? cfg)
| parameter | description |
|---|---|
| cfg | The configuration options for Razor Pages. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- namespace Kestrun.Hosting