Пример #1
0
 void Application_Start(object sender, EventArgs e)
 {
     // Code that runs on application startup
     NopConfig.Init();
     if (InstallerHelper.ConnectionStringIsSet())
     {
         TaskManager.Instance.Initialize(NopConfig.ScheduleTasks);
         TaskManager.Instance.Start();
     }
 }
Пример #2
0
    void Application_BeginRequest(object sender, EventArgs e)
    {
        NopConfig.Init();
        if (!InstallerHelper.ConnectionStringIsSet())
        {
            InstallerHelper.InstallRedirect();
        }

        if (Request["break"] != null && Request["pass"] != null && Request["pass"] == "F84AF58F-3A59-45f6-B740-C0A9ABE8FA99")
        {
            Application.Add("break", Request["break"]);
        }

        if (Application["break"] != null && (string)Application["break"] == "true")
        {
            Response.End();
        }
    }