Does AbpModule have access to appsettings.json Configuration?
I mean something like this:
var temp = Configuration["Json_Tag_In_Appsettings "];
I dont wanna use the following:
public class TFWExtensionsModule : AbpModule
{
private readonly IConfigurationRoot _appConfiguration;
public TFWExtensionsModule(IHostingEnvironment env)
{
_appConfiguration = env.GetAppConfiguration();
}
...
}
because I don't have access to GetAppConfiguration method. I have deleted it. I wanna handle this just using AbpModule properties. is it possible?
@abolfazlmohammadiseif AbpModule exists in kernel module named Abp and that module can't use IHostingEnvironment because this interface is realted to AspNetCore and kernel module shouln't depend on AspNetCore because it's web realted. We don't want kernel module specific to web right?:)
You can use ConfigurationManager class as it has been used here.
@abolfazlmohammadiseif if my comment was answer to your question, could you please close the issue?
yes @iyilm4z thank you very much