Browse Source

refactoring

master
Savorboard 7 years ago
parent
commit
59e368369b
4 changed files with 8 additions and 7 deletions
  1. +1
    -1
      src/DotNetCore.CAP/Dashboard/JsonStats.cs
  2. +3
    -3
      src/DotNetCore.CAP/Internal/CapCache.cs
  3. +2
    -2
      src/DotNetCore.CAP/Internal/ConsumerContext.cs
  4. +2
    -1
      src/DotNetCore.CAP/NodeDiscovery/INodeDiscoveryProvider.Consul.cs

+ 1
- 1
src/DotNetCore.CAP/Dashboard/JsonStats.cs View File

@@ -37,7 +37,7 @@ namespace DotNetCore.CAP.Dashboard

private class StubPage : RazorPage
{
public override void Execute()
protected override void Execute()
{
}
}


src/DotNetCore.CAP/CapCache.cs → src/DotNetCore.CAP/Internal/CapCache.cs View File

@@ -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


+ 2
- 2
src/DotNetCore.CAP/Internal/ConsumerContext.cs View File

@@ -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; }
}
}

+ 2
- 1
src/DotNetCore.CAP/NodeDiscovery/INodeDiscoveryProvider.Consul.cs View 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 =>
{


Loading…
Cancel
Save