Beispiel #1
0
        public static Task Restart(this ILiteEngine liteEngine)
        {
            liteEngine.Stop();
            liteEngine.Start();

            return(Task.CompletedTask);
        }
Beispiel #2
0
 public override async Task StopAsync(CancellationToken cancellationToken)
 {
     _logger.LogInformation("Stopping Service");
     _liteEngine.Stop();
     await base.StopAsync(cancellationToken);
 }