+2010-03-17 Atsushi Enomoto <atsushi@ximian.com>
+
+ * ConfigUtil.cs, StandardBindingCollectionElement.cs,
+ MexHttpsBindingCollectionElement.cs,
+ MexHttpBindingCollectionElement.cs : use GetDefault() in
+ BindingCollectionElement to create a Binding, instead of activator
+ immediately. And for mex bindings, use MetadataExchangeBindings.
+
2010-03-16 Atsushi Enomoto <atsushi@ximian.com>
* TcpTransportElement.cs
if (section == null)
throw new ArgumentException (String.Format ("binding section for {0} was not found.", binding));
- Binding b = (Binding) Activator.CreateInstance (section.BindingType, new object [0]);
+ Binding b = section.GetDefault ();
foreach (IBindingConfigurationElement el in section.ConfiguredBindings)
if (el.Name == bindingConfiguration)
namespace System.ServiceModel.Configuration
{
- [MonoTODO]
public partial class MexHttpBindingCollectionElement
: MexBindingBindingCollectionElement<WSHttpBinding, MexHttpBindingElement>
{
{
}
-
- // Properties
-
-
+ protected internal override Binding GetDefault ()
+ {
+ return MetadataExchangeBindings.CreateMexHttpBinding ();
+ }
}
}
namespace System.ServiceModel.Configuration
{
- [MonoTODO]
public partial class MexHttpsBindingCollectionElement
: MexBindingBindingCollectionElement<WSHttpBinding, MexHttpsBindingElement>
{
{
}
-
- // Properties
-
-
+ protected internal override Binding GetDefault ()
+ {
+ return MetadataExchangeBindings.CreateMexHttpsBinding ();
+ }
}
}
throw new NotImplementedException ();
}
- protected internal override Binding GetDefault () {
- throw new NotImplementedException ();
+ protected internal override Binding GetDefault ()
+ {
+ return (Binding) Activator.CreateInstance (BindingType, new object [0]);
}
protected internal override bool TryAdd (string name, Binding binding, System.Configuration.Configuration config) {