ソースを参照

cache config host

xf 1 年間 前
コミット
746817c82d
1 ファイル変更3 行追加3 行削除
  1. 3 3
      src/CallCenter.Caching/StartupExtensions.cs

+ 3 - 3
src/CallCenter.Caching/StartupExtensions.cs

@@ -21,7 +21,7 @@ namespace CallCenter.Caching
 
                 d.UseRedis(config =>
                 {
-                    config.DBConfig.Endpoints.Add(new ServerEndPoint(options.ConnectionString, options.Port));
+                    config.DBConfig.Endpoints.Add(new ServerEndPoint(options.Host, options.Port));
                     config.DBConfig.Database = options.Database;
                     config.DBConfig.Password = options.Password;
                     config.SerializerName = "xjson";
@@ -41,7 +41,7 @@ namespace CallCenter.Caching
                     // use redis bus
                     .WithRedisBus(busConf =>
                     {
-                        busConf.Endpoints.Add(new ServerEndPoint(options.ConnectionString, options.Port));
+                        busConf.Endpoints.Add(new ServerEndPoint(options.Host, options.Port));
 
                         // do not forget to set the SerializerName for the bus here !!
                         busConf.SerializerName = "xjson";
@@ -57,7 +57,7 @@ namespace CallCenter.Caching
 
     public class CacheOptions
     {
-        public string ConnectionString { get; set; }
+        public string Host { get; set; }
 
         public int Port { get; set; } = 6379;