annotate Implab/IProgressHandler.cs @ 203:4d9830a9bbb8 v2

Added 'Fail' method to RunnableComponent which allows component to move from Running to Failed state. Added PollingComponent a timer based runnable component More tests Added FailPromise a thin class to wrap exceptions Fixed error handling in SuccessPromise classes.
author cin
date Tue, 18 Oct 2016 17:49:54 +0300
parents eb418ba8275b
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 public interface IProgressHandler {
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
8 string Message {
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
9 get;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
10 set;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
11 }
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
12 float CurrentProgress {
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
13 get;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
14 set;
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
15 }
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
16 void InitProgress(float current, float max, string message);
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
17 }
eb418ba8275b refactoring, added WorkerPool
cin
parents:
diff changeset
18 }