Exemplo n.º 1
0
        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);
        }
Exemplo n.º 2
0
        protected override void invoke(Action action)
        {
            var task = FubuRequest.Get <Task <T> >();

            task.ContinueWith(x =>
            {
                FubuRequest.Set(task.Result);
                action();
            }, TaskContinuationOptions.NotOnFaulted | TaskContinuationOptions.AttachedToParent);
        }