[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / class / System.Web / Test / TestMonoWeb / SyncModule.cs
blob564ad74a486709c5b90618a40083fc68bed725e9
1 using System;
2 using System.Collections;
3 using System.Web;
5 namespace TestMonoWeb
7 public class SyncModule : IHttpModule {
8 public String ModuleName {
9 get { return "HelloWorldModule"; }
11 //In the Init function, register for HttpApplication
12 //events by adding your handlers.
13 public void Init(HttpApplication application) {
14 application.BeginRequest += (new EventHandler(this.Application_BeginRequest));
15 application.EndRequest += (new EventHandler(this.Application_EndRequest));
18 //Your BeginRequest event handler.
19 private void Application_BeginRequest(Object source, EventArgs e) {
20 HttpApplication application = (HttpApplication)source;
21 HttpContext context = application.Context;
23 context.Response.Write("SyncModule.Application_BeginRequest()<br>\n");
26 //Your EndRequest event handler.
27 private void Application_EndRequest(Object source, EventArgs e) {
28 HttpApplication application = (HttpApplication)source;
29 HttpContext context = application.Context;
31 context.Response.Write("SyncModule.Application_EndRequest()<br>\n");
34 public void Dispose() {