Ejemplo n.º 1
0
 protected override bool OnTryReceive(TimeSpan timeout, out BrokeredMessage brokeredMessage)
 {
     ServiceBusInputSessionChannel.TryReceiveAsyncResult tryReceiveAsyncResult = new ServiceBusInputSessionChannel.TryReceiveAsyncResult(this, timeout, null, null);
     tryReceiveAsyncResult.RunSynchronously();
     brokeredMessage = tryReceiveAsyncResult.BrokeredMessage;
     return(tryReceiveAsyncResult.ReturnValue);
 }
Ejemplo n.º 2
0
        protected override bool OnEndTryReceive(IAsyncResult result, out BrokeredMessage brokeredMessage)
        {
            ServiceBusInputSessionChannel.TryReceiveAsyncResult tryReceiveAsyncResult = AsyncResult <ServiceBusInputSessionChannel.TryReceiveAsyncResult> .End(result);

            brokeredMessage = tryReceiveAsyncResult.BrokeredMessage;
            return(tryReceiveAsyncResult.ReturnValue);
        }