annotate Implab/IProgressNotifier.cs @ 209:a867536c68fc v2

Bound promise to CancellationToken Added new states to ExecutionSate enum. Added Safe.Guard() method to handle cleanup of the result of the promise
author cin
date Wed, 16 Nov 2016 03:06:08 +0300
parents b0feb5b9ad1c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
12
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
1 using System;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
2 using System.Collections.Generic;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
3 using System.Linq;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
4 using System.Text;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
5
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
6 namespace Implab
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
7 {
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
8 public interface IProgressNotifier
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
9 {
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
10 event EventHandler<ValueEventArgs<string>> MessageUpdated;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
11 event EventHandler<ValueEventArgs<float>> ProgressUpdated;
13
b0feb5b9ad1c small fixes, WorkerPool still incomplete
cin
parents: 12
diff changeset
12 event EventHandler<ProgressInitEventArgs> ProgressInit;
12
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
13 }
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
14 }