using System.ServiceModel.Channels;
using System.Text;
using System.Xml;
-#if !NET_2_1
+#if !MOBILE
using System.Configuration;
using System.ServiceModel.Configuration;
#endif
{
}
- public WebHttpBinding (WebHttpSecurityMode mode)
+ public WebHttpBinding (WebHttpSecurityMode securityMode)
{
- Initialize (mode);
+ Initialize (securityMode);
}
public WebHttpBinding (string configurationName)
{
-#if !NET_2_1 && !XAMMAC_4_5
+#if !MOBILE && !XAMMAC_4_5
BindingsSection bindingsSection = ConfigUtil.BindingsSection;
WebHttpBindingElement el = (WebHttpBindingElement) bindingsSection ["webHttpBinding"].ConfiguredBindings.FirstOrDefault (c => c.Name == configurationName);
if (el != null) {
WebHttpSecurity security = new WebHttpSecurity ();
HttpTransportBindingElement t;
// This can be changed only using <synchronousReceive> configuration element.
- bool receive_synchronously;
WebMessageEncodingBindingElement msgenc = new WebMessageEncodingBindingElement ();
public EnvelopeVersion EnvelopeVersion {
get { return EnvelopeVersion.None; }
}
-#if !NET_2_1 && !XAMMAC_4_5
+#if !MOBILE && !XAMMAC_4_5
[DefaultValue (false)]
public bool AllowCookies {
get { return t.AllowCookies; }
}
bool IBindingRuntimePreferences.ReceiveSynchronously {
- get { return receive_synchronously; }
+ get { return false; }
}
[EditorBrowsable (EditorBrowsableState.Advanced)]