DiscoveryReference.cs 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. //
  2. // System.Web.Services.Discovery.DiscoveryReference.cs
  3. //
  4. // Author:
  5. // Dave Bettin ([email protected])
  6. //
  7. // Copyright (C) Dave Bettin, 2002
  8. //
  9. using System.IO;
  10. using System.Xml.Serialization;
  11. namespace System.Web.Services.Discovery {
  12. public abstract class DiscoveryReference {
  13. #region Fields
  14. private string defaultFilename;
  15. private DiscoveryClientProtocol clientProtocol;
  16. #endregion // Fields
  17. #region Constructors
  18. [MonoTODO]
  19. protected DiscoveryReference ()
  20. {
  21. throw new NotImplementedException ();
  22. }
  23. #endregion // Constructors
  24. #region Properties
  25. [XmlIgnore]
  26. public DiscoveryClientProtocol ClientProtocol {
  27. get { return clientProtocol; }
  28. set { clientProtocol = value; }
  29. }
  30. [XmlIgnore]
  31. public virtual string DefaultFilename {
  32. get { return defaultFilename; }
  33. }
  34. [XmlIgnore]
  35. public abstract string Url {
  36. get;
  37. set;
  38. }
  39. #endregion // Properties
  40. #region Methods
  41. [MonoTODO]
  42. protected static string FilenameFromUrl (string url)
  43. {
  44. throw new NotImplementedException ();
  45. }
  46. public abstract object ReadDocument (Stream stream);
  47. [MonoTODO]
  48. public void Resolve ()
  49. {
  50. throw new NotImplementedException ();
  51. }
  52. protected internal abstract void Resolve (string contentType, Stream stream);
  53. public abstract void WriteDocument (object document, Stream stream);
  54. #endregion // Methods
  55. }
  56. }