Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save underwhelmed/473080 to your computer and use it in GitHub Desktop.
Save underwhelmed/473080 to your computer and use it in GitHub Desktop.
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