KestrunHostStaticFilesExtensions.AddFavicon method
Adds a favicon middleware to the application.
public static KestrunHost AddFavicon(this KestrunHost host, string? iconPath = null)
parameter | description |
---|---|
host | The KestrunHost instance to configure. |
iconPath | The path to the favicon file. If null, uses the default favicon. |
Return Value
The current KestrunHost instance.
See Also
- class KestrunHost
- class KestrunHostStaticFilesExtensions
- namespace Kestrun.Hosting