'ServiceCollection' does not contain a definition for 'AddSingleton'

前端 未结 1 1864
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-27 02:31

I\'ve been registering my dependencies to my IOC container via the program class, but it got messy. I decided to write a DI provider which provided and registered dependencies i

1条回答
  •  庸人自扰
    2021-01-27 03:04

    The base keyword does not resolve extension methods. What you want to do is:

    this.AddSingleton();
    

    0 讨论(0)
提交回复
热议问题