ServerProtocol.cs 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  1. //
  2. // System.Web.Services.Protocols.ServerProtocol.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.IO;
  10. using System.Web;
  11. using System.Web.Services;
  12. namespace System.Web.Services.Protocols {
  13. [MonoTODO ("Figure out what this class does.")]
  14. internal abstract class ServerProtocol {
  15. HttpContext _context;
  16. #region Constructors
  17. internal ServerProtocol (HttpContext context)
  18. {
  19. _context = context;
  20. }
  21. protected ServerProtocol ()
  22. {
  23. throw new NotImplementedException ();
  24. }
  25. #endregion
  26. #region Properties
  27. public HttpContext Context {
  28. get { return _context; }
  29. }
  30. public abstract bool IsOneWay {
  31. get;
  32. }
  33. public abstract LogicalMethodInfo MethodInfo {
  34. get;
  35. }
  36. [MonoTODO]
  37. public virtual Exception OnewayInitException {
  38. get { throw new NotImplementedException (); }
  39. }
  40. public HttpRequest Request {
  41. get { return _context.Request; }
  42. }
  43. public HttpResponse Response {
  44. get { return _context.Response; }
  45. }
  46. #endregion
  47. #region Methods
  48. [MonoTODO]
  49. protected void AddToCache (Type t1, Type t2, object o)
  50. {
  51. throw new NotImplementedException ();
  52. }
  53. [MonoTODO]
  54. public virtual void CreateServerInstance ()
  55. {
  56. throw new NotImplementedException ();
  57. }
  58. [MonoTODO]
  59. public virtual void DisposeServerInstance ()
  60. {
  61. throw new NotImplementedException ();
  62. }
  63. [MonoTODO]
  64. public string GenerateFaultString (Exception exception)
  65. {
  66. throw new NotImplementedException ();
  67. }
  68. [MonoTODO]
  69. protected object GetFromCache (Type t1, Type t2)
  70. {
  71. throw new NotImplementedException ();
  72. }
  73. public abstract bool Initialize ();
  74. public abstract object[] ReadParameters ();
  75. [MonoTODO]
  76. public virtual bool WriteException (Exception e, Stream outputStream)
  77. {
  78. throw new NotImplementedException ();
  79. }
  80. [MonoTODO]
  81. public void WriteOneWayResponse ()
  82. {
  83. throw new NotImplementedException ();
  84. }
  85. public abstract void WriteReturns (object[] returnValues, Stream outputStream);
  86. #endregion
  87. }
  88. }