IEntityChangeSetReasonProvider.cs 575 B

12345678910111213141516171819202122
  1. using System;
  2. namespace Abp.EntityHistory
  3. {
  4. /// <summary>
  5. /// Defines some session information that can be useful for applications.
  6. /// </summary>
  7. public interface IEntityChangeSetReasonProvider
  8. {
  9. /// <summary>
  10. /// Gets current Reason or null.
  11. /// </summary>
  12. string Reason { get; }
  13. /// <summary>
  14. /// Used to change <see cref="Reason"/> for a limited scope.
  15. /// </summary>
  16. /// <param name="reason"></param>
  17. /// <returns></returns>
  18. IDisposable Use(string reason);
  19. }
  20. }