如何触发ASP.NET应用程序启动,重新启动,在IIS上停止?
我有一个在IIS上托管的ASP.NET应用程序,并且正在尝试通过代码中触发此事件的方法:开始,重新启动,关闭。
我正在使用:
- .NET SDK 4.7.2
- .NET CORE 3.0
我看到允许这样做的大多数接口(iHostapplicationLifetime,...)都可以在我的配置上注明
I have an ASP.NET application hosted on IIS and I'm trying to fin a way to trigger this events in my code: Start, Restart, Shutdown.
I'm using :
- .Net SDK 4.7.2
- .Net core 3.0
I see that most of interfaces allowing to do this (IHostApplicationLifetime, ...) are note available on my configuration
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论