This repository has been archived on 2024-01-02. You can view files and clone it, but cannot push or open issues or pull requests.
Sic06/FrameworkLocal/UIClient/Caliburn.Micro/Core/IGuardClose.cs

15 lines
470 B
C#
Raw Normal View History

2023-01-13 10:57:37 +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);
}
}