HttpThread.cs 710 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. //
  2. // System.Runtime.Remoting.Channels.Http.HttpThread
  3. //
  4. // Authors:
  5. // Ahmad Tantawy ([email protected])
  6. // Ahmad Kadry ([email protected])
  7. // Hussein Mehanna ([email protected])
  8. //
  9. // (C) 2003 Ximian, Inc.
  10. //
  11. using System;
  12. using System.Threading;
  13. namespace System.Runtime.Remoting.Channels.Http
  14. {
  15. internal class HttpThread
  16. {
  17. RequestArguments reqArg;
  18. public HttpThread(object Object)
  19. {
  20. if(Object as RequestArguments == null)
  21. return;
  22. reqArg = (RequestArguments)Object;
  23. Thread proc = new Thread(new ThreadStart(ProcessRequest));
  24. proc.IsBackground = true;
  25. proc.Start();
  26. }
  27. private void ProcessRequest()
  28. {
  29. HttpServer.ProcessRequest(reqArg);
  30. }
  31. }
  32. }