Ejemplo n.º 1
0
 private static void InvokeCallback(IAsyncResult result)
 {
     if (!result.CompletedSynchronously)
     {
         IResumeMessageRpc asyncState = result.AsyncState as IResumeMessageRpc;
         if (asyncState == null)
         {
             throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(System.ServiceModel.SR.GetString("SFxInvalidAsyncResultState0"));
         }
         asyncState.SignalConditionalResume(result);
     }
 }
Ejemplo n.º 2
0
        static void InvokeCallback(IAsyncResult result)
        {
            if (result.CompletedSynchronously)
            {
                return;
            }

            IResumeMessageRpc resume = result.AsyncState as IResumeMessageRpc;

            if (resume == null)
            {
                throw DiagnosticUtility.ExceptionUtility.ThrowHelperArgument(SR.SFxInvalidAsyncResultState0);
            }

            resume.SignalConditionalResume(result);
        }