OperationMessageCollection.cs 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  1. //
  2. // System.Web.Services.Description.OperationMessageCollection.cs
  3. //
  4. // Author:
  5. // Tim Coleman ([email protected])
  6. //
  7. // Copyright (C) Tim Coleman, 2002
  8. //
  9. using System.Web.Services;
  10. namespace System.Web.Services.Description {
  11. public sealed class OperationMessageCollection : ServiceDescriptionBaseCollection {
  12. #region Fields
  13. Operation operation;
  14. #endregion // Fields
  15. #region Constructors
  16. internal OperationMessageCollection (Operation operation)
  17. {
  18. this.operation = operation;
  19. }
  20. #endregion // Constructors
  21. #region Properties
  22. public OperationFlow Flow {
  23. [MonoTODO]
  24. get { throw new NotImplementedException (); }
  25. }
  26. public OperationInput Input {
  27. [MonoTODO]
  28. get { throw new NotImplementedException (); }
  29. }
  30. public OperationMessage this [int index] {
  31. get { return (OperationMessage) List[index]; }
  32. set { List[index] = value; }
  33. }
  34. public OperationOutput Output {
  35. [MonoTODO]
  36. get { throw new NotImplementedException (); }
  37. }
  38. #endregion // Properties
  39. #region Methods
  40. public int Add (OperationMessage operationMessage)
  41. {
  42. Insert (Count, operationMessage);
  43. return (Count - 1);
  44. }
  45. public bool Contains (OperationMessage operationMessage)
  46. {
  47. return List.Contains (operationMessage);
  48. }
  49. public void CopyTo (OperationMessage[] array, int index)
  50. {
  51. List.CopyTo (array, index);
  52. }
  53. public int IndexOf (OperationMessage operationMessage)
  54. {
  55. return List.IndexOf (operationMessage);
  56. }
  57. public void Insert (int index, OperationMessage operationMessage)
  58. {
  59. SetParent (operationMessage, operation);
  60. List.Insert (index, operationMessage);
  61. }
  62. [MonoTODO]
  63. protected override void OnInsert (int index, object value)
  64. {
  65. throw new NotImplementedException ();
  66. }
  67. [MonoTODO]
  68. protected override void OnSet (int index, object oldValue, object newValue)
  69. {
  70. throw new NotImplementedException ();
  71. }
  72. [MonoTODO]
  73. protected override void OnValidate (object value)
  74. {
  75. throw new NotImplementedException ();
  76. }
  77. public void Remove (OperationMessage operationMessage)
  78. {
  79. List.Remove (operationMessage);
  80. }
  81. protected override void SetParent (object value, object parent)
  82. {
  83. ((OperationMessage) value).SetParent ((Operation) parent);
  84. }
  85. #endregion // Methods
  86. }
  87. }