Explorar el Código

Rename class

master
Savorboard hace 5 años
padre
commit
a75401d9c6
Se han modificado 2 ficheros con 4 adiciones y 4 borrados
  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 Ver fichero

@@ -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 Ver fichero

@@ -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;

Cargando…
Cancelar
Guardar