Created a new ServiceCollection, added services, but GetService returns null

前端 未结 0 1221
没有蜡笔的小新
没有蜡笔的小新 2020-12-24 09:43

I\'ve create a new servicecollection object and added a service. But, when I build the service provider and try to get service, it returns null. Example below.



        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题