Created
December 15, 2011 15:33
-
-
Save mdellanoce/1481509 to your computer and use it in GitHub Desktop.
Async controller action invokers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CastleActionInvoker : AsyncControllerActionInvoker | |
{ | |
//... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class CastleActionInvoker : ControllerActionInvoker | |
{ | |
private IKernel kernel; | |
public CastleActionInvoker(IKernel kernel) | |
{ | |
this.kernel = kernel; | |
} | |
//... | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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