IGuardClose.cs 470 B

123456789101112131415
  1. namespace Caliburn.Micro.Core {
  2. using System;
  3. /// <summary>
  4. /// Denotes an instance which may prevent closing.
  5. /// </summary>
  6. public interface IGuardClose : IClose {
  7. /// <summary>
  8. /// Called to check whether or not this instance can close.
  9. /// </summary>
  10. /// <param name="callback">The implementer calls this action with the result of the close check.</param>
  11. void CanClose(Action<bool> callback);
  12. }
  13. }