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
7e84a153
Commit
7e84a153
authored
May 14, 2017
by
yangxiaodong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor
parent
d8e323c7
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
6 deletions
+7
-6
ConsumerContext.cs
src/Cap.Consistency/Abstractions/ConsumerContext.cs
+5
-4
ConsumerExecutorDescriptor.cs
...ap.Consistency/Abstractions/ConsumerExecutorDescriptor.cs
+2
-2
No files found.
src/Cap.Consistency/Abstractions/ConsumerContext.cs
View file @
7e84a153
...
@@ -2,19 +2,20 @@
...
@@ -2,19 +2,20 @@
using
System.Collections.Generic
;
using
System.Collections.Generic
;
using
System.Text
;
using
System.Text
;
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
Cap.Consistency.Infrastructure
;
namespace
Cap.Consistency.Abstractions
namespace
Cap.Consistency.Abstractions
{
{
public
class
ConsumerContext
public
class
ConsumerContext
{
{
public
ConsumerContext
(
ConsumerExecutorDescriptor
descriptor
)
{
public
ConsumerContext
(
ConsumerExecutorDescriptor
descriptor
,
DeliverMessage
message
)
{
ConsumerDescriptor
=
descriptor
??
throw
new
ArgumentNullException
(
nameof
(
descriptor
));
ConsumerDescriptor
=
descriptor
??
throw
new
ArgumentNullException
(
nameof
(
descriptor
));
DeliverMessage
=
message
??
throw
new
ArgumentNullException
(
nameof
(
message
));
}
}
public
ConsumerExecutorDescriptor
ConsumerDescriptor
{
get
;
set
;
}
public
ConsumerExecutorDescriptor
ConsumerDescriptor
{
get
;
set
;
}
public
DeliverMessage
DeliverMessage
{
get
;
set
;
}
}
}
}
}
src/Cap.Consistency/Abstractions/ConsumerExecutorDescriptor.cs
View file @
7e84a153
...
@@ -9,10 +9,10 @@ namespace Cap.Consistency.Abstractions
...
@@ -9,10 +9,10 @@ namespace Cap.Consistency.Abstractions
{
{
public
MethodInfo
MethodInfo
{
get
;
set
;
}
public
MethodInfo
MethodInfo
{
get
;
set
;
}
public
Type
ImplType
{
get
;
set
;
}
public
Type
Info
ImplTypeInfo
{
get
;
set
;
}
public
TopicInfo
Topic
{
get
;
set
;
}
public
TopicInfo
Topic
{
get
;
set
;
}
public
int
GroupId
{
get
;
set
;
}
public
string
GroupId
{
get
;
set
;
}
}
}
}
}
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