c# - How to make request to the MVC API application after the machine is restarted?
问题描述
I have a MVC API Application and its hosted on my local machine IIS(8.0), In that application I am feeding some other api with the real time data, All works fine until the system is not restarted(or app pool is not restarted/recycled). Is there any way through which I can call my global.asax Application _start event just after the system is restarted.
Note: I don't want to use a window service.
Code Snippets of Global.asax :
protected void Application_Start()
{
DadBal dad = new DadBal();
dad.WriteLogs("App-Started" + DateTime.Now.ToString(), "AppInit");
}
解决方案
推荐阅读
- javascript - Microsoft graph 发送带有附件的电子邮件
- flutter - 在 AppBar 中使用构建函数
- python - 将每行的值求和为布尔值(PySpark)
- java - 没有可用选项时如何在 Eclipse 中构建 Java 项目
- javascript - Express 服务器未向客户端发送响应(使用 fetch)
- tensorflow - 神经网络可以处理冗余输入吗?
- php - 如何让这个 php foreach 解析所有
条目? - sql - S3选择查询不识别数据
- node.js - 如何在 NodeJS 中等待多个异步函数,然后将它们全部返回以更新 Firestore 文档?
- java - 我正在尝试更新表的值 SQL 在 Java 中有错误