Created
January 22, 2021 04:27
-
-
Save nosavvy33/b1a97a894687447d6b10492bb32eec5e 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
| // in Startup.cs | |
| public void ConfigureServices(IServiceCollection services) | |
| { | |
| services.AddSingleton<IPrinter, PrinterService>(); | |
| services.AddSingleton<ICalculator, CalculatorService>(); | |
| services.AddControllers(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment