1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Routing;
using System.Web.Security;
using CLOUDWEB;
 
namespace CLOUDWEB
{
    public class Global : HttpApplication
    {
        void Application_Start(object sender, EventArgs e)
        {
            // 在应用程序启动时运行的代码
            AuthConfig.RegisterOpenAuth();
            RouteConfig.RegisterRoutes(RouteTable.Routes);
        }
 
        void Application_End(object sender, EventArgs e)
        {
            //  在应用程序关闭时运行的代码
 
        }
 
        void Application_Error(object sender, EventArgs e)
        {
            // 在出现未处理的错误时运行的代码
 
        }
    }
}