namespace System.ServiceModel
{
- public class NetPeerTcpBinding : Binding,
- IBindingDeliveryCapabilities, IBindingMulticastCapabilities,
- ISecurityCapabilities, IBindingRuntimePreferences
+ public class NetPeerTcpBinding : Binding, IBindingRuntimePreferences
{
// We don't support PNRP
public static bool IsPnrpAvailable {
// explicit interface implementations
- [MonoTODO]
- bool IBindingDeliveryCapabilities.AssuresOrderedDelivery {
- get { throw new NotImplementedException (); }
- }
-
- [MonoTODO]
- bool IBindingDeliveryCapabilities.QueuedDelivery {
- get { throw new NotImplementedException (); }
- }
-
- [MonoTODO]
bool IBindingRuntimePreferences.ReceiveSynchronously {
- get { throw new NotImplementedException (); }
- }
-
- bool IBindingMulticastCapabilities.IsMulticast {
- get { throw new NotImplementedException (); }
- }
-
- [MonoTODO]
- ProtectionLevel ISecurityCapabilities.SupportedRequestProtectionLevel {
- get { throw new NotImplementedException (); }
- }
-
- [MonoTODO]
- ProtectionLevel ISecurityCapabilities.SupportedResponseProtectionLevel {
- get { throw new NotImplementedException (); }
- }
-
- [MonoTODO]
- bool ISecurityCapabilities.SupportsClientAuthentication {
- get { throw new NotImplementedException (); }
- }
-
- [MonoTODO]
- bool ISecurityCapabilities.SupportsClientWindowsIdentity {
- get { throw new NotImplementedException (); }
- }
-
- [MonoTODO]
- bool ISecurityCapabilities.SupportsServerAuthentication {
- get { throw new NotImplementedException (); }
+ get { return false; }
}
}
}
Assert.AreEqual (0, n.Port, "#4");
Assert.IsNotNull (n.ReaderQuotas, "#5");
+ Assert.IsFalse (((IBindingRuntimePreferences) n).ReceiveSynchronously, "#6");
+
var bec = n.CreateBindingElements ();
Assert.IsNotNull (bec.Find<PeerCustomResolverBindingElement> (), "#bec0");
Assert.IsNotNull (bec.Find<BinaryMessageEncodingBindingElement> (), "#bec1");