Commit 59e36836 authored by Savorboard's avatar Savorboard

refactoring

parent 44c9b1b3
......@@ -37,7 +37,7 @@ namespace DotNetCore.CAP.Dashboard
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.Threading;
namespace DotNetCore.CAP
namespace DotNetCore.CAP.Internal
{
#region Cache<T> class
......@@ -15,7 +15,7 @@ namespace DotNetCore.CAP
/// </summary>
// ReSharper disable once InheritdocConsiderUsage
// ReSharper disable once InconsistentNaming
public class Cache<K, T> : IDisposable
internal class Cache<K, T> : IDisposable
{
#region Constructor and class members
......@@ -328,7 +328,7 @@ namespace DotNetCore.CAP
/// instance.
/// The <c>.Global</c> member is lazy instanciated.
/// </summary>
public class CapCache : Cache<string, object>
internal class CapCache : Cache<string, object>
{
#region Static Global Cache instance
......
......@@ -21,11 +21,11 @@ namespace DotNetCore.CAP.Internal
/// <summary>
/// a descriptor of consumer information need to be performed.
/// </summary>
public ConsumerExecutorDescriptor ConsumerDescriptor { get; set; }
public ConsumerExecutorDescriptor ConsumerDescriptor { get; }
/// <summary>
/// consumer received message.
/// </summary>
public MessageContext DeliverMessage { get; set; }
public MessageContext DeliverMessage { get; }
}
}
\ No newline at end of file
......@@ -3,6 +3,7 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Consul;
using DotNetCore.CAP.Internal;
using Microsoft.Extensions.Logging;
namespace DotNetCore.CAP.NodeDiscovery
......@@ -90,7 +91,7 @@ namespace DotNetCore.CAP.NodeDiscovery
}
}
public void InitClient()
private void InitClient()
{
_consul = new ConsulClient(config =>
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment