Пример #1
0
        void QueueSegment(ITransactionSegment segment)
        {
            if (lastSegment != null)
            {
                lastSegment.AttachNext(segment);
            }

            lastSegment = segment;
        }
Пример #2
0
 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;
        }
Пример #4
0
 public void OnError(Exception e)
 {
     transaction.Dispose();
     transaction = null;
     next        = null;
 }
Пример #5
0
        public void AttachNext(ITransactionSegment next)
        {
            this.next = next;

            HandOffTransactionIfPossible();
        }
Пример #6
0
 public void AttachNext(ITransactionSegment next)
 {
 }