AddTransient、AddSingleton、すべての3つは、どのようなシナリオの下で使用する必要がありますAddScopped

NoSuchKey

おすすめ

転載: www.cnblogs.com/Mindy-hym/p/11353886.html