I'm developing an ASP.NET Core MVC app, the requirement here is the user wants to have the app both online and as local as well in sync, so when the internet connection is not available the domain redirects the users to the local server and when the internet connection comes back try to use the online version with sync of local server data to the online one, the question here is there any workaround to check for internet connectivity in IIS to determine the domain name redirects the user to online or offline version?
Thanks in advance