DiscoveryClientElement.cs 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System;
  2. using System.ComponentModel;
  3. using System.Configuration;
  4. using System.ServiceModel.Channels;
  5. using System.ServiceModel.Configuration;
  6. namespace System.ServiceModel.Discovery.Configuration
  7. {
  8. public sealed class DiscoveryClientElement : BindingElementExtensionElement
  9. {
  10. static ConfigurationPropertyCollection properties;
  11. static ConfigurationProperty endpoint, find_criteria;
  12. static DiscoveryClientElement ()
  13. {
  14. endpoint = new ConfigurationProperty ("endpoint", typeof (ChannelEndpointElement), null, null, null, ConfigurationPropertyOptions.None);
  15. find_criteria = new ConfigurationProperty ("findCriteria", typeof (FindCriteriaElement), null, null, null, ConfigurationPropertyOptions.None);
  16. properties = new ConfigurationPropertyCollection ();
  17. properties.Add (endpoint);
  18. properties.Add (find_criteria);
  19. }
  20. public DiscoveryClientElement ()
  21. {
  22. }
  23. public override Type BindingElementType {
  24. get { return typeof (DiscoveryClientBindingElement); }
  25. }
  26. [ConfigurationProperty ("endpoint")]
  27. public ChannelEndpointElement DiscoveryEndpoint {
  28. get { return (ChannelEndpointElement) base [endpoint]; }
  29. }
  30. [ConfigurationProperty ("findCriteria")]
  31. public FindCriteriaElement FindCriteria {
  32. get { return (FindCriteriaElement) base [find_criteria]; }
  33. }
  34. protected override BindingElement CreateBindingElement ()
  35. {
  36. throw new NotImplementedException ();
  37. }
  38. }
  39. }