コード例 #1
0
        public async Task CopyTo(IEnvelopeTransaction other)
        {
            await other.Persist(Queued.ToArray());

            foreach (var envelope in Scheduled)
            {
                await other.ScheduleJob(envelope);
            }
        }
コード例 #2
0
        public Task EnlistInTransaction(IEnvelopeTransaction transaction)
        {
            var original = Transaction;

            Transaction           = transaction;
            EnlistedInTransaction = true;

            return(original?.CopyTo(transaction) ?? Task.CompletedTask);
        }
コード例 #3
0
 public Task CopyTo(IEnvelopeTransaction other)
 {
     throw new NotSupportedException(
               $"Cannot copy data from an existing Sql Server envelope transaction to {other}. You may have erroneously enlisted an IMessageContext in a transaction twice.");
 }
コード例 #4
0
 public Task CopyTo(IEnvelopeTransaction other)
 {
     throw new NotSupportedException();
 }