Browse Source

add comment and fixed spell error.

undefined
Savorboard 7 years ago
parent
commit
9b7c3f568c
5 changed files with 10 additions and 6 deletions
  1. +3
    -3
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs
  2. +2
    -2
      src/DotNetCore.CAP/ICapPublisher.cs
  3. +1
    -0
      src/DotNetCore.CAP/IConsumerClient.cs
  4. +1
    -1
      src/DotNetCore.CAP/IConsumerClientFactory.cs
  5. +3
    -0
      src/DotNetCore.CAP/IConsumerHandler.cs

+ 3
- 3
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs View File

@@ -32,20 +32,20 @@ namespace Microsoft.Extensions.DependencyInjection

AddSubscribeServices(services);

// serializer and model binder
//Serializer and model binder
services.TryAddSingleton<IContentSerializer, JsonContentSerializer>();
services.TryAddSingleton<IConsumerServiceSelector, DefaultConsumerServiceSelector>();
services.TryAddSingleton<IModelBinderFactory, ModelBinderFactory>();
services.TryAddSingleton<IConsumerInvokerFactory, ConsumerInvokerFactory>();
services.TryAddSingleton<MethodMatcherCache>();

//bootstrap
//Bootstrapper and Processors
services.AddSingleton<IProcessingServer, ConsumerHandler>();
services.AddSingleton<IProcessingServer, CapProcessingServer>();
services.AddSingleton<IBootstrapper, DefaultBootstrapper>();
services.AddSingleton<IStateChanger, StateChanger>();

//Processors
//Queue's message processor
services.AddTransient<PublishQueuer>();
services.AddTransient<SubscribeQueuer>();
services.AddTransient<FailedProcessor>();


+ 2
- 2
src/DotNetCore.CAP/ICapPublisher.cs View File

@@ -15,7 +15,7 @@ namespace DotNetCore.CAP
/// otherwise you need to use overloaded method with IDbConnection and IDbTransaction.
/// </para>
/// </summary>
/// <typeparam name="T">The type of conetent object.</typeparam>
/// <typeparam name="T">The type of content object.</typeparam>
/// <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="callbackName">callback subscriber name</param>
@@ -28,7 +28,7 @@ namespace DotNetCore.CAP
/// otherwise you need to use overloaded method with IDbConnection and IDbTransaction.
/// </para>
/// </summary>
/// <typeparam name="T">The type of conetent object.</typeparam>
/// <typeparam name="T">The type of content object.</typeparam>
/// <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="callbackName">callback subscriber name</param>


+ 1
- 0
src/DotNetCore.CAP/IConsumerClient.cs View File

@@ -4,6 +4,7 @@ using System.Threading;

namespace DotNetCore.CAP
{
/// <inheritdoc />
/// <summary>
/// consumer client
/// </summary>


+ 1
- 1
src/DotNetCore.CAP/IConsumerClientFactory.cs View File

@@ -8,7 +8,7 @@
/// <summary>
/// Create a new instance of <see cref="IConsumerClient" />.
/// </summary>
/// <param name="groupId"></param>
/// <param name="groupId">message group number</param>
IConsumerClient Create(string groupId);
}
}

+ 3
- 0
src/DotNetCore.CAP/IConsumerHandler.cs View File

@@ -1,5 +1,8 @@
namespace DotNetCore.CAP
{
/// <summary>
/// Handler received message of subscribed.
/// </summary>
public interface IConsumerHandler : IProcessingServer
{
}

Loading…
Cancel
Save