Search Results for

    Show / Hide Table of Contents

    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 Source

    TelegramBotWebHookHostedService(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 Source

    StartAsync(CancellationToken)

    Declaration
    public async Task StartAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task
    | Improve this Doc View Source

    StopAsync(CancellationToken)

    Declaration
    public async Task StopAsync(CancellationToken cancellationToken)
    Parameters
    Type Name Description
    CancellationToken cancellationToken
    Returns
    Type Description
    Task

    Implements

    Microsoft.Extensions.Hosting.IHostedService
    • Improve this Doc
    • View Source
    ☀
    ☾
    In This Article
    Back to top
    TelegramModularFramework (c) 2022-2022
    ☀
    ☾