Created
February 11, 2020 21:04
-
-
Save NikitaChizhov/190ea2a4826e83f0426e196cafe91b6b 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>() | |
.DecorateWithDispatchProxy<IExampleService, DispatchProxyLoggingDecorator<IExampleService>>() | |
.AddSingleton<ExampleConsumer>(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment