Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
CAP
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
tsai
CAP
Commits
59e36836
Commit
59e36836
authored
Oct 29, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactoring
parent
44c9b1b3
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
7 deletions
+8
-7
JsonStats.cs
src/DotNetCore.CAP/Dashboard/JsonStats.cs
+1
-1
CapCache.cs
src/DotNetCore.CAP/Internal/CapCache.cs
+3
-3
ConsumerContext.cs
src/DotNetCore.CAP/Internal/ConsumerContext.cs
+2
-2
INodeDiscoveryProvider.Consul.cs
...etCore.CAP/NodeDiscovery/INodeDiscoveryProvider.Consul.cs
+2
-1
No files found.
src/DotNetCore.CAP/Dashboard/JsonStats.cs
View file @
59e36836
...
@@ -37,7 +37,7 @@ namespace DotNetCore.CAP.Dashboard
...
@@ -37,7 +37,7 @@ namespace DotNetCore.CAP.Dashboard
private
class
StubPage
:
RazorPage
private
class
StubPage
:
RazorPage
{
{
p
ublic
override
void
Execute
()
p
rotected
override
void
Execute
()
{
{
}
}
}
}
...
...
src/DotNetCore.CAP/CapCache.cs
→
src/DotNetCore.CAP/
Internal/
CapCache.cs
View file @
59e36836
...
@@ -3,7 +3,7 @@ using System.Collections.Generic;
...
@@ -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
...
@@ -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
...
@@ -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
...
...
src/DotNetCore.CAP/Internal/ConsumerContext.cs
View file @
59e36836
...
@@ -21,11 +21,11 @@ namespace DotNetCore.CAP.Internal
...
@@ -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
;
}
}
}
}
}
\ No newline at end of file
src/DotNetCore.CAP/NodeDiscovery/INodeDiscoveryProvider.Consul.cs
View file @
59e36836
...
@@ -3,6 +3,7 @@ using System.Collections.Generic;
...
@@ -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
...
@@ -90,7 +91,7 @@ namespace DotNetCore.CAP.NodeDiscovery
}
}
}
}
p
ublic
void
InitClient
()
p
rivate
void
InitClient
()
{
{
_consul
=
new
ConsulClient
(
config
=>
_consul
=
new
ConsulClient
(
config
=>
{
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment