C#/기초
[C#] gRPC MapGrpcService DI, with parameter
딸기우유중독
2024. 6. 10. 16:30
Services.AddScoped<인터페이서,구현>();
Services.AddSingleton<>~
How can I pass a runtime parameter as part of the dependency resolution?
I need to be able to pass a connection string into some of my service implementations. I am doing this in the constructor. The connection string is configurable by user will be added the ClaimsPrin...
stackoverflow.com
728x90