コード例 #1
0
        protected void Application_End(object sender, EventArgs e)
        {
            BackgroundServicesExecutor backgroundServicesExecutor = (BackgroundServicesExecutor)Application["backgroundServicesExecutor"];

            if (backgroundServicesExecutor != null)
            {
                backgroundServicesExecutor.Stop();
            }
        }
コード例 #2
0
        protected virtual void OnEnd()
        {
            BackgroundServicesExecutor backgroundServicesExecutor = (BackgroundServicesExecutor)Application["backgroundServicesExecutor"];

            if (backgroundServicesExecutor != null)
            {
                backgroundServicesExecutor.Stop();
            }
        }
コード例 #3
0
        public void Cleanup(IDictionary <string, object> state)
        {
            BackgroundServicesExecutor backgroundServicesExecutor = (BackgroundServicesExecutor)(state.ContainsKey("backgroundServicesExecutor") ? state["backgroundServicesExecutor"] : null);

            if (backgroundServicesExecutor != null)
            {
                backgroundServicesExecutor.Stop();
            }
        }