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
9b7c3f56
Commit
9b7c3f56
authored
Oct 18, 2017
by
Savorboard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add comment and fixed spell error.
parent
484f6b84
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
10 additions
and
6 deletions
+10
-6
CAP.ServiceCollectionExtensions.cs
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs
+3
-3
ICapPublisher.cs
src/DotNetCore.CAP/ICapPublisher.cs
+2
-2
IConsumerClient.cs
src/DotNetCore.CAP/IConsumerClient.cs
+1
-0
IConsumerClientFactory.cs
src/DotNetCore.CAP/IConsumerClientFactory.cs
+1
-1
IConsumerHandler.cs
src/DotNetCore.CAP/IConsumerHandler.cs
+3
-0
No files found.
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs
View file @
9b7c3f56
...
@@ -32,20 +32,20 @@ namespace Microsoft.Extensions.DependencyInjection
...
@@ -32,20 +32,20 @@ namespace Microsoft.Extensions.DependencyInjection
AddSubscribeServices
(
services
);
AddSubscribeServices
(
services
);
//
s
erializer and model binder
//
S
erializer and model binder
services
.
TryAddSingleton
<
IContentSerializer
,
JsonContentSerializer
>();
services
.
TryAddSingleton
<
IContentSerializer
,
JsonContentSerializer
>();
services
.
TryAddSingleton
<
IConsumerServiceSelector
,
DefaultConsumerServiceSelector
>();
services
.
TryAddSingleton
<
IConsumerServiceSelector
,
DefaultConsumerServiceSelector
>();
services
.
TryAddSingleton
<
IModelBinderFactory
,
ModelBinderFactory
>();
services
.
TryAddSingleton
<
IModelBinderFactory
,
ModelBinderFactory
>();
services
.
TryAddSingleton
<
IConsumerInvokerFactory
,
ConsumerInvokerFactory
>();
services
.
TryAddSingleton
<
IConsumerInvokerFactory
,
ConsumerInvokerFactory
>();
services
.
TryAddSingleton
<
MethodMatcherCache
>();
services
.
TryAddSingleton
<
MethodMatcherCache
>();
//
bootstrap
//
Bootstrapper and Processors
services
.
AddSingleton
<
IProcessingServer
,
ConsumerHandler
>();
services
.
AddSingleton
<
IProcessingServer
,
ConsumerHandler
>();
services
.
AddSingleton
<
IProcessingServer
,
CapProcessingServer
>();
services
.
AddSingleton
<
IProcessingServer
,
CapProcessingServer
>();
services
.
AddSingleton
<
IBootstrapper
,
DefaultBootstrapper
>();
services
.
AddSingleton
<
IBootstrapper
,
DefaultBootstrapper
>();
services
.
AddSingleton
<
IStateChanger
,
StateChanger
>();
services
.
AddSingleton
<
IStateChanger
,
StateChanger
>();
//
Processors
//
Queue's message processor
services
.
AddTransient
<
PublishQueuer
>();
services
.
AddTransient
<
PublishQueuer
>();
services
.
AddTransient
<
SubscribeQueuer
>();
services
.
AddTransient
<
SubscribeQueuer
>();
services
.
AddTransient
<
FailedProcessor
>();
services
.
AddTransient
<
FailedProcessor
>();
...
...
src/DotNetCore.CAP/ICapPublisher.cs
View file @
9b7c3f56
...
@@ -15,7 +15,7 @@ namespace DotNetCore.CAP
...
@@ -15,7 +15,7 @@ namespace DotNetCore.CAP
/// otherwise you need to use overloaded method with IDbConnection and IDbTransaction.
/// otherwise you need to use overloaded method with IDbConnection and IDbTransaction.
/// </para>
/// </para>
/// </summary>
/// </summary>
/// <typeparam name="T">The type of con
e
tent object.</typeparam>
/// <typeparam name="T">The type of content object.</typeparam>
/// <param name="name">the topic name or exchange router key.</param>
/// <param name="name">the topic name or exchange router key.</param>
/// <param name="contentObj">message body content, that will be serialized of json.</param>
/// <param name="contentObj">message body content, that will be serialized of json.</param>
/// <param name="callbackName">callback subscriber name</param>
/// <param name="callbackName">callback subscriber name</param>
...
@@ -28,7 +28,7 @@ namespace DotNetCore.CAP
...
@@ -28,7 +28,7 @@ namespace DotNetCore.CAP
/// otherwise you need to use overloaded method with IDbConnection and IDbTransaction.
/// otherwise you need to use overloaded method with IDbConnection and IDbTransaction.
/// </para>
/// </para>
/// </summary>
/// </summary>
/// <typeparam name="T">The type of con
e
tent object.</typeparam>
/// <typeparam name="T">The type of content object.</typeparam>
/// <param name="name">the topic name or exchange router key.</param>
/// <param name="name">the topic name or exchange router key.</param>
/// <param name="contentObj">message body content, that will be serialized of json.</param>
/// <param name="contentObj">message body content, that will be serialized of json.</param>
/// <param name="callbackName">callback subscriber name</param>
/// <param name="callbackName">callback subscriber name</param>
...
...
src/DotNetCore.CAP/IConsumerClient.cs
View file @
9b7c3f56
...
@@ -4,6 +4,7 @@ using System.Threading;
...
@@ -4,6 +4,7 @@ using System.Threading;
namespace
DotNetCore.CAP
namespace
DotNetCore.CAP
{
{
/// <inheritdoc />
/// <summary>
/// <summary>
/// consumer client
/// consumer client
/// </summary>
/// </summary>
...
...
src/DotNetCore.CAP/IConsumerClientFactory.cs
View file @
9b7c3f56
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
/// <summary>
/// <summary>
/// Create a new instance of <see cref="IConsumerClient" />.
/// Create a new instance of <see cref="IConsumerClient" />.
/// </summary>
/// </summary>
/// <param name="groupId"></param>
/// <param name="groupId">
message group number
</param>
IConsumerClient
Create
(
string
groupId
);
IConsumerClient
Create
(
string
groupId
);
}
}
}
}
\ No newline at end of file
src/DotNetCore.CAP/IConsumerHandler.cs
View file @
9b7c3f56
namespace
DotNetCore.CAP
namespace
DotNetCore.CAP
{
{
/// <summary>
/// Handler received message of subscribed.
/// </summary>
public
interface
IConsumerHandler
:
IProcessingServer
public
interface
IConsumerHandler
:
IProcessingServer
{
{
}
}
...
...
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