1. First mounting Autofac.Extensions.DependencyInjection
2. Add a line Program.cs, as shown below:
3. In FIG Startup.cs increased as follows:
4. Add the following items Library 2
5. Add the following classes and interfaces
6 registered in the Startup inside
7.Controller which calls
8. Review the results
9. Keep up the good oh!
.net core3.1 use autofac
Guess you like
Origin blog.csdn.net/FengxcLf/article/details/104991259
Ranking