Files
Telegrator/Telegrator.Hosting/Polling/HostUpdateHandlersPool.cs
T

22 lines
843 B
C#
Raw Normal View History

2025-07-24 23:19:59 +04:00
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Options;
using Telegrator.Configuration;
using Telegrator.MadiatorCore.Descriptors;
using Telegrator.Polling;
namespace Telegrator.Hosting.Polling
{
/// <inheritdoc/>
public class HostUpdateHandlersPool(IOptions<TelegramBotOptions> options, ILogger<HostUpdateHandlersPool> logger) : UpdateHandlersPool(options.Value, options.Value.GlobalCancellationToken)
2025-07-24 23:19:59 +04:00
{
private readonly ILogger<HostUpdateHandlersPool> _logger = logger;
/// <inheritdoc/>
2025-07-24 23:19:59 +04:00
protected override async Task ExecuteHandlerWrapper(DescribedHandlerInfo enqueuedHandler)
{
//_logger.LogInformation("Handler \"{0}\" has entered execution pool", enqueuedHandler.DisplayString);
2025-07-24 23:19:59 +04:00
await base.ExecuteHandlerWrapper(enqueuedHandler);
}
}
}