diff --git a/src/DotNetCore.CAP.Dashboard/CapCache.cs b/src/DotNetCore.CAP.Dashboard/CapCache.cs index 29bfe72..1282d65 100644 --- a/src/DotNetCore.CAP.Dashboard/CapCache.cs +++ b/src/DotNetCore.CAP.Dashboard/CapCache.cs @@ -1,4 +1,4 @@ -using System; +using System; using System.Collections.Generic; using System.Linq; using System.Threading; @@ -15,7 +15,7 @@ namespace DotNetCore.CAP.Dashboard /// // ReSharper disable once InheritdocConsiderUsage // ReSharper disable once InconsistentNaming - internal class Cache : IDisposable + public class Cache : IDisposable { #region Constructor and class members @@ -121,7 +121,7 @@ namespace DotNetCore.CAP.Dashboard private void RemoveByTimer(object state) { - Remove((K) state); + Remove((K)state); } #endregion @@ -251,8 +251,8 @@ namespace DotNetCore.CAP.Dashboard try { var removers = (from k in _cache.Keys.Cast() - where keyPattern(k) - select k).ToList(); + where keyPattern(k) + select k).ToList(); foreach (var workKey in removers) { @@ -354,7 +354,7 @@ namespace DotNetCore.CAP.Dashboard /// instance. /// The .Global member is lazy instanciated. /// - internal class CapCache : Cache + public class CapCache : Cache { #region Static Global Cache instance @@ -372,4 +372,4 @@ namespace DotNetCore.CAP.Dashboard } #endregion -} \ No newline at end of file +} diff --git a/src/DotNetCore.CAP.Dashboard/NodeDiscovery/INodeDiscoveryProvider.Consul.cs b/src/DotNetCore.CAP.Dashboard/NodeDiscovery/INodeDiscoveryProvider.Consul.cs index d55a684..ad7c035 100644 --- a/src/DotNetCore.CAP.Dashboard/NodeDiscovery/INodeDiscoveryProvider.Consul.cs +++ b/src/DotNetCore.CAP.Dashboard/NodeDiscovery/INodeDiscoveryProvider.Consul.cs @@ -77,7 +77,7 @@ namespace DotNetCore.CAP.Dashboard.NodeDiscovery }; if (_options.Scheme.Equals("http", StringComparison.OrdinalIgnoreCase)) - healthCheck.HTTP = $"http://{_options.CurrentNodeHostName}:{_options.CurrentNodePort}{_options.MatchPath}/health"; + healthCheck.HTTP = $"http://{_options.CurrentNodeHostName}:{_options.CurrentNodePort}{_options.MatchPath}/api/health"; else if (_options.Scheme.Equals("https", StringComparison.OrdinalIgnoreCase)) healthCheck.TCP = $"{_options.CurrentNodeHostName}:{_options.CurrentNodePort}"; @@ -114,4 +114,4 @@ namespace DotNetCore.CAP.Dashboard.NodeDiscovery } } } -} \ No newline at end of file +}