mirror of
https://gitee.com/akwkevin/aistudio.-wpf.-diagram
synced 2026-04-26 11:17:56 +08:00
整理一下项目文件
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace AIStudio.Wpf.DiagramDesigner
|
||||
{
|
||||
/// <summary>
|
||||
/// This attribute allows a method to be targeted as a recipient for a message.
|
||||
/// It requires that the Type is registered with the MessageMediator through the
|
||||
/// <seealso cref="MessageMediator.Register"/> method
|
||||
/// </summary>
|
||||
[AttributeUsage(AttributeTargets.Method)]
|
||||
public sealed class MediatorMessageSinkAttribute : Attribute
|
||||
{
|
||||
/// <summary>
|
||||
/// Message key
|
||||
/// </summary>
|
||||
public object MessageKey { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// Default constructor
|
||||
/// </summary>
|
||||
public MediatorMessageSinkAttribute()
|
||||
{
|
||||
MessageKey = null;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Constructor that takes a message key
|
||||
/// </summary>
|
||||
/// <param name="messageKey">Message Key</param>
|
||||
public MediatorMessageSinkAttribute(string messageKey)
|
||||
{
|
||||
MessageKey = messageKey;
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user