Abidar.Example.Global.Application_Start C# (CSharp) Method

Application_Start() private method

private Application_Start ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        void Application_Start(object sender, EventArgs e)
        {
            XmlDocument xml = new XmlDocument();
            xml.Load(Server.MapPath(@"\config\tasks.config"));
            XmlNodeList nodes = xml.SelectNodes("Tasks/Task");

            this._scheduler = new TaskScheduler(nodes);
            this._scheduler.StartTasks();
        }