Created
May 1, 2019 16:36
-
-
Save kasunkv/097d8216c01af08085f4231591d70a6f 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
services.TryAddEnumerable(ServiceDescriptor.Scoped<IThreeService, ThreeService>()); | |
// or | |
services.TryAddEnumerable(new[] { | |
ServiceDescriptor.Scoped<IThreeService, ThreeService>(), | |
ServiceDescriptor.Scoped<IThreeService, AwesomeThreeService>(), | |
ServiceDescriptor.Scoped<IThreeService, SuperAwesomeThreeService>() | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment