+2010-07-30 Atsushi Enomoto <atsushi@ximian.com>
+
+ * System.ServiceModel.Discovery.dll.soures : add config types. NOTE:
+ this somehow breaks compilation. To get working build, remove those
+ config types.
+
2010-03-19 Atsushi Enomoto <atsushi@ximian.com>
* : initial checkin (mostly stubs).
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ [ConfigurationCollection (typeof (ChannelEndpointElement), AddItemName = "endpoint")]
+ public sealed class AnnouncementChannelEndpointElementCollection : ServiceModelConfigurationElementCollection<ChannelEndpointElement>
+ {
+ public AnnouncementChannelEndpointElementCollection ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class AnnouncementEndpointCollectionElement : StandardEndpointCollectionElement<AnnouncementEndpoint, AnnouncementEndpointElement>
+ {
+ public AnnouncementEndpointCollectionElement ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class AnnouncementEndpointElement : StandardEndpointElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty discovery_version, max_announcement_delay;
+
+ static AnnouncementEndpointElement ()
+ {
+ discovery_version = new ConfigurationProperty ("discoveryVersion", typeof (DiscoveryVersion), "WSDiscovery11", new DiscoveryVersionConverter (), null, ConfigurationPropertyOptions.None);
+ max_announcement_delay = new ConfigurationProperty ("maxAnnouncementDelay", typeof (TimeSpan), "00:00:00", new TimeSpanConverter (), null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (discovery_version);
+ properties.Add (max_announcement_delay);
+ }
+
+ public AnnouncementEndpointElement ()
+ {
+ }
+
+ [TypeConverter (typeof (DiscoveryVersionConverter))]
+ [ConfigurationProperty ("discoveryVersion", DefaultValue = "WSDiscovery11")]
+ public DiscoveryVersion DiscoveryVersion {
+ get { return (DiscoveryVersion) base [discovery_version]; }
+ set { base [discovery_version] = value; }
+ }
+
+ protected override Type EndpointType {
+ get { return typeof (AnnouncementEndpoint); }
+ }
+
+ [TypeConverter (typeof (TimeSpanConverter))]
+ [ConfigurationProperty ("maxAnnouncementDelay", DefaultValue = "00:00:00")]
+ public TimeSpan MaxAnnouncementDelay {
+ get { return (TimeSpan) base [max_announcement_delay]; }
+ set { base [max_announcement_delay] = value; }
+ }
+
+ protected override ServiceEndpoint CreateServiceEndpoint (ContractDescription contractDescription)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void InitializeFrom (ServiceEndpoint endpoint)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ChannelEndpointElement serviceEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ServiceEndpointElement serviceEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnInitializeAndValidate (ChannelEndpointElement channelEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnInitializeAndValidate (ServiceEndpointElement serviceEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
--- /dev/null
+2010-07-30 Atsushi Enomoto <atsushi@ximian.com>
+
+ *.cs : initial checkin.
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class ContractTypeNameElement : ConfigurationElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty name, @namespace;
+
+ static ContractTypeNameElement ()
+ {
+ name = new ConfigurationProperty ("name", typeof (string), null, null, new StringValidator (0), ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
+ @namespace = new ConfigurationProperty ("namespace", typeof (string), "http://tempuri.org/", null, null, ConfigurationPropertyOptions.IsKey);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (name);
+ properties.Add (@namespace);
+ }
+
+ public ContractTypeNameElement ()
+ {
+ }
+
+ public ContractTypeNameElement (string name, string ns)
+ {
+ Name = name;
+ Namespace = ns;
+ }
+
+ [ConfigurationProperty ("name", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
+ [StringValidator (MinLength = 0)]
+ public string Name {
+ get { return (string) Properties [name]; }
+ set { Properties [name] = value; }
+ }
+
+ [ConfigurationProperty ("namespace", DefaultValue = "http://tempuri.org/", Options = ConfigurationPropertyOptions.IsKey)]
+ public string Namespace {
+ get { return (string) Properties [@namespace]; }
+ set { Properties [@namespace] = value; }
+ }
+
+ protected override ConfigurationPropertyCollection Properties {
+ get { return properties; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ [ConfigurationCollection (typeof(ContractTypeNameElement))]
+ public sealed class ContractTypeNameElementCollection : ServiceModelConfigurationElementCollection<ContractTypeNameElement>
+ {
+ public ContractTypeNameElementCollection ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class DiscoveryClientElement : BindingElementExtensionElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty endpoint, find_criteria;
+
+ static DiscoveryClientElement ()
+ {
+ endpoint = new ConfigurationProperty ("endpoint", typeof (ChannelEndpointElement), null, null, null, ConfigurationPropertyOptions.None);
+ find_criteria = new ConfigurationProperty ("findCriteria", typeof (FindCriteriaElement), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (endpoint);
+ properties.Add (find_criteria);
+ }
+
+ public DiscoveryClientElement ()
+ {
+ }
+
+ public override Type BindingElementType {
+ get { return typeof (DiscoveryClientBindingElement); }
+ }
+
+ [ConfigurationProperty ("endpoint")]
+ public ChannelEndpointElement DiscoveryEndpoint {
+ get { return (ChannelEndpointElement) Properties [endpoint]; }
+ }
+
+ [ConfigurationProperty ("findCriteria")]
+ public FindCriteriaElement FindCriteria {
+ get { return (FindCriteriaElement) Properties [find_criteria]; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class DiscoveryClientSettingsElement : ConfigurationElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty endpoint, find_criteria;
+
+ static DiscoveryClientSettingsElement ()
+ {
+ endpoint = new ConfigurationProperty ("endpoint", typeof (ChannelEndpointElement), null, null, null, ConfigurationPropertyOptions.None);
+ find_criteria = new ConfigurationProperty ("findCriteria", typeof (FindCriteriaElement), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (endpoint);
+ properties.Add (find_criteria);
+ }
+
+ public DiscoveryClientSettingsElement ()
+ {
+ }
+
+ [ConfigurationProperty ("endpoint")]
+ public ChannelEndpointElement DiscoveryEndpoint {
+ get { return (ChannelEndpointElement) Properties [discovery_element]; }
+ }
+
+ [ConfigurationProperty ("findCriteria")]
+ public FindCriteriaElement FindCriteria {
+ get { return (FindCriteriaElement) Properties [find_criteria]; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class DiscoveryEndpointCollectionElement : StandardEndpointCollectionElement<DiscoveryEndpoint, DiscoveryEndpointElement>
+ {
+ public DiscoveryEndpointCollectionElement ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class DiscoveryEndpointElement : StandardEndpointElement
+ {
+ public DiscoveryEndpointElement ()
+ {
+ }
+
+ protected override ServiceEndpoint CreateServiceEndpoint (ContractDescription contractDescription)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void InitializeFrom (ServiceEndpoint endpoint)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ChannelEndpointElement serviceEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ServiceEndpointElement serviceEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnInitializeAndValidate (ChannelEndpointElement channelEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+
+ protected override void OnInitializeAndValidate (ServiceEndpointElement channelEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.Globalization;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class DiscoveryVersionConverter : TypeConverter
+ {
+ public DiscoveryVersionConverter ()
+ {
+ }
+
+ public override bool CanConvertFrom (ITypeDescriptorContext context, Type sourceType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public override bool CanConvertTo (ITypeDescriptorContext context, Type destinationType)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public override object ConvertFrom (ITypeDescriptorContext context, CultureInfo culture, object value)
+ {
+ throw new NotImplementedException ();
+ }
+
+ public override object ConvertTo (ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class DynamicEndpointCollectionElement : StandardEndpointCollectionElement<DynamicEndpoint, DynamicEndpointElement>
+ {
+ public DynamicEndpointCollectionElement ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class DynamicEndpointElement : StandardEndpointElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty discovery_client_settings;
+
+ static DynamicEndpointElement ()
+ {
+ discovery_client_settings = new ConfigurationProperty ("discoveryClientSettings", typeof (DiscoveryClientSettingsElement), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (discovery_client_settings);
+ }
+
+ public DynamicEndpointElement ()
+ {
+ }
+
+ [ConfigurationProperty ("discoveryClientSettings")]
+ public DiscoveryClientSettingsElement DiscoveryClientSettings {
+ get { return (DiscoveryClientSettingsElement) Prperties [discovery_client_settings]; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class EndpointDiscoveryElement : BehaviorExtensionElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty types, enabled, extensions, scopes;
+
+ static EndpointDiscoveryElement ()
+ {
+ types = new ConfigurationProperty ("types", typeof (ContractTypeNameElementCollection), null, null, null, ConfigurationPropertyOptions.None);
+ enabled = new ConfigurationProperty ("enabled", typeof (bool), null, null, null, ConfigurationPropertyOptions.None);
+ extensions = new ConfigurationProperty ("extensions", typeof (XmlElementElementCollection), null, null, null, ConfigurationPropertyOptions.None);
+ scopes = new ConfigurationProperty ("scopes", typeof (ScopeElementCollection), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (types);
+ properties.Add (enabled);
+ properties.Add (extensions);
+ properties.Add (scopes);
+ }
+
+ public EndpointDiscoveryElement ()
+ {
+ }
+
+ public override Type BehaviorType {
+ get { return typeof (EndpointDiscoveryBehavior); }
+ }
+
+ [ConfigurationProperty ("types")]
+ public ContractTypeNameElementCollection ContractTypeNames {
+ get { return (ContractTypeNameElementCollection) Properties [types]; }
+ }
+
+ [ConfigurationPropertyAttribute("enabled", DefaultValue = true)]
+ public bool Enabled {
+ get { return (bool) Properties [enabled]; }
+ set { Properties [enabled] = value; }
+ }
+
+ [ConfigurationPropertyAttribute("extensions")]
+ public XmlElementElementCollection Extensions {
+ get { return (XmlElementElementCollection) Properties [extensions]; }
+ }
+
+ [ConfigurationPropertyAttribute("scopes")]
+ public ScopeElementCollection Scopes {
+ get { return (ScopeElementCollection) Properties [scopes]; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class FindCriteriaElement : ConfigurationElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty types, duration, extensions, max_results, scope_match_by, scopes;
+
+ static FindCriteriaElement ()
+ {
+ types = new ConfigurationProperty ("types", typeof (ContractTypeNameElementCollection), null, null, null, ConfigurationPropertyOptions.None);
+ duration = new ConfigurationProperty ("duration", typeof (TimeSpan), "00:00:20", new TimeSpanconverter (), null, ConfigurationPropertyOptions.None);
+ extensions = new ConfigurationProperty ("extensions", typeof (XmlElementElementCollection), null, null, null, ConfigurationPropertyOptions.None);
+ max_results = new ConfigurationProperty ("maxResults", typeof (TimeSpan), "00:00:20", new TimeSpanconverter (), null, ConfigurationPropertyOptions.None);
+ scope_match_by = new ConfigurationProperty ("scopeMatchBy", typeof (Uri), null, null, null, ConfigurationPropertyOptions.None);
+ scopes = new ConfigurationProperty ("scopes", typeof (ScopeElementCollection), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (types);
+ properties.Add (duration);
+ properties.Add (extensions);
+ properties.Add (max_results);
+ properties.Add (scope_match_by);
+ properties.Add (scopes);
+ }
+
+ public FindCriteriaElement ()
+ {
+ }
+
+ [ConfigurationProperty ("types")]
+ public ContractTypeNameElementCollection ContractTypeNames {
+ get { return (ContractTypeNameElementCollection) Properties [types]; }
+ }
+
+ [ConfigurationProperty ("duration", DefaultValue = "00:00:20")]
+ [TypeConverter (typeof (TimeSpanConverter))]
+ public TimeSpan Duration {
+ get { return (TimeSpan) Properties [duration]; }
+ set { Properties [duration] = value; }
+ }
+
+ [ConfigurationProperty ("extensions")]
+ public XmlElementElementCollection Extensions {
+ get { return (XmlElementElementCollection) Properties [extensions]; }
+ }
+
+ [ConfigurationProperty ("maxResults", DefaultValue = 0)]
+ [IntegerValidator (0, int.MaxValue)]
+ public int MaxResults {
+ get { return (int) Properties [max_results]; }
+ set { Properties [max_results] = value; }
+ }
+
+ [ConfigurationProperty ("scopeMatchBy")]
+ [TypeConverter (typeof (UriTypeConverter))]
+ public Uri ScopeMatchBy {
+ get { return (Uri) Properties [scope_match_by]; }
+ set { Properties [scope_match_by] = value; }
+ }
+
+ [ConfigurationProperty ("scopes")]
+ public ScopeElementCollection Scopes {
+ get { return (ScopeElementCollection) Properties [scopes]; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class ScopeElement : ConfigurationElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty scope;
+
+ static ScopeElement ()
+ {
+ scope = new ConfigurationProperty ("scopes", typeof (Uri), null, new CallbackValidator (typeof (ScopeElement), null/*FIXME: fill it*/), null, ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (scope);
+ }
+
+ public ScopeElement ()
+ {
+ }
+
+ [MonoTODO]
+ [ConfigurationProperty ("scope", Options = ConfigurationPropertyOptions.IsRequired | ConfigurationPropertyOptions.IsKey)]
+ [CallbackValidator (CallbackMethodName = "ScopeValidatorCallback", Type = typeof (ScopeElement))]
+ public Uri Scope {
+ get { return (Uri) Properties [scope]; }
+ set { Properties [scope] = value; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ [ConfigurationCollection (typeof (ScopeElement))]
+ public sealed class ScopeElementCollection : ServiceModelConfigurationElementCollection<ScopeElement>
+ {
+ public ScopeElementCollection ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class ServiceDiscoveryElement : BehaviorExtensionElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty announcement_endpoints;
+
+ static ServiceDiscoveryElement ()
+ {
+ announcement_endpoints = new ConfigurationProperty ("announcementEndpoints", typeof (AnnouncementChannelEndpointElementCollection), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (announcement_endpoints);
+ }
+
+ public ServiceDiscoveryElement ()
+ {
+ }
+
+ [ConfigurationProperty ("announcementEndpoints")]
+ public AnnouncementChannelEndpointElementCollection AnnouncementEndpoints {
+ get { return Properties [announcement_endpoints]; }
+ }
+ public override Type BehaviorType {
+ get { return typeof (ServiceDiscoveryBehavior); }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class UdpAnnouncementEndpointCollectionElement : StandardEndpointCollectionElement<UdpAnnouncementEndpoint, UdpAnnouncementEndpointElement>
+ {
+ public UdpAnnouncementEndpointCollectionElement ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class UdpAnnouncementEndpointElement : AnnouncementEndpointElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty max_announcement_delay, multicast_address, transport_settings;
+
+ static UdpAnnouncementEndpointElement ()
+ {
+ max_announcement_delay = new ConfigurationProperty ("maxAnnouncementDelay", typeof (TimeSpan), "00:00:00.500", new TimeSpanConverter (), null, ConfigurationPropertyOptions.None);
+ multicast_address = new ConfigurationProperty ("multicastAddress", typeof (Uri), "soap.udp://239.255.255.250:3702", new UriTypeConverter (), null, ConfigurationPropertyOptions.None);
+ transport_settings = new ConfigurationProperty ("transportSettings", typeof (UdpTransportSettingsElement), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (max_announcement_delay);
+ properties.Add (multicast_address);
+ properties.Add (transport_settings);
+ }
+
+ public UdpAnnouncementEndpointElement ()
+ {
+ }
+
+ protected override Type EndpointType {
+ get { return typeof (UdpAnnouncementEndpoint); }
+ }
+
+ [TypeConverter (typeof (TimeSpanConverter))]
+ [ConfigurationPropertyAttribute("maxAnnouncementDelay", DefaultValue = "00:00:00.500")]
+ public TimeSpan MaxAnnouncementDelay {
+ get { return Properties [max_announcement_delay]; }
+ set { Properties [max_announcement_delay] = value; }
+ }
+
+ [TypeConverter (typeof (UriTypeConverter))]
+ [ConfigurationPropertyAttribute("multicastAddress", DefaultValue = "soap.udp://239.255.255.250:3702")]
+ public Uri MulticastAddress {
+ get { return Properties [multicast_address]; }
+ set { Properties [multicast_address] = value; }
+ }
+
+ [ConfigurationPropertyAttribute("transportSettings")]
+ public UdpTransportSettingsElement TransportSettings {
+ get { return Properties [transport_settings]; }
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class UdpDiscoveryEndpointCollectionElement : StandardEndpointCollectionElement<UdpDiscoveryEndpoint, UdpDiscoveryEndpointElement>
+ {
+ public UdpDiscoveryEndpointCollectionElement ()
+ {
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+using System.ServiceModel.Description;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public class UdpDiscoveryEndpointElement : DiscoveryEndpointElement
+ {
+ static ConfigurationPropertyCollection properties;
+ static ConfigurationProperty discovery_mode, max_response_delay, multicast_address, transport_settings;
+
+ static UdpDiscoveryEndpointElement ()
+ {
+ discovery_mode = new ConfigurationProperty ("discoveryMode", typeof (ServiceDiscoveryMode), ServiceDiscoveryMode.Adhoc, null, null, ConfigurationPropertyOptions.None);
+ max_response_delay = new ConfigurationProperty ("maxResponseDelay", typeof (TimeSpan), "00:00:00.500", new TimeSpanConverter (), null, ConfigurationPropertyOptions.None);
+ multicast_address = new ConfigurationProperty ("multicastAddress", typeof (Uri), "soap.udp://239.255.255.250:3702", new UriTypeConverter (), null, ConfigurationPropertyOptions.None);
+ transport_settings = new ConfigurationProperty ("transportSettings", typeof (UdpTransportSettingsElement), null, null, null, ConfigurationPropertyOptions.None);
+ properties = new ConfigurationPropertyCollection ();
+ properties.Add (discovery_mode);
+ properties.Add (max_response_delay);
+ properties.Add (multicast_address);
+ properties.Add (transport_settings);
+ }
+
+ public UdpDiscoveryEndpointElement ()
+ {
+ }
+
+ [ConfigurationProperty ("discoveryMode", DefaultValue = ServiceDiscoveryMode.Adhoc)]
+ public ServiceDiscoveryMode DiscoveryMode {
+ get { return (ServiceDiscoveryMode) Propperties [discovery_mode]; }
+ set { Properties [discovery_mode] = value; }
+ }
+
+ protected override Type EndpointType {
+ get { return typeof (UdpDiscoveryEndpoint); }
+ }
+
+ [ConfigurationProperty ("maxResponseDelay", DefaultValue = "00:00:00.500")]
+ public TimeSpan MaxResponseDelay {
+ get { return (TimeSpan) Propperties [max_response_delay]; }
+ set { Properties [max_response_delay] = value; }
+ }
+
+ [ConfigurationProperty ("multicastAddress", DefaultValue = "soap.udp://239.255.255.250:3702")]
+ public Uri MulticastAddress {
+ get { return (Uri) Propperties [multicast_address]; }
+ set { Properties [multicast_address] = value; }
+ }
+
+ [ConfigurationProperty ("transportSettings")]
+ public UdpTransportSettingsElement TransportSettings {
+ get { return (UdpTransportSettingsElement) Propperties [transport_settings]; }
+ }
+
+ protected override ServiceEndpoint CreateServiceEndpoint (ContractDescription contractDescription)
+ {
+ throw new NotImplementedException ();
+ }
+ protected override void InitializeFrom (ServiceEndpoint endpoint)
+ {
+ throw new NotImplementedException ();
+ }
+ protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ChannelEndpointElement serviceEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+ protected override void OnApplyConfiguration (ServiceEndpoint endpoint, ServiceEndpointElement serviceEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+ protected override void OnInitializeAndValidate (ChannelEndpointElement channelEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+ protected override void OnInitializeAndValidate (ServiceEndpointElement channelEndpointElement)
+ {
+ throw new NotImplementedException ();
+ }
+ }
+}
+
--- /dev/null
+using System;
+using System.ComponentModel;
+using System.Configuration;
+using System.ServiceModel.Configuration;
+
+namespace System.ServiceModel.Discovery.Configuration
+{
+ public sealed class UdpTransportSettingsElement : ConfigurationElement
+ {
+ public UdpTransportSettingsElement ()
+ {
+ }
+ }
+}
+
../../build/common/Locale.cs
../../build/common/MonoTODOAttribute.cs
Assembly/AssemblyInfo.cs
+System.ServiceModel.Discovery.Configuration/AnnouncementChannelEndpointElementCollection.cs
+System.ServiceModel.Discovery.Configuration/AnnouncementEndpointCollectionElement.cs
+System.ServiceModel.Discovery.Configuration/AnnouncementEndpointElement.cs
+System.ServiceModel.Discovery.Configuration/ContractTypeNameElement.cs
+System.ServiceModel.Discovery.Configuration/ContractTypeNameElementCollection.cs
+System.ServiceModel.Discovery.Configuration/DiscoveryClientElement.cs
+System.ServiceModel.Discovery.Configuration/DiscoveryClientSettingsElement.cs
+System.ServiceModel.Discovery.Configuration/DiscoveryEndpointCollectionElement.cs
+System.ServiceModel.Discovery.Configuration/DiscoveryEndpointElement.cs
+System.ServiceModel.Discovery.Configuration/DiscoveryVersionConverter.cs
+System.ServiceModel.Discovery.Configuration/DynamicEndpointCollectionElement.cs
+System.ServiceModel.Discovery.Configuration/DynamicEndpointElement.cs
+System.ServiceModel.Discovery.Configuration/EndpointDiscoveryElement.cs
+System.ServiceModel.Discovery.Configuration/FindCriteriaElement.cs
+System.ServiceModel.Discovery.Configuration/ScopeElement.cs
+System.ServiceModel.Discovery.Configuration/ScopeElementCollection.cs
+System.ServiceModel.Discovery.Configuration/ServiceDiscoveryElement.cs
+System.ServiceModel.Discovery.Configuration/UdpAnnouncementEndpointCollectionElement.cs
+System.ServiceModel.Discovery.Configuration/UdpAnnouncementEndpointElement.cs
+System.ServiceModel.Discovery.Configuration/UdpDiscoveryEndpointCollectionElement.cs
+System.ServiceModel.Discovery.Configuration/UdpDiscoveryEndpointElement.cs
+System.ServiceModel.Discovery.Configuration/UdpTransportSettingsElement.cs
System.ServiceModel.Discovery.VersionApril2005/DiscoveryMessageSequenceApril2005.cs
System.ServiceModel.Discovery.VersionApril2005/EndpointDiscoveryMetadataApril2005.cs
System.ServiceModel.Discovery.VersionApril2005/FindCriteriaApril2005.cs