Sic04/FrameworkLocal/UIClient/Caliburn.Micro/Core/IGuardClose.cs

15 lines
470 B
C#
Raw Normal View History

2022-09-19 09:16:33 +08:00
namespace Caliburn.Micro.Core {
using System;
/// <summary>
/// Denotes an instance which may prevent closing.
/// </summary>
public interface IGuardClose : IClose {
/// <summary>
/// Called to check whether or not this instance can close.
/// </summary>
/// <param name="callback">The implementer calls this action with the result of the close check.</param>
void CanClose(Action<bool> callback);
}
}