Browse Source

Rename class

master
Savorboard 5 years ago
parent
commit
a75401d9c6
2 changed files with 4 additions and 4 deletions
  1. +1
    -1
      src/DotNetCore.CAP.RabbitMQ/CAP.RabbitMQCapOptionsExtension.cs
  2. +3
    -3
      src/DotNetCore.CAP.RabbitMQ/ITransport.RabbitMQ.cs

+ 1
- 1
src/DotNetCore.CAP.RabbitMQ/CAP.RabbitMQCapOptionsExtension.cs View File

@@ -23,7 +23,7 @@ namespace DotNetCore.CAP
services.AddSingleton<CapMessageQueueMakerService>();
services.Configure(_configure);
services.AddSingleton<ITransport, RabbitMQMessageSender>();
services.AddSingleton<ITransport, RabbitMQTransport>();
services.AddSingleton<IConsumerClientFactory, RabbitMQConsumerClientFactory>();
services.AddSingleton<IConnectionChannelPool, ConnectionChannelPool>();
}


src/DotNetCore.CAP.RabbitMQ/IPublishMessageSender.RabbitMQ.cs → src/DotNetCore.CAP.RabbitMQ/ITransport.RabbitMQ.cs View File

@@ -13,14 +13,14 @@ using RabbitMQ.Client.Framing;

namespace DotNetCore.CAP.RabbitMQ
{
internal sealed class RabbitMQMessageSender : ITransport
internal sealed class RabbitMQTransport : ITransport
{
private readonly IConnectionChannelPool _connectionChannelPool;
private readonly ILogger _logger;
private readonly string _exchange;

public RabbitMQMessageSender(
ILogger<RabbitMQMessageSender> logger,
public RabbitMQTransport(
ILogger<RabbitMQTransport> logger,
IConnectionChannelPool connectionChannelPool)
{
_logger = logger;

Loading…
Cancel
Save