protected void OnTransport(TransportBase transport) { this.connection = new AmqpFrameConnection(this.parent, transport, (int)AmqpConstants.DefaultMaxFrameSize); IAsyncResult result = this.connection.BeginOpen(this.timeoutHelper.RemainingTime(), this.PrepareAsyncCompletion(onConnectionOpen), this); this.SyncContinue(result); }
public void Accept(string address, TimeSpan timeout) { IAsyncResult result = new OpenReceiverAsyncResult(this, address, timeout, null, null); this.connection = OpenReceiverAsyncResult.End(result); }