Beispiel #1
0
        public Task StopAsync(CancellationToken cancellationToken)
        {
            _infr.TerminateTm();

            Tms.TerminateWithoutSql(_tmCid);

            return(Task.CompletedTask);
        }
Beispiel #2
0
        public override async Task StopAsync(CancellationToken cancellationToken)
        {
            _infr.TerminateTm();

            Tms.TerminateWithoutSql(_tmCid);

            Tms.PrintMessage("Задача будет закрыта");

            await base.StopAsync(cancellationToken);
        }