In a core assembly, which is run both in a windows service, and in a web application, I need to store information per user session. The service will have a single user sessi
if(HttpRuntime.AppDomainAppId != null) { //is web app } else { //is windows app }