public async Task CopyTo(IEnvelopeTransaction other) { await other.Persist(Queued.ToArray()); foreach (var envelope in Scheduled) { await other.ScheduleJob(envelope); } }
public Task EnlistInTransaction(IEnvelopeTransaction transaction) { var original = Transaction; Transaction = transaction; EnlistedInTransaction = true; return(original?.CopyTo(transaction) ?? Task.CompletedTask); }
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."); }
public Task CopyTo(IEnvelopeTransaction other) { throw new NotSupportedException(); }