Browse Source

fix dashboard not config discovery throw exceptions bug.

master
Savorboard 7 years ago
parent
commit
b28b7db51d
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/DotNetCore.CAP/Dashboard/Pages/NodePage.cs

+ 4
- 0
src/DotNetCore.CAP/Dashboard/Pages/NodePage.cs View File

@@ -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…
Cancel
Save