Microsoft.Azure.WebJobs.Script.WebHost.WebApiApplication.Application_End C# (CSharp) Method

Application_End() protected method

protected Application_End ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        protected void Application_End(object sender, EventArgs e)
        {
            WebScriptHostManager webScriptHostManager = GlobalConfiguration.Configuration.DependencyResolver.GetService<WebScriptHostManager>();
            if (webScriptHostManager != null)
            {
                webScriptHostManager.Stop();
                webScriptHostManager.Dispose();
            }
        }
    }