-
-
Save configureappio/e2afd62b066f48196b94892c4f2fe8e2 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
services.AddScoped<IAppSettingsResolved, MyAppSettingsBridge>(); | |
// add the other interfaces implemented by MyAppSettingsBridge to allow for resolution by those interfaces (interface segregation) | |
services.AddScoped<IAppSettings>(provider => provider.GetService<IAppSettingsResolved>()); | |
services.AddScoped<ISqlConnectionSettings>(provider => provider.GetService<IAppSettingsResolved>()); | |
services.AddScoped<IOracleConnectionSettings>(provider => provider.GetService<IAppSettingsResolved>()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment