Sfoglia il codice sorgente

fix dashboard not config discovery throw exceptions bug.

master
Savorboard 7 anni fa
parent
commit
b28b7db51d
1 ha cambiato i file con 4 aggiunte e 0 eliminazioni
  1. +4
    -0
      src/DotNetCore.CAP/Dashboard/Pages/NodePage.cs

+ 4
- 0
src/DotNetCore.CAP/Dashboard/Pages/NodePage.cs Vedi 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;


Caricamento…
Annulla
Salva