[corlib] Remove System.Core security types
[mono.git] / mcs / class / System.Web.Services / System.Web.Services.Description / Service.cs
index 2d2512bdc98226dd2da698fac3939ff420ec9d51..5a0faf8572069c71cd8965f0badfa3a7bbc82b84 100644 (file)
@@ -1,11 +1,11 @@
-// \r
-// System.Web.Services.Description.Service.cs\r
-//\r
-// Author:\r
-//   Tim Coleman (tim@timcoleman.com)\r
-//\r
-// Copyright (C) Tim Coleman, 2002\r
-//\r
+// 
+// System.Web.Services.Description.Service.cs
+//
+// Author:
+//   Tim Coleman (tim@timcoleman.com)
+//
+// Copyright (C) Tim Coleman, 2002
+//
 
 //
 // Permission is hereby granted, free of charge, to any person obtaining
 // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
 // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
 //
-\r
-using System.Xml.Serialization;\r
-\r
-namespace System.Web.Services.Description {\r
-       public sealed class Service : DocumentableItem {\r
-\r
-               #region Fields\r
-\r
-               ServiceDescriptionFormatExtensionCollection extensions;\r
-               string name;\r
-               PortCollection ports;\r
-               ServiceDescription serviceDescription;\r
-\r
-               #endregion // Fields\r
-\r
-               #region Constructors\r
-       \r
-               public Service ()\r
-               {\r
-                       extensions = new ServiceDescriptionFormatExtensionCollection (this);\r
-                       name = String.Empty;\r
-                       ports = new PortCollection (this);\r
-                       serviceDescription = null;\r
-               }\r
-               \r
-               #endregion // Constructors\r
-\r
-               #region Properties\r
-\r
-               [XmlIgnore]\r
-               public ServiceDescriptionFormatExtensionCollection Extensions {         \r
-                       get { return extensions; }\r
-               }\r
-\r
-               [XmlAttribute ("name", DataType = "NCName")]    \r
-               public string Name {\r
-                       get { return name; }\r
-                       set { name = value; }\r
-               }\r
-\r
-               [XmlElement ("port")]   \r
-               public PortCollection Ports {\r
-                       get { return ports; }\r
-               }\r
-\r
-//             [XmlIgnore]\r
-               public ServiceDescription ServiceDescription {\r
-                       get { return serviceDescription; }\r
-               }\r
-\r
-               #endregion // Properties\r
-\r
-               #region Methods\r
-\r
-               internal void SetParent (ServiceDescription serviceDescription) \r
-               {\r
-                       this.serviceDescription = serviceDescription;\r
-               }\r
-\r
-               #endregion // Methods\r
-       }\r
-}\r
+
+using System.Xml.Serialization;
+using System.Web.Services.Configuration;
+
+namespace System.Web.Services.Description
+{
+       [XmlFormatExtensionPoint ("Extensions")]
+       public sealed class Service :
+               NamedItem
+       {
+               #region Fields
+
+               ServiceDescriptionFormatExtensionCollection extensions;
+               PortCollection ports;
+               ServiceDescription serviceDescription;
+
+               #endregion // Fields
+
+               #region Constructors
+       
+               public Service ()
+               {
+                       extensions = new ServiceDescriptionFormatExtensionCollection (this);
+                       ports = new PortCollection (this);
+                       serviceDescription = null;
+               }
+               
+               #endregion // Constructors
+
+               #region Properties
+
+               [XmlIgnore]
+               public
+               override
+               ServiceDescriptionFormatExtensionCollection Extensions {        
+                       get { return extensions; }
+               }
+
+
+               [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
+       }
+}