+2010-03-16 Jb Evain <jbevain@novell.com>
+
+ * HttpRequestChannel.cs, HttpTransportBindingElement.cs: use
+ MOONLIGHT symbol to disambiguate MonoTouch and Moonlight code.
+
2010-03-09 Atsushi Enomoto <atsushi@ximian.com>
* HttpListenerManager.cs : For ASP.NET, use correct GenericIdentity
((HttpWebRequest) web_request).CookieContainer = cmgr.CookieContainer;
#endif
-#if !NET_2_1 || MONOTOUCH // until we support NetworkCredential like SL4 will do.
+#if !MOONLIGHT // until we support NetworkCredential like SL4 will do.
// client authentication (while SL3 has NetworkCredential class, it is not implemented yet. So, it is non-SL only.)
var httpbe = (HttpTransportBindingElement) source.Transport;
string authType = null;
// FIXME: Do we need to use the timeout? If so, what happens when the timeout is reached.
// Is the current request cancelled and an exception thrown? If so we need to pass the
// exception to the Complete () method and allow the result to complete 'normally'.
-#if NET_2_1 || MONOTOUCH
+#if NET_2_1
// neither Moonlight nor MonoTouch supports contexts (WaitOne default to false)
bool result = wait.WaitOne (Timeout);
#else
string realm = String.Empty;
TransferMode transfer_mode;
IDefaultCommunicationTimeouts timeouts;
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
AuthenticationSchemes auth_scheme =
AuthenticationSchemes.Anonymous;
AuthenticationSchemes proxy_auth_scheme =
transfer_mode = other.transfer_mode;
// FIXME: it does not look safe
timeouts = other.timeouts;
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
auth_scheme = other.auth_scheme;
proxy_auth_scheme = other.proxy_auth_scheme;
#endif
}
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
public AuthenticationSchemes AuthenticationScheme {
get { return auth_scheme; }
set { auth_scheme = value; }
+2010-03-16 Jb Evain <jbevain@novell.com>
+
+ * ClientCredentials.cs, ContractDescription.cs,
+ IEndpointBehavior.cs: use MOONLIGHT symbol to disambiguate
+ MonoTouch and Moonlight code.
+
2010-03-15 Atsushi Enomoto <atsushi@ximian.com>
* ServiceEndpointCollection.cs : those overrides are rather to check
}
#endif
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
void IEndpointBehavior.AddBindingParameters (ServiceEndpoint endpoint,
BindingParameterCollection parameters)
{
foreach (OperationDescription od in Operations) {
if (!proxy.Operations.Contains (od.Name))
PopulateClientOperation (proxy, od);
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
foreach (IOperationBehavior ob in od.Behaviors)
ob.ApplyClientBehavior (od, proxy.Operations [od.Name]);
#endif
{
public interface IEndpointBehavior
{
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
void AddBindingParameters (ServiceEndpoint endpoint,
BindingParameterCollection parameters);
#if !NET_2_1
+2010-03-16 Jb Evain <jbevain@novell.com>
+
+ * ClientBase.cs, ClientRuntimeChannel.cs: use MOONLIGHT symbol to
+ disambiguate MonoTouch and Moonlight code.
+
2010-03-15 Atsushi Enomoto <atsushi@ximian.com>
* ServiceHostBase.cs : do not reject endpoints with an identical
{
[MonoTODO ("It somehow rejects classes, but dunno how we can do that besides our code wise.")]
public abstract class ClientBase<TChannel> :
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
IDisposable,
#endif
ICommunicationObject where TChannel : class
{
static InstanceContext initialContxt = new InstanceContext (null);
-#if NET_2_1 && !MONOTOUCH
+#if MOONLIGHT
static readonly PropertyInfo dispatcher_main_property;
static readonly MethodInfo dispatcher_begin_invoke_method;
void RunCompletedCallback (SendOrPostCallback callback, InvokeAsyncCompletedEventArgs args)
{
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
callback (args);
#else
object dispatcher = dispatcher_main_property.GetValue (null, null);
}
IAsyncResult begin_async_result;
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
void IDisposable.Dispose ()
{
Close ();
}
}
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
protected object Invoke (string methodName, object [] args)
{
var cd = endpoint.Contract;
}
}
-#if !NET_2_1 || MONOTOUCH
+#if !MOONLIGHT
public override bool WaitOne (int millisecondsTimeout, bool exitContext)
{
return WaitHandle.WaitAll (ResultWaitHandles, millisecondsTimeout, exitContext);