Beispiel #1
0
 public void Stop()
 {
     Console.WriteLine("Disconnecting...");
     _noobotCore.Disconnect();
 }
Beispiel #2
0
 private static void CurrentDomainOnProcessExit(object sender, EventArgs e)
 {
     Console.WriteLine("Disconnecting...");
     _noobotCore?.Disconnect();
 }
Beispiel #3
0
 // not hit
 private static void ProcessExitHandler(object sender, EventArgs e)
 {
     System.Console.WriteLine("Disconnecting...");
     _noobotCore?.Disconnect();
 }
 public void TearDown()
 {
     _noobotCore.Disconnect();
     File.Delete(Path.Combine(Environment.CurrentDirectory, "data/schedules.json"));
 }
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _logger.LogInformation("Disconnecting..");
     _noobotCore?.Disconnect();
     return(Task.CompletedTask);
 }
Beispiel #6
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _noobotCore.Disconnect();
     return(Task.CompletedTask);
 }
Beispiel #7
0
 public void Stop()
 {
     _noobotCore?.Disconnect();
 }