Mercurial > pub > ImplabNet
comparison Implab.Fx/PromiseHelpers.cs @ 102:b4c4d65b7def v2
code cleaunp
author | cin |
---|---|
date | Fri, 07 Nov 2014 09:36:12 +0300 |
parents | c761fc982e1d |
children | 5f10d54b45df |
comparison
equal
deleted
inserted
replaced
101:279e226dffdd | 102:b4c4d65b7def |
---|---|
25 public static IPromise<T> DispatchToControl<T>(this IPromise<T> that, Control ctl) | 25 public static IPromise<T> DispatchToControl<T>(this IPromise<T> that, Control ctl) |
26 { | 26 { |
27 Safe.ArgumentNotNull(that, "that"); | 27 Safe.ArgumentNotNull(that, "that"); |
28 Safe.ArgumentNotNull(ctl, "ctl"); | 28 Safe.ArgumentNotNull(ctl, "ctl"); |
29 | 29 |
30 var directed = new ControlBoundPromise<T>(ctl,that,true); | 30 var directed = new ControlBoundPromise<T>(ctl,that); |
31 | 31 |
32 that.Last( | 32 that.Last( |
33 directed.Resolve, | 33 directed.Resolve, |
34 directed.Reject, | 34 directed.Reject, |
35 directed.Cancel | 35 directed.Cancel |