Title is pretty much it. The DLL that has the logic that differs depending if this is website or some other app type. In the framework we often used HttpContext.Current. We could also retrieve request from it. I looked at different docs, like RuntimeInformation, System.Runtime.Hosting and others.
Is there a proper way to determine that?