KestrunHost.AddControllers method

Adds MVC / API controllers to the application.

public KestrunHost AddControllers(Action<MvcOptions>? cfg = null)
parameter description
cfg The configuration options for MVC / API controllers.

Return Value

The current KestrunHost instance.

See Also