Quantcast
Viewing all articles
Browse latest Browse all 2

Answer by Alper Ebicoglu for Third party API and IHostingEnvironment in Application layer?

  • 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 or appsettings.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.

Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>