Commit ff9b9748 by xiongyuwen

no message

parent b3feb903
......@@ -59,15 +59,15 @@ namespace Bailun.Discuz
//注入日志
services.AddSingleton<ILessLog, LessLog>();
//string hostName = ConfigManagerConf.GetValue("redis:HostName");
//string port = ConfigManagerConf.GetValue("redis:Port");
//string password = ConfigManagerConf.GetValue("redis:Password");
//string defaultdatabase = ConfigManagerConf.GetValue("redis:Defaultdatabase");
string hostName = ConfigManagerConf.GetValue("redis:HostName");
string port = ConfigManagerConf.GetValue("redis:Port");
string password = ConfigManagerConf.GetValue("redis:Password");
string defaultdatabase = ConfigManagerConf.GetValue("redis:Defaultdatabase");
//var redis_connString = $"{hostName}:{port}, defaultDatabase = {defaultdatabase},password={password}, poolsize = 500, ssl = false, writeBuffer = 10240";
//var rs = new CSRedis.CSRedisClient(redis_connString);
var redis_connString = $"{hostName}:{port}, defaultDatabase = {defaultdatabase},password={password}, poolsize = 500, ssl = false, writeBuffer = 10240";
var rs = new CSRedis.CSRedisClient(redis_connString);
//RedisHelper.Initialization(rs);//初始化Redis
RedisHelper.Initialization(rs);//初始化Redis
return services.AddAbpService<ServiceModule,BaseContext>(_appConfiguration);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment