2017-01-31 12:01:08 +01:00
|
|
|
|
using System;
|
|
|
|
|
|
2018-12-19 20:50:56 +01:00
|
|
|
|
namespace Tapeti.Annotations
|
2017-01-31 12:01:08 +01:00
|
|
|
|
{
|
2019-03-19 11:47:52 +01:00
|
|
|
|
/// <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
|
2019-08-15 15:36:40 +02:00
|
|
|
|
/// EndWithResponse when using Tapeti Flow. These methods will respond directly
|
2019-03-19 11:47:52 +01:00
|
|
|
|
/// to the queue specified in the reply-to header automatically added by Tapeti.
|
|
|
|
|
/// </summary>
|
2017-02-15 22:05:01 +01:00
|
|
|
|
[AttributeUsage(AttributeTargets.Class)]
|
2017-01-31 12:01:08 +01:00
|
|
|
|
public class RequestAttribute : Attribute
|
|
|
|
|
{
|
2019-05-27 11:48:10 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// The type of the message class which must be returned as the response.
|
|
|
|
|
/// </summary>
|
2017-01-31 12:01:08 +01:00
|
|
|
|
public Type Response { get; set; }
|
|
|
|
|
}
|
|
|
|
|
}
|