* HttpClientChannel.cs: Changed text for user-agent header (removed references
[mono.git] / mcs / class / System.Runtime.Remoting / System.Runtime.Remoting.Channels.Http / HttpThread.cs
1 //
2 // System.Runtime.Remoting.Channels.Http.HttpThread
3 //
4 // Authors:
5 //              Ahmad Tantawy (popsito82@hotmail.com)
6 //              Ahmad Kadry (kadrianoz@hotmail.com)
7 //              Hussein Mehanna (hussein_mehanna@hotmail.com)
8 //
9 // (C) 2003 Ximian, Inc.
10 //
11
12 using System;
13 using System.Threading;
14
15 namespace System.Runtime.Remoting.Channels.Http
16 {
17
18         internal class HttpThread
19         {
20                 RequestArguments reqArg;
21                 public HttpThread(object Object)
22                 {
23                         if(Object as RequestArguments == null)
24                                 return;
25
26                         reqArg = (RequestArguments)Object;
27
28                         Thread proc = new Thread(new ThreadStart(ProcessRequest));
29                         proc.IsBackground = true;
30                         proc.Start();
31
32                 }
33                 private void ProcessRequest()
34                 {
35                         HttpServer.ProcessRequest(reqArg);
36                 }
37         }
38 }