mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-14 01:25:38 -05:00
Upgrade DeviceStatus service to .NET 8 and add OpenTelemetry
This commit is contained in:
@@ -1,20 +1,13 @@
|
||||
using RestSharp;
|
||||
|
||||
namespace Service;
|
||||
namespace ChrisKaczor.HomeMonitor.DeviceStatus.Service;
|
||||
|
||||
public class LaundryMonitor
|
||||
public class LaundryMonitor(IConfiguration configuration)
|
||||
{
|
||||
private readonly string _botToken = configuration["Telegram:BotToken"]!;
|
||||
private readonly string _chatId = configuration["Telegram:ChatId"]!;
|
||||
private readonly RestClient _restClient = new();
|
||||
|
||||
private readonly string _botToken;
|
||||
private readonly string _chatId;
|
||||
|
||||
public LaundryMonitor(IConfiguration configuration)
|
||||
{
|
||||
_botToken = configuration["Telegram:BotToken"];
|
||||
_chatId = configuration["Telegram:ChatId"];
|
||||
}
|
||||
|
||||
public async Task HandleDeviceMessage(Device device)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user