Merge branch 'master' of http://github.com/mono/mono
[mono.git] / mcs / class / System.ServiceModel.Discovery / System.ServiceModel.Discovery.Configuration / AnnouncementEndpointElement.cs
1 using System;
2 using System.ComponentModel;
3 using System.Configuration;
4 using System.ServiceModel.Configuration;
5 using System.ServiceModel.Description;
6
7 namespace System.ServiceModel.Discovery.Configuration
8 {
9         public class AnnouncementEndpointElement : StandardEndpointElement
10         {
11                 static ConfigurationPropertyCollection properties;
12                 static ConfigurationProperty discovery_version, max_announcement_delay;
13                 
14                 static AnnouncementEndpointElement ()
15                 {
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);
21                 }
22                 
23                 public AnnouncementEndpointElement ()
24                 {
25                 }
26
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; }
32                 }
33
34                 protected override Type EndpointType {
35                         get { return typeof (AnnouncementEndpoint); }
36                 }
37                 
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; }
43                 }
44                 
45                 protected override ServiceEndpoint CreateServiceEndpoint (ContractDescription contractDescription)
46                 {
47                         throw new NotImplementedException ();
48                 }
49                 
50                 protected override void InitializeFrom (ServiceEndpoint endpoint)
51                 {
52                         throw new NotImplementedException ();
53                 }
54                 
55                 protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ChannelEndpointElement serviceEndpointElement)
56                 {
57                         throw new NotImplementedException ();
58                 }
59
60                 protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ServiceEndpointElement serviceEndpointElement)
61                 {
62                         throw new NotImplementedException ();
63                 }
64                 
65                 protected override void OnInitializeAndValidate (ChannelEndpointElement channelEndpointElement)
66                 {
67                         throw new NotImplementedException ();
68                 }
69                 
70                 protected override void OnInitializeAndValidate (ServiceEndpointElement serviceEndpointElement)
71                 {
72                         throw new NotImplementedException ();
73                 }
74         }
75 }
76