Imported Upstream version 4.4.2.4

Former-commit-id: 92904c9c5915c37244316e42ba99e7b934ed7ee2
This commit is contained in:
Xamarin Public Jenkins (auto-signing)
2016-07-21 09:40:10 +00:00
parent 589d484eee
commit 0b4a830db1
343 changed files with 9849 additions and 688 deletions

View File

@ -31,7 +31,9 @@ using System;
using System.Collections.Generic;
using System.Net;
using System.ServiceModel.Channels;
#if !MOBILE && !XAMMAC_4_5
using System.ServiceModel.Channels.NetTcp;
#endif
using System.ServiceModel.Description;
namespace System.ServiceModel.Channels
@ -88,9 +90,15 @@ namespace System.ServiceModel.Channels
{
if (!CanBuildChannelFactory<TChannel> (context))
throw new InvalidOperationException (String.Format ("Not supported channel factory type '{0}'", typeof (TChannel)));
#if !MOBILE && !XAMMAC_4_5
return new TcpChannelFactory<TChannel> (this, context);
#else
throw new NotImplementedException ();
#endif
}
#if !MOBILE && !XAMMAC_4_5
public override IChannelListener<TChannel>
BuildChannelListener<TChannel> (
BindingContext context)
@ -99,6 +107,7 @@ namespace System.ServiceModel.Channels
throw new InvalidOperationException (String.Format ("Not supported channel listener type '{0}'", typeof (TChannel)));
return new TcpChannelListener<TChannel> (this, context);
}
#endif
public override BindingElement Clone ()
{