WebServiceHandler.cs 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. //
  2. // System.Web.Services.Protocols.WebServiceHandler.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. // Lluis Sanchez Gual ([email protected])
  7. //
  8. // Copyright (C) Tim Coleman, 2002
  9. //
  10. using System;
  11. using System.Reflection;
  12. using System.Web;
  13. using System.Web.Services;
  14. namespace System.Web.Services.Protocols
  15. {
  16. internal class WebServiceHandler: IHttpHandler
  17. {
  18. Type _type;
  19. HttpContext _context;
  20. public WebServiceHandler (Type type)
  21. {
  22. _type = type;
  23. }
  24. public Type ServiceType
  25. {
  26. get { return _type; }
  27. }
  28. public virtual bool IsReusable
  29. {
  30. get { return false; }
  31. }
  32. protected HttpContext Context {
  33. set { _context = value; }
  34. }
  35. public virtual void ProcessRequest (HttpContext context)
  36. {
  37. }
  38. protected object CreateServerInstance ()
  39. {
  40. WebService ws = (WebService) Activator.CreateInstance (ServiceType);
  41. ws.SetContext (_context);
  42. return ws;
  43. }
  44. [MonoTODO]
  45. protected IAsyncResult BeginCoreProcessRequest (AsyncCallback callback, object o)
  46. {
  47. throw new NotImplementedException ();
  48. }
  49. [MonoTODO]
  50. protected void CoreProcessRequest ()
  51. {
  52. throw new NotImplementedException ();
  53. }
  54. [MonoTODO]
  55. protected void EndCoreProcessRequest (IAsyncResult result)
  56. {
  57. throw new NotImplementedException ();
  58. }
  59. [MonoTODO]
  60. private void WriteReturns (object[] returnValues)
  61. {
  62. //protocol.WriteReturns (returnValues, outputStream);
  63. throw new NotImplementedException ();
  64. }
  65. }
  66. }