2009-03-05 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Channels / TextMessageEncodingBindingElement.cs
index 50b2590acb39c636958957049e4e981b84125161..81379d4212b955e89adc07c676722176952de069 100644 (file)
@@ -104,6 +104,7 @@ namespace System.ServiceModel.Channels
                        return base.BuildChannelFactory<TChannel> (context);
                }
 
+#if !NET_2_1
                public override IChannelListener<TChannel> BuildChannelListener<TChannel> (
                        BindingContext context)
                {
@@ -120,6 +121,7 @@ namespace System.ServiceModel.Channels
                                throw new ArgumentNullException ("context");
                        return context.CanBuildInnerChannelListener<TChannel> ();
                }
+#endif
 
                public override BindingElement Clone ()
                {
@@ -138,6 +140,7 @@ namespace System.ServiceModel.Channels
                        return new TextMessageEncoderFactory (this);
                }
 
+#if !NET_2_1
                [MonoTODO]
                protected override void OnImportPolicy (XmlElement assertion,
                        MessageVersion messageVersion,
@@ -167,5 +170,6 @@ namespace System.ServiceModel.Channels
                {
                        throw new NotImplementedException ();
                }
+#endif
        }
 }