In the following example, AddSingleton is called twice with IMyDependency as the service type. The second call to AddSingleton overrides the previous one ...
確定! 回上一頁