Created
July 12, 2010 21:24
-
-
Save underwhelmed/473080 to your computer and use it in GitHub Desktop.
This file contains 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 Bootstrapper | |
Public Shared Sub BootstrapStructureMap() | |
ObjectFactory.Initialize(AddressOf AutoRegisterStructureMap) | |
End Sub | |
Private Shared Sub AutoRegisterStructureMap(ByVal s As IInitializationExpression) | |
s.Scan(AddressOf ScanAssemblies) | |
End Sub | |
Private Shared Sub ScanAssemblies(ByVal scanner As IAssemblyScanner) | |
scanner.TheCallingAssembly() | |
scanner.WithDefaultConventions() | |
End Sub | |
End Class |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment