Skip to content

Instantly share code, notes, and snippets.

@kasunkv
Created May 1, 2019 16:36
Show Gist options
  • Save kasunkv/097d8216c01af08085f4231591d70a6f to your computer and use it in GitHub Desktop.
Save kasunkv/097d8216c01af08085f4231591d70a6f to your computer and use it in GitHub Desktop.
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