如何在 ASP.Net Web 服务重新安装期间保留不可序列化的对象?
我有一个正在运行 ASP.Net Web 服务的 IIS,我需要不时升级它。
有一个不可序列化对象的集合,我想在重新安装期间保持它的活动状态。
我无法将其放入数据库。
我是否应该使用一些备用进程或服务来保留它们,直到安装新的 Web 服务实例?
我是否应该将所有功能分离到库中以升级并将数据保存在 global.asax 中?
或者也许有更好的方法来处理这个问题?
谢谢你!
I have an IIS with ASP.Net web service running, I need to upgrade it from time to time.
There is a collection of non-serializable objects and I would like to keep it alive during reinstall.
I can't put it into database.
Should I use some aside process or service to keep them till new instance of web service will be installed?
Should I separate all functionality into libraries to upgrade and keep data in global.asax?
Or maybe there is a better way to handle this issue?
Thank you!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想说,如果您有需要在 Web 服务生命周期之外生存的进程,您应该将它们保留在可以控制进程生命周期的进程中。我会推荐一个 Windows 服务,您可以在其中控制服务何时出现和消失。
I would say if you have processes that need to live outside of the life-cycle of the web service you should keep them in a process where you can control the process life cycle. I would recommend a windows service where you can control when the service comes and goes.