Last active
February 11, 2020 20:12
-
-
Save NikitaChizhov/87e1316aa66b5e951548d871b48f5c60 to your computer and use it in GitHub Desktop.
This file contains 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
public void ConfigureServices(IServiceCollection services) | |
{ | |
services | |
.AddLogging(configure => | |
{ | |
configure.AddConsole(); | |
configure.SetMinimumLevel(LogLevel.Information); | |
}) | |
.AddSingleton<IImportantDataProvider, ImportantDataProvider>() | |
.AddSingleton<IExampleService, ExampleService>() | |
.Decorate<IExampleService, ExampleServiceClassicDecorator>() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment