public bool EndWaitForMessage(IAsyncResult result)
 {
     return result.ToApmEnd<bool>();
 }
 public Message EndReceive(IAsyncResult result)
 {
     return result.ToApmEnd<Message>();
 }
        public bool EndTryReceive(IAsyncResult result, out Message message)
        {
            try
            {
                message = result.ToApmEnd<Message>();
                return true;
            }
            catch (TimeoutException e)
            {
                if (WcfEventSource.Instance.ReceiveTimeoutIsEnabled())
                {
                    WcfEventSource.Instance.ReceiveTimeout(e.Message);
                }


                message = null;
                return false;
            }
        }
Beispiel #4
0
 public void EndOpen(IAsyncResult result)
 {
     result.ToApmEnd();
 }
Beispiel #5
0
 public static void OnEnd(IAsyncResult result)
 {
     result.ToApmEnd();
 }
 /// <summary>
 /// Completes a WSTrust call to the STS to obtain a <see cref="SecurityToken"/> first checking if the token is available in the cache.
 /// </summary>
 /// <returns>A <see cref="SecurityToken"/>.</returns>
 protected override SecurityToken EndGetTokenCore(IAsyncResult result)
 {
     return(result.ToApmEnd <SecurityToken>());
 }
Beispiel #7
0
 public void EndClose(IAsyncResult result)
 {
     result.ToApmEnd();
 }
 public void EndCloseOutputSession(IAsyncResult result)
 {
     result.ToApmEnd();
 }
Beispiel #9
0
 public Message EndRequest(IAsyncResult result)
 {
     return(result.ToApmEnd <Message>());
 }
 public bool EndWaitForMessage(IAsyncResult result)
 {
     return(result.ToApmEnd <bool>());
 }
 protected override void OnEndClose(IAsyncResult result)
 {
     result.ToApmEnd();
 }
Beispiel #12
0
 public void EndOpen(IAsyncResult result)
 {
     result.ToApmEnd();
 }
Beispiel #13
0
 public void EndClose(IAsyncResult result)
 {
     result.ToApmEnd();
 }
Beispiel #14
0
 public static void OnEnd(IAsyncResult result)
 {
     result.ToApmEnd();
 }
 protected override void OnEndClose(IAsyncResult result)
 {
     result.ToApmEnd();
 }
Beispiel #16
0
 public override void EndWriteMessage(IAsyncResult result)
 {
     result.ToApmEnd();
 }
 public void EndCloseOutputSession(IAsyncResult result)
 {
     result.ToApmEnd();
 }
Beispiel #18
0
 private IConnection EndSendPreamble(IAsyncResult result)
 {
     return(result.ToApmEnd <IConnection>());
 }