Exemple #1
0
 public async override Task ExecuteAsync(object parameter)
 {
     _stopShell.StatusExecutable = true;
     _stopShell.FontText         = "";
     if (SingleChannel.ShareChannelWriter.TryComplete())
     {
         SingleChannel.ResetChannel();
     }
     await Task.Delay(1);
 }
Exemple #2
0
        public async override Task ExecuteAsync(object parameter)
        {
            foreach (var s in _shellList)
            {
                s.IsExecuting = false;
            }
            _stopShell.StatusExecutable = true;
            int.TryParse((string)parameter, out int t);
            await Task.Delay(Math.Max(t, 3000));

            _stopShell.FontText = "";
            if (SingleChannel.ShareChannelWriter.TryComplete())
            {
                SingleChannel.ResetChannel();
            }

            _stopShell.IsExecuting = false;
        }