/// <summary> /// Executes the result using the specified context. /// </summary> /// <param name="context"> The context. </param> void IResult.Execute(CoroutineExecutionContext context) { _asyncOp.WhenCompleted(OnComplete); }
/// <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); }