예제 #1
0
 public void Stop()
 {
     Console.WriteLine("Disconnecting...");
     _noobotCore.Disconnect();
 }
예제 #2
0
 private static void CurrentDomainOnProcessExit(object sender, EventArgs e)
 {
     Console.WriteLine("Disconnecting...");
     _noobotCore?.Disconnect();
 }
예제 #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"));
 }
예제 #5
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _logger.LogInformation("Disconnecting..");
     _noobotCore?.Disconnect();
     return(Task.CompletedTask);
 }
예제 #6
0
 public Task StopAsync(CancellationToken cancellationToken)
 {
     _noobotCore.Disconnect();
     return(Task.CompletedTask);
 }
예제 #7
0
 public void Stop()
 {
     _noobotCore?.Disconnect();
 }