AddSingleton(new FunClass(optionsBuilder.Options));. It's a little bit dirty, but works very well. Tags: C# · Dependency Injection.
確定! 回上一頁