It should not fail to generate client proxy generation for having two "IsRequest...
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Dispatcher / DefaultOperationInvoker.cs
index 5568ff91ae0a4b62ec2196f15fc92f0c13568ef1..27ecfce48e3c5e85f4894243dc2caaf48ddafe7a 100644 (file)
@@ -38,10 +38,12 @@ namespace System.ServiceModel.Dispatcher
        {
                readonly OperationDescription od;
                readonly ParameterInfo [] in_params, out_params;
+               readonly bool is_synchronous;
 
                public DefaultOperationInvoker (OperationDescription od)
                {
                        this.od = od;
+                       is_synchronous = od.SyncMethod != null;
                        var mi = od.SyncMethod ?? od.BeginMethod;
                        var il = new List<ParameterInfo> ();
                        var ol = new List<ParameterInfo> ();
@@ -59,7 +61,7 @@ namespace System.ServiceModel.Dispatcher
                }
 
                public bool IsSynchronous {
-                       get { return true; }
+                       get { return is_synchronous; }
                }
 
                public object [] AllocateInputs ()