[LoongArch64] Part-5:add loongarch support in some files for LoongArch64. (#21769)
[mono-project.git] / mcs / class / System.Web.Services / System.Web.Services.Description / OperationBinding.cs
blob94de316873ce1ac6bbac565b4666482da891f036
1 //
2 // System.Web.Services.Description.OperationBinding.cs
3 //
4 // Author:
5 // Tim Coleman (tim@timcoleman.com)
6 //
7 // Copyright (C) Tim Coleman, 2002
8 //
11 // Permission is hereby granted, free of charge, to any person obtaining
12 // a copy of this software and associated documentation files (the
13 // "Software"), to deal in the Software without restriction, including
14 // without limitation the rights to use, copy, modify, merge, publish,
15 // distribute, sublicense, and/or sell copies of the Software, and to
16 // permit persons to whom the Software is furnished to do so, subject to
17 // the following conditions:
18 //
19 // The above copyright notice and this permission notice shall be
20 // included in all copies or substantial portions of the Software.
21 //
22 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
23 // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
24 // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
25 // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
26 // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
27 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
28 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
31 using System.Web.Services.Configuration;
32 using System.Xml.Serialization;
34 namespace System.Web.Services.Description {
35 [XmlFormatExtensionPoint ("Extensions")]
36 public sealed class OperationBinding :
37 NamedItem
39 #region Fields
41 Binding binding;
42 ServiceDescriptionFormatExtensionCollection extensions;
43 FaultBindingCollection faults;
44 InputBinding input;
45 OutputBinding output;
47 #endregion // Fields
49 #region Constructors
51 public OperationBinding ()
53 extensions = new ServiceDescriptionFormatExtensionCollection (this);
54 faults = new FaultBindingCollection (this);
55 input = null;
56 output = null;
59 #endregion // Constructors
61 #region Properties
63 // [XmlIgnore]
64 public Binding Binding {
65 get { return binding; }
68 [XmlIgnore]
69 public
70 override
71 ServiceDescriptionFormatExtensionCollection Extensions {
72 get { return extensions; }
75 [XmlElement ("fault")]
76 public FaultBindingCollection Faults {
77 get { return faults; }
80 [XmlElement ("input")]
81 public InputBinding Input {
82 get { return input; }
83 set {
84 input = value;
85 if (input != null)
86 input.SetParent (this);
91 [XmlElement ("output")]
92 public OutputBinding Output {
93 get { return output; }
94 set {
95 output = value;
96 if (output != null)
97 output.SetParent (this);
101 #endregion // Properties
103 #region Methods
105 internal void SetParent (Binding binding)
107 this.binding = binding;
110 #endregion