Class TelegramBotWebHookHostedService
Inheritance
System.Object
TelegramBotWebHookHostedService
Implements
Microsoft.Extensions.Hosting.IHostedService
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: TelegramModularFramework.WebHook.Services
Assembly: TelegramModularFramework.WebHook.dll
Syntax
public class TelegramBotWebHookHostedService : IHostedService
Constructors
| Improve this Doc View SourceTelegramBotWebHookHostedService(ITelegramBotClient, ILogger<TelegramBotWebHookHostedService>, TelegramBotUser, IOptions<TelegramBotWebHookHostConfiguration>)
Declaration
public TelegramBotWebHookHostedService(ITelegramBotClient botClient, ILogger<TelegramBotWebHookHostedService> logger, TelegramBotUser telegramBotUser, IOptions<TelegramBotWebHookHostConfiguration> options)
Parameters
Type | Name | Description |
---|---|---|
Telegram.Bot.ITelegramBotClient | botClient | |
Microsoft.Extensions.Logging.ILogger<TelegramBotWebHookHostedService> | logger | |
TelegramBotUser | telegramBotUser | |
Microsoft.Extensions.Options.IOptions<TelegramBotWebHookHostConfiguration> | options |
Methods
| Improve this Doc View SourceStartAsync(CancellationToken)
Declaration
public async Task StartAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
StopAsync(CancellationToken)
Declaration
public async Task StopAsync(CancellationToken cancellationToken)
Parameters
Type | Name | Description |
---|---|---|
CancellationToken | cancellationToken |
Returns
Type | Description |
---|---|
Task |
Implements
Microsoft.Extensions.Hosting.IHostedService