Browse Source

add summary comment.

undefined
Savorboard 7 years ago
parent
commit
97cc190c91
2 changed files with 3 additions and 1 deletions
  1. +2
    -0
      src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs
  2. +1
    -1
      src/DotNetCore.CAP/IProcessingServer.cs

+ 2
- 0
src/DotNetCore.CAP/CAP.ServiceCollectionExtensions.cs View File

@@ -32,12 +32,14 @@ namespace Microsoft.Extensions.DependencyInjection

AddSubscribeServices(services);

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

//bootstrap
services.AddSingleton<IProcessingServer, ConsumerHandler>();
services.AddSingleton<IProcessingServer, CapProcessingServer>();
services.AddSingleton<IBootstrapper, DefaultBootstrapper>();


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

@@ -4,7 +4,7 @@ namespace DotNetCore.CAP
{
/// <inheritdoc />
/// <summary>
/// A process thread abstract of job process.
/// A process thread abstract of message process.
/// </summary>
public interface IProcessingServer : IDisposable
{


Loading…
Cancel
Save