mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-17 11:21:39 -10:00
HttpServerChannel.cs, HttpThread.cs: added new implementation of the HttpChannel by Ahmad Tantawy, Ahmad Kadry and Hussein Mehanna. svn path=/trunk/mcs/; revision=15533
39 lines
710 B
C#
39 lines
710 B
C#
//
|
|
// System.Runtime.Remoting.Channels.Http.HttpThread
|
|
//
|
|
// Authors:
|
|
// Ahmad Tantawy ([email protected])
|
|
// Ahmad Kadry ([email protected])
|
|
// Hussein Mehanna ([email protected])
|
|
//
|
|
// (C) 2003 Ximian, Inc.
|
|
//
|
|
|
|
using System;
|
|
using System.Threading;
|
|
|
|
namespace System.Runtime.Remoting.Channels.Http
|
|
{
|
|
|
|
internal class HttpThread
|
|
{
|
|
RequestArguments reqArg;
|
|
public HttpThread(object Object)
|
|
{
|
|
if(Object as RequestArguments == null)
|
|
return;
|
|
|
|
reqArg = (RequestArguments)Object;
|
|
|
|
Thread proc = new Thread(new ThreadStart(ProcessRequest));
|
|
proc.IsBackground = true;
|
|
proc.Start();
|
|
|
|
}
|
|
private void ProcessRequest()
|
|
{
|
|
HttpServer.ProcessRequest(reqArg);
|
|
}
|
|
}
|
|
}
|