IUnitOfWorkCompleteHandle.cs 701 B

12345678910111213141516171819202122232425
  1. using System;
  2. using System.Threading.Tasks;
  3. namespace Abp.Domain.Uow
  4. {
  5. /// <summary>
  6. /// Used to complete a unit of work.
  7. /// This interface can not be injected or directly used.
  8. /// Use <see cref="IUnitOfWorkManager"/> instead.
  9. /// </summary>
  10. public interface IUnitOfWorkCompleteHandle : IDisposable
  11. {
  12. /// <summary>
  13. /// Completes this unit of work.
  14. /// It saves all changes and commit transaction if exists.
  15. /// </summary>
  16. void Complete();
  17. /// <summary>
  18. /// Completes this unit of work.
  19. /// It saves all changes and commit transaction if exists.
  20. /// </summary>
  21. Task CompleteAsync();
  22. }
  23. }