WebServiceHandler.cs 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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.Services;
  13. namespace System.Web.Services.Protocols
  14. {
  15. internal class WebServiceHandler: IHttpHandler
  16. {
  17. Type _type;
  18. public WebServiceHandler (Type type)
  19. {
  20. _type = type;
  21. }
  22. public Type ServiceType
  23. {
  24. get { return _type; }
  25. }
  26. public virtual bool IsReusable
  27. {
  28. get { return false; }
  29. }
  30. public virtual void ProcessRequest (HttpContext context)
  31. {
  32. }
  33. protected object CreateServerInstance ()
  34. {
  35. return Activator.CreateInstance (ServiceType);
  36. }
  37. [MonoTODO]
  38. protected IAsyncResult BeginCoreProcessRequest (AsyncCallback callback, object o)
  39. {
  40. throw new NotImplementedException ();
  41. }
  42. [MonoTODO]
  43. protected void CoreProcessRequest ()
  44. {
  45. throw new NotImplementedException ();
  46. }
  47. [MonoTODO]
  48. protected void EndCoreProcessRequest (IAsyncResult result)
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. [MonoTODO]
  53. private void WriteReturns (object[] returnValues)
  54. {
  55. //protocol.WriteReturns (returnValues, outputStream);
  56. throw new NotImplementedException ();
  57. }
  58. }
  59. }