void QueueSegment(ITransactionSegment segment) { if (lastSegment != null) { lastSegment.AttachNext(segment); } lastSegment = segment; }
void HandOffTransactionIfPossible() { if (gotResponse && (body == null || (body != null && bodyFinished)) && transaction != null && next != null) { next.AttachTransaction(transaction); transaction = null; next = null; body = null; } }
void QueueSegment(ITransactionSegment segment) { if (lastSegment != null) lastSegment.AttachNext(segment); lastSegment = segment; }
public void OnError(Exception e) { transaction.Dispose(); transaction = null; next = null; }
public void AttachNext(ITransactionSegment next) { this.next = next; HandOffTransactionIfPossible(); }
public void AttachNext(ITransactionSegment next) { }