You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Added disclaimer about ASP.NET Core 6's new minimal hosting model
With ASP.NET Core 6's new minimal hosting model, these configurations will no longer be placed in `Startup`'s `ConfigureSerices()` or `Configure()` methods, but instead within `Program` as top-level statements. For now, we're keeping the historical context in the actual code examples, since the context should be comparatively obvious for anyone using the minimal hosting model.
>*Note:*WhenusingASP.NETCore6's minimal hosting model, this will instead be placed in the `Program` class as a top-level statement.
120
+
119
121
Inaddition, withinthesame `ConfigureServices()` method, youwillneedtoestablishaclassthatimplements `IControllerActivator` and `IViewComponentActivator`, andwillrepresentthesite's _Composition Root_ for dependency injection. This will typically look like:
>*Note:*BecauseOnTopicreliesonwildcardpathnames, anewrouteshouldbeconfiguredforeveryrootnamespace (e.g., `/Web`). Whileit's possible to configure OnTopic to evaluate _all_ paths, this makes it difficult to delegate control to other controllers and handlers, when necessary. As a result, it is recommended that each root container be registered individually.
153
155
156
+
>*Note:*WhenusingASP.NETCore6's minimal hosting model, these will instead be placed in the `Program` class as a top-level statement.
0 commit comments