File: global.asax

package info (click to toggle)
xsp 4.2-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 5,168 kB
  • ctags: 2,422
  • sloc: cs: 13,500; sh: 12,082; xml: 8,279; makefile: 650; perl: 619; ansic: 299; php: 6
file content (41 lines) | stat: -rw-r--r-- 980 bytes parent folder | download | duplicates (3)
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
33
34
35
36
37
38
39
40
41
<%@ Import Namespace="System.IO" %>
<script runat="server" language="c#" >
	static object appV2 = null;

	void Application_Start (object o, EventArgs args)
	{
		Console.WriteLine ("Application_Start");
	        Type type;

		type = Type.GetType ("Samples.Application, App_Code", false);
		if (type != null)
			appV2 = Activator.CreateInstance (type, new object[] {HttpContext.Current});
	}

	void SetMissingComponents ()
	{
	        Application.Lock ();
	        Application.Add ("MissingComponentsFlag", true);
	        Application.UnLock ();
	}

	void SetShowingMissingComponents ()
	{
	        Application.Lock ();
	        Application.Add ("ShowingMissingComponentsFlag", true);
	        Application.UnLock ();
	}
	void MissingComponents ()
	{
	        Response.Redirect ("/missing_components.aspx");
	}

	void Application_End (object o, EventArgs args)
	{
		Console.WriteLine ("Application_End");
	}

	void Application_BeginRequest (object o, EventArgs args)
	{
	}
</script>