2019-07-19 19:47:17 +00:00
|
|
|
using System;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Encompass
|
|
|
|
{
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
|
|
|
public class Receives : Attribute
|
|
|
|
{
|
2020-03-20 07:09:57 +00:00
|
|
|
public readonly HashSet<Type> ReceiveTypes;
|
2019-07-19 19:47:17 +00:00
|
|
|
|
|
|
|
public Receives(params Type[] receiveTypes)
|
|
|
|
{
|
2020-03-20 07:09:57 +00:00
|
|
|
ReceiveTypes = new HashSet<Type>(receiveTypes);
|
2019-07-19 19:47:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|