2 using System.ComponentModel;
3 using System.Configuration;
4 using System.ServiceModel.Configuration;
5 using System.ServiceModel.Description;
7 namespace System.ServiceModel.Discovery.Configuration
9 public class AnnouncementEndpointElement : StandardEndpointElement
11 static ConfigurationPropertyCollection properties;
12 static ConfigurationProperty discovery_version, max_announcement_delay;
14 static AnnouncementEndpointElement ()
16 discovery_version = new ConfigurationProperty ("discoveryVersion", typeof (DiscoveryVersion), "WSDiscovery11", new DiscoveryVersionConverter (), null, ConfigurationPropertyOptions.None);
17 max_announcement_delay = new ConfigurationProperty ("maxAnnouncementDelay", typeof (TimeSpan), "00:00:00", new TimeSpanConverter (), null, ConfigurationPropertyOptions.None);
18 properties = new ConfigurationPropertyCollection ();
19 properties.Add (discovery_version);
20 properties.Add (max_announcement_delay);
23 public AnnouncementEndpointElement ()
27 [TypeConverter (typeof (DiscoveryVersionConverter))]
28 [ConfigurationProperty ("discoveryVersion", DefaultValue = "WSDiscovery11")]
29 public DiscoveryVersion DiscoveryVersion {
30 get { return (DiscoveryVersion) base [discovery_version]; }
31 set { base [discovery_version] = value; }
34 protected override Type EndpointType {
35 get { return typeof (AnnouncementEndpoint); }
38 [TypeConverter (typeof (TimeSpanConverter))]
39 [ConfigurationProperty ("maxAnnouncementDelay", DefaultValue = "00:00:00")]
40 public TimeSpan MaxAnnouncementDelay {
41 get { return (TimeSpan) base [max_announcement_delay]; }
42 set { base [max_announcement_delay] = value; }
45 protected override ServiceEndpoint CreateServiceEndpoint (ContractDescription contractDescription)
47 throw new NotImplementedException ();
50 protected override void InitializeFrom (ServiceEndpoint endpoint)
52 throw new NotImplementedException ();
55 protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ChannelEndpointElement serviceEndpointElement)
57 throw new NotImplementedException ();
60 protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ServiceEndpointElement serviceEndpointElement)
62 throw new NotImplementedException ();
65 protected override void OnInitializeAndValidate (ChannelEndpointElement channelEndpointElement)
67 throw new NotImplementedException ();
70 protected override void OnInitializeAndValidate (ServiceEndpointElement serviceEndpointElement)
72 throw new NotImplementedException ();