annotate Implab/ValueEventArgs.cs @ 33:b255e4aeef17

removed the reference to the parent from the promise object this allows resolved promises to release parents and results they are holding. Added complete set of operations to IPromiseBase interface Subscribing to the cancellation event of the promise should not affect it's IsExclusive property More tests.
author cin
date Thu, 10 Apr 2014 02:39:29 +0400
parents eb418ba8275b
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
7
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
1 using System;
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
2 using System.Collections.Generic;
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
3 using System.Linq;
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
4 using System.Text;
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
5
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
6 namespace Implab
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
7 {
12
eb418ba8275b refactoring, added WorkerPool
cin
parents: 7
diff changeset
8 [Serializable]
7
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
9 public class ValueEventArgs<T>: EventArgs
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
10 {
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
11 public ValueEventArgs(T value)
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
12 {
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
13 this.Value = value;
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
14 }
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
15 public T Value
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
16 {
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
17 get;
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
18 private set;
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
19 }
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
20 }
7ea9363fef6c inital progress handling
cin
parents:
diff changeset
21 }