Did not understand a little, in what cases from this method something needs to be returned?

  • judging by the help in any. Where the assumption that you need ? - Grundy
  • In aurofac example seen. - iluxa1810
  • Here is an example: autofaccn.readthedocs.io/en/latest/integration/aspnetcore.html . If I understand correctly, then this should be done in the case when a custom dependency container is used and if a standard container is used, then you don’t need to recover anything? - iluxa1810

1 answer 1

In general, as I understand it, when using an alternative dependency container, you need to take all the dependencies that were passed to ConfigureServices as an argument with the IServiceProvider type and put it in a new container, and then return it.