fly 2 years ago
parent
commit
032a21dde3
1 changed files with 14 additions and 14 deletions
  1. 14 14
      src/InteractionCenter/VinnoServerService.cs

+ 14 - 14
src/InteractionCenter/VinnoServerService.cs

@@ -32,7 +32,7 @@ namespace WingCloudServer.InteractionCenter
         private ITokenDBService _tokenDBService;
 
         /// <summary>
-        /// 默认构é€
+        /// 默认构造
         /// </summary>
         public VinnoServerService()
         {
@@ -133,7 +133,7 @@ namespace WingCloudServer.InteractionCenter
         }
 
         /// <summary>
-        /// åˆ�始åŒ
+        /// åˆ�始åŒ
         /// </summary>
         public override void Load(JsonRpcClientPool jsonRpcClientPool)
         {
@@ -145,7 +145,7 @@ namespace WingCloudServer.InteractionCenter
         }
 
         /// <summary>
-        /// 加载ServerInfo到内å­
+        /// 加载ServerInfo到内存
         /// </summary>
         /// <returns></returns>
         private void LoadDBServerInfo()
@@ -218,21 +218,21 @@ namespace WingCloudServer.InteractionCenter
         {
             //这里应该是批�查询,请求�数�改
             var list = new List<ServerInfoDTO>();
-            var serverInformationList = CacheMaintenance.Instance.Get<IDistributedServerInfosManager>()
-            .Where(x => !string.IsNullOrEmpty(x.Name) && !string.IsNullOrEmpty(x.ServerUrl))?.ToList();
-            if (serverInformationList != null && serverInformationList.Any())
-            {
-                list = serverInformationList.Select(c => new ServerInfoDTO()
-                {
-                    Name = c.Name,
-                    Host = c.ServerUrl
-                }).ToList();
-            }
+            // var serverInformationList = CacheMaintenance.Instance.Get<IDistributedServerInfosManager>()
+            // .Where(x => !string.IsNullOrEmpty(x.Name) && !string.IsNullOrEmpty(x.ServerUrl))?.ToList();
+            // if (serverInformationList != null && serverInformationList.Any())
+            // {
+            //     list = serverInformationList.Select(c => new ServerInfoDTO()
+            //     {
+            //         Name = c.Name,
+            //         Host = c.ServerUrl
+            //     }).ToList();
+            // }
             return await Task.FromResult(list);
         }
 
         /// <summary>
-        /// 测速接å�
+        /// 测速接接�
         /// </summary>
         /// <returns></returns>
         public async Task<EchoResult> EchoAsync()