Last active
May 28, 2019 13:26
-
-
Save mczachurski/8f7313f9ee0be80bfbc97d5a367d0606 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 serviceAssembly = typeof(IGraphQLType).GetTypeInfo().Assembly; | |
| builder.RegisterAssemblyTypes(serviceAssembly) | |
| .Where(t => t.GetInterfaces() | |
| .Any(i => i.IsAssignableFrom(typeof (IGraphQLType)))) | |
| .AsSelf(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment