Пример #1
0
 public Task StartAsync(CancellationToken cancellationToken)
 {
     Task.Run(CreateClients);
     TelegramListener.Start();
     return(Task.CompletedTask);
 }
Пример #2
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     TelegramListener.Stop();
     return(Task.CompletedTask);
 }
Пример #3
0
 public TelegramLauncher(TelegramListener telegramListener, IServiceProvider serviceProvider)
 {
     TelegramListener = telegramListener;
     ServiceProvider  = serviceProvider;
 }