Created
May 7, 2019 15:49
-
-
Save kasunkv/60697583a4ae1c2e7d3c7144a722c7af to your computer and use it in GitHub Desktop.
Register multiple implementations - Method 01
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.AddScoped<IDiscountProcessor, OrderDiscountProcessor>(); | |
services.AddScoped<IDiscount, SeasonalDiscount>(); | |
services.AddScoped<IDiscount, LargeOrderDiscount>(); | |
services.AddScoped<IDiscount, ThreeOrModeDiscount>(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment