示例#1
0
 public static async Task Run <T>(TaskBase task) where T : IProgressReporter, new()
 {
     await Run(new T(), task).ConfigureAwait(false);
 }
示例#2
0
 public static async Task Run(IProgressReporter reporter, TaskBase task)
 {
     await reporter.RunTask(task).ConfigureAwait(false);
 }