예제 #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;
 }