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/IHandle.cs

20 lines
636 B
C#
Raw Normal View History

2023-01-13 10:57:37 +08:00
namespace Caliburn.Micro.Core {
/// <summary>
/// A marker interface for classes that subscribe to messages.
/// </summary>
public interface IHandle {
}
/// <summary>
/// Denotes a class which can handle a particular type of message.
/// </summary>
/// <typeparam name = "TMessage">The type of message to handle.</typeparam>
public interface IHandle<TMessage> : IHandle { //don't use contravariance here
/// <summary>
/// Handles the message.
/// </summary>
/// <param name = "message">The message.</param>
void Handle(TMessage message);
}
}