- use appservices for your third party integration.
- you cannot use web based references (eg: IHostingEnvironment) in Application or Core layer. This breaks layer isolation. you can use
appsettings.Development.json
orappsettings.Staging.json
for your different environments. asp.net automatically reads settings from the corresponding environment. but if you have extra requirement that's related to web layer. you can pass it as a parameter to your appservice method from web layer.
↧
Answer by Alper Ebicoglu for Third party API and IHostingEnvironment in Application layer?
↧