AddSingleton <ISomeInterface, DataService>();. We get two instances. One for both interfaces. If we want to share an instance, this is one way to ...
確定! 回上一頁