Skip to content

Instantly share code, notes, and snippets.

@emiaj
Created June 7, 2011 22:50
Show Gist options
  • Select an option

  • Save emiaj/1013370 to your computer and use it in GitHub Desktop.

Select an option

Save emiaj/1013370 to your computer and use it in GitHub Desktop.
NestedStructureMapContainerBehavior
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