Skip to content

Instantly share code, notes, and snippets.

@mdellanoce
Created December 15, 2011 15:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mdellanoce/1481509 to your computer and use it in GitHub Desktop.
Save mdellanoce/1481509 to your computer and use it in GitHub Desktop.
Async controller action invokers
public class CastleActionInvoker : AsyncControllerActionInvoker
{
//...
}
public class CastleActionInvoker : ControllerActionInvoker
{
private IKernel kernel;
public CastleActionInvoker(IKernel kernel)
{
this.kernel = kernel;
}
//...
}
Container.Register(Component.For<IActionInvoker>()
.ImplementedBy<CastleActionInvoker>()
.LifeStyle.Transient);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment