@@ -37,7 +37,7 @@ namespace DotNetCore.CAP.Dashboard | |||||
private class StubPage : RazorPage | private class StubPage : RazorPage | ||||
{ | { | ||||
public override void Execute() | |||||
protected override void Execute() | |||||
{ | { | ||||
} | } | ||||
} | } | ||||
@@ -3,7 +3,7 @@ using System.Collections.Generic; | |||||
using System.Linq; | using System.Linq; | ||||
using System.Threading; | using System.Threading; | ||||
namespace DotNetCore.CAP | |||||
namespace DotNetCore.CAP.Internal | |||||
{ | { | ||||
#region Cache<T> class | #region Cache<T> class | ||||
@@ -15,7 +15,7 @@ namespace DotNetCore.CAP | |||||
/// </summary> | /// </summary> | ||||
// ReSharper disable once InheritdocConsiderUsage | // ReSharper disable once InheritdocConsiderUsage | ||||
// ReSharper disable once InconsistentNaming | // ReSharper disable once InconsistentNaming | ||||
public class Cache<K, T> : IDisposable | |||||
internal class Cache<K, T> : IDisposable | |||||
{ | { | ||||
#region Constructor and class members | #region Constructor and class members | ||||
@@ -328,7 +328,7 @@ namespace DotNetCore.CAP | |||||
/// instance. | /// instance. | ||||
/// The <c>.Global</c> member is lazy instanciated. | /// The <c>.Global</c> member is lazy instanciated. | ||||
/// </summary> | /// </summary> | ||||
public class CapCache : Cache<string, object> | |||||
internal class CapCache : Cache<string, object> | |||||
{ | { | ||||
#region Static Global Cache instance | #region Static Global Cache instance | ||||
@@ -21,11 +21,11 @@ namespace DotNetCore.CAP.Internal | |||||
/// <summary> | /// <summary> | ||||
/// a descriptor of consumer information need to be performed. | /// a descriptor of consumer information need to be performed. | ||||
/// </summary> | /// </summary> | ||||
public ConsumerExecutorDescriptor ConsumerDescriptor { get; set; } | |||||
public ConsumerExecutorDescriptor ConsumerDescriptor { get; } | |||||
/// <summary> | /// <summary> | ||||
/// consumer received message. | /// consumer received message. | ||||
/// </summary> | /// </summary> | ||||
public MessageContext DeliverMessage { get; set; } | |||||
public MessageContext DeliverMessage { get; } | |||||
} | } | ||||
} | } |
@@ -3,6 +3,7 @@ using System.Collections.Generic; | |||||
using System.Linq; | using System.Linq; | ||||
using System.Threading.Tasks; | using System.Threading.Tasks; | ||||
using Consul; | using Consul; | ||||
using DotNetCore.CAP.Internal; | |||||
using Microsoft.Extensions.Logging; | using Microsoft.Extensions.Logging; | ||||
namespace DotNetCore.CAP.NodeDiscovery | namespace DotNetCore.CAP.NodeDiscovery | ||||
@@ -90,7 +91,7 @@ namespace DotNetCore.CAP.NodeDiscovery | |||||
} | } | ||||
} | } | ||||
public void InitClient() | |||||
private void InitClient() | |||||
{ | { | ||||
_consul = new ConsulClient(config => | _consul = new ConsulClient(config => | ||||
{ | { | ||||