Normalize line endings.
[mono.git] / mcs / class / System.ServiceModel.Discovery / System.ServiceModel.Discovery.Configuration / ScopeElement.cs
1 using System;
2 using System.ComponentModel;
3 using System.Configuration;
4 using System.ServiceModel.Configuration;
5
6
7 namespace System.ServiceModel.Discovery.Configuration
8 {
9         public sealed class ScopeElement : ConfigurationElement
10         {
11                 static ConfigurationPropertyCollection properties;
12                 static ConfigurationProperty scope;
13                 
14                 static ScopeElement ()
15                 {
16                         scope = new ConfigurationProperty ("scopes", typeof (Uri), null, new CallbackValidator (typeof (ScopeElement), null/*FIXME: fill it*/), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
17                         properties = new ConfigurationPropertyCollection ();
18                         properties.Add (scope);
19                 }
20
21                 public ScopeElement ()
22                 {
23                 }
24                 
25                 [MonoTODO]
26                 [ConfigurationProperty ("scope", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
27                 [CallbackValidator (CallbackMethodName = "ScopeValidatorCallback", Type = typeof (ScopeElement))]
28                 public Uri Scope {
29                         get { return (Uri) Properties [scope]; }
30                         set { Properties [scope] = value; }
31                 }
32         }
33 }
34