public abstract string Scheme { get; }
public MessageVersion MessageVersion {
- get {
- foreach (BindingElement e in CreateBindingElements ()) {
- MessageEncodingBindingElement me = e as MessageEncodingBindingElement;
- if (me != null)
- return me.MessageVersion;
- }
- return null;
- }
+ get { return GetProperty<MessageVersion> (new BindingParameterCollection ()); }
}
BindingContext CreateContext (
return CreateContext (parameters).BuildInnerChannelFactory<TChannel> ();
}
-#if !NET_2_1
+#if !MOBILE
public virtual IChannelListener<TChannel>
BuildChannelListener<TChannel> (
Uri listenUriBaseAddress,
public virtual IChannelListener<TChannel>
BuildChannelListener<TChannel> (
- Uri listenUri,
+ Uri listenUriBaseAddress,
params object [] parameters)
where TChannel : class, IChannel
{
new BindingParameterCollection ();
foreach (object o in parameters)
pl.Add (o);
- return BuildChannelListener<TChannel> (listenUri, pl);
+ return BuildChannelListener<TChannel> (listenUriBaseAddress, pl);
}
public virtual IChannelListener<TChannel>
BuildChannelListener<TChannel> (
- Uri listenUri,
+ Uri listenUriBaseAddress,
BindingParameterCollection parameters)
where TChannel : class, IChannel
{
- return BuildChannelListener<TChannel> (listenUri,
+ return BuildChannelListener<TChannel> (listenUriBaseAddress,
String.Empty, parameters);
}
return CreateContext (parameters).CanBuildInnerChannelFactory<TChannel> ();
}
-#if !NET_2_1
+#if !MOBILE
public bool CanBuildChannelListener<TChannel> (
params object [] parameters)
where TChannel : class, IChannel