Atsushi Eno před 15 roky
rodič
revize
98d9cae751

+ 5 - 0
mcs/class/System.ServiceModel/System.ServiceModel.Channels/SecurityBindingElement.cs

@@ -138,6 +138,10 @@ namespace System.ServiceModel.Channels
 		[MonoTODO ("Implement for TransportSecurityBindingElement")]
 		public override bool CanBuildChannelFactory<TChannel> (BindingContext context)
 		{
+#if NET_2_1
+			// not sure this should be like this, but there isn't Symmetric/Asymmetric elements in 2.1 anyways.
+			return context.CanBuildInnerChannelFactory ();
+#else
 			if (this is TransportSecurityBindingElement)
 				throw new NotImplementedException ();
 
@@ -167,6 +171,7 @@ namespace System.ServiceModel.Channels
 						context.CanBuildInnerChannelFactory<IDuplexSessionChannel> ();
 			}
 			return false;
+#endif
 		}
 
 		public override IChannelFactory<TChannel> BuildChannelFactory<TChannel> (