瀏覽代碼

fix dashboard not config discovery throw exceptions bug.

master
Savorboard 7 年之前
父節點
當前提交
b28b7db51d
共有 1 個檔案被更改,包括 4 行新增0 行删除
  1. +4
    -0
      src/DotNetCore.CAP/Dashboard/Pages/NodePage.cs

+ 4
- 0
src/DotNetCore.CAP/Dashboard/Pages/NodePage.cs 查看文件

@@ -27,6 +27,10 @@ namespace DotNetCore.CAP.Dashboard.Pages
if (_nodes == null)
{
_discoveryProvider = RequestServices.GetService<INodeDiscoveryProvider>();
if (_discoveryProvider == null)
{
return new List<Node>();
}
_nodes = _discoveryProvider.GetNodes().GetAwaiter().GetResult();
}
return _nodes;


Loading…
取消
儲存