How determine if application is web application

后端 未结 5 1434
轻奢々
轻奢々 2020-11-29 06:39

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

5条回答
  •  臣服心动
    2020-11-29 06:58

    In web application Assembly.GetEntryAssembly() is null. I use it in two libraries and so far it works great.

提交回复
热议问题