services.AddScoped(typeof(Test));
//services.AddScoped<Test>() // .AddScoped<ITest, Test>(s => s.GetService<Test>());
Powered by: 博客园 Copyright © 2024 zwei Powered by .NET 9.0 on Kubernetes