[core] move message auto-delete service from code-watcher to core

This commit is contained in:
Andriy
2023-01-23 13:12:38 +02:00
parent 261c1178b7
commit bbcdfff2b9
5 changed files with 16 additions and 13 deletions
+1 -9
View File
@@ -1,17 +1,9 @@
using System.Collections.Concurrent;
using Kruzya.TelegramBot.Core;
using Microsoft.Extensions.DependencyInjection;
using Kruzya.TelegramBot.Core;
namespace West.TelegramBot.CodeWatcher
{
public class CodeWatcher : Module
{
public CodeWatcher(Core core) : base(core) {}
public override void ConfigureServices(IServiceCollection services)
{
services.AddSingleton<ConcurrentBag<DeleteRequest>>();
services.AddHostedService<DeleteService>();
}
}
}