Esempio n. 1
0
 /// <summary>
 ///   Executes the result using the specified context.
 /// </summary>
 /// <param name="context"> The context. </param>
 void IResult.Execute(CoroutineExecutionContext context)
 {
     _asyncOp.WhenCompleted(OnComplete);
 }
Esempio n. 2
0
 /// <summary>
 ///   Constructs a wrapper around the provided asynchronous function.
 /// </summary>
 /// <param name="asyncOp"> The asynchronous DevForce function to be wrapped. </param>
 public OperationResult(INotifyCompleted asyncOp)
 {
     _asyncOp = asyncOp;
     _asyncOp.WhenCompleted(args => _args = args);
 }