protected override void invoke(Action action) { var task = FubuRequest.Get <Task <T> >(); task.ContinueWith(x => { FubuRequest.Set(task.Result); action(); }, TaskContinuationOptions.NotOnFaulted | TaskContinuationOptions.AttachedToParent); }
protected override void InnerInvoke(Action <IActionBehavior> behaviorAction) { var task = FubuRequest.Get <Task <T> >(); task.ContinueWith(x => { FubuRequest.Set(task.Result); behaviorAction(InsideBehavior); }, TaskContinuationOptions.NotOnFaulted | TaskContinuationOptions.AttachedToParent); }
public override void InvokePartial() { internalInvoke <Task <T> >(task => FubuRequest.Set(task.Result), x => x.InvokePartial()); }