📜  带参数的asp net core依赖注入工厂-C#代码示例

📅  最后修改于: 2022-03-11 14:49:16.600000             🧑  作者: Mango

代码示例1
services.AddSingleton(provider => new RedisCacheProvider("myPrettyLocalhost:6379"));

services.AddSingleton(new RedisCacheProvider("myPrettyLocalhost:6379"));