瀏覽代碼

Rename class

master
Savorboard 5 年之前
父節點
當前提交
a75401d9c6
共有 2 個文件被更改,包括 4 次插入4 次删除
  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 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存