|
|
|
@ -1,10 +1,28 @@
|
|
|
|
|
namespace Volo.Abp.EventBus.RabbitMq;
|
|
|
|
|
using Volo.Abp.RabbitMQ;
|
|
|
|
|
|
|
|
|
|
namespace Volo.Abp.EventBus.RabbitMq;
|
|
|
|
|
|
|
|
|
|
public class AbpRabbitMqEventBusOptions
|
|
|
|
|
{
|
|
|
|
|
public const string DefaultExchangeType = RabbitMqConsts.ExchangeTypes.Direct;
|
|
|
|
|
|
|
|
|
|
public string ConnectionName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ClientName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ExchangeName { get; set; }
|
|
|
|
|
|
|
|
|
|
public string ExchangeType { get; set; }
|
|
|
|
|
|
|
|
|
|
public AbpRabbitMqEventBusOptions()
|
|
|
|
|
{
|
|
|
|
|
ExchangeType = "direct";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string GetExchangeTypeOrDefault()
|
|
|
|
|
{
|
|
|
|
|
return string.IsNullOrEmpty(ExchangeType)
|
|
|
|
|
? DefaultExchangeType
|
|
|
|
|
: ExchangeType;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|