1
0
mirror of synced 2024-11-05 02:59:16 +00:00
Tapeti/Tapeti.Annotations/RequestAttribute.cs
2019-03-19 11:47:52 +01:00

19 lines
703 B
C#

using System;
namespace Tapeti.Annotations
{
/// <inheritdoc />
/// <summary>
/// Can be attached to a message class to specify that the receiver of the message must
/// provide a response message of the type specified in the Response attribute. This response
/// must be sent by either returning it from the message handler method or using
/// YieldWithResponse when using Tapeti Flow. These methods will respond directly
/// to the queue specified in the reply-to header automatically added by Tapeti.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class RequestAttribute : Attribute
{
public Type Response { get; set; }
}
}