mirror of
https://github.com/BepInEx/mono.git
synced 2026-11-19 01:31:17 -10:00
Operation.cs, OperationBinding.cs, OperationMessage.cs, Port.cs, PortType.cs, Service.cs: Added XmlIgnore attributes to properties referencing parent objects. * OperationMessageCollection.cs: Fixed wrong OnInsert method * ServiceDescription.cs: Removed unneeded methods in ServiceDescriptionSerializer. svn path=/trunk/mcs/; revision=16521
71 lines
1.4 KiB
C#
71 lines
1.4 KiB
C#
//
|
|
// System.Web.Services.Description.Service.cs
|
|
//
|
|
// Author:
|
|
// Tim Coleman ([email protected])
|
|
//
|
|
// Copyright (C) Tim Coleman, 2002
|
|
//
|
|
|
|
using System.Xml.Serialization;
|
|
|
|
namespace System.Web.Services.Description {
|
|
public sealed class Service : DocumentableItem {
|
|
|
|
#region Fields
|
|
|
|
ServiceDescriptionFormatExtensionCollection extensions;
|
|
string name;
|
|
PortCollection ports;
|
|
ServiceDescription serviceDescription;
|
|
|
|
#endregion // Fields
|
|
|
|
#region Constructors
|
|
|
|
public Service ()
|
|
{
|
|
extensions = new ServiceDescriptionFormatExtensionCollection (this);
|
|
name = String.Empty;
|
|
ports = new PortCollection (this);
|
|
serviceDescription = null;
|
|
}
|
|
|
|
#endregion // Constructors
|
|
|
|
#region Properties
|
|
|
|
[XmlIgnore]
|
|
public ServiceDescriptionFormatExtensionCollection Extensions {
|
|
get { return extensions; }
|
|
}
|
|
|
|
[XmlAttribute ("name", DataType = "NCName")]
|
|
public string Name {
|
|
get { return name; }
|
|
set { name = value; }
|
|
}
|
|
|
|
[XmlElement ("port")]
|
|
public PortCollection Ports {
|
|
get { return ports; }
|
|
}
|
|
|
|
[XmlIgnore]
|
|
public ServiceDescription ServiceDescription {
|
|
get { return serviceDescription; }
|
|
}
|
|
|
|
#endregion // Properties
|
|
|
|
#region Methods
|
|
|
|
internal void SetParent (ServiceDescription serviceDescription)
|
|
{
|
|
this.serviceDescription = serviceDescription;
|
|
}
|
|
|
|
#endregion // Methods
|
|
}
|
|
}
|