KestrunHostRazorExtensions.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 static KestrunHost AddRazorPages(this KestrunHost host,
Action<RazorPagesOptions>? cfg = null)
parameter | description |
---|---|
host | The KestrunHost instance to add Razor Pages to. |
cfg | The configuration options for Razor Pages. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHostRazorExtensions
- namespace Kestrun.Hosting
KestrunHostRazorExtensions.AddRazorPages method (2 of 2)
Adds Razor Pages to the application.
public static KestrunHost AddRazorPages(this KestrunHost host, RazorPagesOptions? cfg)
parameter | description |
---|---|
host | The KestrunHost instance to add Razor Pages to. |
cfg | The configuration options for Razor Pages. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHostRazorExtensions
- namespace Kestrun.Hosting