-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move all projects to generic host & remove IConfigurationAccessor usage. #1894
Conversation
hi @hikalkan Currently using the following method to get
Although can inject |
Can you try this in ConfigureServices: |
Actually I tried. I can't get
|
OK, let me check this. |
var config = context.Services.GetSingletonInstanceOrNull<HostBuilderContext>().Configuration should work. I changed services.GetConfiguration() to use the code above (see 0f24054), so you can use context.Services.GetConfiguration() just like before in ConfigureServices method. Merge dev to your branch to be able to use it. |
All done. |
This resolve #1888 , resolve #1094
Refactoring
AbpAspNetCoreIntegratedTestBase
based on generic WebHosthttps://github.com/abpframework/abp/pull/1894/files#diff-2bdeefcb05a7d19d5c4233f0ebc10c12R24