Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
executable file 33 lines (27 sloc) 1.07 KB
using System;
using FubuMVC.Core.Runtime;
namespace FubuMVC.Core.Behaviors
public class OneInOneOutActionInvoker<TController, TInput, TOutput> : BasicBehavior where TInput : class
where TOutput : class
private readonly Func<TController, TInput, TOutput> _action;
private readonly TController _controller;
private readonly IFubuRequest _request;
public OneInOneOutActionInvoker(IFubuRequest request, TController controller,
Func<TController, TInput, TOutput> action)
: base(PartialBehavior.Executes)
_request = request;
_controller = controller;
_action = action;
protected override DoNext performInvoke()
var input = _request.Get<TInput>();
TOutput output = _action(_controller, input);
return DoNext.Continue;
Jump to Line
Something went wrong with that request. Please try again.