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
323abb7f
Commit
323abb7f
authored
Oct 21, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
remove some class from Abstraction namespce to Internal.
parent
cb850506
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
23 deletions
+43
-23
ConsumerInvokerContext.cs
src/DotNetCore.CAP/Abstractions/ConsumerInvokerContext.cs
+0
-20
ConsumerContext.cs
src/DotNetCore.CAP/Internal/ConsumerContext.cs
+1
-1
ConsumerExecutedResult.cs
src/DotNetCore.CAP/Internal/ConsumerExecutedResult.cs
+22
-0
ConsumerExecutorDescriptor.cs
src/DotNetCore.CAP/Internal/ConsumerExecutorDescriptor.cs
+2
-1
IConsumerInvoker.cs
src/DotNetCore.CAP/Internal/IConsumerInvoker.cs
+17
-0
IConsumerServiceSelector.cs
src/DotNetCore.CAP/Internal/IConsumerServiceSelector.cs
+1
-1
No files found.
src/DotNetCore.CAP/Abstractions/ConsumerInvokerContext.cs
deleted
100644 → 0
View file @
cb850506
using
System
;
namespace
DotNetCore.CAP.Abstractions
{
/// <summary>
/// a context of consumer invoker.
/// </summary>
public
class
ConsumerInvokerContext
{
public
ConsumerInvokerContext
(
ConsumerContext
consumerContext
)
{
ConsumerContext
=
consumerContext
??
throw
new
ArgumentNullException
(
nameof
(
consumerContext
));
}
public
ConsumerContext
ConsumerContext
{
get
;
set
;
}
public
IConsumerInvoker
Result
{
get
;
set
;
}
}
}
\ No newline at end of file
src/DotNetCore.CAP/
Abstractions
/ConsumerContext.cs
→
src/DotNetCore.CAP/
Internal
/ConsumerContext.cs
View file @
323abb7f
using
System
;
using
System
;
namespace
DotNetCore.CAP.
Abstractions
namespace
DotNetCore.CAP.
Internal
{
{
/// <summary>
/// <summary>
/// A context for consumers, it used to be provider wrapper of method description and received message.
/// A context for consumers, it used to be provider wrapper of method description and received message.
...
...
src/DotNetCore.CAP/Internal/ConsumerExecutedResult.cs
0 → 100644
View file @
323abb7f
using
System
;
using
System.Collections.Generic
;
using
System.Text
;
namespace
DotNetCore.CAP.Internal
{
public
class
ConsumerExecutedResult
{
public
ConsumerExecutedResult
(
object
result
,
string
msgId
,
string
callbackName
)
{
Result
=
result
;
MessageId
=
msgId
;
CallbackName
=
callbackName
;
}
public
object
Result
{
get
;
set
;
}
public
string
MessageId
{
get
;
set
;
}
public
string
CallbackName
{
get
;
set
;
}
}
}
src/DotNetCore.CAP/
Abstractions
/ConsumerExecutorDescriptor.cs
→
src/DotNetCore.CAP/
Internal
/ConsumerExecutorDescriptor.cs
View file @
323abb7f
using
System.Reflection
;
using
System.Reflection
;
using
DotNetCore.CAP.Abstractions
;
namespace
DotNetCore.CAP.
Abstractions
namespace
DotNetCore.CAP.
Internal
{
{
/// <summary>
/// <summary>
/// A descriptor of user definition method.
/// A descriptor of user definition method.
...
...
src/DotNetCore.CAP/
Abstractions
/IConsumerInvoker.cs
→
src/DotNetCore.CAP/
Internal
/IConsumerInvoker.cs
View file @
323abb7f
using
System.Threading.Tasks
;
using
System.Threading.Tasks
;
using
DotNetCore.CAP.Abstractions
;
namespace
DotNetCore.CAP.
Abstractions
namespace
DotNetCore.CAP.
Internal
{
{
/// <summary>
/// <summary>
/// Perform user definition method of consumers.
/// Perform user definition method of consumers.
...
@@ -8,8 +9,9 @@ namespace DotNetCore.CAP.Abstractions
...
@@ -8,8 +9,9 @@ namespace DotNetCore.CAP.Abstractions
public
interface
IConsumerInvoker
public
interface
IConsumerInvoker
{
{
/// <summary>
/// <summary>
///
begin to invoke method
.
///
Invoke consumer method whit consumer context
.
/// </summary>
/// </summary>
Task
InvokeAsync
();
/// <param name="context">consumer execute context</param>
Task
<
ConsumerExecutedResult
>
InvokeAsync
(
ConsumerContext
context
);
}
}
}
}
\ No newline at end of file
src/DotNetCore.CAP/
Abstractions
/IConsumerServiceSelector.cs
→
src/DotNetCore.CAP/
Internal
/IConsumerServiceSelector.cs
View file @
323abb7f
using
System.Collections.Generic
;
using
System.Collections.Generic
;
namespace
DotNetCore.CAP.
Abstractions
namespace
DotNetCore.CAP.
Internal
{
{
/// <summary>
/// <summary>
/// Defines an interface for selecting an consumer service method to invoke for the current message.
/// Defines an interface for selecting an consumer service method to invoke for the current message.
...
...
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