KestrunHostStaticFilesExtensions.AddStaticFiles method (1 of 2)
Adds static files to the application. This overload allows you to specify configuration options.
public static KestrunHost AddStaticFiles(this KestrunHost host,
Action<StaticFileOptions>? cfg = null)
parameter | description |
---|---|
host | The KestrunHost instance to configure. |
cfg | The static file options to configure. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHostStaticFilesExtensions
- namespace Kestrun.Hosting
KestrunHostStaticFilesExtensions.AddStaticFiles method (2 of 2)
Adds static files to the application. This overload allows you to specify configuration options.
public static KestrunHost AddStaticFiles(this KestrunHost host, StaticFileOptions options)
parameter | description |
---|---|
host | The KestrunHost instance to configure. |
options | The static file options to configure. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHostStaticFilesExtensions
- namespace Kestrun.Hosting