Moved all services from API to BLL project

This commit is contained in:
2020-12-03 18:52:25 +01:00
parent f0af8f08e3
commit 6e61fc7756
17 changed files with 360 additions and 371 deletions

View File

@@ -0,0 +1,22 @@
using MQTTnet.Client.Options;
using System;
namespace Birdmap.BLL.Options
{
public class AspCoreMqttClientOptions : MqttClientOptionsBuilder
{
public IServiceProvider ServiceProvider { get; }
public AspCoreMqttClientOptions(IServiceProvider serviceProvider)
{
ServiceProvider = serviceProvider;
}
public AspCoreMqttClientOptions WithTopic(string topic)
{
WithUserProperty("Topic", topic);
return this;
}
}
}