DiscoveryDocumentReference.cs 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. //
  2. // System.Web.Services.Discovery.DiscoveryDocumentReference.cs
  3. //
  4. // Author:
  5. // Dave Bettin ([email protected])
  6. // Tim Coleman ([email protected])
  7. //
  8. // Copyright (C) Dave Bettin, 2002
  9. // Copyright (C) Tim Coleman, 2002
  10. //
  11. using System.IO;
  12. using System.Web.Services.Description;
  13. using System.Xml.Serialization;
  14. namespace System.Web.Services.Discovery {
  15. [XmlRootAttribute("discoveryRef", Namespace="http://schemas.xmlsoap.org/disco/", IsNullable=true)]
  16. public sealed class DiscoveryDocumentReference : DiscoveryReference {
  17. #region Fields
  18. private DiscoveryDocument document;
  19. private string defaultFilename;
  20. private string href;
  21. private string url;
  22. #endregion // Fields
  23. #region Constructors
  24. [MonoTODO]
  25. public DiscoveryDocumentReference ()
  26. {
  27. href = String.Empty;
  28. }
  29. public DiscoveryDocumentReference (string href) : this ()
  30. {
  31. this.href = href;
  32. }
  33. #endregion // Constructors
  34. #region Properties
  35. [XmlIgnore]
  36. public DiscoveryDocument Document {
  37. get { return Document; }
  38. }
  39. [XmlIgnore]
  40. public override string DefaultFilename {
  41. get { return defaultFilename; }
  42. }
  43. [XmlAttribute("ref")]
  44. public string Ref {
  45. get { return href; }
  46. set { href = value; }
  47. }
  48. [XmlIgnore]
  49. public override string Url {
  50. get { return url; }
  51. set { url = value; }
  52. }
  53. #endregion // Properties
  54. #region Methods
  55. [MonoTODO]
  56. public override object ReadDocument (Stream stream)
  57. {
  58. throw new NotImplementedException ();
  59. }
  60. [MonoTODO]
  61. protected internal override void Resolve (string contentType, Stream stream)
  62. {
  63. throw new NotImplementedException ();
  64. }
  65. [MonoTODO]
  66. public void ResolveAll ()
  67. {
  68. throw new NotImplementedException ();
  69. }
  70. [MonoTODO]
  71. public override void WriteDocument (object document, Stream stream)
  72. {
  73. throw new NotImplementedException ();
  74. }
  75. #endregion // Methods
  76. }
  77. }