ScopeElement.cs 1.0 KB

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