添加项目文件。
This commit is contained in:
35
DotNet.RevitUI/MVVM/IMessenger.cs
Normal file
35
DotNet.RevitUI/MVVM/IMessenger.cs
Normal file
@@ -0,0 +1,35 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace DotNet.RevitUI.MVVM
|
||||
{
|
||||
public interface IMessenger
|
||||
{
|
||||
void Register<TMessage>(object recipient, Action<TMessage> action);
|
||||
|
||||
void Register<TMessage>(object recipient, object token, Action<TMessage> action);
|
||||
|
||||
void Register<TMessage>(object recipient, object token, bool receiveDerivedMessagesToo, Action<TMessage> action);
|
||||
|
||||
void Register<TMessage>(object recipient, bool receiveDerivedMessagesToo, Action<TMessage> action);
|
||||
|
||||
void Send<TMessage>(TMessage message);
|
||||
|
||||
void Send<TMessage, TTarget>(TMessage message);
|
||||
|
||||
void Send<TMessage>(TMessage message, object token);
|
||||
|
||||
void Unregister(object recipient);
|
||||
|
||||
void Unregister(string token);
|
||||
|
||||
void Unregister<TMessage>(object recipient);
|
||||
|
||||
void Unregister<TMessage>(object recipient, object token);
|
||||
|
||||
void Unregister<TMessage>(object recipient, Action<TMessage> action);
|
||||
|
||||
void Unregister<TMessage>(object recipient, object token, Action<TMessage> action);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user