Created
February 12, 2014 21:51
-
-
Save hyrmn/8965246 to your computer and use it in GitHub Desktop.
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
| var bus = BusSetup.StartWith<Conservative>() | |
| .Apply<IoCSupport>(s => s.SetAdapter(new StructureMapAdapter()) | |
| .SetHandlerInterface(typeof(IHandleMessage<>))) | |
| .Construct(); | |
| public class StructureMapAdapter : IocAdapter | |
| { | |
| public IEnumerable<object> GetAllInstances(Type desiredType) | |
| { | |
| return ObjectFactory.GetAllInstances(desiredType).Cast<object>(); | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment