DiscoveryClientResult.cs 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //
  2. // System.Web.Services.Disocvery.DiscoveryClientResult.cs
  3. //
  4. // Author:
  5. // Dave Bettin ([email protected])
  6. // Lluis Sanchez Gual ([email protected])
  7. //
  8. // Copyright (C) Dave Bettin, 2002
  9. //
  10. using System.Xml.Serialization;
  11. namespace System.Web.Services.Discovery {
  12. public sealed class DiscoveryClientResult {
  13. #region Fields
  14. private string filename;
  15. private string referenceTypeName;
  16. private string url;
  17. #endregion // Fields
  18. #region Constructors
  19. public DiscoveryClientResult ()
  20. {
  21. }
  22. public DiscoveryClientResult (Type referenceType, string url, string filename) : this()
  23. {
  24. this.filename = filename;
  25. this.url = url;
  26. this.referenceTypeName = referenceType.FullName;
  27. }
  28. #endregion // Constructors
  29. #region Properties
  30. [XmlAttribute("filename")]
  31. public string Filename {
  32. get { return filename; }
  33. set { filename = value; }
  34. }
  35. [XmlAttribute("referenceType")]
  36. public string ReferenceTypeName {
  37. get { return referenceTypeName; }
  38. set { referenceTypeName = value; }
  39. }
  40. [XmlAttribute("url")]
  41. public string Url {
  42. get { return url; }
  43. set { url = value; }
  44. }
  45. #endregion // Properties
  46. }
  47. }