Created
June 7, 2011 22:50
-
-
Save emiaj/1013370 to your computer and use it in GitHub Desktop.
NestedStructureMapContainerBehavior
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 void Invoke() | |
| { | |
| using (IContainer nested = _container.GetNestedContainer()) | |
| { | |
| nested.Configure(x=> _arguments.EachService((type, value) => x.For(type).Use(value))); | |
| var behavior = nested.GetInstance<IActionBehavior>(_behaviorId.ToString()); | |
| behavior.Invoke(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment