Port.cs 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. //
  2. // System.Web.Services.Description.Port.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Web.Services.Configuration;
  10. using System.Xml;
  11. using System.Xml.Serialization;
  12. namespace System.Web.Services.Description {
  13. [XmlFormatExtensionPoint ("Extensions")]
  14. public sealed class Port : DocumentableItem {
  15. #region Fields
  16. XmlQualifiedName binding;
  17. ServiceDescriptionFormatExtensionCollection extensions;
  18. string name;
  19. Service service;
  20. #endregion // Fields
  21. #region Constructors
  22. public Port ()
  23. {
  24. binding = null;
  25. extensions = new ServiceDescriptionFormatExtensionCollection (this);
  26. name = String.Empty;
  27. service = null;
  28. }
  29. #endregion // Constructors
  30. #region Properties
  31. [XmlAttribute ("binding")]
  32. public XmlQualifiedName Binding {
  33. get { return binding; }
  34. set { binding = value; }
  35. }
  36. [XmlIgnore]
  37. public ServiceDescriptionFormatExtensionCollection Extensions {
  38. get { return extensions; }
  39. }
  40. [XmlAttribute ("name", DataType = "NCName")]
  41. public string Name {
  42. get { return name; }
  43. set { name = value; }
  44. }
  45. public Service Service {
  46. get { return service; }
  47. }
  48. #endregion // Properties
  49. #region Methods
  50. internal void SetParent (Service service)
  51. {
  52. this.service = service;
  53. }
  54. #endregion
  55. }
  56. }