Added RabbitMq support
This commit is contained in:
@@ -3,16 +3,16 @@ using System;
|
||||
|
||||
namespace Birdmap.BLL.Options
|
||||
{
|
||||
public class AspCoreMqttClientOptions : MqttClientOptionsBuilder
|
||||
public class MqttClientOptions : MqttClientOptionsBuilder
|
||||
{
|
||||
public IServiceProvider ServiceProvider { get; }
|
||||
|
||||
public AspCoreMqttClientOptions(IServiceProvider serviceProvider)
|
||||
public MqttClientOptions(IServiceProvider serviceProvider)
|
||||
{
|
||||
ServiceProvider = serviceProvider;
|
||||
}
|
||||
|
||||
public AspCoreMqttClientOptions WithTopic(string topic)
|
||||
public MqttClientOptions WithTopic(string topic)
|
||||
{
|
||||
WithUserProperty("Topic", topic);
|
||||
|
||||
4
Birdmap.BLL/Options/RabbitMqClientOptions.cs
Normal file
4
Birdmap.BLL/Options/RabbitMqClientOptions.cs
Normal file
@@ -0,0 +1,4 @@
|
||||
namespace Birdmap.BLL.Options
|
||||
{
|
||||
public record RabbitMqClientOptions(string Hostname, int Port, string Username, string Password, string Topic);
|
||||
}
|
||||
Reference in New Issue
Block a user