Ejemplo n.º 1
0
        internal async Task InitializeAsync()
        {
            await Task.Run(() => TakeLongTime.Execute(ExecutionTime.Create(2)));

            IgnoreValidationErrorValueTrue.Value  = Domain.ValueObjects.ViewName.Create("非同期で取得する初期値");
            IgnoreValidationErrorValueFalse.Value = Domain.ValueObjects.ViewName.Create("非同期で取得する初期値2");
        }
 public void TakeLongTime(IProgress <int> _progress)
 {
     _progress.Report(5);
     Enumerable.Range(0, ExecutionTime.Create(5).Second).Reverse().ToList().ForEach(i => {
         takeLongTime.Execute(ExecutionTime.Create(1));
         _progress.Report(i);
     });
 }
 public void TakeLongTimeTask2()
 {
     Task2Counter.Value = 7;
     Enumerable.Range(0, ExecutionTime.Create(7).Second).Reverse().ToList().ForEach(i => {
         takeLongTime.Execute(ExecutionTime.Create(1));
         Task2Counter.Value = i;
     });
 }