private bool HandleWriteMessage(IAsyncResult result) { Microsoft.ServiceBus.Channels.StreamingConnectionHelper.EndWriteMessage(result); this.connectionReader = new Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.ClientSingletonConnectionReader(this.connection, this.connectionPoolHelper, this.channel.settings); this.connectionReader.DoneSending(TimeSpan.Zero); IAsyncResult asyncResult = this.connectionReader.BeginReceive(this.timeoutHelper.RemainingTime(), Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.StreamedFramingAsyncRequest.onReceiveReply, this); if (!asyncResult.CompletedSynchronously) { return(false); } return(this.CompleteReceiveReply(asyncResult)); }
public Message WaitForReply(TimeSpan timeout) { Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.ClientSingletonConnectionReader clientSingletonConnectionReader = new Microsoft.ServiceBus.Channels.StreamedFramingRequestChannel.ClientSingletonConnectionReader(this.connection, this.connectionPoolHelper, this.channel.settings); clientSingletonConnectionReader.DoneSending(TimeSpan.Zero); return(clientSingletonConnectionReader.Receive(timeout)); }