.net 6.0 配置注入

builder.Services.AddSingleton(new RedisClient(connection);

posted @ 2022-04-07 11:28  QQc198  阅读(209)  评论(0)    收藏  举报