using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace AIStudio.Wpf.DiagramDesigner
{
///
/// 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
/// method
///
[AttributeUsage(AttributeTargets.Method)]
public sealed class MediatorMessageSinkAttribute : Attribute
{
///
/// Message key
///
public object MessageKey { get; private set; }
///
/// Default constructor
///
public MediatorMessageSinkAttribute()
{
MessageKey = null;
}
///
/// Constructor that takes a message key
///
/// Message Key
public MediatorMessageSinkAttribute(string messageKey)
{
MessageKey = messageKey;
}
}
}