public override int SaveChanges(bool acceptAllChangesOnSuccess)
        {
            using var transaction = TransactionExt.Begin(IsolationLevel.ReadCommitted);
            var changeLogs = GetChangeLogs();
            var result     = base.SaveChanges(acceptAllChangesOnSuccess);

            _outbox.Send(changeLogs);
            transaction.Complete();
            return(result);
        }
Esempio n. 2
0
 /// <summary>
 /// Sends a message
 /// </summary>
 /// <param name="mail">the mail message to send</param>
 /// <returns>The unique id of the mail just sent</returns>
 public virtual string Send(MailSoap12TransportBinding mail)
 {
     return(_outbox.Send(mail));
 }