concept third - party container in category asp.net

appears as: third-party container, third-party containers
ASP.NET Core in Action

This is an excerpt from Manning's book ASP.NET Core in Action.

  • The default built-in container only supports constructor injection. If you require other forms of DI, such as property injection, you can use a third-party container.
  • The built-in container is intentionally limited in the features it provides, and it won’t be getting many more realistically. In contrast, third-party containers can provide a host of extra features. These are some of the features available in StructureMap (http://structuremap.github.io/):

  • You can add a third-party container to an existing application, which can provide additional features, such as convention-based dependency registration.
  • To use a third-party container such as StructureMap, configure the built-in container with framework services as usual and then transfer those registrations to StructureMap by calling Populate(). Configure the third-party container with your own services, and finally, return an instance of IServiceProvider from Startup.ConfigureServices.