首页 > 解决方案 > 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");


    }

标签: c#asp.net.netasp.net-mvciis

解决方案


推荐阅读