Created
April 6, 2020 06:26
-
-
Save ayende/be77fdef629db70063cc9d5c79fffacf 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
serviceAssemblies = ( Assembly.Load("MyApp"), ) | |
for asm in serviceAssemblies: | |
for type in asm.GetTypes(): | |
continue unless type.NameSpace == "MyApp.Services" | |
continue if type.IsInterface or type.IsAbstract or type.GetInterfaces().Length == 0 | |
Component(type.FullName, type.GetInterfaces()[0], type) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment