-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathRabbitmqTransportConfig.cs
More file actions
33 lines (27 loc) · 999 Bytes
/
RabbitmqTransportConfig.cs
File metadata and controls
33 lines (27 loc) · 999 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
namespace BuslyCLI.Config.Transports;
public class RabbitmqTransportConfig : ITransportConfig
{
// TODO: Add Support for TLS Client Certificate Authentication
// https://github.com/Particular/NServiceBus.RabbitMQ/blob/master/src/NServiceBus.Transport.RabbitMQ/Connection/ConnectionFactory.cs#L69
// TODO: Test TLS Connections to broker using "amqps://your-username:your-password@your.rabbitmq.host:5671/vhost"
public string AmqpConnectionString { get; set; }
public RabbitmqRoutingTopology RoutingTopology { get; set; } = RabbitmqRoutingTopology.Conventional;
public RabbitmqQueueType QueueType { get; set; } = RabbitmqQueueType.Quorum;
public ManagementApi ManagementApi { get; set; }
}
public enum RabbitmqRoutingTopology
{
Conventional,
Direct,
}
public enum RabbitmqQueueType
{
Quorum,
Classic,
}
public class ManagementApi
{
public string Url { get; set; }
public string UserName { get; set; }
public string Password { get; set; }
}