2009-06-10 Atsushi Enomoto <atsushi@ximian.com>
[mono.git] / mcs / class / System.ServiceModel / System.ServiceModel.Channels / ReplyChannelBase.cs
index ce05a131658d0379b070b4871a5967d55dfc26a1..0b286d6172cbb0757019cb92e1e5ba906c98ba68 100644 (file)
@@ -69,14 +69,14 @@ namespace System.ServiceModel.Channels
 
                public virtual bool EndTryReceiveRequest (IAsyncResult result)
                {
-                       if (try_recv_delegate == null)
-                               throw new InvalidOperationException ("BeginTryReceiveRequest operation has not started");
                        RequestContext dummy;
                        return EndTryReceiveRequest (result, out dummy);
                }
 
                public virtual bool EndTryReceiveRequest (IAsyncResult result, out RequestContext context)
                {
+                       if (try_recv_delegate == null)
+                               throw new InvalidOperationException ("BeginTryReceiveRequest operation has not started");
                        return try_recv_delegate.EndInvoke (out context, result);
                }